/* Teacher Fernanda LMS — same look as the site. */
:root {
	--tfl-navy: #1A1C2A;
	--tfl-red: #C70807;
	--tfl-text: #333333;
	--tfl-grey: #EAEBEC;
	--tfl-grey-2: #F5F5F6;
	--tfl-mid: #AEAEAE;
	--tfl-dark: #8F8F8F;
	--tfl-radius: 10px;
	--tfl-shadow: 0 10px 30px rgba(26, 28, 42, .10);
	--tfl-ease: cubic-bezier(.2, .7, .2, 1);
	--tfl-side: 340px;
	--tfl-bar: 64px;
}

.tfl { font-size: 16px; color: var(--tfl-text); }
.tfl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tfl-h2 { color: var(--tfl-navy); font-size: 24px; font-weight: 900; margin: 0 0 18px; }
.tfl-muted { color: var(--tfl-dark); font-weight: 700; margin: 0 0 10px; }
.tfl-small { font-size: 16px; }
.tfl-center { text-align: center; }
.tfl-eyebrow { color: var(--tfl-red); font-size: 16px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 4px; }
.tfl-link { display: inline-block; margin-top: 12px; color: var(--tfl-red); font-weight: 800; text-decoration: none; }
.tfl-link:hover { color: var(--tfl-red); }
.tfl-btn-wide { width: 100%; }
.tfl-alert { padding: 14px 18px; border-radius: var(--tfl-radius); background: var(--tfl-grey); color: var(--tfl-navy); font-weight: 800; margin: 0 0 24px; animation: tfl-in .4s var(--tfl-ease); }
.tfl-alert--error { background: #FBEAEA; }
.tfl .tf-icon, .tfl-focus .tf-icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* Progress bar */
.tfl-progress { margin: 0 0 16px; }
.tfl-progress__top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--tfl-navy); margin-bottom: 6px; }
.tfl-progress__top strong { font-size: 20px; font-weight: 900; }
.tfl-progress__bar { height: 10px; border-radius: 5px; background: var(--tfl-grey); overflow: hidden; }
.tfl-progress__bar span { display: block; height: 100%; border-radius: 5px; background: var(--tfl-navy); position: relative; transition: width .8s var(--tfl-ease); }
.tfl-progress__bar span::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--tfl-red); border-radius: 0 5px 5px 0; }
.tfl-progress__count { margin: 6px 0 0; font-size: 16px; color: var(--tfl-dark); font-weight: 700; }

/* ===== Course page ===== */
.tfl-hero { background: var(--tfl-grey); padding: var(--tf-band-pad, 56px) 0; position: relative; overflow: hidden; }
.tfl-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 50px solid rgba(199, 8, 7, .06); pointer-events: none; }
.tfl-hero__inner { position: relative; z-index: 1; padding-right: calc(380px + 40px); }
.tfl-crumbs { display: flex; gap: 8px; font-weight: 800; font-size: 16px; color: var(--tfl-dark); margin-bottom: 14px; }
.tfl-crumbs a { color: var(--tfl-red); }
.tfl-hero__title { color: var(--tfl-navy); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.5px; }
.tfl-hero__lead { font-size: 19px; font-weight: 700; color: var(--tfl-navy); margin: 0 0 18px; max-width: 720px; }
.tfl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tfl-chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 7px 16px; font-weight: 800; color: var(--tfl-navy); box-shadow: 0 2px 8px rgba(26, 28, 42, .06); }
.tfl-chips .tf-icon { color: var(--tfl-red); }

.tfl-course { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; padding-top: var(--tf-body-top, 56px); padding-bottom: var(--tf-body-bottom, 88px); }
.tfl-course__side { margin-top: -230px; position: relative; z-index: 2; }
.tfl-card { position: sticky; top: 110px; background: #fff; border-radius: 10px; box-shadow: var(--tfl-shadow); overflow: hidden; animation: tfl-in .5s var(--tfl-ease); }
.tfl-card__media { background: #fff; overflow: hidden; }
.tfl-card__media img { width: 100%; height: auto; display: block; } /* The whole image, never cropped */
.tfl-card__ph { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--tfl-grey); }
.tfl-card:has(.tfl-sub__form) { position: relative; top: auto; } /* Tall card (sign-up form): scrolls with the page */
.tfl-card__ph { display: grid; place-items: center; height: 100%; color: var(--tfl-mid); font-size: 56px; }
.tfl-card__body { padding: 22px; }
.tfl-next { margin: 12px 0 0; font-size: 16px; color: var(--tfl-dark); font-weight: 700; }
.tfl-next strong { color: var(--tfl-navy); }
.tfl-edit { display: block; text-align: center; }
.tfl-buy { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--tfl-grey); }
.tfl-price { font-size: 30px; font-weight: 900; color: var(--tfl-navy); margin: 0 0 10px; }
.tfl-price del { color: var(--tfl-dark); font-size: 18px; }
.tfl-price ins { text-decoration: none; }
.tfl-btn-buy { background: var(--tfl-red) !important; }
.tfl-btn-buy:hover { background: var(--tfl-navy) !important; }
.tfl-login-box { text-align: center; }

