/*
 * Totaalleren - design system
 * Component-based CSS, no framework/build step required.
 */

:root {
	--tl-navy: #111735;
	--tl-violet: #6257EE;
	--tl-violet-dark: #4438D2;
	--tl-orange: #FF7B45;
	--tl-bg: #FBFBFF;
	--tl-surface: #FFFFFF;
	--tl-muted: #6F7692;
	--tl-border: #E7E9F2;
	--tl-success: #16A36A;

	--tl-radius-sm: 12px;
	--tl-radius-md: 20px;
	--tl-radius-lg: 30px;

	--tl-shadow-card: 0 10px 30px rgba(20,25,68,.08);
	--tl-shadow-card-hover: 0 22px 44px rgba(20,25,68,.16);
	--tl-shadow-glow: 0 8px 24px rgba(98,87,238,.35);
	--tl-content-width: 1220px;
	--tl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tl-ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: no-preference) {
	.tl-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--tl-ease), transform .7s var(--tl-ease); }
	.tl-reveal.is-visible { opacity: 1; transform: translateY(0); }
	.tl-hero__art-tile--float { animation: tl-float 7s ease-in-out infinite; }
	.tl-hero__art-tile--1.tl-hero__art-tile--float { animation-delay: 0s; }
	.tl-hero__art-tile--2.tl-hero__art-tile--float { animation-delay: .6s; }
	.tl-hero__art-tile--3.tl-hero__art-tile--float { animation-delay: 1.2s; }
}
@keyframes tl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tl-glow-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes tl-shine { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(220%) skewX(-12deg); } }

