/* ==========================================================================
   Theavy_MMO Store — builds on the Theavy_MMO design system (app.css tokens)
   ========================================================================== */

/* ---------- Header navigation (inside the sticky topbar) ---------- */
.tms-nav { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(8, 11, 28, .35); backdrop-filter: blur(8px); }
.tms-nav-in { max-width: 1920px; margin: 0 auto; padding: 0 40px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tms-nav-in::-webkit-scrollbar { display: none; }
.tms-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: rgba(255, 255, 255, .72); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s; }
.tms-nav a .ic { opacity: .8; }
.tms-nav a:hover { color: #fff; }
.tms-nav a.on { color: #fff; }
.tms-nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #FFD27A, var(--gold-2, #F29D38)); }
.tms-nav a.on .ic { color: #FFD27A; opacity: 1; }

/* ---------- Shared ---------- */
.tms { --acc: var(--brand); }
.tms .ic { flex: none; }
.tms-sec { padding-top: 56px; padding-bottom: 8px; }
.tms-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tms-sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 4px; }
.tms-sec-head p { margin: 0; }
.tms-lead { font-size: clamp(15px, 1.4vw, 18px); color: rgba(255, 255, 255, .78); max-width: 620px; line-height: 1.7; margin: 0 0 24px; }
.btn-block { width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
html.tms-lock, html.tms-lock body { overflow: hidden; }

.tms-pic { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; flex: none; box-shadow: 0 8px 18px -8px rgba(11, 16, 36, .45); background: #fff; }
.tms-pic.lg { width: 64px; height: 64px; border-radius: 18px; }
.tms-pic.xl { width: 76px; height: 76px; border-radius: 22px; }
.tms-pic.xxl { width: 120px; height: 120px; border-radius: 32px; }
.tms-pic-ph { display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; background: linear-gradient(135deg, var(--acc), #7B4DFF); }

.tms-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.tms-plat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tms-plats.light .tms-plat { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }

.tms-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.tms-price-amt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.tms-price-per { color: var(--muted); font-weight: 700; font-size: 14px; }
.tms-price-was { color: var(--muted); font-size: 14px; margin-left: 6px; }
.tms-price-free { font-size: 24px; font-weight: 800; color: var(--ok); }
.tms-price.light .tms-price-amt { color: #fff; }
.tms-price.light .tms-price-per { color: rgba(255, 255, 255, .6); }
.tms-price.big .tms-price-amt { font-size: 40px; }

.tms-khqr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; background: #E21B23; color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; }
.tms-ti { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }

/* ---------- Hero ---------- */
.tms-hero, .tms-phero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(123, 77, 255, .45), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(242, 157, 56, .18), transparent 60%), linear-gradient(115deg, #0B1024 0%, #151A3E 55%, #22164A 100%); }
.tms-hero { padding: 64px 0 120px; }
.tms-hero-glow { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%); pointer-events: none; }
.tms-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.tms-hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.12; margin: 0 0 18px; color: #fff; }
html.lang-km .tms-hero h1 { line-height: 1.4; font-size: clamp(28px, 3.8vw, 48px); }
.tms-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FFD27A, #F29D38); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tms-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tms-banks { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; color: rgba(255, 255, 255, .55); font-weight: 700; font-size: 13px; }

.tms-spot { position: relative; display: block; padding: 26px; border-radius: 26px; color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); backdrop-filter: blur(14px); transition: transform .3s ease, box-shadow .3s; }
.tms-spot:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.tms-spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 210, 122, .7), transparent 40%, rgba(123, 77, 255, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tms-spot-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.tms-spot-head h2 { color: #fff; font-size: 24px; margin: 4px 0 8px; }
.tms-spot > p { color: rgba(255, 255, 255, .75); margin: 0 0 14px; }
.tms-spot-label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 210, 122, .16); color: #FFD27A; font-size: 12px; font-weight: 800; }
.tms-spot-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.tms-spot-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.tms-spot-list .ic { color: #5BE49B; margin-top: 2px; }
.tms-spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Trust strip ---------- */
.tms-trust-wrap { position: relative; margin-top: -64px; z-index: 2; }
.tms-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tms-trust-i { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.tms-trust-i:hover { background: var(--line-2); }
.tms-trust-i strong { display: block; font-size: 15px; }
.tms-trust-i small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tms-trust-i:nth-child(1) .tms-ti { background: #FDECEE; color: #D92D3F; }
.tms-trust-i:nth-child(2) .tms-ti { background: var(--ok-soft); color: var(--ok); }
.tms-trust-i:nth-child(3) .tms-ti { background: #E7F3FE; color: #1D8AE0; }
.tms-trust-i:nth-child(4) .tms-ti { background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Product cards ---------- */
.tms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.tms-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.tms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(91, 92, 235, .3); }
.tms-card-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 26px 0 4px; margin: -22px -22px 0; border-radius: 22px 22px 0 0; background: radial-gradient(260px 140px at 50% 30%, rgba(91, 92, 235, .14), transparent 70%); }
.tms-card-head .tms-pic { width: 120px; height: 120px; border-radius: 32px; box-shadow: 0 22px 40px -18px rgba(91, 92, 235, .65); transition: transform .3s ease; }
.tms-card:hover .tms-card-head .tms-pic { transform: translateY(-3px) scale(1.03); }
.tms-card-title { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tms-card-title strong { font-size: 21px; line-height: 1.3; color: var(--text); }
.tms-card-head:hover strong { color: var(--brand); }
.tms-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--gold-soft); color: #A35F0A; font-size: 11.5px; font-weight: 800; }
.tms-card-txt { flex: 1; margin: 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.lang-km .tms-card-txt { line-height: 1.8; }
.tms-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tms-card-soon { align-items: center; justify-content: center; text-align: center; gap: 0; padding: 28px 22px; border-style: dashed; background: transparent; box-shadow: none; min-height: 220px; }
.tms-card-soon:hover { transform: none; box-shadow: none; }
.tms-soon-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.tms-card-soon h3 { margin: 0 0 6px; }
.tms-card-soon p { font-size: 14px; margin: 0; max-width: 260px; }

/* ---------- How to buy ---------- */
.tms-how { position: relative; padding: 44px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tms-how-head { text-align: center; margin-bottom: 30px; }
.tms-how-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.tms-steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.tms-steps4::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.tms-steps4 li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.tms-s-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 24px -10px rgba(91, 92, 235, .7); }
.tms-s-ic em { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #FFD27A, var(--gold-2)); color: #1B1403; font: 800 12px/24px var(--font); font-style: normal; text-align: center; border: 2px solid #fff; }
.tms-steps4 strong { font-size: 16px; margin-top: 8px; }
.tms-steps4 small { color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 220px; }

.tms-courses { margin-top: 0; }

/* ---------- FAQ ---------- */
.tms-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.tms-faq-grid h2 { font-size: clamp(22px, 2.4vw, 30px); }
.tms-faq { display: grid; gap: 10px; }
.tms-faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.tms-faq details[open] { border-color: rgba(91, 92, 235, .35); box-shadow: 0 10px 30px -18px rgba(91, 92, 235, .5); }
.tms-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; }
.tms-faq summary::-webkit-details-marker { display: none; }
.tms-faq summary .ic { transition: transform .25s; color: var(--muted); }
.tms-faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.tms-faq-a { padding: 0 18px 18px; color: var(--muted); line-height: 1.75; }

/* ---------- Help band ---------- */
.tms-help { display: flex; align-items: center; gap: 22px; padding: 28px 32px; border-radius: 26px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(41, 161, 224, .45), transparent 70%), linear-gradient(120deg, #0B1024, #1A2366); margin-bottom: 24px; }
.tms-help-ic { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 18px; background: #29A1E0; color: #fff; box-shadow: 0 12px 26px -10px rgba(41, 161, 224, .8); }
.tms-help-txt { flex: 1; }
.tms-help h2 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.tms-help p { margin: 0; color: rgba(255, 255, 255, .72); }

/* ---------- Product hero ---------- */
.tms-phero { padding: 22px 0 56px; }
.tms-phero.slim { padding-bottom: 44px; }
.tms-phero.slim h1 { color: #fff; margin: 8px 0 8px; }
.tms-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13.5px; }
.tms-crumbs a:hover { color: #fff; }
.tms-phero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin-top: 22px; }
.tms-phero-id { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.tms-phero-id h1 { color: #fff; margin: 6px 0 0; font-size: clamp(30px, 4vw, 48px); }
.tms-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 26px; }
.tms-fact { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 700; }

.tms-media { position: relative; }
.tms-media::before { content: ""; position: absolute; inset: 10% -4% -8% 8%; border-radius: 40px; background: radial-gradient(closest-side, rgba(123, 77, 255, .55), transparent); filter: blur(30px); }
.tms-window { position: relative; border-radius: 18px; overflow: hidden; background: #0E1330; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.tms-window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tms-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.tms-window-bar i:nth-child(2) { background: #FEBC2E; }
.tms-window-bar i:nth-child(3) { background: #28C840; }
.tms-window-bar span { margin-left: 8px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.tms-window video, .tms-window img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.tms-media-ph { display: grid; place-items: center; aspect-ratio: 16/9; background: radial-gradient(circle at 50% 40%, rgba(123, 77, 255, .4), transparent 60%); }

/* ---------- Product tabs ---------- */
.tms-tabs { position: sticky; top: var(--tms-top, 157px); z-index: 30; background: rgba(245, 246, 251, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.tms-tabs.stuck { box-shadow: 0 10px 24px -18px rgba(16, 20, 55, .45); }
.tms-tabs-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tms-tabs-in::-webkit-scrollbar { display: none; }
.tms-tabs a { position: relative; padding: 15px 14px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tms-tabs a:hover { color: var(--text); }
.tms-tabs a.on { color: var(--brand); }
.tms-tabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tms-tabs-buy { margin-left: auto; padding-left: 12px; opacity: 0; transform: translateY(4px); transition: .25s; pointer-events: none; }
.tms-tabs.stuck .tms-tabs-buy { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Product layout ---------- */
.tms-playout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding-top: 36px; padding-bottom: 24px; }
.tms-block { padding: 30px; margin-bottom: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-margin-top: 220px; }
.tms-h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0 0 18px; }
.tms-h2 .ic { color: var(--brand); }
.tms-block > .tms-h2:not(:first-child) { margin-top: 26px; }
.tms-desc { font-size: 16px; line-height: 1.85; color: #3A4060; }
html.lang-km .tms-desc { line-height: 2; }

.tms-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tms-feat { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.tms-feat:hover { background: #fff; border-color: var(--line); }
.tms-feat-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.tms-feat-ic .ic { width: 20px; height: 20px; }
.tms-feat strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tms-feat p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.tms-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #0B1024; }
.tms-embed iframe, .tms-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tms-embed.portrait { max-width: 380px; margin: 0 auto; }
.tms-play-cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #000 center / cover no-repeat; }
.tms-play-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.tms-play { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transition: transform .2s; }
.tms-play .ic { width: 30px; height: 30px; margin-left: 4px; }
.tms-play-cover:hover .tms-play { transform: scale(1.07); }
.tms-video-soon { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), #F5EEFF); border: 1px dashed rgba(91, 92, 235, .35); }
.tms-video-soon > div { flex: 1; min-width: 200px; }
.tms-video-soon strong { display: block; font-size: 16px; }
.tms-video-soon p { margin: 2px 0 0; color: var(--muted); }
.tms-play.muted-play { width: 56px; height: 56px; color: var(--brand); box-shadow: var(--shadow-sm); }
.tms-play.muted-play .ic { margin: 0; width: 24px; height: 24px; }

.tms-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line-2); margin-bottom: 20px; }
.tms-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--muted); transition: .2s; }
.tms-seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.tms-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tms-steps li { position: relative; display: flex; gap: 14px; padding: 10px 0 14px; }
.tms-steps li:not(.cmd):not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 44px; bottom: -4px; width: 2px; background: var(--line); }
.tms-step-n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--gold-soft); color: #A35F0A; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px #F7DDB0; }
.tms-steps p { margin: 4px 0 0; line-height: 1.7; }
.tms-steps li.cmd { padding: 0 0 12px 46px; }
.tms-cmd { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: #0B1024; color: #A5F3C4; overflow: hidden; }
.tms-cmd code { flex: 1; min-width: 0; background: none; color: inherit; padding: 0; font-size: 13px; white-space: nowrap; overflow-x: auto; }
.tms-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 12.5px; flex: none; transition: background .2s; }
.tms-copy:hover { background: rgba(255, 255, 255, .2); }
.tms-copy.ok { background: var(--ok); }
.tms-copy.sm { background: var(--line-2); color: var(--text); padding: 4px 9px; margin-left: 8px; }
.tms-copy.sm.ok { background: var(--ok-soft); color: var(--ok); }

.tms-dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.tms-dl { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; transition: .2s; }
.tms-dl:hover { border-color: var(--brand); box-shadow: 0 12px 26px -16px rgba(91, 92, 235, .6); transform: translateY(-2px); }
.tms-dl-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--ink); color: #fff; }
.tms-dl-ic .ic { width: 22px; height: 22px; }
.tms-dl-txt { flex: 1; min-width: 0; }
.tms-dl-txt strong { display: block; }
.tms-dl-txt small { display: block; color: var(--muted); font-size: 12.5px; }
.tms-dl-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.tms-note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.tms-note summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; color: var(--brand); }
.tms-note summary::-webkit-details-marker { display: none; }
.tms-note p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }

.tms-req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tms-req li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.tms-req .ic { color: var(--ok); margin-top: 3px; }

/* ---------- Buy card (sticky) ---------- */
.tms-paside { position: sticky; top: calc(var(--tms-top, 157px) + 70px); }
.tms-buycard { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 240px; }
.tms-buycard-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.tms-buycard-head strong { display: block; font-size: 16px; }
.tms-buycard-head small { display: block; color: var(--muted); font-size: 12.5px; }
.tms-buycard .tms-price { margin-bottom: 16px; }
.tms-inc { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tms-inc li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.tms-inc .ic { color: var(--ok); }
.tms-buycard-foot { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.tms-buycard-foot small { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ---------- Mobile buy bar ---------- */
.tms-mbar { display: none; }

/* ---------- Buy modal ---------- */
.tms-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tms-modal[hidden] { display: none; }
.tms-modal-scrim { position: absolute; inset: 0; background: rgba(8, 11, 28, .62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.tms-sheet { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s ease, opacity .22s; overscroll-behavior: contain; }
.tms-modal.show .tms-modal-scrim { opacity: 1; }
.tms-modal.show .tms-sheet { transform: none; opacity: 1; }
.tms-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.tms-sheet-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tms-sheet-id .tms-pic { width: 44px; height: 44px; border-radius: 13px; }
.tms-sheet-id strong { display: block; font-size: 16px; }
.tms-sheet-id small { color: var(--muted); font-weight: 700; }
.tms-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--line-2); color: var(--text); }
.tms-x:hover { background: var(--line); }
.tms-progress { list-style: none; display: flex; gap: 6px; margin: 0; padding: 16px 20px 4px; }
.tms-progress li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tms-progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.tms-progress li span { display: none; }
.tms-progress li.on { color: var(--brand); }
.tms-progress li.on::before, .tms-progress li.done::before { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.tms-progress li.done { color: var(--text); }
.tms-pane { padding: 18px 20px 20px; }
.tms-pay { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.tms-qr { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tms-qr-top { padding: 10px; background: #E21B23; color: #fff; text-align: center; font-weight: 800; letter-spacing: .12em; font-size: 14px; }
.tms-qr img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; background: #fff; }
.tms-qr-amt { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-top: 1px dashed var(--line); }
.tms-qr-amt small { color: var(--muted); font-size: 12px; font-weight: 700; }
.tms-qr-amt strong { font-size: 20px; }
.tms-pay-lead { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; margin: 2px 0 12px; }
.tms-pay-lead .ic { color: var(--brand); margin-top: 4px; }
.tms-kv { margin: 0; display: grid; gap: 2px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.tms-kv div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); }
.tms-kv dt { color: var(--muted); font-size: 13px; }
.tms-kv dd { margin: 0; font-weight: 700; display: flex; align-items: center; text-align: right; }
.tms-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tms-tip .ic { margin-top: 2px; color: var(--gold-2); }
.tms-sheet-foot { margin-top: 20px; }
.tms-sheet-foot.two { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

.tms-form { display: grid; gap: 14px; }
.tms-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tms-field { display: grid; gap: 6px; }
.tms-field > span { font-weight: 700; font-size: 13.5px; }
.tms-field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.tms-field input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 92, 235, .14); }
.tms-field.bad input { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(217, 45, 63, .1); }
.tms-field small { color: var(--muted); font-size: 12.5px; }
.tms-field em { font-style: normal; font-weight: 500; font-size: 12.5px; }
.tms-drop { display: block; cursor: pointer; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--bg); transition: .2s; }
.tms-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.tms-drop-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--muted); }
.tms-drop-empty .ic { color: var(--brand); }
.tms-drop-empty b { color: var(--text); }
.tms-drop-empty small { margin-left: auto; font-size: 12px; }
.tms-drop-prev { display: flex; align-items: center; gap: 12px; padding: 10px; }
.tms-drop-prev img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.tms-drop-prev b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.tms-drop-prev em { font-style: normal; color: var(--brand); font-weight: 700; font-size: 13px; padding-right: 6px; }
.tms-err { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 14px; }
.tms-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(27, 20, 3, .25); border-top-color: #1B1403; animation: tms-spin .7s linear infinite; }
@keyframes tms-spin { to { transform: rotate(360deg); } }

/* ---------- Order status ---------- */
.tms-st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tms-st-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--warn-soft); color: var(--warn); }
.tms-st-badge .ic { width: 16px; height: 16px; }
.tms-st-badge.st-approved { background: var(--ok-soft); color: var(--ok); }
.tms-st-badge.st-rejected { background: var(--bad-soft); color: var(--bad); }
.tms-st-id { color: var(--muted); font-size: 13px; }
.tms-st-id b { color: var(--text); font-family: ui-monospace, Menlo, monospace; }
.tms-st-prod { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; font-size: 14px; }
.tms-st-prod:empty, .tms-st-prod strong:empty + span:empty { display: none; }
.tms-st-prod span { color: var(--muted); font-weight: 700; }
.tms-st-wait, .tms-st-ok, .tms-st-bad { text-align: center; padding: 22px 6px 6px; }
.tms-st-wait h3, .tms-st-ok h3, .tms-st-bad h3 { font-size: 20px; margin: 10px 0 6px; }
.tms-st-wait p, .tms-st-ok p, .tms-st-bad p { color: var(--muted); margin: 0 auto 8px; max-width: 440px; }
.tms-pulse { position: relative; display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); }
.tms-pulse .ic { width: 32px; height: 32px; }
.tms-pulse span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: tms-pulse 1.8s ease-out infinite; }
@keyframes tms-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
.tms-keybox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px auto 8px; padding: 14px; border-radius: 16px; background: var(--ink); max-width: 480px; }
.tms-keybox small { width: 100%; color: rgba(255, 255, 255, .55); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tms-keybox code { background: none; color: #FFD27A; font-size: 19px; font-weight: 800; letter-spacing: .06em; padding: 0; word-break: break-all; }
.tms-st-meta { color: var(--muted); font-size: 13.5px; }
.tms-st-dls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.tms-chipbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 11px; background: var(--line-2); font-weight: 700; font-size: 13.5px; }
.tms-chipbtn:hover { background: var(--brand-soft); color: var(--brand); }
.tms-st-reason { color: var(--text) !important; }
.tms-st-actions { margin-top: 18px; }

/* ---------- My orders page ---------- */
.tms-orders-wrap { max-width: 860px; }
.tms-orders { display: grid; gap: 16px; }
.tms-ocard { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tms-lookup { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px dashed var(--line); }
.tms-lookup > div { flex: 1; }
.tms-lookup p { margin: 2px 0 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tms-nav-in { padding: 0 24px; }
  .tms-hero-grid, .tms-phero-grid { grid-template-columns: 1fr; gap: 36px; }
  .tms-spot { max-width: 560px; }
  .tms-playout { grid-template-columns: 1fr; }
  .tms-paside { position: static; order: -1; }
  .tms-buycard { display: none; }
  .tms-trust { grid-template-columns: 1fr 1fr; }
  .tms-faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .tms-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -12px rgba(11, 16, 36, .45); border: 1px solid var(--line); transform: translateY(140%); transition: transform .3s ease; }
  .tms-mbar.show { transform: none; }
  .tms-mbar .tms-price-amt { font-size: 22px; }
  .tms-product { padding-bottom: 80px; }
}
@media (max-width: 760px) {
  .tms-nav-in { padding: 0 8px; }
  .tms-nav a { padding: 10px 12px; font-size: 13px; }
  .tms-nav a .ic { display: none; }
  .tms-hero { padding: 36px 0 96px; }
  .tms-sec { padding-top: 40px; }
  .tms-trust { grid-template-columns: 1fr; padding: 6px; }
  .tms-trust-i { padding: 10px 12px; }
  .tms-spot { padding: 20px; }
  .tms-spot-list { grid-template-columns: 1fr; }
  .tms-how { padding: 28px 18px; }
  .tms-steps4 { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .tms-steps4::before { display: none; }
  .tms-help { flex-direction: column; text-align: center; padding: 26px 20px; }
  .tms-phero-id { gap: 14px; }
  .tms-pic.xl { width: 60px; height: 60px; border-radius: 18px; }
  .tms-tabs-buy { display: none; }
  .tms-block { padding: 20px; border-radius: 18px; }
  .tms-feats, .tms-req { grid-template-columns: 1fr; }
  .tms-modal { padding: 0; align-items: flex-end; }
  .tms-sheet { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .tms-pay { grid-template-columns: 1fr; }
  .tms-qr { max-width: 260px; margin: 0 auto; width: 100%; }
  .tms-row2 { grid-template-columns: 1fr; }
  .tms-lookup { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tms *, .tms-modal * { transition: none !important; animation: none !important; }
}

/* Header without the course search (courses hidden) */
@media (max-width: 760px) { .topbar .search-spacer { display: none; } }

/* Courses coming soon */
.tms-soon-hero { padding: 72px 0 96px; text-align: center; }
.tms-soon-box { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.tms-soon-box h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.tms-soon-box .tms-lead { margin-left: auto; margin-right: auto; }
.tms-soon-box .tms-hero-cta { justify-content: center; }
.tms-soon-badge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 26px; color: #1B1403; background: linear-gradient(135deg, #FFD27A, var(--gold-2)); box-shadow: 0 24px 50px -18px rgba(242, 157, 56, .8); }
.tms-soon-badge .ic { width: 38px; height: 38px; }

/* ---------- Footer: tidy on tablets & phones ---------- */
.site-footer .footer-grid > div { min-width: 0; }
@media (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .site-footer .fg-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer { margin-top: 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 36px; padding-bottom: 26px; }
  .site-footer .fg-brand { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .site-footer .fg-brand p { margin: 12px auto 14px; font-size: 14px; }
  .site-footer .footer-grid h4 { font-size: 12.5px; margin-bottom: 10px; }
  .site-footer .footer-grid > div > a { font-size: 14px; padding: 6px 0; }
  .site-footer .footer-grid > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .site-footer .footer-grid > div:last-child h4 { grid-column: 1 / -1; margin-bottom: 0; }
  .site-footer .footer-grid > div:last-child > a { padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); min-width: 0; }
  .site-footer .footer-grid > div:last-child > a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-footer .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-bottom: 28px; }
  body:has(.tms-mbar) .site-footer { padding-bottom: 84px; }
}

/* Search results */
.tms-search-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tms-search-head .btn { margin-left: auto; }

/* Premium "Best seller" ribbon (top-right corner of the card) */
.tms-ribbon { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #4A2A00; background: linear-gradient(135deg, #FFF0C2 0%, #FFD27A 45%, #F2A640 100%); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 8px 18px -8px rgba(242, 157, 56, .85), inset 0 1px 0 rgba(255, 255, 255, .8); overflow: hidden; }
.tms-ribbon .ic { width: 13px; height: 13px; color: #B5620A; }
.tms-ribbon::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: tms-shine 4.5s ease-in-out infinite; }
@keyframes tms-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.tms-card .tms-card-head { padding-top: 50px; }

/* Brand photo logo in the header & footer */
.topbar .brand-logo { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px -8px rgba(242, 157, 56, .7); }
.site-footer .brand-logo { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) { .topbar .brand-logo { height: 42px; width: 42px; } }
