/* =====================================================================
   Tutor HuyHoang — Design System & Site Chrome
   ===================================================================== */
:root{
  --th-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --th-font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --th-ink: #14121F;
  --th-ink-2: #2A2740;
  --th-text: #2E2B3F;
  --th-muted: #6B6880;
  --th-muted-2: #9B98AD;

  --th-primary-950: #120F33;
  --th-primary-900: #1E1A4E;
  --th-primary-800: #2E2A72;
  --th-primary-700: #3B33A0;
  --th-primary-600: #4F46C8;
  --th-primary-500: #6A62E0;
  --th-primary-200: #D9D6F6;
  --th-primary-100: #ECEAFB;
  --th-primary-50:  #F5F4FD;

  --th-gold: #E2B55A;
  --th-gold-600: #C99A3E;
  --th-gold-100: #FBF3E2;
  --th-gold-50: #FDF9EF;

  --th-bg: #FAF8F3;
  --th-surface: #FFFFFF;
  --th-surface-2: #F4F1EA;
  --th-border: #E9E5DC;
  --th-border-2: #D9D4C8;

  --th-success: #1E9E5A; --th-success-bg: #E8F7EE;
  --th-danger: #D64545;  --th-danger-bg: #FDECEC;
  --th-warning: #D98B0B; --th-warning-bg: #FFF6E5;
  --th-info: #2F7CE0;    --th-info-bg: #EAF2FD;

  --th-r-sm: 10px; --th-r: 16px; --th-r-lg: 22px; --th-r-xl: 30px; --th-r-pill: 999px;
  --th-shadow-sm: 0 1px 2px rgba(20,18,31,.05), 0 2px 8px rgba(20,18,31,.04);
  --th-shadow: 0 8px 24px -8px rgba(20,18,31,.14), 0 2px 6px rgba(20,18,31,.05);
  --th-shadow-lg: 0 30px 60px -24px rgba(20,18,31,.28), 0 10px 24px -14px rgba(20,18,31,.14);
  --th-shadow-glow: 0 10px 40px -10px rgba(79,70,200,.45);

  --th-ease: cubic-bezier(.22,1,.36,1);
  --th-header-h: 76px;
  --th-container: 1200px;

  /* Bridge Tutor's variables to the brand palette */
  --tutor-color-primary: var(--th-primary-700);
  --tutor-color-primary-hover: var(--th-primary-800);
  --tutor-color-primary-rgb: 59,51,160;
  --tutor-body-color: var(--th-text);
  --tutor-border-color: var(--th-border);
  --tutor-color-gray: var(--th-surface-2);
  --tutor-color-black: var(--th-ink);
  --tutor-color-secondary: var(--th-text);
  --tutor-color-muted: var(--th-muted);
  --tutor-color-subdued: var(--th-muted);
  --tutor-text-size: 16px;
}

/* ---------- Reset-ish ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--th-header-h) + 16px)}
body.th-theme{margin:0;font-family:var(--th-font);font-size:16px;line-height:1.65;color:var(--th-text);background:var(--th-bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
body.th-theme h1,body.th-theme h2,body.th-theme h3,body.th-theme h4,body.th-theme h5,body.th-theme h6{color:var(--th-ink);line-height:1.2;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
body.th-theme h1{font-size:clamp(2rem,4vw,3rem)}
body.th-theme h2{font-size:clamp(1.6rem,3vw,2.25rem)}
body.th-theme h3{font-size:1.25rem}
body.th-theme p{margin:0 0 1em}
body.th-theme a:where(:not(.tutor-btn):not([class*="tutor-btn-"]):not(.th-btn):not(.th-chip):not(.tutor-nav-link)){color:var(--th-primary-700);text-decoration:none;transition:color .2s}
body.th-theme a:where(:not(.tutor-btn):not([class*="tutor-btn-"]):not(.th-btn):not(.th-chip):not(.tutor-nav-link)):hover{color:var(--th-primary-600)}
body.th-theme a{text-decoration:none}
body.th-theme img{max-width:100%;height:auto;display:block}
body.th-theme button{font-family:inherit}
body.th-theme input,body.th-theme select,body.th-theme textarea{font-family:inherit;font-size:1rem}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);margin:-1px;padding:0;border:0;word-wrap:normal!important}
.th-skip-link:focus{clip:auto;clip-path:none;width:auto;height:auto;left:16px;top:16px;z-index:10000;background:var(--th-ink);color:#fff;padding:10px 16px;border-radius:8px}
::selection{background:var(--th-primary-200);color:var(--th-ink)}

/* ---------- Layout ---------- */
.th-container{width:100%;max-width:var(--th-container);margin:0 auto;padding-left:20px;padding-right:20px}
.th-narrow{max-width:860px}
.th-section{padding:80px 0}
@media (max-width:782px){.th-section{padding:56px 0}}
.th-main{min-height:50vh}
body.admin-bar .th-header{top:32px}
@media (max-width:782px){body.admin-bar .th-header{top:46px}}