/* Reset-ish basics, scoped so we don't fight the active theme globally */
.tl-body { background: var(--tl-bg); color: var(--tl-navy); font-family: var(--tl-font); margin: 0; -webkit-font-smoothing: antialiased; }
.tl-body * { box-sizing: border-box; }
.tl-body img, .tl-body svg { max-width: 100%; display: block; }
.tl-body a { color: inherit; text-decoration: none; }
.tl-body h1, .tl-body h2, .tl-body h3 { color: var(--tl-navy); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
.tl-body p { line-height: 1.6; margin: 0 0 1em; }
.tl-body ul, .tl-body ol { margin: 0; padding: 0; }
.screen-reader-text { position: absolute !important; left: -9999px; }
.tl-skip-link:focus { position: fixed; top: 8px; left: 8px; background: var(--tl-navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

.tl-section__inner { max-width: var(--tl-content-width); margin: 0 auto; padding: 64px 24px; }
.tl-section__inner--narrow { max-width: 860px; }
.tl-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tl-section__heading h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 0; }
.tl-link { color: var(--tl-violet); font-weight: 700; white-space: nowrap; }
.tl-link-muted { color: var(--tl-muted); font-weight: 600; }
.tl-muted { color: var(--tl-muted); }
.tl-eyebrow { display: inline-block; color: var(--tl-violet); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.tl-empty-state { color: var(--tl-muted); background: var(--tl-surface); border: 1px dashed var(--tl-border); border-radius: var(--tl-radius-md); padding: 24px; text-align: center; }
.tl-back-link { margin-top: 32px; }
.tl-back-link a { font-weight: 700; color: var(--tl-violet); }

/* Buttons */
.tl-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 12px 22px; min-height: 44px; border: none; cursor: pointer; transition: transform .25s var(--tl-ease), box-shadow .25s var(--tl-ease), background .25s var(--tl-ease); }
.tl-btn:hover { transform: translateY(-2px); }
.tl-btn--primary { background: var(--tl-violet); color: #fff; box-shadow: 0 6px 16px rgba(98,87,238,.25); }
.tl-btn--primary:hover { background: var(--tl-violet-dark); box-shadow: var(--tl-shadow-glow); }
.tl-btn--primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-12deg); }
.tl-btn--primary:hover::before { animation: tl-shine .9s var(--tl-ease); }
.tl-btn--secondary { background: var(--tl-surface); color: var(--tl-navy); border: 1px solid var(--tl-border); }
.tl-btn--secondary:hover { border-color: var(--tl-violet); }
.tl-btn--light { background: #fff; color: var(--tl-violet-dark); }
.tl-btn--lg { padding: 14px 26px; font-size: 1rem; }
.tl-btn--sm { padding: 8px 16px; font-size: .85rem; min-height: 36px; }
.tl-btn--full { width: 100%; }
/* .tl-body a { color: inherit; } outranks a single .tl-btn--* class on <a>-tag
   buttons, so pin the intended colors back with the extra .tl-body specificity. */
.tl-body a.tl-btn--primary { color: #fff; }
.tl-body a.tl-btn--secondary { color: var(--tl-navy); }
.tl-body a.tl-btn--light { color: var(--tl-violet-dark); }
.tl-btn:focus-visible, .tl-icon-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--tl-violet); outline-offset: 2px; }

/* Badges */
.tl-badge { display: inline-block; background: #EDE9FE; color: var(--tl-violet-dark); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tl-badge--orange { background: #FFE9DD; color: #B4501F; }
.tl-badge--mint { background: #DFF6EC; color: #0E7A50; }
.tl-badge--pink { background: #FCE7F3; color: #A02A76; }
.tl-badge--sky { background: #E0F0FF; color: #1C6DB8; }

/* Header */
.tl-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tl-border); transition: box-shadow .25s var(--tl-ease); }
.tl-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,25,68,.08); }
.tl-header__inner { max-width: var(--tl-content-width); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.tl-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tl-logo__mark svg, .tl-logo__mark img { width: 34px; height: 34px; object-fit: contain; display: block; }
.tl-logo__word { font-weight: 800; font-size: 1.15rem; color: var(--tl-navy); line-height: 1; }
.tl-logo__word--footer { font-size: 1.3rem; color: #fff; }
.tl-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.tl-nav a { position: relative; font-weight: 600; color: var(--tl-navy); font-size: .95rem; padding: 4px 0; line-height: 1; }
.tl-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--tl-violet); border-radius: 2px; transition: right .25s var(--tl-ease); }
.tl-nav a:hover::after, .tl-nav a[aria-current]::after { right: 0; }
.tl-nav a:hover, .tl-nav a[aria-current] { color: var(--tl-violet); }
.tl-header__actions { display: flex; align-items: center; gap: 18px; }
.tl-icon-btn { background: none; border: none; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--tl-navy); cursor: pointer; }
.tl-icon-btn:hover { background: var(--tl-border); }
.tl-header__search { max-width: var(--tl-content-width); margin: 0 auto; padding: 0 24px 14px; }
.tl-header__search[hidden] { display: none; }
.tl-search-form--header { display: flex; gap: 8px; }
.tl-search-form--header input { flex: 1; border: 1px solid var(--tl-border); border-radius: 999px; padding: 10px 18px; font-size: .95rem; }
.tl-mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 18px; gap: 4px; }
.tl-mobile-nav[hidden] { display: none; }
.tl-mobile-nav a { padding: 12px 8px; font-weight: 700; border-bottom: 1px solid var(--tl-border); }
.tl-hide-desktop { display: none; }
.tl-hide-mobile { display: inline-flex; }