.tfl-about { margin-bottom: 40px; }
.tfl-content > *:first-child { margin-top: 0; }

/* Units and lessons list */
.tfl-outline-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tfl-expand-all { border: 0; background: none; color: var(--tfl-red); font: inherit; font-weight: 900; cursor: pointer; padding: 6px 0; }
.tfl-outline--page { border: 1px solid var(--tfl-grey); border-radius: 10px; overflow: hidden; }
.tfl-sec { border-bottom: 1px solid var(--tfl-grey); }
.tfl-sec:last-child { border-bottom: 0; }
.tfl-sec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; background: var(--tfl-grey-2); transition: background .2s; }
.tfl-sec summary::-webkit-details-marker { display: none; }
.tfl-sec summary:hover { background: var(--tfl-grey); }
.tfl-sec__title { flex: 1; color: var(--tfl-navy); font-weight: 900; font-size: 17px; }
.tfl-sec__count { font-size: 16px; font-weight: 800; color: var(--tfl-dark); background: #fff; border-radius: 6px; padding: 2px 10px; }
.tfl-sec__chev { color: var(--tfl-red); transition: transform .25s var(--tfl-ease); display: inline-flex; }
.tfl-sec[open] .tfl-sec__chev { transform: rotate(90deg); }
.tfl-items { list-style: none; margin: 0; padding: 4px 0; }
.tfl-item a, .tfl-item > span { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: var(--tfl-text); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.tfl-item a:hover { background: var(--tfl-grey-2); color: var(--tfl-navy); }
.tfl-item.is-sub a, .tfl-item.is-sub > span { padding-left: 50px; font-size: 16px; }
.tfl-item__icon { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; color: var(--tfl-navy); }
.tfl-item__icon .tf-icon { width: 20px; height: 20px; }
.tfl-item__title { flex: 1; }
.tfl-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tfl-mid); display: block; transition: border-color .2s; }
.tfl-item a:hover .tfl-dot { border-color: var(--tfl-navy); }
.tfl-item.is-done .tfl-item__title { color: var(--tfl-dark); }
.tfl-item.is-locked > span { color: var(--tfl-dark); cursor: not-allowed; }
.tfl-item.is-locked .tfl-item__icon { color: var(--tfl-mid); }
.tfl-item.is-current a { background: #fff; color: var(--tfl-red); box-shadow: 0 4px 14px rgba(26, 28, 42, .08); font-weight: 900; }
.tfl-item.is-current .tfl-dot { border-color: var(--tfl-red); border-width: 5px; }
.tfl-badge { font-size: 16px; font-weight: 900; color: var(--tfl-red); border: 1px solid var(--tfl-red); border-radius: 6px; padding: 0 9px; }

@media (max-width: 1000px) {
	.tfl-hero__inner { padding-right: 20px; }
	.tfl-course { grid-template-columns: 1fr; }
	.tfl-course__side { margin-top: 0; order: -1; }
	.tfl-card { position: static; }
}

/* ===== Focus mode (lesson) ===== */
body.tf-focus { margin: 0; background: #fff; }
.tfl-focus { min-height: 100vh; display: flex; flex-direction: column; }
.tfl-bar {
	position: sticky; top: 0; z-index: 50; height: var(--tfl-bar); display: flex; align-items: center; gap: 16px;
	padding: 0 16px; background: #fff; border-bottom: 1px solid var(--tfl-grey); box-shadow: 0 2px 12px rgba(26, 28, 42, .05);
}
.admin-bar .tfl-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .tfl-bar { top: 46px; } }
.tfl-bar__toggle, .tfl-iconbtn {
	width: 42px; height: 42px; border: 0; border-radius: var(--tfl-radius); background: var(--tfl-grey); color: var(--tfl-navy);
	display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s;
}
.tfl-bar__toggle:hover, .tfl-iconbtn:hover { background: var(--tfl-navy); color: #fff; }
.tfl-iconbtn--close:hover { background: var(--tfl-red); }
.tfl-bar__brand img { max-height: 40px; width: auto; display: block; }
.tfl-bar__brand { color: var(--tfl-navy); font-weight: 900; flex-shrink: 0; }
.tfl-bar__course { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; padding-left: 16px; border-left: 1px solid var(--tfl-grey); }
.tfl-bar__ctitle { color: var(--tfl-navy); font-weight: 900; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfl-bar__ctitle:hover { color: var(--tfl-red); }
.tfl-bar__pos { color: var(--tfl-dark); font-size: 16px; font-weight: 800; }
.tfl-bar__progress { display: flex; align-items: center; gap: 10px; width: 200px; }
.tfl-bar__progress .tfl-progress__bar { flex: 1; }
.tfl-bar__pct { color: var(--tfl-navy); font-weight: 900; min-width: 44px; text-align: right; }
.tfl-bar__nav { display: flex; gap: 8px; }
@media (max-width: 900px) {
	.tfl-bar { gap: 10px; padding: 0 10px; }
	.tfl-bar__brand, .tfl-bar__progress { display: none; }
	.tfl-bar__course { border-left: 0; padding-left: 0; }
}

.tfl-focus__body { flex: 1; display: flex; min-height: 0; }
.tfl-side {
	width: var(--tfl-side); flex-shrink: 0; background: var(--tfl-grey-2); border-right: 1px solid var(--tfl-grey);
	position: sticky; top: var(--tfl-bar); height: calc(100vh - var(--tfl-bar)); overflow-y: auto;
	transition: margin-left .35s var(--tfl-ease), transform .35s var(--tfl-ease);
}
.admin-bar .tfl-side { top: calc(var(--tfl-bar) + 32px); height: calc(100vh - var(--tfl-bar) - 32px); }
.is-side-closed .tfl-side { margin-left: calc(var(--tfl-side) * -1); }
.tfl-side__head { padding: 20px 20px 12px; }
.tfl-side__label { margin: 0; color: var(--tfl-red); font-weight: 900; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; }
.tfl-side__count { margin: 4px 0 0; color: var(--tfl-navy); font-weight: 800; }
.tfl-outline--sidebar .tfl-sec { border-bottom: 1px solid var(--tfl-grey); }
.tfl-outline--sidebar .tfl-sec summary { background: transparent; padding: 14px 20px; }
.tfl-outline--sidebar .tfl-sec summary:hover { background: var(--tfl-grey); }
.tfl-outline--sidebar .tfl-sec__title { font-size: 16px; }
.tfl-outline--sidebar .tfl-sec__count { background: #fff; }
.tfl-outline--sidebar .tfl-item a, .tfl-outline--sidebar .tfl-item > span { padding: 10px 20px; font-size: 16px; }
.tfl-outline--sidebar .tfl-item.is-sub a { padding-left: 46px; font-size: 16px; }

@media (max-width: 900px) {
	.tfl-side { position: fixed; left: 0; top: var(--tfl-bar); bottom: 0; height: auto; z-index: 40; width: min(88vw, 360px); box-shadow: 20px 0 40px rgba(26, 28, 42, .2); }
	.is-side-closed .tfl-side { margin-left: 0; transform: translateX(-105%); box-shadow: none; }
}

.tfl-main { flex: 1; min-width: 0; }
.tfl-lesson { max-width: 1100px; margin: 0 auto; padding: 34px 30px 60px; animation: tfl-in .45s var(--tfl-ease); }
.is-side-closed .tfl-lesson { max-width: 1400px; }
.tfl-lesson__title { color: var(--tfl-navy); font-size: clamp(26px, 2.8vw, 32px); font-weight: 900; margin: 0 0 24px; letter-spacing: -.3px; }
.tfl-lesson__content { font-size: 17px; line-height: 1.7; }
.tfl-lesson__content > *:first-child { margin-top: 0; }
.tfl-lesson__content img { max-width: 100%; height: auto; border-radius: var(--tfl-radius); }
.tfl-lesson__content video { width: 100%; border-radius: var(--tfl-radius); }
.tfl-lesson__content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--tfl-radius); }

/* HTML lessons (iframe) */
.tfl-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--tfl-shadow); background: #fff; margin: 0 0 20px; }
.tfl-frame iframe { display: block; width: 100% !important; height: calc(100vh - var(--tfl-bar) - 120px) !important; min-height: 560px; border: 0 !important; }
.tfl-frame:fullscreen iframe { height: 100vh !important; }
.tfl-frame__fs {
	position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: var(--tfl-radius); background: var(--tfl-navy); color: #fff;
	font: inherit; font-weight: 900; font-size: 16px; padding: 8px 14px; cursor: pointer; opacity: .85; transition: opacity .2s, background .2s;
}
.tfl-frame__fs:hover { opacity: 1; background: var(--tfl-red); }

.tfl-lesson__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--tfl-grey); }
.tfl-lesson__prev { grid-column: 1; }
.tfl-lesson__next { grid-column: 3; text-align: right; }
.tfl-lesson__next .tfl-navlink { margin-left: auto; align-items: flex-end; text-align: right; }
.tfl-navlink { display: inline-flex; flex-direction: column; gap: 2px; max-width: 320px; padding: 12px 16px; border-radius: var(--tfl-radius); color: var(--tfl-navy); text-decoration: none; transition: background .2s; }
.tfl-navlink:hover { background: var(--tfl-grey); color: var(--tfl-navy); }
.tfl-navlink span { display: inline-flex; align-items: center; gap: 6px; color: var(--tfl-red); font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.tfl-navlink--next span { justify-content: flex-end; }
.tfl-navlink strong { font-weight: 900; }
.tfl-glow { animation: tfl-glow 1.4s ease 2; }
.tfl-complete { white-space: nowrap; }
.tfl-complete .tf-icon { width: 18px; height: 18px; }
.tfl-complete.is-done { background: #fff !important; color: var(--tfl-navy) !important; box-shadow: inset 0 0 0 2px var(--tfl-navy) !important; }
.tfl-complete.is-done .tf-icon { color: var(--tfl-red); }
.tfl-pop { animation: tfl-pop .6s var(--tfl-ease); }
@media (max-width: 700px) {
	.tfl-lesson { padding: 22px 16px 40px; }
	.tfl-lesson__nav { grid-template-columns: 1fr 1fr; }
	.tfl-lesson__next { grid-column: 2; }
	.tfl-complete { grid-column: 1 / -1; order: -1; width: 100%; }
}

.tfl-locked { text-align: center; max-width: 520px; margin: 30px auto; padding: 36px 28px; border-radius: 10px; background: var(--tfl-grey-2); }
.tfl-locked__icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--tfl-red); font-size: 30px; box-shadow: var(--tfl-shadow); }
.tfl-locked h2 { color: var(--tfl-navy); font-size: 24px; margin: 18px 0; }
.tfl-locked__cta { text-align: left; }