/* ---------- Typography helpers ---------- */
.th-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--th-primary-700);background:var(--th-primary-100);padding:6px 12px;border-radius:var(--th-r-pill);margin-bottom:16px}
.th-eyebrow-gold{color:var(--th-gold-600);background:var(--th-gold-100)}
.th-section-head{max-width:720px;margin:0 auto 44px;text-align:center}
.th-section-head-row{max-width:none;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;text-align:left}
.th-section-head-row .th-section-sub{margin-bottom:0}
.th-section-title{font-family:var(--th-font-display);font-weight:600;font-size:clamp(1.8rem,3.2vw,2.6rem);letter-spacing:-.015em;margin-bottom:14px}
.th-section-sub{font-size:1.08rem;color:var(--th-muted);margin:0 0 20px}
.th-lead{font-size:1.1rem;color:var(--th-muted)}
.th-page-title{font-family:var(--th-font-display);font-weight:600;color:#fff;margin:8px 0 0;font-size:clamp(2rem,4vw,3.1rem)}
.th-page-lead{color:rgba(255,255,255,.75);max-width:700px;margin-top:12px}

/* ---------- Buttons ---------- */
.th-btn{--btn-bg:var(--th-primary-700);--btn-fg:#fff;--btn-bd:transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;min-height:46px;border-radius:var(--th-r-pill);font-weight:600;font-size:.95rem;line-height:1.2;border:1.5px solid var(--btn-bd);background:var(--btn-bg);color:var(--btn-fg);cursor:pointer;text-decoration:none;white-space:nowrap;transition:transform .25s var(--th-ease),box-shadow .25s,background .2s,color .2s,border-color .2s;position:relative}
.th-btn:hover{transform:translateY(-2px);color:var(--btn-fg)}
.th-btn:active{transform:translateY(0)}
.th-btn:focus-visible{outline:3px solid var(--th-primary-200);outline-offset:2px}
.th-btn .th-icon{flex:none}
.th-btn-primary{box-shadow:0 8px 22px -10px rgba(59,51,160,.6)}
.th-btn-primary:hover{--btn-bg:var(--th-primary-800);box-shadow:0 14px 28px -12px rgba(59,51,160,.7)}
.th-btn-gold{--btn-bg:var(--th-gold);--btn-fg:var(--th-ink);box-shadow:0 10px 26px -12px rgba(226,181,90,.8)}
.th-btn-gold:hover{--btn-bg:#EDC46E;box-shadow:0 16px 30px -12px rgba(226,181,90,.9)}
.th-btn-ghost{--btn-bg:transparent;--btn-fg:var(--th-ink);--btn-bd:transparent}
.th-btn-ghost:hover{--btn-bg:var(--th-surface-2)}
.th-btn-outline{--btn-bg:transparent;--btn-fg:var(--th-primary-700);--btn-bd:var(--th-primary-200)}
.th-btn-outline:hover{--btn-bg:var(--th-primary-50);--btn-bd:var(--th-primary-700)}
.th-btn-outline-light{--btn-bg:transparent;--btn-fg:#fff;--btn-bd:rgba(255,255,255,.35)}
.th-btn-outline-light:hover{--btn-bg:rgba(255,255,255,.1);--btn-bd:#fff}
.th-btn-light{--btn-bg:#fff;--btn-fg:var(--th-ink)}
.th-btn-glass{--btn-bg:rgba(255,255,255,.1);--btn-fg:#fff;--btn-bd:rgba(255,255,255,.22);backdrop-filter:blur(10px)}
.th-btn-glass:hover{--btn-bg:rgba(255,255,255,.18)}
.th-btn-danger{--btn-bg:var(--th-danger-bg);--btn-fg:var(--th-danger)}
.th-btn-sm{padding:9px 16px;min-height:38px;font-size:.875rem}
.th-btn-lg{padding:15px 28px;min-height:54px;font-size:1.02rem}
.th-btn-block{width:100%}
.th-btn[disabled],.th-btn.is-loading{opacity:.7;pointer-events:none}
.th-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:0;background:transparent;color:inherit;cursor:pointer;position:relative;transition:background .2s,color .2s,transform .2s}
.th-icon-btn:hover{background:rgba(20,18,31,.06);transform:translateY(-1px)}
.th-header-on-dark:not(.is-scrolled) .th-icon-btn:hover{background:rgba(255,255,255,.12)}
.th-actions{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- Icons ---------- */
.th-icon{display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.th-stars{display:inline-flex;gap:2px;color:var(--th-gold)}
.th-star .th-icon{fill:currentColor;stroke:currentColor}
.th-star-empty{color:#D9D4C8}
.th-star-half{position:relative;color:#D9D4C8}
.th-star-half .th-icon{fill:url(#thHalf)}

/* ---------- Badges / price ---------- */
.th-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--th-r-pill);font-size:.75rem;font-weight:700;letter-spacing:.02em;background:var(--th-surface-2);color:var(--th-ink)}
.th-badge-gold{background:var(--th-gold-100);color:var(--th-gold-600)}
.th-badge-primary{background:var(--th-primary-100);color:var(--th-primary-700)}
.th-badge-success{background:var(--th-success-bg);color:var(--th-success)}
.th-badge-danger{background:var(--th-danger-bg);color:var(--th-danger)}
.th-badge-dark{background:var(--th-ink);color:#fff}
.th-price{font-weight:800;color:var(--th-ink);font-size:1.15rem;letter-spacing:-.01em}
.th-price-free{color:var(--th-success)}
.th-price-old{color:var(--th-muted-2);font-size:.85rem;margin-left:8px;font-weight:500}
.th-price-off{display:inline-block;margin-left:8px;font-size:.72rem;font-weight:800;color:var(--th-danger);background:var(--th-danger-bg);padding:2px 7px;border-radius:6px;vertical-align:middle}

/* ---------- Cards ---------- */
.th-card{background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);box-shadow:var(--th-shadow-sm)}

/* ---------- Header ---------- */
.th-header{position:sticky;top:0;z-index:900;height:var(--th-header-h);background:rgba(250,248,243,.85);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent;transition:background .3s,border-color .3s,box-shadow .3s,color .3s;color:var(--th-ink)}
.th-header.is-scrolled{border-color:var(--th-border);box-shadow:0 6px 24px -14px rgba(20,18,31,.25)}
.th-header-on-dark{position:fixed;left:0;right:0;background:transparent;color:#fff}
.th-header-on-dark.is-scrolled{background:rgba(20,18,31,.85);color:#fff;border-color:rgba(255,255,255,.08)}
.th-header-inner{display:flex;align-items:center;gap:20px;height:100%}
.th-logo{display:inline-flex;align-items:center;gap:12px;color:inherit;font-weight:800;letter-spacing:-.01em}
.th-logo:hover{color:inherit}
.th-logo-mark svg{display:block;filter:drop-shadow(0 6px 14px rgba(79,70,200,.35))}
.th-logo-text{display:flex;flex-direction:column;line-height:1.1}
.th-logo-name{font-size:1.06rem}
.th-logo-tag{font-size:.7rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;opacity:.7}
.th-logo-img{max-height:44px;width:auto}
.th-nav{margin-left:auto;margin-right:auto}
.th-menu{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.th-menu>li{position:relative}
.th-menu a{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:var(--th-r-pill);font-weight:600;font-size:.95rem;color:inherit;opacity:.85;transition:background .2s,opacity .2s}
.th-menu a:hover,.th-menu .current-menu-item>a,.th-menu .current_page_item>a{opacity:1;background:rgba(20,18,31,.06);color:inherit}
.th-header-on-dark:not(.is-scrolled) .th-menu a:hover,.th-header-on-dark:not(.is-scrolled) .th-menu .current-menu-item>a{background:rgba(255,255,255,.12)}
.th-header-on-dark.is-scrolled .th-menu a:hover,.th-header-on-dark.is-scrolled .th-menu .current-menu-item>a{background:rgba(255,255,255,.1)}
.th-menu .sub-menu{position:absolute;top:100%;left:0;min-width:220px;background:var(--th-surface);color:var(--th-ink);border:1px solid var(--th-border);border-radius:var(--th-r);box-shadow:var(--th-shadow);padding:8px;list-style:none;margin:8px 0 0;opacity:0;visibility:hidden;transform:translateY(8px);transition:all .2s var(--th-ease)}
.th-menu li:hover>.sub-menu,.th-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.th-menu .sub-menu a{display:flex;border-radius:10px;padding:9px 12px;font-size:.9rem;opacity:1}
.th-menu .sub-menu a:hover{background:var(--th-surface-2)}
.th-header-actions{display:flex;align-items:center;gap:6px}
.th-cart-badge{position:absolute;top:4px;right:2px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--th-gold);color:var(--th-ink);font-size:.7rem;font-weight:800;line-height:19px;text-align:center;box-shadow:0 0 0 2px var(--th-bg)}
.th-header-on-dark:not(.is-scrolled) .th-cart-badge{box-shadow:0 0 0 2px var(--th-ink)}
.th-user{position:relative;margin-left:6px}
.th-user-btn{display:inline-flex;align-items:center;gap:10px;padding:5px 10px 5px 5px;border-radius:var(--th-r-pill);border:1px solid rgba(20,18,31,.1);background:rgba(255,255,255,.5);color:inherit;cursor:pointer;transition:all .2s}
.th-header-on-dark:not(.is-scrolled) .th-user-btn{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.th-user-btn:hover{box-shadow:var(--th-shadow-sm)}
.th-user-avatar,.th-user-avatar img,.th-user-avatar .tutor-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;display:block}
.th-user-avatar .tutor-avatar{font-size:.8rem}
.th-user-name{font-weight:600;font-size:.9rem;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-user-caret{transition:transform .2s}
.th-user.is-open .th-user-caret{transform:rotate(180deg)}
.th-dropdown{position:absolute;right:0;top:calc(100% + 10px);min-width:240px;background:var(--th-surface);color:var(--th-ink);border:1px solid var(--th-border);border-radius:var(--th-r);box-shadow:var(--th-shadow-lg);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);transition:all .2s var(--th-ease);z-index:50}
.th-user.is-open .th-dropdown{opacity:1;visibility:visible;transform:none}
.th-dropdown a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--th-ink);font-weight:500;font-size:.92rem}
.th-dropdown a:hover{background:var(--th-surface-2);color:var(--th-primary-700)}
.th-dropdown a .th-icon{color:var(--th-muted)}
.th-dropdown-sep{height:1px;background:var(--th-border);margin:6px 4px}
.th-dropdown-danger{color:var(--th-danger)!important}
.th-dropdown-danger .th-icon{color:inherit!important}
.th-burger{display:none}
.th-mobile-nav{position:fixed;inset:0;z-index:1000;background:rgba(20,18,31,.5);backdrop-filter:blur(4px)}
.th-mobile-nav[hidden]{display:none}
.th-mobile-nav-inner{width:min(360px,88vw);height:100%;background:var(--th-surface);color:var(--th-ink);padding:18px 20px 32px;overflow-y:auto;display:flex;flex-direction:column;gap:18px;transform:translateX(-100%);animation:thSlideIn .35s var(--th-ease) forwards;box-shadow:var(--th-shadow-lg)}
@keyframes thSlideIn{to{transform:none}}
.th-mobile-nav-head{display:flex;align-items:center;justify-content:space-between}
.th-mobile-search{display:flex;align-items:center;gap:10px;background:var(--th-surface-2);border-radius:var(--th-r-sm);padding:0 14px;color:var(--th-muted)}
.th-mobile-search input{border:0;background:transparent;padding:12px 0;width:100%;outline:0;color:var(--th-ink)}
.th-mobile-menu{list-style:none;margin:0;padding:0}
.th-mobile-menu a{display:block;padding:12px 10px;font-weight:600;font-size:1.05rem;color:var(--th-ink);border-radius:10px}
.th-mobile-menu a:hover{background:var(--th-surface-2)}
.th-mobile-menu .sub-menu{list-style:none;margin:0;padding:0 0 0 16px}
.th-mobile-menu .sub-menu a{font-weight:500;font-size:.95rem;color:var(--th-muted)}
.th-mobile-nav-cta{margin-top:auto;display:flex;flex-direction:column;gap:10px}
@media (max-width:1024px){
  .th-nav{display:none}
  .th-burger{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:50%;margin-left:-8px}
  .th-user-name,.th-user-caret{display:none}
  .th-user-btn{padding:3px}
  .th-login-link{display:none}
  .th-logo-tag{display:none}
  .th-header-actions{margin-left:auto}
}
@media (max-width:600px){
  :root{--th-header-h:66px}
  .th-register-link{display:none}
  .th-logo-name{font-size:.95rem}
}

/* ---------- Dark page hero (generic) ---------- */
.th-page-hero{position:relative;background:radial-gradient(1200px 500px at 80% -20%,rgba(79,70,200,.55),transparent 60%),radial-gradient(800px 400px at 10% 110%,rgba(226,181,90,.25),transparent 60%),linear-gradient(160deg,#14121F,#1E1A4E 70%,#2E2A72);color:#fff;padding:calc(var(--th-header-h) + 56px) 0 64px;overflow:hidden}
.th-page-hero::after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent)}
.th-page-hero .th-breadcrumb{margin-bottom:14px}
.th-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px;list-style:none;margin:0;padding:0;font-size:.85rem}
.th-breadcrumb li{display:inline-flex;align-items:center;gap:4px;color:rgba(255,255,255,.6)}
.th-breadcrumb a{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.8)}
.th-breadcrumb a:hover{color:#fff}
.th-breadcrumb [aria-current]{color:#fff;font-weight:600}
.th-breadcrumb .th-icon{opacity:.7}
.th-page-hero .th-search-form-lg{margin-top:24px;max-width:600px}

/* ---------- Forms ---------- */
.th-search-form{display:flex;align-items:center;gap:10px;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-pill);padding:6px 6px 6px 18px;color:var(--th-muted)}
.th-search-form input{flex:1;border:0;background:transparent;outline:0;min-width:0;color:var(--th-ink);padding:8px 0}
.th-field{display:flex;flex-direction:column;gap:6px}
.th-field label{font-weight:600;font-size:.88rem;color:var(--th-ink)}
.th-field label .req{color:var(--th-danger)}
.th-input,.th-select,.th-textarea,
body.th-theme .th-entry input[type=text],body.th-theme .th-entry input[type=email],body.th-theme .th-entry input[type=password],body.th-theme .th-entry input[type=tel],body.th-theme .th-entry input[type=number],body.th-theme .th-entry input[type=url],body.th-theme .th-entry input[type=search],body.th-theme .th-entry textarea,body.th-theme .th-entry select{width:100%;padding:12px 14px;border:1.5px solid var(--th-border-2);border-radius:var(--th-r-sm);background:var(--th-surface);color:var(--th-ink);font-size:.97rem;transition:border-color .2s,box-shadow .2s;outline:0;appearance:none}
.th-input:focus,.th-select:focus,.th-textarea:focus,body.th-theme .th-entry input:focus,body.th-theme .th-entry textarea:focus,body.th-theme .th-entry select:focus{border-color:var(--th-primary-600);box-shadow:0 0 0 4px var(--th-primary-100)}
.th-select,body.th-theme .th-entry select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}

/* ---------- Reveal animation ---------- */
.th-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--th-ease) var(--delay,0s),transform .7s var(--th-ease) var(--delay,0s)}
.th-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.th-reveal{opacity:1;transform:none;transition:none}}

/* =====================================================================
   HOME — HERO
   ===================================================================== */
.th-hero{position:relative;color:#fff;background:linear-gradient(160deg,#0F0D1F 0%,#14121F 30%,#1E1A4E 70%,#2E2A72 100%);padding:calc(var(--th-header-h) + 64px) 0 120px;overflow:hidden;isolation:isolate}
.th-hero-bg{position:absolute;inset:0;z-index:-1;pointer-events:none}
.th-orb{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:thOrb 18s ease-in-out infinite alternate}
.th-orb-1{width:520px;height:520px;background:#4F46C8;top:-160px;right:-80px}
.th-orb-2{width:380px;height:380px;background:#E2B55A;bottom:-120px;left:-120px;opacity:.28;animation-delay:-6s}
.th-orb-3{width:260px;height:260px;background:#8B5CF6;top:40%;left:45%;opacity:.25;animation-delay:-12s}
@keyframes thOrb{to{transform:translate(40px,30px) scale(1.08)}}
.th-grid-lines{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%)}
.th-hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.th-hero-title{font-family:var(--th-font-display);font-weight:600;font-size:clamp(2.4rem,5vw,4.1rem);line-height:1.08;letter-spacing:-.02em;color:#fff;margin:0 0 20px}
.th-hero-title em{font-style:italic;color:var(--th-gold)}
.th-hero-sub{font-size:1.15rem;color:rgba(255,255,255,.75);max-width:560px;margin-bottom:32px}
.th-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:40px}
.th-hero-stats{display:flex;flex-wrap:wrap;gap:0;list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.12)}
.th-hero-stats li{display:flex;flex-direction:column;padding:20px 28px 0 0;margin-right:28px;border-right:1px solid rgba(255,255,255,.12)}
.th-hero-stats li:last-child{border-right:0;margin-right:0}
.th-hero-stats strong{font-size:1.9rem;font-weight:800;letter-spacing:-.02em;line-height:1;color:#fff}
.th-hero-stats strong small{font-size:1rem;color:var(--th-gold);margin-left:2px}
.th-hero-stats span{font-size:.82rem;color:rgba(255,255,255,.6);margin-top:6px;letter-spacing:.04em}
.th-hero-visual{position:relative;min-height:440px;display:flex;align-items:center;justify-content:center}
.th-hero-wave{position:absolute;left:0;right:0;bottom:-1px;color:var(--th-bg);line-height:0}
.th-hero-wave svg{width:100%;height:60px;display:block}

/* Piano art */
.th-piano{position:relative;width:min(100%,520px);perspective:900px}
.th-piano-lid{height:34px;background:linear-gradient(180deg,#2a2740,#14121F);border-radius:18px 18px 4px 4px;box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 20px 40px -20px rgba(0,0,0,.8);transform:rotateX(55deg);transform-origin:bottom;margin-bottom:-6px}
.th-piano-keys{display:flex;gap:3px;background:#1b1830;padding:10px 10px 14px;border-radius:6px 6px 18px 18px;box-shadow:var(--th-shadow-lg),inset 0 -6px 0 rgba(0,0,0,.4)}
.th-key{position:relative;flex:1;height:170px;background:linear-gradient(180deg,#fff 0%,#f3f1ea 85%,#d9d4c8 100%);border-radius:0 0 7px 7px;box-shadow:inset 0 -5px 0 rgba(0,0,0,.08);transform-origin:top;animation:thKey 6s ease-in-out infinite;animation-delay:calc(var(--d) * 4)}
@keyframes thKey{0%,92%,100%{transform:none;background:linear-gradient(180deg,#fff 0%,#f3f1ea 85%,#d9d4c8 100%)}95%{transform:rotateX(6deg);background:linear-gradient(180deg,#fff 0%,var(--th-gold-100) 85%,var(--th-gold) 100%)}}
.th-key-black{position:absolute;top:0;right:-10px;width:60%;height:62%;background:linear-gradient(180deg,#2a2740,#0b0a14);border-radius:0 0 5px 5px;z-index:2;box-shadow:0 8px 14px -6px rgba(0,0,0,.8)}
.th-float-card{position:absolute;display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.96);color:var(--th-ink);padding:12px 16px;border-radius:14px;box-shadow:var(--th-shadow-lg);animation:thFloat 6s ease-in-out infinite;backdrop-filter:blur(8px)}
.th-float-card strong{display:block;font-size:.9rem;font-weight:700}
.th-float-card small{color:var(--th-muted);font-size:.75rem}
.th-float-card-1{top:4%;left:-4%}
.th-float-card-2{right:-6%;top:30%;animation-delay:-2s}
.th-float-card-3{left:6%;bottom:-6%;animation-delay:-4s}
@keyframes thFloat{50%{transform:translateY(-10px)}}
.th-float-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;flex:none}
.th-float-icon-green{background:var(--th-success-bg);color:var(--th-success)}
.th-float-icon-gold{background:var(--th-gold-100);color:var(--th-gold-600)}
.th-float-avatars{display:flex}
.th-float-avatar{width:30px;height:30px;border-radius:50%;border:2px solid #fff;margin-left:-8px;background:linear-gradient(135deg,#4F46C8,#8B5CF6)}
.th-float-avatar:first-child{margin-left:0}
.th-float-avatar-2{background:linear-gradient(135deg,#E2B55A,#F6D9A0)}
.th-float-avatar-3{background:linear-gradient(135deg,#1E9E8A,#5EEAD4)}
@media (max-width:1024px){
  .th-hero{padding-bottom:100px}
  .th-hero-inner{grid-template-columns:1fr;gap:40px}
  .th-hero-visual{min-height:0;margin-top:10px}
  .th-float-card-1{left:0}.th-float-card-2{right:0}.th-float-card-3{bottom:-12%}
}
@media (max-width:600px){
  .th-hero-stats li{padding-right:16px;margin-right:16px}
  .th-hero-stats strong{font-size:1.5rem}
  .th-float-card{padding:10px 12px}
  .th-float-card-3{display:none}
  .th-key{height:120px}
}

/* ---------- Trust strip ---------- */
.th-trust{margin-top:-40px;position:relative;z-index:2}
.th-trust-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:22px;box-shadow:var(--th-shadow)}
.th-trust-item{display:flex;gap:12px;align-items:center;padding:6px 10px}
.th-trust-item>.th-icon{color:var(--th-primary-700);background:var(--th-primary-100);width:46px;height:46px;padding:11px;border-radius:12px}
.th-trust-item strong{display:block;font-size:.95rem}
.th-trust-item span{font-size:.82rem;color:var(--th-muted)}
@media (max-width:900px){.th-trust-inner{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.th-trust-inner{grid-template-columns:1fr;padding:14px}}

/* ---------- Lộ trình ---------- */
.th-path{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:step}
.th-path-step{position:relative;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:28px 24px 24px;transition:transform .3s var(--th-ease),box-shadow .3s,border-color .3s;overflow:hidden}
.th-path-step::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--th-primary-600),var(--th-gold));opacity:0;transition:opacity .3s}
.th-path-step:hover{transform:translateY(-6px);box-shadow:var(--th-shadow-lg);border-color:transparent}
.th-path-step:hover::before{opacity:1}
.th-path-num{position:absolute;right:20px;top:14px;font-family:var(--th-font-display);font-size:3rem;font-weight:700;color:var(--th-surface-2);line-height:1}
.th-path-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--th-primary-700),var(--th-primary-500));color:#fff;margin-bottom:18px;box-shadow:var(--th-shadow-glow)}
.th-path-step h3{font-size:1.2rem;margin-bottom:8px}
.th-path-step p{color:var(--th-muted);font-size:.95rem;margin-bottom:16px}
.th-path-step a{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.9rem}
.th-path-step a .th-icon{transition:transform .2s}
.th-path-step a:hover .th-icon{transform:translateX(4px)}
@media (max-width:1000px){.th-path{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.th-path{grid-template-columns:1fr}}

/* ---------- Features ---------- */
.th-features-section{background:var(--th-surface);border-top:1px solid var(--th-border);border-bottom:1px solid var(--th-border)}
.th-features-layout{display:grid;grid-template-columns:.9fr 1.4fr;gap:56px;align-items:start}
.th-features-intro{position:sticky;top:calc(var(--th-header-h) + 24px)}
.th-features{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.th-feature{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:24px;transition:transform .3s var(--th-ease),box-shadow .3s,background .3s}
.th-feature:hover{transform:translateY(-4px);box-shadow:var(--th-shadow);background:#fff}
.th-feature-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:var(--th-gold-100);color:var(--th-gold-600);margin-bottom:16px}
.th-feature:nth-child(even) .th-feature-icon{background:var(--th-primary-100);color:var(--th-primary-700)}
.th-feature h3{font-size:1.05rem;margin-bottom:6px}
.th-feature p{color:var(--th-muted);font-size:.93rem;margin:0}
@media (max-width:1000px){.th-features-layout{grid-template-columns:1fr;gap:32px}.th-features-intro{position:static}}
@media (max-width:560px){.th-features{grid-template-columns:1fr}}

/* ---------- Instructor ---------- */
.th-instructor{display:grid;grid-template-columns:380px 1fr;gap:56px;align-items:center;background:linear-gradient(135deg,#14121F,#1E1A4E 60%,#2E2A72);border-radius:var(--th-r-xl);padding:48px;color:#fff;position:relative;overflow:hidden}
.th-instructor::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(226,181,90,.35),transparent 70%);right:-120px;top:-160px}
.th-instructor-photo{position:relative}
.th-instructor-photo img,.th-instructor-photo .tutor-avatar{width:100%;aspect-ratio:1;height:auto;object-fit:cover;border-radius:var(--th-r-lg);box-shadow:var(--th-shadow-lg);background:var(--th-primary-800);display:flex;align-items:center;justify-content:center;font-size:5rem;font-weight:800;color:#fff}
.th-instructor-photo .tutor-avatar img{display:block}
.th-instructor-badge{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--th-ink);font-weight:700;font-size:.8rem;padding:8px 12px;border-radius:var(--th-r-pill);box-shadow:var(--th-shadow)}
.th-instructor-badge .th-icon{color:var(--th-primary-700)}
.th-instructor-body .th-section-title{color:#fff}
.th-instructor-body .th-section-sub{color:rgba(255,255,255,.75)}
.th-instructor-body .th-eyebrow{background:rgba(255,255,255,.1);color:var(--th-gold)}
.th-instructor-body .th-btn-outline{--btn-fg:#fff;--btn-bd:rgba(255,255,255,.35)}
.th-instructor-body .th-btn-outline:hover{--btn-bg:rgba(255,255,255,.1);--btn-bd:#fff}
.th-instructor-stats{display:flex;gap:32px;list-style:none;padding:0;margin:0 0 28px}
.th-instructor-stats strong{display:block;font-size:1.8rem;font-weight:800;color:var(--th-gold)}
.th-instructor-stats span{font-size:.82rem;color:rgba(255,255,255,.65)}
@media (max-width:900px){.th-instructor{grid-template-columns:1fr;padding:28px;gap:28px}.th-instructor-photo{max-width:320px}}

/* ---------- Testimonials ---------- */
.th-testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.th-testimonial{margin:0;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:28px;display:flex;flex-direction:column;gap:16px;position:relative;transition:transform .3s var(--th-ease),box-shadow .3s}
.th-testimonial:hover{transform:translateY(-4px);box-shadow:var(--th-shadow)}
.th-testimonial::before{content:"“";position:absolute;right:22px;top:6px;font-family:var(--th-font-display);font-size:5rem;color:var(--th-gold-100);line-height:1}
.th-testimonial blockquote{margin:0;font-size:1rem;color:var(--th-text);line-height:1.7}
.th-testimonial figcaption{display:flex;align-items:center;gap:12px;margin-top:auto}
.th-testimonial figcaption strong{display:block;font-size:.95rem}
.th-testimonial figcaption small{color:var(--th-muted)}
.th-testimonial-avatar{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#fff;font-weight:800;background:linear-gradient(135deg,#4F46C8,#8B5CF6)}
.th-testimonial-avatar-2{background:linear-gradient(135deg,#C99A3E,#E2B55A)}
.th-testimonial-avatar-3{background:linear-gradient(135deg,#1E9E8A,#5EEAD4)}
@media (max-width:900px){.th-testimonials{grid-template-columns:1fr}}

/* ---------- FAQ ---------- */
.th-faq-section{background:var(--th-surface);border-top:1px solid var(--th-border)}
.th-faq-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:start}
.th-faq-intro .th-section-head{text-align:left}
.th-faq{display:flex;flex-direction:column;gap:12px}
.th-faq-item{background:var(--th-bg);border:1px solid var(--th-border);border-radius:var(--th-r);overflow:hidden;transition:box-shadow .3s,border-color .3s}
.th-faq-item[open]{box-shadow:var(--th-shadow-sm);border-color:var(--th-primary-200)}
.th-faq-item summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:18px 20px;font-weight:700;font-size:1.02rem;color:var(--th-ink)}
.th-faq-item summary::-webkit-details-marker{display:none}
.th-faq-plus{flex:none;color:var(--th-primary-700);transition:transform .3s var(--th-ease)}
.th-faq-item[open] .th-faq-plus{transform:rotate(45deg)}
.th-faq-body{padding:0 20px 20px;color:var(--th-muted)}
.th-faq-body p{margin:0}
@media (max-width:900px){.th-faq-layout{grid-template-columns:1fr;gap:28px}}

/* =====================================================================
   FOOTER
   ===================================================================== */
.th-footer{position:relative;background:#0F0D1F;color:rgba(255,255,255,.72);padding:0 0 32px;margin-top:80px;overflow:hidden}
.th-footer a{color:rgba(255,255,255,.72)}
.th-footer a:hover{color:#fff}
.th-footer-glow{position:absolute;width:800px;height:400px;left:50%;top:-200px;transform:translateX(-50%);background:radial-gradient(ellipse,rgba(79,70,200,.45),transparent 70%);pointer-events:none}
.th-footer-cta{position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px;background:linear-gradient(135deg,#2E2A72,#4F46C8);border-radius:var(--th-r-xl);padding:44px 48px;margin-top:-60px;color:#fff;box-shadow:var(--th-shadow-lg);overflow:hidden}
.th-footer-cta::after{content:"";position:absolute;right:-60px;bottom:-120px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(226,181,90,.45),transparent 70%)}
.th-footer-cta .th-eyebrow{background:rgba(255,255,255,.12);color:var(--th-gold)}
.th-footer-cta-title{color:#fff;font-family:var(--th-font-display);font-weight:600;font-size:clamp(1.5rem,2.6vw,2.1rem);margin-bottom:8px}
.th-footer-cta p{margin:0;color:rgba(255,255,255,.8)}
.th-footer-cta-actions{display:flex;gap:12px;flex-wrap:wrap;position:relative;flex:none}
.th-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:40px;padding:64px 0 40px}
.th-footer-brand p{margin:16px 0 20px;max-width:360px}
.th-footer-brand .th-logo{color:#fff}
.th-footer-col h3{color:#fff;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}
.th-footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.th-footer-col li{display:flex;align-items:center;gap:8px}
.th-footer-col .th-icon{color:var(--th-gold)}
.th-socials{display:flex;gap:10px}
.th-socials a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);transition:background .2s,transform .2s}
.th-socials a:hover{background:var(--th-primary-600);transform:translateY(-3px)}
.th-footer-pay{margin-top:24px}
.th-footer-pay>span{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;color:rgba(255,255,255,.5)}
.th-pay-badges{display:flex;gap:8px;flex-wrap:wrap}
.th-pay-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.08);font-size:.8rem;font-weight:600;color:#fff}
.th-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);padding-top:24px;font-size:.85rem}
.th-footer-bottom p{margin:0}
.th-footer-menu{display:flex;gap:20px;list-style:none;margin:0;padding:0}
@media (max-width:1000px){.th-footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:900px){.th-footer-cta{flex-direction:column;align-items:flex-start;padding:32px}}
@media (max-width:560px){.th-footer-grid{grid-template-columns:1fr;gap:28px}}
.th-to-top{position:fixed;right:22px;bottom:22px;width:46px;height:46px;border-radius:50%;border:0;background:var(--th-ink);color:#fff;box-shadow:var(--th-shadow-lg);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .3s var(--th-ease);z-index:800;display:inline-flex;align-items:center;justify-content:center}
.th-to-top.is-visible{opacity:1;visibility:visible;transform:none}
.th-to-top:hover{background:var(--th-primary-700)}
.th-to-top .th-icon{transform:rotate(-45deg)}

/* =====================================================================
   PAGES / BLOG / MISC
   ===================================================================== */
.th-entry-prose{font-size:1.05rem;line-height:1.8}
.th-entry-prose>*:first-child{margin-top:0}
.th-entry-prose h2{font-family:var(--th-font-display);font-weight:600;margin-top:2em}
.th-entry-prose h3{margin-top:1.6em}
.th-entry-prose img{border-radius:var(--th-r)}
.th-entry-prose blockquote{margin:1.5em 0;padding:16px 24px;border-left:4px solid var(--th-gold);background:var(--th-gold-50);border-radius:0 var(--th-r) var(--th-r) 0;font-style:italic}
.th-entry-prose a{text-decoration:underline;text-decoration-color:var(--th-primary-200);text-underline-offset:3px}
.th-entry-prose ul,.th-entry-prose ol{padding-left:1.4em}
.th-entry-prose code{background:var(--th-surface-2);padding:2px 6px;border-radius:6px;font-size:.9em}
.th-entry-prose pre{background:var(--th-ink);color:#fff;padding:20px;border-radius:var(--th-r);overflow:auto}
.th-entry-prose table{width:100%;border-collapse:collapse}
.th-entry-prose th,.th-entry-prose td{border:1px solid var(--th-border);padding:10px 14px;text-align:left}
.th-page-content .th-entry-tutor{background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:32px}
.th-blog-layout{display:grid;grid-template-columns:1fr 320px;gap:48px}
@media (max-width:1000px){.th-blog-layout{grid-template-columns:1fr}}
.th-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.th-post-card{background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);overflow:hidden;transition:transform .3s var(--th-ease),box-shadow .3s;display:flex;flex-direction:column}
.th-post-card:hover{transform:translateY(-4px);box-shadow:var(--th-shadow)}
.th-post-card-thumb img{aspect-ratio:16/10;object-fit:cover;width:100%}
.th-post-card-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.th-post-card-cats a,.th-post-cats a{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--th-primary-700)}
.th-post-cats a{color:var(--th-gold)}
.th-post-card-title{font-size:1.15rem;margin:0}
.th-post-card-title a{color:var(--th-ink)}
.th-post-card-title a:hover{color:var(--th-primary-700)}
.th-post-card p{color:var(--th-muted);font-size:.95rem;margin:0}
.th-post-card-meta,.th-post-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:.82rem;color:var(--th-muted);margin-top:auto}
.th-post-card-meta span,.th-post-meta span{display:inline-flex;align-items:center;gap:6px}
.th-post-meta{color:rgba(255,255,255,.7);margin-top:16px;font-size:.9rem}
.th-post-author img{border-radius:50%;width:28px;height:28px}
.th-post-thumb img{width:100%;border-radius:var(--th-r-lg);aspect-ratio:16/8;object-fit:cover;margin-bottom:32px;margin-top:-80px;position:relative;box-shadow:var(--th-shadow-lg)}
.th-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:32px}
.th-tags a{padding:5px 12px;border-radius:var(--th-r-pill);background:var(--th-surface-2);font-size:.82rem;font-weight:600;color:var(--th-ink)}
.th-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px}
.th-post-nav a{display:flex;align-items:center;gap:10px;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r);padding:16px 18px;font-weight:600;color:var(--th-ink)}
.th-post-nav-next a{justify-content:flex-end;text-align:right}
.th-widget{background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-lg);padding:24px;margin-bottom:20px}
.th-widget-title{font-size:1rem;letter-spacing:.06em;text-transform:uppercase;margin-bottom:14px}
.th-widget ul{list-style:none;margin:0;padding:0}
.th-widget li{padding:8px 0;border-bottom:1px dashed var(--th-border)}
.th-pagination{margin-top:40px;display:flex;justify-content:center}
.th-pagination .nav-links,.tutor-pagination .page-numbers{display:flex;gap:8px;align-items:center}
.th-pagination .page-numbers,.tutor-pagination .page-numbers a,.tutor-pagination .page-numbers span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;background:var(--th-surface);border:1px solid var(--th-border);color:var(--th-ink);font-weight:600}
.th-pagination .page-numbers.current,.tutor-pagination .page-numbers .current{background:var(--th-primary-700);color:#fff;border-color:var(--th-primary-700)}
.th-pagination .page-numbers:hover{border-color:var(--th-primary-700)}
.th-empty{text-align:center;padding:64px 24px;background:var(--th-surface);border:1px dashed var(--th-border-2);border-radius:var(--th-r-lg)}
.th-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:var(--th-primary-100);color:var(--th-primary-700);margin-bottom:18px}
.th-empty h3{margin-bottom:6px}
.th-empty p{color:var(--th-muted);margin-bottom:20px}
.th-comments{margin-top:56px;border-top:1px solid var(--th-border);padding-top:40px}
.th-comment-list{list-style:none;padding:0;margin:0 0 32px}
.th-comment-list .comment{padding:20px 0;border-bottom:1px solid var(--th-border)}
.th-comment-list .comment-author img{border-radius:50%;float:left;margin-right:12px}
.th-comment-list .children{list-style:none;padding-left:40px}
.comment-form textarea{width:100%;min-height:140px;padding:14px;border:1.5px solid var(--th-border-2);border-radius:var(--th-r-sm);font-family:inherit}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url]{width:100%;padding:12px 14px;border:1.5px solid var(--th-border-2);border-radius:var(--th-r-sm)}

/* 404 */
.th-404{min-height:calc(100vh - 80px);display:flex;align-items:center;background:linear-gradient(160deg,#0F0D1F,#1E1A4E 60%,#2E2A72);color:#fff;padding:calc(var(--th-header-h) + 40px) 0 80px;text-align:center}
.th-404-inner{max-width:720px}
.th-404 h1{color:#fff;font-family:var(--th-font-display);font-weight:600;font-size:clamp(2.2rem,5vw,3.6rem)}
.th-404 .th-lead{color:rgba(255,255,255,.72)}
.th-404 .th-actions{justify-content:center;margin-top:28px}
.th-404-art{display:inline-flex;gap:4px;padding:10px;background:#1b1830;border-radius:10px;margin-bottom:28px;box-shadow:var(--th-shadow-lg)}
.th-404-key{display:block;width:30px;height:90px;border-radius:0 0 5px 5px;background:#fff}
.th-404-key-b{background:#14121F;height:58px;width:20px;margin:0 -12px;position:relative;z-index:1;border-radius:0 0 4px 4px}
.th-404-key-w:nth-child(3){background:var(--th-gold)}

/* Auth split layout (register / login) */
.th-auth{display:grid;grid-template-columns:minmax(320px,.9fr) 1.1fr;min-height:100vh}
.th-auth-side{background:linear-gradient(160deg,#0F0D1F,#1E1A4E 60%,#2E2A72);color:#fff;padding:calc(var(--th-header-h) + 48px) 48px 48px;position:relative;overflow:hidden}
.th-auth-side::after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(226,181,90,.3),transparent 70%);left:-200px;bottom:-240px}
.th-auth-side-inner{position:relative;max-width:420px;display:flex;flex-direction:column;gap:18px;height:100%}
.th-auth-side .th-logo{color:#fff}
.th-auth-title{color:#fff;font-family:var(--th-font-display);font-weight:600;font-size:clamp(1.8rem,3vw,2.6rem);margin:20px 0 0}
.th-auth-side p{color:rgba(255,255,255,.75);margin:0}
.th-auth-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.th-auth-perks li{display:flex;align-items:center;gap:10px;font-weight:500}
.th-auth-perks .th-icon{color:var(--th-gold)}
.th-auth-side .th-piano{margin-top:auto;transform:scale(.9);transform-origin:left bottom}
.th-auth-main{display:flex;align-items:flex-start;justify-content:center;padding:calc(var(--th-header-h) + 40px) 24px 60px;background:var(--th-bg)}
.th-auth-card{width:100%;max-width:560px;background:var(--th-surface);border:1px solid var(--th-border);border-radius:var(--th-r-xl);padding:40px;box-shadow:var(--th-shadow)}
.th-auth-card h2,.th-auth-card .tutor-fs-4,.th-auth-card .tutor-h3{font-family:var(--th-font-display);font-weight:600;font-size:1.8rem}
@media (max-width:900px){
  .th-auth{grid-template-columns:1fr}
  .th-auth-side{padding:calc(var(--th-header-h) + 32px) 24px 40px}
  .th-auth-side .th-piano{display:none}
  .th-auth-main{padding-top:32px}
  .th-auth-card{padding:28px 22px}
}

/* Half-star gradient def */
.th-stars svg{overflow:visible}

/* badge bump */
@keyframes thBump{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.th-cart-badge.th-bump{animation:thBump .4s var(--th-ease)}

/* ---------- Specificity fixes (headings on dark, anchor buttons) ---------- */
body.th-theme .th-hero-title,body.th-theme .th-page-title,body.th-theme .th-course-title,body.th-theme .th-footer-cta-title,body.th-theme .th-404 h1,body.th-theme .th-auth-title,body.th-theme .th-instructor-body .th-section-title,body.th-theme .th-order-status h1.is-light{color:#fff}
body.th-theme a.th-btn,body.th-theme a.th-btn:hover,body.th-theme a.th-btn:focus{color:var(--btn-fg)}
body.th-theme a.th-chip{color:inherit}
body.th-theme .th-path-step a,body.th-theme .th-archive-result a{color:var(--th-primary-700)}
.th-header-on-dark:not(.is-scrolled) .th-register-link{--btn-bg:var(--th-gold);--btn-fg:var(--th-ink);box-shadow:0 8px 22px -10px rgba(226,181,90,.8)}
.th-header-on-dark:not(.is-scrolled) .th-login-link{--btn-fg:#fff}
.th-header-on-dark:not(.is-scrolled) .th-login-link:hover{--btn-bg:rgba(255,255,255,.12)}
.th-footer{overflow:visible;padding-top:0}
.th-footer-glow{top:0;height:320px;transform:translateX(-50%)}
.th-footer-cta{z-index:1}
body.th-theme .course-archive-page .tutor-course-filter{display:none}

body.th-theme .th-footer-col h3{color:#fff}
.th-header-on-dark{top:0}
body.th-theme .th-cart-empty h2{color:var(--th-ink)}

/* Header contrast on dark pages (both transparent and scrolled states) */
.th-header-on-dark .th-menu a{opacity:1}
.th-header-on-dark .th-register-link{--btn-bg:var(--th-gold);--btn-fg:var(--th-ink);box-shadow:0 8px 22px -10px rgba(226,181,90,.8)}
.th-header-on-dark .th-register-link:hover{--btn-bg:#EDC46E}
.th-header-on-dark .th-login-link{--btn-fg:#fff;--btn-bd:rgba(255,255,255,.25)}
.th-header-on-dark .th-login-link:hover{--btn-bg:rgba(255,255,255,.12)}
.th-header-on-dark .th-user-btn{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.1);color:#fff}
.th-header-on-dark .th-icon-btn:hover{background:rgba(255,255,255,.12)}
.th-header-on-dark .th-cart-badge{box-shadow:0 0 0 2px #14121F}

/* ---------- Explicit link colours in chrome areas (win over the global link rule) ---------- */
body.th-theme .th-header .th-logo,body.th-theme .th-header .th-menu a,body.th-theme .th-header .th-icon-btn,body.th-theme .th-header .th-user-btn{color:var(--th-ink)}
body.th-theme .th-header-on-dark .th-logo,body.th-theme .th-header-on-dark .th-menu a,body.th-theme .th-header-on-dark .th-icon-btn,body.th-theme .th-header-on-dark .th-user-btn{color:#fff}
body.th-theme .th-header .th-menu .sub-menu a{color:var(--th-ink)}
body.th-theme .th-header .th-dropdown a{color:var(--th-ink)}
body.th-theme .th-header .th-dropdown a:hover{color:var(--th-primary-700)}
body.th-theme .th-header .th-dropdown a.th-dropdown-danger{color:var(--th-danger)}
body.th-theme .th-mobile-nav .th-logo,body.th-theme .th-mobile-nav .th-mobile-menu a,body.th-theme .th-mobile-nav .th-icon-btn{color:var(--th-ink)}
body.th-theme .th-mobile-nav .th-mobile-menu .sub-menu a{color:var(--th-muted)}
body.th-theme .th-breadcrumb a{color:rgba(255,255,255,.8)}
body.th-theme .th-breadcrumb a:hover{color:#fff}
body.th-theme .th-footer a:not(.th-btn){color:rgba(255,255,255,.72)}
body.th-theme .th-footer a:not(.th-btn):hover{color:#fff}
body.th-theme .th-footer .th-logo{color:#fff}
body.th-theme .th-footer-menu a{color:rgba(255,255,255,.72)}
body.th-theme .th-post-card-title a,body.th-theme .th-post-nav a,body.th-theme .th-tags a{color:var(--th-ink)}
body.th-theme .th-post-card-title a:hover{color:var(--th-primary-700)}
body.th-theme .th-post-cats a{color:var(--th-gold)}
body.th-theme .th-pagination .page-numbers{color:var(--th-ink)}
body.th-theme .th-pagination .page-numbers.current{color:#fff}