/* Hero */
.tl-hero { position: relative; background: linear-gradient(180deg, #F1EEFF 0%, var(--tl-bg) 65%); overflow: hidden; }
.tl-hero::before, .tl-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.tl-hero::before { width: 420px; height: 420px; background: radial-gradient(circle, rgba(98,87,238,.30), transparent 70%); top: -140px; right: -80px; animation: tl-glow-pulse 6s ease-in-out infinite; }
.tl-hero::after { width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,123,69,.22), transparent 70%); bottom: -120px; left: -60px; animation: tl-glow-pulse 8s ease-in-out infinite reverse; }
.tl-hero__inner { position: relative; z-index: 1; max-width: var(--tl-content-width); margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.tl-hero__content { padding-top: 12px; }
.tl-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: .4em; background: linear-gradient(100deg, var(--tl-navy) 35%, var(--tl-violet-dark) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-hero__subtitle { font-size: 1.15rem; color: var(--tl-muted); max-width: 520px; }
.tl-search-form--hero { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; box-shadow: var(--tl-shadow-card); padding: 8px 8px 8px 20px; max-width: 560px; margin-top: 8px; transition: box-shadow .25s var(--tl-ease); }
.tl-search-form--hero:focus-within { box-shadow: var(--tl-shadow-card-hover), 0 0 0 4px rgba(98,87,238,.15); }
.tl-search-form__icon { color: var(--tl-muted); flex-shrink: 0; }
.tl-search-form--hero input { flex: 1; border: none; font-size: 1rem; padding: 10px 0; min-width: 0; }
.tl-search-form--hero input:focus { outline: none; }
.tl-hero__suggestions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--tl-muted); }
.tl-hero__suggestions a { font-weight: 700; color: var(--tl-navy); background: #fff; border: 1px solid var(--tl-border); border-radius: 999px; padding: 5px 14px; transition: transform .2s var(--tl-ease), border-color .2s var(--tl-ease), color .2s var(--tl-ease); }
.tl-hero__suggestions a:hover { transform: translateY(-2px); border-color: var(--tl-violet); color: var(--tl-violet); }
.tl-hero__art { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tl-hero__art-tile { border-radius: var(--tl-radius-lg); overflow: hidden; box-shadow: var(--tl-shadow-card-hover); }
.tl-hero__art-tile--1 { grid-column: 1 / 3; }
.tl-hero__art-tile svg { width: 100%; height: auto; }

/* USPs */
.tl-usps__inner { max-width: var(--tl-content-width); margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tl-usps__item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); padding: 16px 18px; font-weight: 700; font-size: .92rem; }
.tl-usps__icon { font-size: 1.3rem; }

/* Category cards */
.tl-categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tl-category-card { background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--tl-ease), box-shadow .3s var(--tl-ease); }
.tl-category-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--tl-shadow-card-hover); }
.tl-category-card__icon { width: 64px; height: 64px; border-radius: var(--tl-radius-sm); overflow: hidden; transition: transform .3s var(--tl-ease); }
.tl-category-card:hover .tl-category-card__icon { transform: scale(1.08) rotate(-2deg); }
.tl-category-card__icon svg { width: 100%; height: 100%; }
.tl-category-card__title { font-weight: 800; font-size: 1.02rem; }
.tl-category-card__count { color: var(--tl-muted); font-size: .85rem; }

/* Product cards */
.tl-products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tl-products__grid--catalog { grid-template-columns: repeat(3, 1fr); }
.tl-product-card { background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--tl-ease), box-shadow .3s var(--tl-ease); }
.tl-product-card:hover { transform: translateY(-6px); box-shadow: var(--tl-shadow-card-hover); }
.tl-product-card__cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tl-product-card__cover svg,
.tl-product-card__cover .tl-cover-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--tl-ease); }
.tl-product-card:hover .tl-product-card__cover svg,
.tl-product-card:hover .tl-product-card__cover .tl-cover-photo { transform: scale(1.06); }
.tl-product-card__cover .tl-badge { position: absolute; top: 12px; left: 12px; }
.tl-product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tl-product-card__title { font-weight: 800; font-size: 1.05rem; }
.tl-product-card__excerpt { color: var(--tl-muted); font-size: .88rem; line-height: 1.5; }
.tl-product-card__meta { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--tl-navy); }
.tl-product-card__meta--secondary { color: var(--tl-muted); }
.tl-product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.tl-product-card__price { font-weight: 800; font-size: 1.1rem; color: var(--tl-navy); }

/* Why section */
.tl-why { background: #fff; }
.tl-why__title { text-align: center; font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 36px; }
.tl-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tl-why__card { background: var(--tl-bg); border-radius: var(--tl-radius-md); padding: 26px; text-align: left; transition: transform .3s var(--tl-ease), box-shadow .3s var(--tl-ease); }
.tl-why__card:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow-card); }
.tl-why__icon { font-size: 1.8rem; display: block; margin-bottom: 12px; transition: transform .3s var(--tl-ease); }
.tl-why__card:hover .tl-why__icon { transform: scale(1.15) rotate(-4deg); }
.tl-why__card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-why__card p { color: var(--tl-muted); font-size: .9rem; margin: 0; }

