/*
 * sections.css: academy + market (WooCommerce) in the site's design.
 * Uses only the theme's color variables, so light and dark both work.
 */

/* ===================================================================== shared bits */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.phero .lead { color: var(--dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 2; margin-top: 12px; max-width: 46ch; }
.phero .lead p { margin: 0; }
.hero-cta { margin-top: 22px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(var(--fg-rgb), .18); }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); }
.confetti.fixed { position: fixed; z-index: 80; }
.see-all { text-align: center; margin-top: 34px; }
.cnt { display: inline-block; font-size: .6em; vertical-align: middle; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 12px; margin-inline-start: 8px; }

/* progress ring (account + pricing) */
.ring {
  --p: 0; position: relative; flex: none; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; text-align: center;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(var(--fg-rgb), .1) 0);
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-2); }
.ring b, .ring small { position: relative; display: block; line-height: 1.1; }
.ring b { font-size: 26px; font-weight: 900; }
.ring small { font-size: 12px; color: var(--dim); }

/* side card used by course + product pages (takes the place of the post's TOC column) */
.course-layout, .product-layout { grid-template-columns: 330px minmax(0, 760px); }
.side-card, .buybox {
  position: sticky; top: 96px; align-self: start; order: -1;
  display: grid; gap: 14px; padding: 22px; border-radius: 26px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.side-card h4 { font-weight: 900; font-size: 18px; }
.side-card dl, .file-facts dl { display: grid; gap: 0; margin: 0; }
.side-card dl > div, .file-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.side-card dt, .file-facts dt { color: var(--dim); }
.side-card dd, .file-facts dd { margin: 0; font-weight: 800; text-align: end; }
.side-card dd.hl { color: var(--lime); }
.side-card .share, .buybox .share { display: flex; gap: 8px; justify-content: center; }
.side-card .share a, .side-card .share button, .buybox .share a, .buybox .share button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper);
  display: grid; place-items: center; text-decoration: none; cursor: pointer; font-weight: 900;
}
.side-card .share :hover, .buybox .share :hover { border-color: var(--lime); color: var(--lime); }

/* ===================================================================== academy */
.ccard .cover .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(var(--ink-rgb), .55); color: var(--paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(var(--fg-rgb), .2);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}
.ccard .cover .play svg { width: 26px; height: 26px; fill: currentColor; margin-inline-start: 3px; }
html[dir="rtl"] .ccard .cover .play svg { margin-inline-start: 0; margin-inline-end: 3px; transform: none; }
.ccard:hover .cover .play { transform: scale(1.12); background: var(--lime); color: var(--ink); }
.cover .level, .cover .fmt { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.cover .fmt { inset-inline-start: auto; inset-inline-end: 14px; background: rgba(var(--ink-rgb), .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .06em; }
.yt-tag { color: var(--lime); font-weight: 800; }

.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: var(--ink-2); margin-bottom: 10px;
}
.stats-strip > div { display: grid; gap: 2px; padding: 6px 14px; border-inline-end: 1px solid var(--line); }
.stats-strip b { font-size: clamp(26px, 2.6vw, 38px); font-weight: 950; line-height: 1.2; }
.stats-strip span { color: var(--dim); font-size: 14px; font-weight: 700; }
.yt-cta { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 900; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.yt-cta:hover { transform: scale(1.04); }
.yt-cta small { display: block; font-size: 12px; font-weight: 600; opacity: .7; font-family: "JetBrains Mono", monospace; }
.yt-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.yt-ico svg { width: 22px; height: 22px; fill: currentColor; }

.playlist { position: relative; margin: 50px auto 0; width: calc(100% - 2 * var(--pad)); max-width: 1180px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--sf-1); }
.playlist .pl-cover { position: relative; aspect-ratio: 16 / 9; }
.playlist .pl-cover > img, .playlist .pl-cover > svg, .playlist .pl-cover > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.playlist .pl-cover .cat-word { position: absolute; bottom: -.15em; inset-inline-start: 24px; font: 400 clamp(80px, 12vw, 200px)/1 Anton, Impact, sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--paper-rgb), .2); }
.playlist:not(.playing) .pl-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--ink-rgb), .75), transparent 60%); }
.pl-play {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: max-content; height: max-content;
  display: grid; justify-items: center; gap: 12px; background: none; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 900; font-size: 17px;
}
.pl-play span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .5); animation: pl-pulse 2.2s infinite; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.pl-play span svg { width: 40px; height: 40px; fill: currentColor; }
.pl-play:hover span { transform: scale(1.1); }
.pl-play b { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@keyframes pl-pulse { 70% { box-shadow: 0 0 0 26px rgba(var(--lime-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); } }
.playlist figcaption { position: absolute; bottom: 16px; inset-inline: 0; z-index: 2; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .85); }
.playlist figcaption a { color: inherit; }
.playlist.playing figcaption { display: none; }

.learn { padding: 24px; border-radius: 24px; border: 1px solid rgba(var(--lime-rgb), .35); background: radial-gradient(500px 200px at 100% 0%, rgba(var(--lime-rgb), .1), transparent 60%), var(--ink-2); margin-bottom: 1.6em; }
.prose .learn h2 { margin-top: 0; font-size: clamp(22px, 2vw, 28px); }
.prose .learn ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 14px; }
.prose .learn li { position: relative; padding-inline-start: 30px; line-height: 1.8; font-size: .95em; }
.prose .learn li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 900; display: grid; place-items: center; }
.prose .learn li + li { margin-top: 0; }