/* ===== Class code ===== */
.tfl-code label { display: block; font-weight: 800; color: var(--tfl-navy); margin-bottom: 8px; }
.tfl-code__row { display: flex; gap: 8px; }
.tfl-code input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--tfl-mid); border-radius: var(--tfl-radius); font: inherit; font-size: 17px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--tfl-navy); }
.tfl-code input:focus { outline: none; border-color: var(--tfl-navy); box-shadow: 0 0 0 3px rgba(26, 28, 42, .12); }
.tfl-code__msg { margin: 8px 0 0; font-weight: 800; color: var(--tfl-red); }
.tfl-code__msg.is-ok { color: var(--tfl-navy); }

/* ===== My Courses ===== */
.tfl-my { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tfl-profile {
	display: grid; grid-template-columns: auto 1fr 340px; gap: 30px; align-items: center;
	background: var(--tfl-grey); padding: var(--tf-band-pad, 56px) 0; margin: 0; position: relative; overflow: hidden;
	/* Full-width grey band, content stays in the 1200px container (same as every page band) */
	box-shadow: 0 0 0 100vmax var(--tfl-grey); clip-path: inset(0 -100vmax);
}
.tfl-profile::after { content: ""; position: absolute; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(199, 8, 7, .06); pointer-events: none; }
.tfl-profile > * { position: relative; z-index: 1; }
.tfl-avatar { position: relative; width: 140px; height: 140px; }
.tfl-avatar__img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--tfl-shadow); }
.tfl-avatar__btn { position: absolute; right: 2px; bottom: 6px; width: 42px; height: 42px; border-radius: 6px; border: 3px solid #fff; background: var(--tfl-navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.tfl-avatar__btn:hover { background: var(--tfl-red); transform: scale(1.08); }
.tfl-avatar.is-loading .tfl-avatar__img { opacity: .5; }
.tfl-avatar__status { min-height: 1em; margin: 0 0 6px; font-weight: 800; color: var(--tfl-navy); font-size: 16px; }
.tfl-profile__name { color: var(--tfl-navy); font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 4px; }
.tfl-stats { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tfl-stats li { background: #fff; border-radius: 10px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 110px; }
.tfl-stats strong { color: var(--tfl-navy); font-size: 24px; font-weight: 900; line-height: 1.1; }
.tfl-stats span { color: var(--tfl-dark); font-size: 16px; font-weight: 800; }
.tfl-profile__code { background: #fff; border-radius: 10px; padding: 18px; }
@media (max-width: 1000px) {
	.tfl-profile { grid-template-columns: auto 1fr; }
	.tfl-profile__code { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.tfl-profile { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 0; }
	.tfl-stats { justify-content: center; }
	.tfl-profile__code { width: 100%; text-align: left; }
}

.tfl-mygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 1000px) { .tfl-mygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tfl-mygrid { grid-template-columns: 1fr; } }
.tfl-mycourse { display: flex; flex-direction: column; border: 1px solid var(--tfl-grey); border-radius: 10px; overflow: hidden; background: #fff; transition: transform .3s var(--tfl-ease), box-shadow .3s; animation: tfl-in .5s var(--tfl-ease) both; }
.tfl-mycourse:nth-child(2) { animation-delay: .07s; }
.tfl-mycourse:nth-child(3) { animation-delay: .14s; }
.tfl-mycourse:nth-child(4) { animation-delay: .21s; }
.tfl-mycourse:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(26, 28, 42, .14); }
.tfl-mycourse__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tfl-grey); overflow: hidden; }
.tfl-mycourse__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tfl-ease); }
.tfl-mycourse:hover .tfl-mycourse__media img { transform: scale(1.06); }
.tfl-ribbon { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--tfl-navy); color: #fff; border-radius: 6px; padding: 4px 12px; font-weight: 900; font-size: 16px; }
.tfl-mycourse__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tfl-mycourse__title { margin: 0 0 14px; font-size: 21px; font-weight: 900; line-height: 1.25; }
.tfl-mycourse__title a { color: var(--tfl-red); }
.tfl-mycourse__title a:hover { color: var(--tfl-navy); }
.tfl-mycourse .tfl-progress { margin-top: auto; }