/* Business teaser */
.tl-business { position: relative; background: radial-gradient(circle at 20% 20%, #241E52 0%, var(--tl-navy) 60%); color: #fff; overflow: hidden; }
.tl-business::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(98,87,238,.35), transparent 70%); top: -120px; right: -60px; filter: blur(50px); animation: tl-glow-pulse 7s ease-in-out infinite; }
.tl-business__inner { position: relative; z-index: 1; max-width: var(--tl-content-width); margin: 0 auto; padding: 64px 24px; }
.tl-business__content { max-width: 640px; }
.tl-business .tl-eyebrow { color: #B7ADFF; }
.tl-business h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tl-business p { color: rgba(255,255,255,.82); }
.tl-business__list { display: flex; gap: 12px; list-style: none; margin: 18px 0 26px; flex-wrap: wrap; }
.tl-business__list li { background: rgba(255,255,255,.12); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .9rem; }
.tl-business__note { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 14px; }

/* CTA band */
.tl-cta-band { background: linear-gradient(120deg, var(--tl-violet) 0%, var(--tl-violet-dark) 100%); color: #fff; text-align: center; }
.tl-cta-band__inner { max-width: 720px; margin: 0 auto; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tl-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Footer */
.tl-footer { background: var(--tl-navy); color: rgba(255,255,255,.75); }
.tl-footer__inner { max-width: var(--tl-content-width); margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.tl-footer__brand p { color: rgba(255,255,255,.6); max-width: 240px; }
.tl-footer__col h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.tl-footer__col a { display: block; padding: 5px 0; color: rgba(255,255,255,.72); font-size: .92rem; }
.tl-footer__col a:hover { color: #fff; }
.tl-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; font-size: .8rem; }
.tl-footer__bottom p { margin: 0; }

/* Catalog page */
.tl-catalog__header { margin-bottom: 24px; }
.tl-catalog__filters { background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card); padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tl-catalog__search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; border: 1px solid var(--tl-border); border-radius: 999px; padding: 8px 16px; color: var(--tl-muted); }
.tl-catalog__search input { border: none; flex: 1; font-size: .95rem; }
.tl-catalog__search input:focus { outline: none; }
.tl-catalog__selects { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tl-catalog__selects select { border: 1px solid var(--tl-border); border-radius: 999px; padding: 9px 14px; font-size: .9rem; background: #fff; }
.tl-catalog__count { color: var(--tl-muted); margin-bottom: 18px; }
.tl-pagination { margin-top: 32px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tl-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--tl-border); font-weight: 700; padding: 0 8px; }
.tl-pagination .page-numbers.current { background: var(--tl-violet); color: #fff; border-color: var(--tl-violet); }

/* Category header */
.tl-category-header { display: flex; gap: 20px; align-items: center; margin-bottom: 32px; }
.tl-category-header__icon { width: 84px; height: 84px; border-radius: var(--tl-radius-md); overflow: hidden; flex-shrink: 0; }
.tl-category-header__icon svg { width: 100%; height: 100%; }

/* Breadcrumb */
.tl-breadcrumb { font-size: .85rem; color: var(--tl-muted); margin-bottom: 20px; display: flex; gap: 8px; }
.tl-breadcrumb a { font-weight: 600; color: var(--tl-muted); }
.tl-breadcrumb a:hover { color: var(--tl-violet); }

/* Product page */
.tl-product__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.tl-product__cover { border-radius: var(--tl-radius-lg); overflow: hidden; box-shadow: var(--tl-shadow-card); aspect-ratio: 4/3; }
.tl-product__cover svg,
.tl-product__cover .tl-cover-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-product__info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 12px; }
.tl-product__excerpt { color: var(--tl-muted); font-size: 1.05rem; }
.tl-product__meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 24px; font-size: .95rem; }
.tl-product__buybox { background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.tl-product__price { font-size: 1.6rem; font-weight: 800; }
.tl-product__price--lg { display: block; font-size: 1.9rem; margin-bottom: 14px; }
.tl-product__buy-note { width: 100%; font-size: .78rem; color: var(--tl-muted); margin: 0; }
.tl-product__body { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.tl-product__section { margin-bottom: 40px; }
.tl-checklist { list-style: none; display: grid; gap: 10px; }
.tl-checklist li { position: relative; padding-left: 30px; }
.tl-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--tl-success); font-weight: 800; }
.tl-module-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl-module-list__item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-sm); padding: 14px 16px; }
.tl-module-list__num { width: 28px; height: 28px; border-radius: 999px; background: #EDE9FE; color: var(--tl-violet-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.tl-module-list__title { flex: 1; font-weight: 600; }
.tl-module-list__duration { color: var(--tl-muted); font-size: .85rem; }
.tl-how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tl-how-it-works > div { background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); padding: 20px; }
.tl-how-it-works span { font-size: 1.4rem; }
.tl-product__sidebar-card { background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); padding: 24px; position: sticky; top: 100px; }
.tl-sidebar-facts { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.tl-sidebar-facts li { display: flex; justify-content: space-between; border-top: 1px solid var(--tl-border); padding-top: 10px; }
.tl-related { border-top: 1px solid var(--tl-border); padding-top: 40px; }
.tl-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--tl-navy); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--tl-shadow-card); font-size: .9rem; z-index: 100; }