/* ===================================================================== market: cards + banner */
.prcard.is-sub { border-color: rgba(var(--lime-rgb), .5); }
.price-row { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; border-top: 1px dashed var(--line); }
.price-row .price { font-weight: 950; font-size: 20px; color: var(--paper); }
.price del { opacity: .5; font-size: .75em; font-weight: 600; margin-inline-end: 6px; }
.price ins { text-decoration: none; }
.price-row .free-badge { font-size: 12px; font-weight: 900; color: var(--ink); background: var(--lime); padding: 2px 10px; border-radius: 999px; }
.price-row .sub-hint { font-size: 12px; font-weight: 700; color: var(--lime); }
.price-row .size { margin-inline-start: auto; font-size: 12px; color: var(--dim); }

.sub-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: clamp(22px, 3.4vw, 40px); border-radius: 30px; background: var(--lime); color: var(--ink); margin-bottom: 20px;
}
.sub-banner::after { content: "∞"; position: absolute; inset-inline-end: -10px; bottom: -.32em; font: 400 260px/1 Anton, Impact, sans-serif; opacity: .08; pointer-events: none; }
.sub-banner canvas { width: clamp(90px, 10vw, 130px); height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--sf-1); }
.sub-banner .chip { border-color: rgba(var(--ink-rgb), .3); color: var(--ink); }
.sub-banner h2 { font-weight: 950; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.4; margin-top: 8px; }
.sub-banner h2 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sub-banner ul { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 700; font-size: 14px; }
.sub-banner li::before { content: "✓ "; font-weight: 900; }
.sub-banner p { font-weight: 600; opacity: .8; margin-top: 6px; }
.sb-cta { display: grid; justify-items: center; gap: 10px; position: relative; z-index: 1; }
.sb-price { font-weight: 950; font-size: clamp(28px, 3vw, 44px); line-height: 1; white-space: nowrap; }
.sb-price small { font-size: 14px; font-weight: 700; opacity: .7; margin-inline-start: 4px; }
.sub-banner .btn { background: var(--ink); color: var(--lime); }