.tfl-empty { text-align: center; padding: 44px 20px; border: 2px dashed var(--tfl-grey); border-radius: 10px; }
.tfl-empty__icon { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--tfl-grey); color: var(--tfl-navy); font-size: 32px; margin-bottom: 12px; }
.tfl-empty p { max-width: 460px; margin: 0 auto 18px; font-weight: 700; }

/* ===== Login / sign-up ===== */
.tfl-guest { max-width: 520px; margin: 0 auto; padding: 0; }
.tfl-guest .tfl-h2 { text-align: center; }
.tfl-form { background: #fff; border: 1px solid var(--tfl-grey); border-radius: 10px; padding: 30px; box-shadow: var(--tfl-shadow); }
.tfl-form p { margin: 0 0 14px; }
.tfl-form label { display: block; color: var(--tfl-navy); font-weight: 800; margin-bottom: 4px; }
.tfl-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--tfl-mid); border-radius: var(--tfl-radius); font: inherit; font-size: 16px; color: var(--tfl-navy); box-sizing: border-box; }
.tfl-form input:focus { outline: none; border-color: var(--tfl-navy); box-shadow: 0 0 0 3px rgba(26, 28, 42, .12); }
.tfl-form input[name="tfr_code"] { text-transform: uppercase; letter-spacing: 2px; font-weight: 900; }
.tfl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .tfl-form__row { grid-template-columns: 1fr; } }
.tfl-hp { position: absolute !important; left: -9999px !important; }
.tfl-thanks { margin: 30px 0; padding: 24px; background: var(--tfl-grey); border-radius: 10px; }
.tfl-thanks h2 { color: var(--tfl-navy); margin-top: 0; }