/* Accordion */
.tl-accordion__item { border-bottom: 1px solid var(--tl-border); }
.tl-accordion__trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 16px 4px; font-weight: 700; font-size: 1rem; text-align: left; cursor: pointer; color: var(--tl-navy); }
.tl-accordion__icon { font-size: 1.3rem; color: var(--tl-violet); transition: transform .15s ease; }
.tl-accordion__trigger[aria-expanded="true"] .tl-accordion__icon { transform: rotate(45deg); }
.tl-accordion__panel { padding: 0 4px 16px; color: var(--tl-muted); }
.tl-accordion__panel[hidden] { display: none; }

/* Dashboard */
.tl-dashboard__header { margin-bottom: 32px; }
.tl-continue-card { background: #fff; border-radius: var(--tl-radius-lg); box-shadow: var(--tl-shadow-card); padding: 24px; display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.tl-continue-card__icon { width: 72px; height: 72px; border-radius: var(--tl-radius-md); overflow: hidden; flex-shrink: 0; }
.tl-continue-card__icon svg { width: 100%; height: 100%; }
.tl-continue-card__body { flex: 1; }
.tl-progress { background: var(--tl-border); border-radius: 999px; height: 10px; overflow: hidden; margin: 8px 0 6px; }
.tl-progress--sm { height: 8px; }
.tl-progress__bar { background: linear-gradient(90deg, var(--tl-violet), var(--tl-violet-dark)); height: 100%; border-radius: 999px; transition: width .3s ease; }
.tl-progress__label { font-size: .82rem; color: var(--tl-muted); font-weight: 700; }
.tl-dashboard__course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.tl-dashboard-course-card { background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tl-dashboard-course-card__icon { width: 52px; height: 52px; border-radius: var(--tl-radius-sm); overflow: hidden; margin-bottom: 6px; }
.tl-dashboard-course-card__icon svg { width: 100%; height: 100%; }
.tl-certificate-list { display: flex; gap: 12px; flex-wrap: wrap; }
.tl-certificate-card { background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-sm); padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* Course player */
.tl-player { display: grid; grid-template-columns: 300px 1fr; min-height: 70vh; }
.tl-player__sidebar { background: #fff; border-right: 1px solid var(--tl-border); padding: 28px 22px; }
.tl-player__back { display: inline-block; font-weight: 700; color: var(--tl-muted); margin-bottom: 16px; font-size: .85rem; }
.tl-player__course-head h2 { font-size: 1.1rem; margin-bottom: 14px; }
.tl-player__module-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.tl-player__module-list a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: var(--tl-radius-sm); font-weight: 600; font-size: .9rem; color: var(--tl-navy); }
.tl-player__module-list li.is-active a { background: #EDE9FE; color: var(--tl-violet-dark); }
.tl-player__module-check { width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--tl-border); flex-shrink: 0; }
.tl-player__module-check.is-complete { background: var(--tl-success); border-color: var(--tl-success); }
.tl-player__main { padding: 40px; max-width: 760px; }
.tl-player__lesson-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tl-player__media { margin: 24px 0; border-radius: var(--tl-radius-lg); background: linear-gradient(135deg, #EDE9FE, #E0F0FF); aspect-ratio: 16/8; display: flex; align-items: center; justify-content: center; }
.tl-player__media-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--tl-violet-dark); font-weight: 700; font-size: .9rem; }
.tl-player__content { color: var(--tl-navy); font-size: 1.02rem; margin-bottom: 32px; }
.tl-player__actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--tl-border); padding-top: 24px; }
.tl-player__nav { display: flex; gap: 10px; }