/* ===================================================================== market: product page */
.price.big { font-size: 26px; font-weight: 950; color: var(--paper); }
.product-gallery { aspect-ratio: auto; }
.product-gallery .pg-main { position: relative; inset: auto; width: 100%; height: auto; max-height: 72vh; object-fit: contain; transform: none; display: block; margin: 0 auto; }
.product-gallery::after { display: none; }
.pg-thumbs { display: flex; gap: 8px; padding: 12px; justify-content: center; flex-wrap: wrap; background: var(--ink-2); border-top: 1px solid var(--line); }
.pg-thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; opacity: .65; transition: opacity .2s, border-color .2s; }
.pg-thumbs button.on, .pg-thumbs button:hover { opacity: 1; border-color: var(--lime); }
.pg-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { gap: 16px; }
.bb-price { font-size: 34px; font-weight: 950; line-height: 1.2; }
.bb-buy form.cart { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.bb-buy .quantity, .pc-buy .quantity { display: none; }
.pc-buy .quantity:has(input[type="number"]) { display: block; }
.single_add_to_cart_button, .wc-page .button, .wc-page button[type="submit"], #place_order, .checkout-button, .wc-page .wc-block-components-button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; font-size: 16px; padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime) !important; color: var(--ink) !important; text-decoration: none;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, opacity .2s;
}
.single_add_to_cart_button:hover, .wc-page .button:hover, #place_order:hover, .checkout-button:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(var(--lime-rgb), .35); }
.single_add_to_cart_button.disabled, .wc-page .button.disabled, .wc-page .button:disabled { opacity: .5; cursor: not-allowed; }
.bb-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; font-weight: 700; }
.bb-or::before, .bb-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bb-sub {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 20px;
  border: 1px solid rgba(var(--lime-rgb), .45); background: rgba(var(--lime-rgb), .08); text-decoration: none; color: var(--paper);
  transition: background-color .25s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.bb-sub:hover { background: rgba(var(--lime-rgb), .16); transform: translateY(-2px); }
.bb-sub canvas { width: 54px; height: 54px; border-radius: 50%; background: var(--sf-6); }
.bb-sub b { display: block; font-weight: 900; font-size: 15px; }
.bb-sub small { display: block; color: var(--dim); font-size: 13px; }
.bb-sub i { font-style: normal; font-weight: 900; color: var(--lime); }
.bb-state { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(var(--lime-rgb), .1); border: 1px solid rgba(var(--lime-rgb), .35); }
.bb-state .ic { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 900; }
.bb-state b { display: block; font-weight: 900; }
.bb-state small { color: var(--dim); font-size: 13px; }
.bb-dls { display: grid; gap: 8px; }
.bb-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.bb-trust li::before { content: "•"; color: var(--lime); font-weight: 900; margin-inline-end: 8px; }
.bb-trust a { color: var(--lime); }
.file-facts { margin-top: 2em; padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--ink-2); }
.prose .file-facts h2 { margin-top: 0; font-size: 22px; }

/* reviews (WooCommerce's template, restyled) */
.reviews-wrap { margin-top: 2.4em; }
.prose #reviews h2, .prose .woocommerce-Reviews-title { font-size: clamp(22px, 2vw, 28px); }
.prose .commentlist { list-style: none; padding: 0; display: grid; gap: 14px; }
.prose .commentlist li { margin: 0; }
.prose .commentlist .comment_container { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.prose .commentlist img.avatar { width: 42px; height: 42px; border-radius: 50%; }
.prose .commentlist .meta { font-size: 13px; color: var(--dim); margin: 0; }
.prose .commentlist .description p { margin: 4px 0 0; font-size: 15px; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; line-height: 1; font-size: 14px; overflow: hidden; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: rgba(var(--fg-rgb), .18); position: absolute; inset: 0; }
.star-rating span { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; inset-inline-start: 0; color: var(--lime); }
.prose p.stars a { position: relative; display: inline-block; width: 1.2em; height: 1.2em; text-indent: -999em; overflow: hidden; text-decoration: none; border: 0; }
.prose p.stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; color: rgba(var(--fg-rgb), .25); font-size: 1.2em; line-height: 1; }
.prose p.stars:hover a::before, .prose p.stars.selected a::before { color: var(--lime); }
.prose p.stars a:hover ~ a::before, .prose p.stars.selected a.active ~ a::before { color: rgba(var(--fg-rgb), .25); }
.prose #review_form textarea, .prose #review_form input[type="text"], .prose #review_form input[type="email"] { width: 100%; }

/* ===================================================================== subscription page */
.pricing { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 700px); justify-content: center; gap: clamp(30px, 5vw, 80px); padding: 60px var(--pad) 20px; max-width: 1440px; margin: 0 auto; }
.price-card {
  position: sticky; top: 96px; align-self: start; display: grid; gap: 18px; padding: 28px; border-radius: 30px; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(var(--lime-rgb), .18), transparent 60%), var(--ink-2);
  border: 1px solid rgba(var(--lime-rgb), .45);
}
.price-card > canvas { position: absolute; top: 16px; inset-inline-end: 16px; width: 76px; height: 76px; border-radius: 50%; background: var(--sf-6); }
.pc-price { font-size: clamp(40px, 4vw, 58px); font-weight: 950; line-height: 1; }
.pc-price small { font-size: 16px; font-weight: 700; color: var(--dim); margin-inline-start: 6px; }
.pc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pc-list li { position: relative; padding-inline-start: 30px; font-weight: 600; }
.pc-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 900; display: grid; place-items: center; }
.pc-buy form.cart { display: flex; gap: 10px; margin: 0; }
.pc-buy .quantity input { width: 72px; height: 100%; text-align: center; font: inherit; font-weight: 800; color: var(--paper); background: var(--ink); border: 1px solid rgba(var(--fg-rgb), .16); border-radius: 999px; }
.pc-status { display: flex; gap: 14px; align-items: center; padding-inline-end: 80px; }
.pc-status b { display: block; font-weight: 900; }
.pc-status small { color: var(--dim); font-size: 13px; }
.prose details { border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; background: var(--ink-2); margin-top: 10px; }
.prose details + details { margin-top: 10px; }
.prose summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--lime); font-weight: 900; font-size: 1.3em; line-height: 1; transition: transform .3s; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details p { margin: 0 0 14px; color: var(--text-2); }