@keyframes tfl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tfl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes tfl-glow { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 4px rgba(199, 8, 7, .25); } }
@media (prefers-reduced-motion: reduce) {
	.tfl *, .tfl-focus * { animation: none !important; transition: none !important; }
}

/* ===== Student area tabs and profile ===== */
.tfl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--tf-body-top, 48px); border-bottom: 2px solid var(--tfl-grey); }
.tfl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; color: var(--tfl-navy); font-weight: 900; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.tfl-tab:hover { color: var(--tfl-red); }
.tfl-tab.is-active { border-bottom-color: var(--tfl-red); }
.tfl-tab .tf-icon { color: var(--tfl-red); }
.tfl-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.tfl-form legend { color: var(--tfl-red); font-weight: 900; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.tfl-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--tfl-mid); border-radius: var(--tfl-radius); font: inherit; font-size: 16px; color: var(--tfl-navy); background: #fff; }
.tfl-form input:disabled { background: var(--tfl-grey-2); color: var(--tfl-dark); }

/* Student stats always aligned */
.tfl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
.tfl-stats li { min-width: 0; padding: 10px 14px; }
.tfl-stats span { line-height: 1.25; }
@media (max-width: 600px) { .tfl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }


/* Typography: unit titles 900, lessons 800, body 700 */
.tfl, .tfl-focus { font-weight: 700; color: #333333; }
.tfl-sec__title, .tfl-h2, .tfl-hero__title, .tfl-lesson__title, .tfl-mycourse__title, .tfl-profile__name, .tfl-bar__ctitle { font-weight: 900; }
.tfl-item a, .tfl-item > span, .tfl-hero__lead, .tfl-navlink strong, .tfl-next strong { font-weight: 800; }
.tfl-item.is-current a { font-weight: 900; }
.tfl a, .tfl-focus a { text-decoration: none !important; }

/* Profile form: same width as the rest of the student area */
.tfl-form--wide { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; padding: 34px; }
.tfl-form--wide fieldset { min-width: 0; margin: 0; }
.tfl-form--wide > .tf-btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
@media (max-width: 860px) { .tfl-form--wide { grid-template-columns: 1fr; padding: 24px 20px; } .tfl-form--wide fieldset + fieldset { margin-top: 10px; } }

/* Section titles inside the student area */
.tfl-my__courses > .tfl-h2, .tfl-my__profile > .tfl-h2, .tfl-account .woocommerce-MyAccount-content > .tfl-h2 { display: flex; align-items: center; gap: 10px; }
.tfl-my__courses > .tfl-h2::before, .tfl-my__profile > .tfl-h2::before, .tfl-account .woocommerce-MyAccount-content > .tfl-h2::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--tfl-red); }