/* Static content pages */
.tl-static-page__top { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-bottom: 8px; }
.tl-static-page__top h1 { margin: 0; }
.tl-static-page__thumb { border-radius: var(--tl-radius-lg); overflow: hidden; box-shadow: var(--tl-shadow-card); aspect-ratio: 4/3; }
.tl-static-page__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-static-page__content { font-size: 1.05rem; line-height: 1.7; }
.tl-static-page__content > * + * { margin-top: 22px; }
.tl-static-page__content h2 { font-size: 1.4rem; margin-top: 36px; }
.tl-static-page__content h2 + * { margin-top: 12px; }
.tl-static-page__content ul, .tl-static-page__content ol { padding-left: 22px; }
.tl-static-page__content li + li { margin-top: 6px; }
.tl-static-page__cta { margin-top: 40px; background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card); padding: 28px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.tl-nav { display: none; }
	.tl-hide-desktop { display: inline-flex; }
	.tl-hide-mobile { display: none; }
	.tl-categories__grid, .tl-products__grid, .tl-why__grid, .tl-usps__inner { grid-template-columns: repeat(2, 1fr); }
	.tl-products__grid--catalog { grid-template-columns: repeat(2, 1fr); }
	.tl-hero__inner { grid-template-columns: 1fr; }
	.tl-hero__art { order: -1; }
	.tl-product__top, .tl-product__body { grid-template-columns: 1fr; }
	.tl-static-page__top { grid-template-columns: 1fr; }
	.tl-dashboard__course-grid { grid-template-columns: repeat(2, 1fr); }
	.tl-footer__inner { grid-template-columns: 1fr 1fr; }
	.tl-player { grid-template-columns: 1fr; }
	.tl-player__sidebar { border-right: none; border-bottom: 1px solid var(--tl-border); }
}

@media (max-width: 640px) {
	.tl-section__inner { padding: 40px 18px; }
	.tl-categories__grid, .tl-products__grid, .tl-why__grid, .tl-usps__inner, .tl-products__grid--catalog, .tl-dashboard__course-grid, .tl-how-it-works { grid-template-columns: 1fr; }
	.tl-footer__inner { grid-template-columns: 1fr; }
	.tl-header__inner { padding: 12px 18px; gap: 12px; }
	.tl-logo__word { font-size: 1rem; }
	.tl-search-form--hero { flex-wrap: wrap; padding: 10px; }
	.tl-search-form--hero .tl-btn { width: 100%; }
	.tl-catalog__filters { flex-direction: column; }
	.tl-catalog__selects { flex-direction: column; align-items: stretch; }
	.tl-catalog__selects select, .tl-catalog__selects .tl-btn { width: 100%; }
	.tl-product__buybox { flex-direction: column; align-items: stretch; text-align: center; }
	.tl-btn { min-height: 44px; }
	.tl-continue-card { flex-direction: column; text-align: center; }
	.tl-player__main { padding: 24px 18px; }
	body.tl-body { overflow-x: hidden; }
}