/* ===================================================================== notices */
.wc-notices:empty { display: none; }
.wc-notices.top { position: fixed; z-index: 58; top: 84px; inset-inline: 0; margin: 0 auto; width: min(680px, calc(100% - 32px)); pointer-events: none; }
.wc-notices.top > * { pointer-events: auto; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > div, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 12px; padding: 14px 18px; border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink-2); border: 1px solid rgba(var(--lime-rgb), .45); color: var(--paper); font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); animation: agt-pop .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
.woocommerce-error { border-color: rgba(255, 90, 90, .55); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; flex: none !important; padding: 8px 16px !important; font-size: 13px !important; background: var(--lime) !important; color: var(--ink) !important; border-radius: 999px; text-decoration: none; font-weight: 900; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--lime); }
@keyframes agt-pop { from { opacity: 0; transform: translateY(-12px) scale(.97); } }

/* ===================================================================== header cart pill */
.cart-pill {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid rgba(var(--fg-rgb), .16); color: var(--paper); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.cart-pill:hover { border-color: var(--lime); transform: scale(1.06); }
.cart-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cart-pill .cart-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 900; display: none; place-items: center; line-height: 1; }
.cart-pill.has .cart-n { display: grid; }
body:not(.woocommerce):not(.woocommerce-page) .cart-pill:not(.has) { display: none; }

/* ===================================================================== cart / checkout / account (classic shortcodes) */
.wc-layout { padding-top: 40px; }
.wc-layout.single-col { grid-template-columns: minmax(0, 1100px); }
.wc-page { font-size: 16px; line-height: 1.9; color: var(--text-1); }
.wc-page a:not(.button):not(.btn) { color: var(--lime); }
.wc-page h2, .wc-page h3 { font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); color: var(--paper); margin: 1em 0 .6em; }
.wc-page input.input-text, .wc-page input[type="text"], .wc-page input[type="email"], .wc-page input[type="tel"], .wc-page input[type="password"], .wc-page input[type="number"], .wc-page textarea, .wc-page select, .wc-page .select2-selection {
  width: 100%; font: inherit; font-size: 15px; color: var(--paper); background: var(--ink); border: 1px solid rgba(var(--fg-rgb), .14) !important;
  border-radius: 14px !important; padding: 12px 14px; outline: none; min-height: 48px; transition: border-color .25s;
}
.wc-page input:focus, .wc-page textarea:focus, .wc-page select:focus { border-color: var(--lime) !important; }
.wc-page .select2-selection__rendered { color: var(--paper) !important; line-height: 22px !important; padding: 0 !important; }
.wc-page .select2-selection__arrow { top: 10px !important; }
.select2-dropdown { background: var(--ink-2) !important; color: var(--paper); border-color: var(--line) !important; border-radius: 14px !important; overflow: hidden; }
.select2-results__option--highlighted { background: var(--lime) !important; color: var(--ink) !important; }
.select2-search__field { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--line) !important; }
.wc-page .form-row { margin: 0 0 14px; padding: 0; }
.wc-page .form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--paper); }
.wc-page .form-row .required { color: var(--lime); text-decoration: none; border: 0; }
.wc-page .form-row-first, .wc-page .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.wc-page .form-row-first { margin-inline-end: 12px; }
.wc-page .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 8px; }
.wc-page input[type="checkbox"], .wc-page input[type="radio"] { accent-color: var(--lime); width: 18px; height: 18px; }