/* Store account pages (Orders, Downloads) = the same student area */
.tfl-account .tf-content > .woocommerce { display: block !important; padding: 0; }
.tfl-account .woocommerce::before, .tfl-account .woocommerce::after { display: none !important; }
.tfl-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; animation: tfl-in .45s var(--tfl-ease) both; }

/* Stats count up */
.tfl-stats strong { font-variant-numeric: tabular-nums; }
.tfl-tabs .tfl-tab { position: relative; }
.tfl-tab:not(.is-active)::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -2px; height: 3px; background: var(--tfl-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--tfl-ease); }
.tfl-tab:not(.is-active):hover::after { transform: scaleX(1); }

/* Student band: the decorative ring sits inside the band */
.tfl-profile::after { right: -40px; }
.tfl-profile > * { animation: tfl-in .6s var(--tfl-ease) both; }
.tfl-profile > *:nth-child(2) { animation-delay: .08s; }
.tfl-profile > *:nth-child(3) { animation-delay: .16s; }
.tfl-profile__code { box-shadow: 0 10px 30px rgba(26, 28, 42, .08); }
.tfl-stats li { transition: transform .3s var(--tfl-ease), box-shadow .3s; }
.tfl-stats li:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(26, 28, 42, .1); }
.tfl-tabs + .tfl-alert { margin-top: calc(-1 * var(--tf-body-top, 48px) + 24px); }
.tfl-profile > * { min-width: 0; max-width: 100%; }