/* Header cart */
.tl-icon-btn { position: relative; }
.tl-header__cart-wrap { position: relative; }
.tl-cart-badge { position: absolute; top: 2px; right: 2px; background: var(--tl-orange); color: #fff; font-size: .65rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.tl-header__cart { position: absolute; top: calc(100% + 10px); right: 0; width: 320px; max-width: 90vw; background: #fff; border: 1px solid var(--tl-border); border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card-hover); padding: 16px; z-index: 60; }
.tl-header__cart[hidden] { display: none; }
.tl-cart-panel__items { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; }
.tl-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-cart-item__info { display: flex; flex-direction: column; gap: 2px; }
.tl-cart-item__title { font-weight: 700; font-size: .9rem; color: var(--tl-navy); }
.tl-cart-item__price { color: var(--tl-muted); font-size: .85rem; }
.tl-cart-item__remove { background: none; border: none; color: var(--tl-muted); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 4px; }
.tl-cart-item__remove:hover { color: var(--tl-orange); }
.tl-cart-panel__empty { color: var(--tl-muted); font-size: .9rem; text-align: center; padding: 12px 0; }
.tl-cart-panel__footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tl-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-cart-panel__total { font-size: .9rem; color: var(--tl-navy); }

/* Chatbot */
.tl-header__help-wrap { position: relative; }
.tl-header__help { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--tl-border); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--tl-navy); cursor: pointer; transition: border-color .2s var(--tl-ease), color .2s var(--tl-ease); }
.tl-header__help:hover { border-color: var(--tl-orange); color: var(--tl-orange); }
.tl-chatbot__avatar { display: block; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tl-chatbot__avatar svg { display: block; width: 100%; height: 100%; }
.tl-chatbot__avatar--header { width: 36px; height: 36px; }
.tl-chatbot__avatar--sm { width: 26px; height: 26px; }
.tl-chatbot__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 40px); height: 460px; max-height: 70vh; background: #fff; border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-card-hover); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(-12px) scale(.92); transform-origin: top right; pointer-events: none; transition: opacity .28s var(--tl-ease), transform .32s cubic-bezier(.34, 1.56, .64, 1); z-index: 90; }
.tl-chatbot__panel[hidden] { display: none; }
.tl-chatbot__panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.tl-chatbot__header { background: var(--tl-navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-chatbot__header-info { display: flex; align-items: center; gap: 10px; }
.tl-chatbot__header-text { display: flex; flex-direction: column; line-height: 1.25; }
.tl-chatbot__header-text strong { font-size: .95rem; font-weight: 800; }
.tl-chatbot__header-text small { font-size: .74rem; color: rgba(255,255,255,.65); font-weight: 500; }
.tl-chatbot__close { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tl-chatbot__messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tl-chatbot__row { display: flex; align-items: flex-end; gap: 8px; }
.tl-chatbot__row--user { justify-content: flex-end; }
.tl-chatbot__msg { max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.tl-chatbot__row--user .tl-chatbot__msg { max-width: 85%; }
.tl-chatbot__msg--bot { background: #F4F4F8; color: var(--tl-navy); border-bottom-left-radius: 4px; }
.tl-chatbot__msg--user { background: var(--tl-orange); color: #fff; border-bottom-right-radius: 4px; }
.tl-chatbot__msg--form { width: 78%; }
.tl-chatbot__typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.tl-chatbot__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--tl-muted); display: inline-block; animation: tl-chat-typing 1s ease-in-out infinite; }
.tl-chatbot__typing span:nth-child(2) { animation-delay: .15s; }
.tl-chatbot__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tl-chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.tl-chatbot__fallback-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tl-chatbot__fallback-form input, .tl-chatbot__fallback-form textarea { border: 1px solid var(--tl-border); border-radius: 8px; padding: 8px 10px; font-size: .85rem; font-family: inherit; }
.tl-chatbot__fallback-form textarea { min-height: 60px; resize: vertical; }
.tl-chatbot__fallback-status { font-size: .82rem; margin: 0; }
.tl-chatbot__fallback-status.is-success { color: #1A7F4B; }
.tl-chatbot__fallback-status.is-error { color: #C0392B; }
.tl-chatbot__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.tl-chatbot__quick-btn { border: 1px solid var(--tl-border); background: #fff; color: var(--tl-navy); border-radius: 999px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.tl-chatbot__quick-btn:hover { border-color: var(--tl-orange); color: var(--tl-orange); }
.tl-chatbot__form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--tl-border); }
.tl-chatbot__input { flex: 1; border: 1px solid var(--tl-border); border-radius: 999px; padding: 8px 14px; font-size: .88rem; }
.tl-chatbot__input:focus { outline: none; border-color: var(--tl-orange); }
@media (max-width: 480px) {
	.tl-chatbot__panel { width: calc(100vw - 24px); right: -50px; }
}