/* tables (cart, order review, orders, downloads) */
.wc-page table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--ink-2); font-size: 15px; }
.wc-page table.shop_table th, .wc-page table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.wc-page table.shop_table tr:last-child > * { border-bottom: 0; }
.wc-page table.shop_table thead th { color: var(--dim); font-size: 13px; font-weight: 700; background: rgba(var(--fg-rgb), .03); }
.wc-page table.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.wc-page table.shop_table .product-name a { color: var(--paper); font-weight: 800; text-decoration: none; }
.wc-page a.remove { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--dim) !important; text-decoration: none; font-size: 18px; }
.wc-page a.remove:hover { border-color: #ff5a5a; color: #ff5a5a !important; }
.wc-page .quantity input { width: 76px; text-align: center; }
.wc-page td.actions { text-align: end !important; }
.wc-page .coupon { display: inline-flex; gap: 8px; float: none; }
.wc-page .coupon input { width: 180px; }
.wc-page .coupon label { display: none; }
.wc-page td.actions .button { flex: none; padding: 12px 20px; font-size: 14px; }
.wc-page td.actions button[name="update_cart"] { background: transparent !important; color: var(--paper) !important; border: 1px solid rgba(var(--fg-rgb), .18); }
.wc-page .cart-collaterals { display: grid; justify-content: end; margin-top: 24px; }
.wc-page .cart_totals { width: min(440px, 100%); padding: 22px; border-radius: 26px; border: 1px solid rgba(var(--lime-rgb), .4); background: var(--ink-2); }
.wc-page .cart_totals h2 { margin-top: 0; }
.wc-page .cart_totals table.shop_table { border: 0; background: none; border-radius: 0; }
.wc-page .cart_totals .order-total td { font-size: 20px; font-weight: 950; color: var(--paper); }
.wc-page .wc-proceed-to-checkout { margin-top: 12px; }
.wc-page .checkout-button { width: 100%; }
.wc-page .cart-empty { font-size: 18px; text-align: center; }
.wc-page .return-to-shop { text-align: center; margin-top: 16px; }
.wc-page .return-to-shop .button { flex: none; }

/* checkout */
.wc-page form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); grid-template-rows: auto auto 1fr; gap: 0 30px; align-items: start; }
.wc-page form.checkout > .col2-set, .wc-page form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.wc-page form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
.wc-page form.checkout > #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 96px; padding: 22px; border-radius: 26px; border: 1px solid rgba(var(--lime-rgb), .4); background: var(--ink-2); }
.wc-page form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.wc-page .col2-set .col-1, .wc-page .col2-set .col-2 { width: 100%; float: none; }
.wc-page #order_review table.shop_table { border: 0; background: none; }
.wc-page #order_review .order-total td { font-size: 20px; font-weight: 950; color: var(--paper); }
.wc-page #payment { margin-top: 16px; background: none; }
.wc-page #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.wc-page #payment ul.payment_methods li { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink); }
.wc-page #payment ul.payment_methods li:has(input:checked) { border-color: var(--lime); }
.wc-page #payment ul.payment_methods li label { display: inline; font-weight: 800; margin-inline-start: 6px; }
.wc-page #payment .payment_box { margin-top: 8px; font-size: 14px; color: var(--dim); }
.wc-page #payment .payment_box::before { display: none; }
.wc-page #place_order { width: 100%; font-size: 17px; padding: 16px; }
.wc-page .woocommerce-privacy-policy-text { font-size: 13px; color: var(--dim); }
.wc-page .woocommerce-form-coupon-toggle .woocommerce-info, .wc-page .woocommerce-form-login-toggle .woocommerce-info { box-shadow: none; animation: none; }
.wc-page form.checkout_coupon, .wc-page form.woocommerce-form-login { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); margin-bottom: 16px; }

/* thank-you page */
.wc-page .woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.wc-page .woocommerce-order-overview li { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-2); font-size: 13px; color: var(--dim); }
.wc-page .woocommerce-order-overview li strong { display: block; color: var(--paper); font-size: 16px; margin-top: 4px; }
.wc-page .woocommerce-thankyou-order-received { font-size: clamp(20px, 2vw, 26px); font-weight: 900; color: var(--lime); }

/* my account */
.wc-page .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; }
.woocommerce-MyAccount-navigation { position: sticky; top: 96px; padding: 10px; border-radius: 24px; border: 1px solid var(--line); background: var(--ink-2); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 14px; color: var(--paper) !important; text-decoration: none; font-weight: 700; transition: background-color .2s; }
.woocommerce-MyAccount-navigation a:hover { background: rgba(var(--fg-rgb), .05); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--lime); color: var(--ink) !important; }
.woocommerce-MyAccount-navigation-link--subscription a::after { content: "★"; margin-inline-start: 6px; }
.woocommerce-MyAccount-content > p:first-child { font-size: 17px; }
.wc-page .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wc-page .u-columns .u-column1, .wc-page .u-columns .u-column2, .wc-page form.woocommerce-form-login, .wc-page form.woocommerce-form-register { padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--ink-2); }
.wc-page .woocommerce-form-login__submit, .wc-page .woocommerce-form-register__submit { width: 100%; margin-top: 8px; }

