/* AiClass store: green & white */
:root {
  --paper: #ffffff;
  --mint: #eef6f0;
  --mint-2: #e1efe5;
  --forest: #0e4d2e;
  --forest-2: #0a3a22;
  --leaf: #1f8a4c;
  --leaf-2: #187040;
  --lime: #c8f169;
  --ink: #13241b;
  --muted: #56675d;
  --line: #dce7df;
  --danger: #b42318;
  --warn-bg: #fff6dc;
  --warn: #7a5300;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-book: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -18px rgba(14,77,46,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-2); }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--forest-2); }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.page { padding-top: 32px; padding-bottom: 72px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--font-display); color: var(--forest); text-decoration: none; letter-spacing: -0.03em; }
.logo-mark { width: 26px; height: 30px; border-radius: 3px 8px 8px 3px; background: var(--leaf); box-shadow: inset 5px 0 0 var(--forest); position: relative; }
.logo-mark::after { content: ""; position: absolute; right: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2356675d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; font: inherit; color: var(--ink); }
.search input:focus { background-color: #fff; border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(31,138,76,.18); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--mint); }
.main-nav a[aria-current] { color: var(--leaf-2); background: var(--mint); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--forest); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-btn { display: inline-flex; margin-left: auto; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
  .main-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .main-nav.open { display: flex; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1.5px solid transparent; font: 700 .975rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--mint); color: var(--forest); }
.btn-light { background: var(--lime); color: var(--forest-2); }
.btn-light:hover { background: #d7f78c; color: var(--forest-2); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c4bf; }
.btn-danger:hover { background: #fdf0ee; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .875rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--danger); }
.link-more { font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

label { display: block; font-weight: 600; font-size: .925rem; margin: 16px 0 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(31,138,76,.18); }
input:disabled { background: var(--mint); color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin: 6px 0 0; }
form .btn { margin-top: 20px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--leaf); }

.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 12px; font-weight: 500; border: 1px solid; }
.alert-success { background: var(--mint); border-color: #b9dcc4; color: var(--forest); }
.alert-info { background: #f2f7f4; border-color: var(--line); color: var(--ink); }
.alert-error { background: #fdf0ee; border-color: #f1c4bf; color: var(--danger); }
.flash-area { padding-top: 20px; }

/* ---------- Book covers (drawn in CSS when no image is uploaded) ---------- */
.cover {
  --c: var(--forest);
  position: relative; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 3px 10px 10px 3px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0 7px, rgba(255,255,255,.12) 7px 9px, transparent 9px),
    radial-gradient(120% 70% at 100% 0%, rgba(200,241,105,.28), transparent 60%),
    var(--c);
  color: #fff; display: flex; flex-direction: column; padding: 18px 16px 16px 24px;
  box-shadow: var(--shadow-book);
}
.cover.has-img { padding: 0; background: var(--mint); }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cover-brand { font: 700 .72rem/1 var(--font-body); opacity: .75; letter-spacing: .02em; }
.cover-title { margin-top: auto; font: 800 clamp(1.05rem, 1.7vw, 1.35rem)/1.08 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.cover-kind { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: var(--lime); color: var(--forest-2); font: 700 .72rem/1 var(--font-body); }
.play { width: 0; height: 0; border-left: 7px solid var(--forest-2); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.cover-lg .cover-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cover-sm { width: 64px; padding: 8px 6px 8px 12px; border-radius: 2px 6px 6px 2px; }
.cover-sm .cover-brand, .cover-sm .cover-kind, .cover-xs .cover-brand, .cover-xs .cover-kind { display: none; }
.cover-sm .cover-title { font-size: .58rem; }
.cover-xs { width: 40px; padding: 5px 4px 5px 9px; border-radius: 2px 5px 5px 2px; box-shadow: none; }
.cover-xs .cover-title { font-size: .42rem; }

/* ---------- Hero ---------- */
.hero { background: var(--mint); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-actions.centered { justify-content: center; }
.hero-facts { color: var(--muted); font-weight: 600; font-size: .95rem; margin: 0; }

.shelf { position: relative; height: 420px; }
.shelf-item { position: absolute; width: 220px; text-decoration: none; transition: transform .25s ease; }
.shelf-0 { left: 4%;  top: 60px; transform: rotate(-8deg); z-index: 1; }
.shelf-1 { left: 30%; top: 10px; transform: rotate(2deg); z-index: 3; }
.shelf-2 { left: 56%; top: 76px; transform: rotate(9deg); z-index: 2; }
.shelf-item:hover, .shelf-item:focus-visible { transform: rotate(0) translateY(-10px); z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
  .shelf-item { animation: fan-in .7s cubic-bezier(.2,.8,.2,1) both; }
  .shelf-0 { animation-delay: .05s; } .shelf-1 { animation-delay: .15s; } .shelf-2 { animation-delay: .25s; }
  @keyframes fan-in { from { opacity: 0; translate: 0 40px; rotate: 0deg; } }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .shelf { height: 250px; }
  .shelf-item { width: 140px; }
  .shelf-0 { left: 0; top: 40px; } .shelf-1 { left: calc(50% - 70px); top: 0; } .shelf-2 { left: auto; right: 0; top: 50px; }
}

/* ---------- Sections & grid ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 56px 0 0; }
.section-tint { background: linear-gradient(var(--mint) 0, #fff 100%); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

.card-link { display: block; text-decoration: none; color: inherit; }
.card .cover { transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover .cover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 26px 34px -18px rgba(14,77,46,.6); }
.card-body { padding-top: 14px; }
.card-meta { font-size: .82rem; color: var(--muted); margin: 0 0 4px; }
.card-title { font: 700 1.04rem/1.3 var(--font-body); letter-spacing: 0; color: var(--ink); margin: 0 0 6px; }
.card-link:hover .card-title { color: var(--leaf-2); }
.card-price { margin: 0; }
.price-now { font-weight: 800; color: var(--forest); }
.price-was { color: var(--muted); font-size: .9em; }
.price-off { font-size: .78rem; font-weight: 700; color: var(--forest-2); background: var(--lime); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

/* Steps */
.steps-wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--leaf); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 800 2.4rem/1 var(--font-display); color: var(--leaf); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps-wrap, .steps { grid-template-columns: 1fr; } }

/* Free band */
.free-band { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; background: var(--forest); color: #e5f3ea; border-radius: var(--r-lg); padding: 36px 40px; }
.free-band h2 { color: #fff; }
.free-band strong { color: #fff; }
@media (max-width: 640px) { .free-band { grid-template-columns: 1fr; padding: 28px 22px; } .free-band .cover { width: 130px; } }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.topic:hover { border-color: var(--leaf); background: var(--mint); }
.topic-name { font: 700 1.1rem/1.2 var(--font-display); color: var(--forest-2); }
.topic-n { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr 1fr; } }

/* ---------- Shop ---------- */
.shop-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shop-top h1 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .925rem; }
.chip:hover { border-color: var(--leaf); }
.chip[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filters label:first-of-type { margin-top: 0; }
.link-clear { display: inline-block; margin-top: 16px; font-weight: 600; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .filters form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
  .filters label { margin-top: 0; font-size: .8rem; }
  .filters form > label:nth-of-type(1) { grid-column: 1; grid-row: 1; } .filters #f-cat { grid-column: 1; grid-row: 2; }
  .filters form > label:nth-of-type(2) { grid-column: 2; grid-row: 1; } .filters #f-level { grid-column: 2; grid-row: 2; }
  .filters form > label:nth-of-type(3) { grid-column: 3; grid-row: 1; } .filters #f-sort { grid-column: 3; grid-row: 2; }
  .filters .link-clear { grid-column: 1 / -1; }
}
.empty { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty p { color: var(--muted); }

/* ---------- Product ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.product-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.product-hero { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 24px 0 0; }
.facts div { border-left: 3px solid var(--mint-2); padding-left: 12px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.block { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.prose p { max-width: 68ch; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--forest-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { display: grid; place-items: center; color: #cfe6d7; padding: 20px; text-align: center; }
.lesson-list { list-style: none; padding: 0; margin: 0; counter-reset: l; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lesson-list li { counter-increment: l; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lesson-list li:first-child { border-top: 0; }
.lesson-list li > :first-child::before { content: counter(l) ". "; color: var(--muted); font-weight: 600; }
.lesson-list.compact li { padding: 12px 14px; font-size: .95rem; }
.lesson-list li.active { background: var(--mint); }
.lesson-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.lesson-list a:hover { color: var(--leaf-2); }
.tag { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--leaf-2); background: var(--mint); padding: 2px 8px; border-radius: 999px; }

.buy-box { position: sticky; top: 92px; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; box-shadow: 0 24px 40px -32px rgba(14,77,46,.45); }
.buy-price { font-size: 1.6rem; margin-bottom: 8px; }
.buy-price .price-now { font-family: var(--font-display); }
.buy-box form .btn { margin-top: 10px; }
.buy-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.buy-points { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.buy-points li { padding: 3px 0 3px 22px; position: relative; }
.buy-points li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
@media (max-width: 960px) {
  .product-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; order: -1; }
  .product-hero { grid-template-columns: 140px 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .product-hero { grid-template-columns: 1fr; } .product-hero .cover { width: 180px; }
  .checks { grid-template-columns: 1fr; }
}

/* ---------- Cart / checkout ---------- */
.line-items { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.li-info { display: flex; flex-direction: column; min-width: 0; }
.li-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.li-price { text-align: right; }
.summary { max-width: 380px; margin-left: auto; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-size: 1.15rem; }
.summary-row strong { font: 800 1.5rem var(--font-display); color: var(--forest); }
.summary .link-more { margin-top: 14px; }
@media (max-width: 560px) { .line-item { grid-template-columns: 56px 1fr; } .li-price { text-align: left; grid-column: 2; } .line-item form { grid-column: 2; } }

.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel-h { font-size: 1.15rem; margin-bottom: 14px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-layout .panel-h:not(:first-of-type) { margin-top: 32px; }
.order-summary { position: sticky; top: 92px; background: var(--mint); border-color: var(--mint-2); }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .order-summary { position: static; order: -1; } }
.bank { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 12px; }
.bank div { background: #fff; padding: 12px 14px; }
.bank dt { font-size: .8rem; color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; font-size: 1.02rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed #b9dcc4; border-radius: var(--r); background: var(--mint); text-align: center; cursor: pointer; margin: 0; font-weight: 500; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--leaf); }
.dropzone input { max-width: 100%; font: inherit; font-size: .9rem; }
.dz-text { font-weight: 700; color: var(--forest); }
.mini-items { list-style: none; padding: 0; margin: 0 0 8px; }
.mini-items li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--mint-2); font-size: .95rem; }
.summary-row.total { padding-top: 16px; }

.center-block { text-align: center; }
.center-block .lead { margin-left: auto; margin-right: auto; }
.success-mark { width: 72px; height: 72px; margin: 20px auto 24px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/36px no-repeat; box-shadow: 0 0 0 10px var(--mint); }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; }

/* ---------- Account ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 28px; overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current] { color: var(--forest); border-color: var(--leaf); }
.library { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lib-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); }
.lib-item .btn { margin: 0; }
@media (max-width: 760px) { .library { grid-template-columns: 1fr; } }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 700; background: var(--mint); padding: 12px 14px; white-space: nowrap; }
.table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge-paid { background: var(--mint); color: var(--leaf-2); }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-cancelled { background: #f3f4f3; color: var(--muted); }

/* Course player */
.player-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.lesson-h { font-size: 1.5rem; margin-top: 20px; }
.lesson-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.player-layout .panel { padding: 20px; }
@media (max-width: 900px) { .player-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: #bcd6c5; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: #e5f3ea; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--lime); }
.logo-light { color: #fff !important; display: inline-flex !important; }
.footer-note { margin-top: 12px; max-width: 34ch; }
.footer-h { font: 700 .95rem var(--font-body); color: #fff; letter-spacing: 0; margin-bottom: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* uploaded brand logo */
.logo-img { display: block; height: 34px; width: auto; }
.site-footer .logo-img { height: 32px; }
@media (max-width: 860px) { .site-header .logo-img { height: 30px; } }