/* ===== Report card ===== */
.tfl-report { margin: 0 0 40px; }
.tfl-report__title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--tfl-red); font-size: 28px; font-weight: 900; letter-spacing: -.3px; }
.tfl-report__title > span { width: 50px; height: 50px; border-radius: var(--tfl-radius); background: var(--tfl-red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(199, 8, 7, .25); }
.tfl-report__title svg { width: 22px; height: 22px; }
.tfl-report__stats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tfl-report__stats li { background: var(--tfl-grey-2); border: 2px solid transparent; border-radius: var(--tfl-radius); padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; transition: transform .3s var(--tfl-ease), border-color .3s, background .3s; animation: tfl-in .5s var(--tfl-ease) both; }
.tfl-report__stats li:nth-child(2) { animation-delay: .08s; } .tfl-report__stats li:nth-child(3) { animation-delay: .16s; }
.tfl-report__stats li:hover { transform: translateY(-4px); border-color: var(--tfl-red); background: #fff; }
.tfl-report__icon { grid-row: span 2; width: 54px; height: 54px; border-radius: var(--tfl-radius); background: var(--tfl-navy); color: #fff; display: grid; place-items: center; }
.tfl-report__stats li:first-child .tfl-report__icon { background: var(--tfl-red); }
.tfl-report__icon svg { width: 24px; height: 24px; }
.tfl-report__stats strong { font-size: 26px; font-weight: 900; color: var(--tfl-navy); line-height: 1.1; }
.tfl-report__stats li:first-child strong { color: var(--tfl-red); }
.tfl-report__stats span:last-child { font-weight: 900; color: var(--tfl-dark); font-size: 16px; text-transform: uppercase; letter-spacing: .5px; }
.tfl-report__course { border-radius: var(--tfl-radius); margin: 0 0 26px; overflow: hidden; background: #fff; box-shadow: var(--tfl-shadow); animation: tfl-in .5s var(--tfl-ease) both; }
.tfl-report__head { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding: 20px 22px; background: var(--tfl-grey-2); }
.tfl-report__cicon { width: 52px; height: 52px; border-radius: var(--tfl-radius); background: var(--tfl-navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.tfl-report__cicon svg { width: 24px; height: 24px; }
.tfl-report__cname { flex: 1; min-width: 200px; }
.tfl-report__head h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; color: var(--tfl-red); line-height: 1.2; }
.tfl-report__bar { height: 8px; border-radius: 4px; background: var(--tfl-grey); overflow: hidden; max-width: 360px; }
.tfl-report__bar i { display: block; height: 100%; background: var(--tfl-red); border-radius: 4px; }
.tfl-report__lessons { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 900; color: var(--tfl-navy); font-size: 16px; }
.tfl-report__lessons svg { width: 16px; height: 16px; color: var(--tfl-red); }
.tfl-report__avg { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 10px 16px; border-radius: var(--tfl-radius); background: #fff; border: 2px solid var(--tfl-grey); }
.tfl-report__avg span { font-size: 16px; font-weight: 900; color: var(--tfl-dark); text-transform: uppercase; letter-spacing: .5px; }
.tfl-report__avg strong { font-size: 26px; font-weight: 900; color: var(--tfl-red); line-height: 1.1; }
.tfl-report__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tfl-report__table th { text-align: left; padding: 12px 22px; font-weight: 900; color: var(--tfl-navy); text-transform: uppercase; letter-spacing: .5px; font-size: 16px; background: #fff; border-bottom: 2px solid var(--tfl-grey); }
.tfl-report__table td { padding: 12px 22px; border-top: 1px solid var(--tfl-grey); font-weight: 900; color: var(--tfl-navy); vertical-align: middle; transition: background .2s; }
.tfl-report__table tbody tr:hover td { background: var(--tfl-grey-2); }
.tfl-report__table td:first-child { width: 52%; }
.tfl-report__act { display: flex; align-items: center; gap: 12px; }
.tfl-report__kind { width: 36px; height: 36px; border-radius: 8px; background: var(--tfl-grey); color: var(--tfl-navy); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.tfl-report__kind svg { width: 16px; height: 16px; }
.tfl-report__table tr:hover .tfl-report__kind { background: var(--tfl-red); color: #fff; }
.tfl-grade { display: inline-flex; flex-direction: column; gap: 4px; min-width: 90px; }
.tfl-grade b { font-weight: 900; font-size: 18px; }
.tfl-grade i { display: block; height: 6px; border-radius: 3px; background: var(--tfl-navy); max-width: 100%; }
.tfl-grade.is-mid i { background: var(--tfl-dark); }
.tfl-grade.is-low i { background: var(--tfl-red); }
.tfl-grade.is-empty { color: var(--tfl-mid); font-weight: 900; }
.tfl-report__parts { flex: 1; }
.tfl-report__parts summary { cursor: pointer; font-weight: 900; list-style: none; display: flex; align-items: center; gap: 8px; }
.tfl-report__parts summary::-webkit-details-marker { display: none; }
.tfl-report__parts summary::after { content: "+"; margin-left: auto; width: 26px; height: 26px; border-radius: 6px; background: var(--tfl-grey); display: grid; place-items: center; font-weight: 900; flex-shrink: 0; transition: background .2s, color .2s; }
.tfl-report__parts summary:hover::after { background: var(--tfl-red); color: #fff; }
.tfl-report__parts[open] summary::after { content: "–"; background: var(--tfl-navy); color: #fff; }
.tfl-report__parts ul { list-style: none; margin: 10px 0 0; padding: 0; }
.tfl-report__parts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: var(--tfl-grey-2); margin-bottom: 6px; font-weight: 900; }
.tfl-report__parts li b { color: var(--tfl-red); }
.tfl-empty-line { padding: 16px 22px; margin: 0; color: var(--tfl-dark); font-weight: 900; }
@media (max-width: 700px) {
	.tfl-report__stats { grid-template-columns: 1fr; }
	.tfl-report__table thead { display: none; }
	.tfl-report__table, .tfl-report__table tbody, .tfl-report__table tr, .tfl-report__table td { display: block; width: 100% !important; }
	.tfl-report__table tr { border-top: 2px solid var(--tfl-grey); padding: 8px 0; }
	.tfl-report__table td { border: 0; padding: 6px 16px; }
	.tfl-report__table td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-size: 16px; color: var(--tfl-dark); font-weight: 900; text-transform: uppercase; }
}
@media (max-width: 700px) {
	.tfl-report__table td { border: 0 !important; background: none !important; }
	.tfl-report__table tr { background: #fff !important; }
	.tfl-report__table td:not(:first-child) { display: inline-block; width: auto !important; padding: 2px 10px 10px 16px; vertical-align: top; }
	.tfl-report__table .tfl-grade { min-width: 70px; }
	.tfl-report__table td:not(:first-child) + td { padding-left: 0; }
}
/* Report card wins over the theme's general table and list styles */
.tfl .tfl-report__stats { margin-left: 0 !important; padding: 0 !important; }
.tfl .tfl-report__stats li { margin: 0 !important; }
.tfl .tfl-report__table, .tfl .tfl-report__table th, .tfl .tfl-report__table td { border-left: 0 !important; border-right: 0 !important; }
.tfl .tfl-report__table { border: 0 !important; margin: 0 !important; }
.tfl .tfl-report__table th { background: #fff !important; border-top: 0 !important; border-bottom: 2px solid var(--tfl-grey) !important; }
.tfl .tfl-report__table td { background: #fff; border-top: 1px solid var(--tfl-grey) !important; border-bottom: 0 !important; font-weight: 900 !important; color: var(--tfl-navy) !important; vertical-align: middle !important; }
.tfl .tfl-report__table tbody tr:nth-child(even) td { background: #fff; }
.tfl .tfl-report__table tbody tr:hover td { background: var(--tfl-grey-2) !important; }

/* Monthly subscription box (courses sold in Materials) */
.tfl-sub { margin-top: 6px; scroll-margin-top: 120px; }
.tfl-sub .tfl-price strong { font-weight: 900; }
.tfl-sub .tfl-price del { margin-right: 6px; }
.tfl-per { font-size: 18px; font-weight: 900; color: var(--tfl-dark); margin-left: 4px; }
.tfl-sub__perks { list-style: none; margin: 0 0 16px; padding: 0; }
.tfl-sub__perks li { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--tfl-navy); padding: 3px 0; }
.tfl-sub__perks .tf-icon, .tfl-sub__perks svg { width: 18px; height: 18px; color: var(--tfl-red, #c4090a); flex-shrink: 0; }
.tfl-sub__title { font-size: 20px; font-weight: 900; color: var(--tfl-red, #c4090a); margin: 6px 0 12px; }
.tfl-sub__form p { margin: 0 0 12px; }
.tfl-sub__form label { display: block; font-weight: 800; color: var(--tfl-navy); margin-bottom: 4px; }
.tfl-sub__form input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 2px solid var(--tfl-grey); border-radius: 10px; font: inherit; font-weight: 800; font-size: 16px; color: var(--tfl-navy); }
.tfl-sub__form input:focus { outline: none; border-color: var(--tfl-navy); }
.tfl-sub__form .tfl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .tfl-sub__form .tfl-form__row { grid-template-columns: 1fr; } }
.tfl-sub__state { display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--tfl-navy); margin: 18px 0 4px; }
.tfl-sub__state .tf-icon, .tfl-sub__state svg { width: 20px; height: 20px; color: var(--tfl-red, #c4090a); }
.tfl-sub__cancel button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--tfl-dark); text-decoration: underline; cursor: pointer; font-size: 16px; }
.tfl-sub__cancel button:hover { color: var(--tfl-red, #c4090a); }
.tfl-small { font-size: 16px; }
.tfl-sub__card #tfs-brick { margin: 6px 0 14px; min-height: 120px; }
.tfl-sub__safe { display: flex; align-items: flex-start; gap: 8px; }
.tfl-sub__safe .tf-icon, .tfl-sub__safe svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--tfl-navy); }
/* Mercado Pago card form: site font, bold, 16px */
#tfs-brick, #tfs-brick * { font-family: inherit !important; }
#tfs-brick input, #tfs-brick select { font-size: 16px !important; font-weight: 800 !important; color: var(--tfl-navy) !important; }
#tfs-brick input::placeholder { font-weight: 700 !important; color: #8F8F8F !important; }
#tfs-brick label, #tfs-brick legend { font-size: 16px !important; font-weight: 800 !important; color: var(--tfl-navy) !important; }
/* Subscription form inside the course card: standard box and margins */
.tfl-card .tfl-sub__form { box-shadow: none; padding: 22px; }
#tfs-brick, #tfs-brick > * { max-width: 100%; min-width: 0 !important; box-sizing: border-box; }
.tfl-course > *, .tfl-card, .tfl-card__body { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
	.tfl-card .tfl-sub__form { padding: 18px; }
	.tfl-sub__form .tfl-form__row { grid-template-columns: 1fr; }
}
.tfl-sec__title { text-transform: uppercase; letter-spacing: .5px; }