/* my account → subscription */
.sub-status { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 26px; border: 1px solid var(--line); background: var(--ink-2); }
.sub-status.on { border-color: rgba(var(--lime-rgb), .5); background: radial-gradient(500px 220px at 100% 0%, rgba(var(--lime-rgb), .12), transparent 60%), var(--ink-2); }
.sub-status h3 { margin: 0 0 4px; }
.sub-status p { margin: 0 0 12px; color: var(--dim); }
.sub-status .btn { flex: none; }
.sub-files-title { margin-top: 1.6em !important; }
.sub-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sub-files li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-2); }
.sub-files .nm { color: var(--paper) !important; font-weight: 800; text-decoration: none; }
.sub-files .meta { color: var(--dim); font-size: 13px; font-family: "JetBrains Mono", monospace; }
.sub-files .dls { display: flex; gap: 6px; flex-wrap: wrap; }

/* cart / checkout / account: compact hero so the form is right there */
.wc-hero { min-height: 0; padding-top: 110px; }
.wc-hero .phero-copy { padding-bottom: 10px; }
.wc-hero h1 { font-size: clamp(32px, 3.4vw, 52px) !important; }
.wc-hero .stage { width: min(240px, 30vw) !important; margin-bottom: -2% !important; }
.wc-hero .stage .hud .read, .wc-hero .reading-hud { display: none; }
.wc-hero .bubble { width: max-content; max-width: 220px; white-space: normal; }

/* ===================================================================== responsive */
@media (max-width: 1100px) {
  .course-layout, .product-layout { grid-template-columns: minmax(0, 1fr); }
  .side-card, .buybox { position: relative; top: 0; order: 0; }
  .buybox { order: -1; }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .price-card { position: relative; top: 0; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stats-strip .yt-cta { grid-column: 1 / -1; justify-content: center; }
  .wc-page form.checkout { grid-template-columns: minmax(0, 1fr); }
  .wc-page form.checkout > * { grid-column: 1 !important; grid-row: auto !important; }
  .wc-page form.checkout > #order_review { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .sub-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sub-banner ul { justify-content: center; }
  .wc-notices.top { top: calc(70px + env(safe-area-inset-top)); }
  .wc-page .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-MyAccount-navigation { position: relative; top: 0; overflow-x: auto; }
  .woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; width: max-content; }
  .wc-page .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); }
  .cart-pill { width: 38px; height: 38px; }
  .wc-hero .stage { display: none; }
  .wc-hero { padding-top: 96px; }
}
/* phones: the language link lives in the menu, keep the header to logo + cart + theme + menu */
@media (max-width: 560px) {
  nav .nav-end .lang, nav .status .lang { display: none; }
  .nav-end, .status { gap: 6px !important; }
}
@media (max-width: 620px) {
  .prose .learn ul { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; padding: 12px; }
  .stats-strip > div { border: 0; padding: 6px; }
  .stats-strip > div:nth-child(3) { grid-column: 1 / -1; }
  .pl-play span { width: 72px; height: 72px; }
  .wc-page .form-row-first, .wc-page .form-row-last { width: 100%; margin-inline-end: 0; }
  /* cart table becomes cards */
  .wc-page table.shop_table_responsive thead { display: none; }
  .wc-page table.shop_table_responsive tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .wc-page table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 10px; border: 0 !important; padding: 8px 14px; }
  .wc-page table.shop_table_responsive td::before { content: attr(data-title); color: var(--dim); font-size: 13px; font-weight: 700; }
  .wc-page table.shop_table_responsive td.product-remove::before, .wc-page table.shop_table_responsive td.product-thumbnail::before, .wc-page table.shop_table_responsive td.actions::before { content: none; }
  .wc-page .coupon { display: flex; width: 100%; }
  .wc-page .coupon input { flex: 1; width: auto; }
  .wc-page td.actions { display: grid !important; gap: 8px; }
  .sub-status { flex-direction: column; text-align: center; }
  .sub-files li { grid-template-columns: 1fr; }
}
