:root {
  --ink: #14213d;
  --text: #2b3445;
  --muted: #5f6b7d;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --line: #e3e8ef;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --accent: #f59e0b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --card: #ffffff;
  --input: #ffffff;
  --nav-bg: rgba(255,255,255,.92);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
a { color: var(--brand); }

.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; border: 2px solid var(--brand);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-small { padding: .35rem .9rem; font-size: .95rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.links { display: flex; align-items: center; gap: 1.4rem; }
.links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.links a:not(.btn):hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .2rem .6rem; cursor: pointer; }

/* hero */
.hero { background: linear-gradient(160deg, #ecfdf5 0%, #f4f7fb 55%, #fff 100%); padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .02em; margin: 0 0 .5rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.hc-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.dot.ok { background: #16a34a; } .dot.warn { background: var(--accent); }
.hc-bar { height: 8px; background: var(--soft); border-radius: 99px; margin-top: 1rem; overflow: hidden; }
.hc-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.hc-note { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 1.35rem; color: var(--ink); }
.stat span { color: var(--muted); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.sub { color: var(--muted); margin: 0 0 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .tag { align-self: flex-start; background: #fef3c7; color: #92400e; font-size: .8rem; font-weight: 600; padding: .1rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0 0 .8rem; }
.card ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--text); }
.card li { margin: .15rem 0; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card .foot .btn { white-space: nowrap; }
.price { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.price.ask { color: var(--muted); font-weight: 500; font-size: .95rem; }
.book-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; background: var(--soft); }
.empty { grid-column: 1 / -1; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; color: var(--muted); }

.subjects { margin-top: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: #ecfdf5; color: var(--brand-dark); border: 1px solid #a7f3d0; padding: .3rem .9rem; border-radius: 99px; font-weight: 500; }

.why-item { padding: 6px 4px; }
.why-item .icon { font-size: 1.8rem; }
.why-item p { color: var(--muted); margin: .2rem 0 0; }

.contact { background: var(--ink); color: #dbe3ef; }
.contact h2 { color: #fff; }
.contact .sub { color: #aab6c8; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 14px 16px; border-radius: 12px; color: #fff; text-decoration: none; }
.contact-item:hover { background: rgba(255,255,255,.12); }
.contact-item small { display: block; color: #aab6c8; }

.footer { background: #0d1628; color: #8c99ad; padding: 22px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { color: #8c99ad; }

.notice { background: var(--accent); color: #3b2300; text-align: center; font-weight: 600; padding: .45rem 1rem; font-size: .95rem; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: var(--card); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; background: var(--soft); }
.card.book .book-img { aspect-ratio: 1/1; object-fit: contain; }
.card .tag-blue { background: #dbeafe; color: #1e40af; }
.price s { color: #94a3b8; font-weight: 400; font-size: .9rem; margin-left: .2rem; }
.price em { font-style: normal; background: #dcfce7; color: #166534; font-size: .78rem; padding: .05rem .45rem; border-radius: 99px; margin-left: .2rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1.5rem; }
.filter { font: inherit; background: var(--card); border: 1px solid var(--line); color: var(--text); padding: .3rem 1rem; border-radius: 99px; cursor: pointer; }
.filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.more { text-align: center; margin-top: 2rem; }
.ci-icon { font-size: 1.4rem; }
.card.trainer { flex-direction: row; gap: 18px; align-items: flex-start; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-text { display: grid; place-items: center; background: #ecfdf5; color: var(--brand-dark); font-weight: 700; font-size: 1.6rem; border: 2px solid #a7f3d0; }
.role { color: var(--brand) !important; font-weight: 600; }
.soon { margin-top: 24px; background: linear-gradient(135deg, #eff6ff, #ecfdf5); border: 1px dashed #93c5fd; border-radius: var(--radius); padding: 20px 22px; }
.soon p { color: var(--muted); margin: 0; }

.search-row { margin: -1rem 0 1rem; }
.search-row input { font: inherit; width: 100%; max-width: 520px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.search-row input:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }

/* shop */
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { font: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; color: var(--ink); position: relative; font-weight: 500; }
.icon-btn:hover { border-color: var(--brand); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #3b2300; font-size: .75rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
button.btn { font: inherit; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: wait; }
dialog#modal { border: none; border-radius: 16px; padding: 28px 24px 24px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text); background: var(--card); }
dialog#modal::backdrop { background: rgba(13, 22, 40, .55); }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
#modal-body h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .25rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: var(--input); color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }
.form .btn { width: 100%; }
.form-error { color: #b91c1c; margin: 0; min-height: 1.2em; font-size: .95rem; }
.form-links { text-align: center; margin: .2rem 0 0; font-size: .95rem; }
.area { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; display: grid; gap: .3rem; }
.area label { display: flex; gap: .5rem; font-weight: 400; }
.area input { width: auto; }
.muted { color: var(--muted); font-size: .92rem; margin: .2rem 0; }
.cart-lines { display: grid; gap: .6rem; max-height: 50vh; overflow: auto; }
.cart-line { display: flex; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.cart-line img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.cl-info { flex: 1; display: grid; font-size: .95rem; line-height: 1.35; }
.cl-info small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button, .remove { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1rem; }
.remove { border: none; color: var(--muted); }
.cart-total { font-size: 1.1rem; margin: .8rem 0 .2rem; }
.order-row { display: flex; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.order-row small { color: var(--muted); }
.status { font-size: .8rem; padding: .05rem .5rem; border-radius: 99px; background: #fef3c7; color: #92400e; }
.status.s-delivered, .status.s-confirmed { background: #dcfce7; color: #166534; }
.status.s-cancelled { background: #fee2e2; color: #991b1b; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: 99px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: .4rem; }
  .logo { font-size: 1rem; gap: .4rem; min-width: 0; }
  .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { gap: .3rem; }
  .icon-btn { padding: .3rem .6rem; font-size: .9rem; }
  #account-btn { max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  h1 { font-size: 1.7rem; word-break: break-word; }
  .notice { font-size: .85rem; }
}

@media (max-width: 820px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 1rem; align-items: flex-start; }
  .links.open { display: flex; }
}
.pay { font-size: .75rem; padding: .05rem .45rem; border-radius: 99px; background: #f1f5f9; color: #475569; }
.pay.p-paid { background: #dcfce7; color: #166534; }
.pay.p-pending_verify { background: #e0e7ff; color: #3730a3; }
.pay.p-refunded { background: #fee2e2; color: #991b1b; }
.pay-box { border: 1px dashed #cbd5e1; border-radius: 10px; padding: .75rem; background: #f8fafc; }
.pay-box p { margin: 0 0 .5rem; }
/* checkout payment options as cards */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.pay-methods legend { grid-column: 1 / -1; }
.pay-methods label { display: flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .7rem; cursor: pointer; font-weight: 600; }
.pay-methods label:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.or-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
/* receipt */
.receipt { border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .92rem; background: var(--card); }
.rc-head { display: flex; align-items: center; gap: .6rem; border-bottom: 2px solid var(--brand); padding-bottom: .6rem; }
.rc-head img { width: 40px; height: 40px; border-radius: 8px; }
.rc-head small, .receipt small { display: block; color: var(--muted); font-size: .75rem; }
.rc-no { margin-left: auto; text-align: right; font-size: .8rem; color: var(--muted); }
.rc-no b { color: var(--text); font-size: 1.1rem; }
.rc-meta { display: flex; gap: 1rem; justify-content: space-between; margin: .6rem 0; flex-wrap: wrap; }
.rc-meta > div { flex: 1 1 140px; }
.rc-items { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.rc-items th, .rc-items td { padding: .35rem .2rem; text-align: left; border-bottom: 1px solid var(--line); }
.rc-items th:nth-child(n+2), .rc-items td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.rc-items tfoot td { border: none; }
.rc-total td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--text) !important; }
.rc-pay { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--soft); border-radius: 8px; padding: .5rem .7rem; }
.rc-foot { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; text-align: center; }
.rc-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
@media print {
  body.printing-receipt > *:not(#modal) { display: none !important; }
  body.printing-receipt #modal { position: static; box-shadow: none; width: 100%; max-height: none; padding: 0; }
  body.printing-receipt #modal-close, body.printing-receipt .rc-actions { display: none !important; }
  body.printing-receipt .receipt { border: none; }
}

/* buy now + add to cart */
.buy-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.toast-btn { margin-left: .6rem; background: var(--card); color: var(--ink); border: 0; border-radius: 99px; padding: .2rem .7rem; font: inherit; font-weight: 600; cursor: pointer; }
.co-items { list-style: none; padding: 0; margin: 0 0 .6rem; border: 1px solid var(--line); border-radius: 10px; }
.co-items li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.co-items li:last-child { border-bottom: 0; }
.copy-btn { border: 1px solid #cbd5e1; background: var(--card); border-radius: 6px; padding: .05rem .5rem; margin-left: .3rem; cursor: pointer; font: inherit; font-size: .85rem; }
.guest-note { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px; padding: .55rem .75rem; font-size: .92rem; margin: 0 0 .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.track-result { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-top: .8rem; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: .2rem 0 .7rem; }
.qr-box img { width: 220px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

/* ===== dark mode (html[data-theme=dark]) ===== */
html[data-theme="dark"] {
  --ink: #e8eef7;
  --text: #cdd6e3;
  --muted: #94a3b8;
  --bg: #0b1220;
  --soft: #131c2e;
  --line: #24314a;
  --brand: #2dd4bf;
  --brand-dark: #14b8a6;
  --card: #111a2b;
  --input: #0e1626;
  --nav-bg: rgba(11,18,32,.9);
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
html[data-theme="dark"] .btn { color: #04201d; }
html[data-theme="dark"] .btn-ghost { color: var(--brand); }
html[data-theme="dark"] .hero { background: linear-gradient(160deg, #0f2a2a 0%, #0f1729 55%, #0b1220 100%); }
html[data-theme="dark"] .chip, html[data-theme="dark"] .avatar-text { background: #0f2a2a; border-color: #1f4d48; color: #5eead4; }
html[data-theme="dark"] .card .tag, html[data-theme="dark"] .status { background: #3a2a0a; color: #fcd34d; }
html[data-theme="dark"] .card .tag-blue { background: #172554; color: #93c5fd; }
html[data-theme="dark"] .price em, html[data-theme="dark"] .status.s-delivered, html[data-theme="dark"] .status.s-confirmed,
html[data-theme="dark"] .pay.p-paid { background: #052e1a; color: #86efac; }
html[data-theme="dark"] .status.s-cancelled, html[data-theme="dark"] .pay.p-refunded { background: #3b0d0d; color: #fca5a5; }
html[data-theme="dark"] .pay { background: #1e293b; color: #cbd5e1; }
html[data-theme="dark"] .pay.p-pending_verify { background: #1e1b4b; color: #c7d2fe; }
html[data-theme="dark"] .soon { background: linear-gradient(135deg, #10203d, #0f2a2a); border-color: #1e3a8a; }
html[data-theme="dark"] .pay-box { background: #0e1626; border-color: #334155; }
html[data-theme="dark"] .guest-note { background: #0f2a2a; border-color: #1f4d48; }
html[data-theme="dark"] .copy-btn { border-color: #334155; color: var(--text); background: var(--input); }
html[data-theme="dark"] .form-error { color: #fca5a5; }
html[data-theme="dark"] .contact { background: #0f1729; }
html[data-theme="dark"] .footer { background: #070c16; }
html[data-theme="dark"] .toast { background: #e8eef7; color: #0b1220; }
html[data-theme="dark"] .toast-btn { background: #0b1220; color: #fff; }
html[data-theme="dark"] .badge { color: #3b2300; }
html[data-theme="dark"] .menu-btn { color: var(--ink); }
html[data-theme="dark"] .links { background: var(--bg); }
.logo-img, .qr-box img, .receipt img { background: #fff; }
@media print { html[data-theme="dark"] .receipt { background: #fff; color: #000; } }

/* language + theme switches in the nav */
.pref-btn { font: inherit; font-size: .85rem; font-weight: 700; background: var(--soft); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .3rem .65rem; cursor: pointer; line-height: 1.2; }
.pref-btn:hover { border-color: var(--brand); }

/* password field with show/hide */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: .2rem .35rem; color: var(--muted); }
.form-note { font-size: .9rem; color: var(--muted); margin: -.2rem 0 0; }
.form-ok { color: #15803d; margin: 0; font-size: .95rem; }
html[data-theme="dark"] .form-ok { color: #86efac; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* profile / account */
dialog#modal.wide { width: min(640px, calc(100vw - 24px)); }
.acc-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.acc-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
html[data-theme="dark"] .acc-avatar { color: #04201d; }
.acc-head h2 { margin: 0 !important; font-size: 1.25rem !important; }
.acc-head small { color: var(--muted); display: block; line-height: 1.4; word-break: break-all; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.acc-stats div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.acc-stats b { display: block; font-size: 1.15rem; color: var(--ink); }
.acc-stats span { font-size: .8rem; color: var(--muted); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tab { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: .45rem .8rem; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.acc-section h3 { font-size: 1.05rem; margin: 1.1rem 0 .6rem; }
.acc-section h3:first-child { margin-top: 0; }
.acc-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.acc-actions .btn { flex: 1 1 auto; text-align: center; }
.btn-danger { background: transparent; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
html[data-theme="dark"] .btn-danger { color: #fca5a5; border-color: #7f1d1d; }
html[data-theme="dark"] .btn-danger:hover { background: #3b0d0d; }
.order-list { display: grid; gap: .6rem; max-height: 52vh; overflow: auto; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--card); }
.oc-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.oc-items { font-size: .9rem; color: var(--muted); margin: .35rem 0; line-height: 1.45; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.steps { display: flex; gap: .25rem; margin: .45rem 0 .2rem; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--brand); }
.steps-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.empty-box { text-align: center; padding: 1.4rem 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .acc-stats b { font-size: 1rem; }
  .pref-btn { padding: .25rem .5rem; font-size: .8rem; }
}

@media (max-width: 520px) { .hide-sm { display: none; } }
/* phones: keep the whole top bar on screen (logo picture stays, name hides) */
@media (max-width: 560px) {
  #brand-name { display: none; }
  .nav-inner { gap: .3rem; }
  .nav-actions { gap: .25rem; margin-left: auto; }
  .menu-btn { order: 3; margin-left: .25rem; padding: .15rem .5rem; }
  .icon-btn { padding: .28rem .55rem; }
  #account-btn { max-width: 84px; }
}

/* ===== cart drawer ===== */
body.no-scroll { overflow: hidden; }
.cd-bg { position: fixed; inset: 0; background: rgba(13, 22, 40, .5); z-index: 60; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--card); z-index: 61; display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .25s ease; }
.cart-drawer.open { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cd-head h2 { font-size: 1.15rem; margin: 0; }
.cd-head small { color: var(--muted); font-weight: 500; }
.cd-close { background: var(--soft); border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--ink); font-size: 1rem; }
.cd-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.cd-line { display: flex; gap: .8rem; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cd-line img, .cd-ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); flex-shrink: 0; display: grid; place-items: center; font-size: 1.6rem; }
.cd-line.just-added { animation: cdflash 1.4s ease; }
@keyframes cdflash { 0%, 40% { background: color-mix(in srgb, var(--brand) 14%, transparent); } 100% { background: transparent; } }
.cd-info { flex: 1; min-width: 0; display: grid; gap: .15rem; line-height: 1.35; }
.cd-info b { font-size: .95rem; color: var(--ink); }
.cd-info small { color: var(--muted); font-size: .82rem; }
.cd-row { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }
.cd-price { font-size: .98rem; }
.cd-del { background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .6; padding: .2rem; }
.cd-del:hover { opacity: 1; }
.cd-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: grid; gap: .45rem; background: var(--soft); }
.cd-sum { display: flex; justify-content: space-between; gap: .6rem; font-size: .95rem; }
.cd-sum.muted { margin: 0; }
.cd-checkout { width: 100%; padding: .8rem; font-size: 1.05rem; margin-top: .3rem; }
.cd-continue { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: .2rem; }
.cd-trust { text-align: center; color: var(--muted); font-size: .8rem; margin: .2rem 0 0; }
.cd-empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.cd-empty-ic { font-size: 3rem; }
.cd-empty p { font-size: 1.1rem; color: var(--ink); margin: .4rem 0 .1rem; font-weight: 600; }
.cd-empty-btns { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.qty button { color: var(--ink); background: var(--input); }
#cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ===== checkout (wide modal, form + summary) ===== */
dialog#modal.checkout { width: min(980px, calc(100vw - 20px)); padding: 22px 22px 20px; }
.co-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.co-steps li { display: flex; align-items: center; gap: .35rem; }
.co-steps li:not(:last-child)::after { content: ""; width: 26px; height: 2px; background: var(--line); margin-left: .35rem; }
.co-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; }
.co-steps li.on { color: var(--ink); font-weight: 600; }
.co-steps li.on span, .co-steps li.done span { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .co-steps li.on span, html[data-theme="dark"] .co-steps li.done span { color: #04201d; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.co-form h2 { margin: 0 0 .2rem !important; }
.co-h { font-size: 1rem; margin: .6rem 0 -.2rem; color: var(--ink); }
.co-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.co-area { grid-template-columns: 1fr 1fr !important; }
.pay-methods label span { display: grid; line-height: 1.3; }
.pay-methods label small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-submit { padding: .85rem; font-size: 1.05rem; }
.co-summary { position: sticky; top: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: .5rem; }
.co-sum-head { display: flex; justify-content: space-between; align-items: center; }
.co-sum-head a { font-size: .9rem; }
.co-sum-lines { display: grid; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); max-height: 300px; overflow: auto; }
.co-sum-line { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.co-thumb { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.co-thumb img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.co-thumb.cd-ph { width: 52px; height: 52px; font-size: 1.3rem; }
.co-thumb i { position: absolute; top: -7px; right: -7px; background: var(--muted); color: #fff; font-style: normal; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
.co-t { flex: 1; min-width: 0; line-height: 1.3; }
.co-t small { display: block; color: var(--muted); font-size: .78rem; }
.co-total { font-size: 1.15rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.co-total b { color: var(--ink); }
.co-done { text-align: center; padding: 10px 6px; }
.co-done-ic { font-size: 3.2rem; }
.co-done .rc-actions { justify-content: center; }
.oc-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-2 { grid-template-columns: 1fr; }
  dialog#modal.checkout { padding: 18px 14px; }
}

/* promo code + stock + sold count */
.promo-box { display: flex; gap: .4rem; margin-top: .3rem; }
.promo-box input { flex: 1; min-width: 0; font: inherit; padding: .45rem .65rem; border: 1px dashed var(--brand); border-radius: 10px; background: var(--input); color: var(--text); }
.promo-msg { margin: 0; font-size: .85rem; min-height: 1em; }
.promo-msg.ok { color: #15803d; }
.promo-msg.bad { color: #b91c1c; }
html[data-theme="dark"] .promo-msg.ok { color: #86efac; }
html[data-theme="dark"] .promo-msg.bad { color: #fca5a5; }
.co-discount { color: #15803d; }
html[data-theme="dark"] .co-discount { color: #86efac; }
.low-stock { color: #b45309; font-weight: 600; margin: -.3rem 0 .5rem; display: block; }
.sold-count { color: var(--muted); font-size: .82rem; margin: -.3rem 0 .5rem; display: block; }
.card.sold-out { opacity: .7; }

/* ===== contact section (v2) ===== */
.contact { background: linear-gradient(160deg, #0f2a2a 0%, #14213d 60%, #0d1628 100%); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .18), transparent 70%); top: -120px; right: -120px; }
.contact-inner { position: relative; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.contact .eyebrow { color: #5eead4; }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact .sub { color: #c3cfdf; font-size: 1.05rem; }
.contact-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.4rem; }
.contact-cta .btn { padding: .7rem 1.25rem; }
.contact-cta .cta-wa { background: #25d366; border-color: #25d366; color: #052e16; }
.contact-cta .cta-wa:hover { background: #1ebe5b; }
.contact-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.contact-cta .btn-ghost:hover { background: rgba(255,255,255,.08); }
.contact-meta { display: grid; gap: .7rem; }
.cm-item { display: flex; gap: .7rem; align-items: flex-start; color: #e2e8f0; }
.cm-item > span { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.cm-item small { display: block; color: #94a3b8; font-size: .8rem; }
.contact-list { grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-item { position: relative; padding: 16px; border-radius: 14px; transition: transform .15s, background .15s, border-color .15s; }
.contact-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.contact-item .ci-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: #fff; background: #334155; flex-shrink: 0; font-family: Arial, sans-serif; }
.ci-go { margin-left: auto; color: #94a3b8; transition: transform .15s; }
.contact-item:hover .ci-go { transform: translateX(3px); color: #fff; }
.ci-fb .ci-icon, .f-soc.ci-fb { background: #1877f2; }
.ci-ms .ci-icon, .f-soc.ci-ms { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.ci-wa .ci-icon, .f-soc.ci-wa { background: #25d366; }
.ci-yt .ci-icon, .f-soc.ci-yt { background: #ff0000; }
.ci-dc .ci-icon, .f-soc.ci-dc { background: #5865f2; }
.ci-ph .ci-icon { background: #0f766e; }
.ci-em .ci-icon { background: #f59e0b; }
.ci-sh .ci-icon { background: #7c3aed; }

/* ===== footer (v2) ===== */
.footer { background: #0b1220; color: #94a3b8; padding: 48px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.f-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.2rem; margin-bottom: .7rem; }
.f-brand img { border-radius: 10px; background: #fff; }
.f-about p { margin: 0 0 1rem; max-width: 42ch; line-height: 1.7; }
.f-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.f-soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; font-family: Arial, sans-serif; transition: transform .15s, filter .15s; }
.f-soc:hover { transform: translateY(-2px); filter: brightness(1.1); }
.footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.f-links a, .f-links span { color: #94a3b8; text-decoration: none; }
.f-links a:hover { color: #5eead4; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; border-top: 1px solid #1e293b; padding: 18px 20px; font-size: .88rem; }
.f-credit a { color: #5eead4; font-weight: 600; text-decoration: none; }
.f-credit a:hover { text-decoration: underline; }
html[data-theme="dark"] .footer { background: #060a13; }
@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; text-align: center; }
}

/* ===== product details popup ===== */
[data-product] { cursor: pointer; }
.p-title:hover { color: var(--brand); }
dialog#modal.product { width: min(960px, calc(100vw - 20px)); padding: 24px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
.pd-main { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-ph { font-size: 4rem; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb { width: 58px; height: 58px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.pd-thumb.on { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-kind { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--brand); background: var(--soft); border-radius: 99px; padding: .1rem .7rem; margin-bottom: .4rem; }
.pd-info h2 { font-size: 1.45rem !important; margin: 0 0 .5rem !important; }
.pd-price { font-size: 1.5rem; margin-bottom: .4rem; }
.pd-price b { color: var(--ink); }
.pd-price s { color: var(--muted); font-size: 1rem; margin-left: .3rem; }
.pd-price em { font-style: normal; font-size: .85rem; background: #dcfce7; color: #166534; padding: .1rem .5rem; border-radius: 99px; margin-left: .3rem; vertical-align: middle; }
html[data-theme="dark"] .pd-price em { background: #052e1a; color: #86efac; }
.pd-summary { color: var(--muted); margin: .4rem 0; }
.pd-points { margin: .4rem 0 .8rem; padding-left: 1.1rem; }
.pd-points li { margin: .15rem 0; }
.pd-buy { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 .4rem; }
.pd-buy .btn { flex: 1 1 160px; text-align: center; }
.pd-trust { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.pd-section { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.pd-section h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.pd-desc { line-height: 1.75; }
.pd-desc h3 { font-size: 1.05rem; margin: .8rem 0 .3rem; }
.pd-desc ul, .pd-desc ol { padding-left: 1.2rem; }
.pd-desc blockquote { border-left: 3px solid var(--brand); margin: .6rem 0; padding: .2rem .8rem; color: var(--muted); }
.pd-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pd-table th, .pd-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-table th { width: 38%; color: var(--muted); font-weight: 500; background: var(--soft); }
.pd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; gap: 16px; }
  dialog#modal.product { padding: 18px 14px; }
}

/* sort menu, terms, chat button */
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.search-row input { flex: 1 1 260px; }
.sort-select { font: inherit; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--text); }
.terms-row { display: flex !important; gap: .5rem; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; }
.terms-row input { width: auto !important; margin-top: .3rem; }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: grid; justify-items: end; gap: .6rem; }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s; }
.chat-btn:hover { transform: scale(1.06); }
.chat-menu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: .5rem; min-width: 210px; }
.chat-menu p { margin: 0 0 .2rem; font-weight: 600; color: var(--ink); }
.chat-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.chat-opt span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.chat-ms { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.chat-wa { background: #25d366; color: #052e16; }
.ci-ig .ci-icon, .f-soc.ci-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.ci-li .ci-icon, .f-soc.ci-li { background: #0a66c2; }
.ci-tt .ci-icon, .f-soc.ci-tt { background: #111; }
.ci-tg .ci-icon, .f-soc.ci-tg { background: #229ed9; }
.ci-dz .ci-icon, .f-soc.ci-dz { background: #f57224; }
.ci-az .ci-icon, .f-soc.ci-az { background: #232f3e; }
.ci-wm .ci-icon, .f-soc.ci-wm { background: #0071ce; }

/* trainers: photo, badge, clickable name, social buttons */
.avatar-link { flex-shrink: 0; border-radius: 50%; }
.avatar-link:hover .avatar, .avatar-link:focus-visible .avatar { box-shadow: 0 0 0 3px var(--brand); }
.card.trainer .avatar { border: 3px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); }
.person-name { color: inherit; text-decoration: none; }
.person-name:hover { color: var(--brand); text-decoration: underline; }
.person-badge { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand-dark); background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 99px; padding: 1px 10px; margin-bottom: 4px; }
.person-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--text); border: 1px solid var(--line, #e5e7eb); border-radius: 99px; padding: 4px 12px 4px 4px; background: var(--card, #fff); }
.pl span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; background: #64748b; }
.pl-facebook span { background: #1877f2; } .pl-linkedin span { background: #0a66c2; } .pl-youtube span { background: #ff0000; } .pl-instagram span { background: #d62976; } .pl-website span { background: var(--brand); }
.pl:hover { border-color: var(--brand); color: var(--brand); }
.soon.has-img { display: flex; gap: 18px; align-items: center; }
.soon.has-img img { width: 110px; height: 150px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 14px rgba(15, 23, 42, .15); flex-shrink: 0; }
html[data-theme="dark"] .person-badge { background: #0f2a2a; border-color: #1f4d48; color: #5eead4; }
html[data-theme="dark"] .card.trainer .avatar { border-color: #1e293b; }
@media (max-width: 520px) { .soon.has-img img { width: 80px; height: 110px; } }
.card-img { object-position: top; } /* tall posters show their title */

/* courses in groups: pre-recorded / enroll / free programs */
.group-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.group-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; text-decoration: none; }
.group-jump a b { background: var(--soft); color: var(--brand-dark); border-radius: 99px; padding: 0 8px; font-size: .85rem; }
.group-jump a:hover { border-color: var(--brand); color: var(--brand); }
.course-group { margin-top: 30px; scroll-margin-top: 90px; }
.group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.group-head h3 { margin: 0; font-size: 1.35rem; }
.group-head p { margin: 0; color: var(--muted); }
#g-free .card { background: linear-gradient(180deg, #f0fdf4, var(--card) 40%); border-color: #bbf7d0; }
html[data-theme="dark"] #g-free .card { background: linear-gradient(180deg, #0b2a1c, var(--card) 40%); border-color: #14532d; }

/* order tracking */
.trk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trk-recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); margin: 4px 0 10px; }
.chip-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 3px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.trk { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.trk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.trk-top > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.trk-top b { font-size: 1.4rem; }
.trk-top small { color: var(--muted); }
.trk-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.trk-steps { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; }
.trk-steps li { flex: 1; text-align: center; position: relative; font-size: .85rem; color: var(--muted); }
.trk-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.trk-steps li:first-child::before { display: none; }
.trk-steps li.done::before { background: var(--brand); }
.trk-steps .dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: var(--card); border: 3px solid var(--line); font-weight: 800; color: var(--muted); }
.trk-steps li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.trk-steps li.cur .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.trk-steps b { display: block; color: var(--text); font-weight: 600; }
.trk-steps li.done b { color: var(--brand-dark); }
.trk-steps small { display: block; min-height: 1.2em; font-size: .75rem; }
.trk-next { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.trk-cancel { background: #fef2f2; color: #991b1b; border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.trk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trk-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.trk-box h4 { margin: 0 0 8px; font-size: .95rem; }
.trk-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.trk-line.tot { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); margin-top: 4px; padding-top: 6px; }
.trk-line.due { color: #b91c1c; font-weight: 700; }
.trk-tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 230px; overflow: auto; }
.trk-tl li { display: flex; gap: 10px; align-items: flex-start; }
.trk-tl li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: .9rem; }
.trk-tl b { display: block; font-size: .9rem; font-weight: 600; }
.trk-tl small { color: var(--muted); font-size: .8rem; }
.trk-addr { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.trk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trk-cid { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
html[data-theme="dark"] .trk-cancel { background: #3b0d0d; color: #fca5a5; }
@media (max-width: 640px) { .trk-grid, .trk-fields { grid-template-columns: 1fr; } .trk-steps { font-size: .78rem; } }

/* ---------- editable homepage: hero image, banner slider, trust strip, upcoming, reviews, FAQ, payments ---------- */
section[hidden], .links a[hidden], .f-links a[hidden] { display: none !important; }
.hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); }
.banners-sec { padding-top: 26px; padding-bottom: 0; }
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, .14); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 16 / 7; background: var(--soft); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0f172a; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; transition: width .2s; }
.sl-dots button.on { width: 26px; background: #fff; }
.trust-sec { padding: 22px 0 0; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.trust-item span { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 1.2rem; }
.trust-item b { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.up-card { display: flex; flex-direction: column; }
.up-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .8rem; background: var(--soft); }
.reviews .review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: #f59e0b; letter-spacing: 2px; }
.review blockquote { margin: 0; color: var(--text); line-height: 1.7; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption img, .rv-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #ecfdf5; color: var(--brand-dark); font-weight: 700; }
.review figcaption b { display: block; } .review figcaption small { color: var(--muted); }
.wrap.narrow { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
/* real brand logos */
.ci-icon svg, .f-soc svg { width: 20px; height: 20px; display: block; }
.ci-icon img, .f-soc img { width: 22px; height: 22px; object-fit: contain; display: block; }
.contact-item .ci-icon { background: var(--ic, var(--brand)) !important; color: #fff !important; }
.f-soc { background: var(--ic, var(--brand)) !important; color: #fff !important; display: inline-grid !important; place-items: center; transition: transform .15s; }
.f-soc:hover { transform: translateY(-2px); }
.ic-letter { font-weight: 800; font-size: 1rem; line-height: 1; }
.f-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 4px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; opacity: .95; }
.pay-b { border-radius: 6px; padding: 3px 10px; font-size: .8rem; color: #fff; }
.pay-b.bkash { background: #e2136e; } .pay-b.nagad { background: #ec1c24; } .pay-b.qr { background: #0f766e; } .pay-b.cod { background: #475569; }
@media (max-width: 640px) { .slide { aspect-ratio: 16 / 9; } .sl-nav { display: none; } }

/* line icons (assets/icons.js) instead of emoji */
.aic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn .aic, .icon-btn .aic, .pref-btn .aic { width: 1.1em; height: 1.1em; }
.why-item .icon .aic { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.8; }
.trust-item span .aic { width: 20px; height: 20px; color: var(--brand); }
.chat-btn .aic { width: 26px; height: 26px; }
.chat-opt span .aic { width: 18px; height: 18px; }
.trk-tl li > span .aic { width: 15px; height: 15px; color: var(--brand); }
.group-jump .aic, .group-head h3 .aic { color: var(--brand); }
.group-head h3 .aic { width: 1em; height: 1em; }
.cm-item > span .aic { width: 20px; height: 20px; color: var(--brand); }
.f-contact .aic { color: #5eead4; margin-right: 2px; }
.empty .aic, .sold-count .aic { color: #f97316; }
.aic-r { margin-inline-end: .38em; }
.aic-l { margin-inline-start: .3em; }

/* payment logos */
.pay-opt { display: inline-flex; align-items: center; gap: 10px; }
.pay-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; flex: none; }
.pay-cod { display: inline-grid; place-items: center; color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.pay-cod .aic { width: 20px; height: 20px; }
.f-pay { gap: 10px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0f172a; border-radius: 8px; padding: 4px 10px 4px 5px; font-size: .82rem; font-weight: 700; }
.pay-chip img { border-radius: 5px; object-fit: contain; }
.pay-chip .aic { width: 20px; height: 20px; color: #15803d; }

/* hero picture (Website editor -> Hero) */
.hero-img { width: 100%; height: auto; max-height: 470px; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .16); display: block; }
@media (max-width: 860px) { #hero-side { margin-top: 18px; } .hero-img { max-height: 340px; } }

/* phones: two products per row */
@media (max-width: 640px) {
  #book-list.grid, #course-list .grid, .grid.upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #book-list .card, #course-list .card, .grid.upcoming .card { padding: 10px; border-radius: 12px; }
  #book-list .card h3, #course-list .card h3 { font-size: .92rem; line-height: 1.35; }
  #book-list .card p, #course-list .card p, #course-list .card ul, #book-list .card .author { display: none; }
  #book-list .card .foot, #course-list .card .foot { flex-direction: column; align-items: stretch; gap: 6px; }
  #book-list .buy-btns, #course-list .buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  #book-list .buy-btns .btn, #course-list .buy-btns .btn, #course-list .foot > .btn { padding: 7px 6px; font-size: .8rem; justify-content: center; }
  #book-list .price, #course-list .price { font-size: .95rem; }
  #course-list .card-img { aspect-ratio: 4 / 3; }
  .tag { font-size: .68rem; }
}

.status.s-on_hold { background: #fffbeb; color: #b45309; } .status.s-returned { background: #faf5ff; color: #7e22ce; }

/* ===== site search (every page) ===== */
.srch-open { font: inherit; display: inline-flex; align-items: center; gap: .45rem; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; color: var(--muted); cursor: pointer; min-width: 210px; }
.srch-open:hover { border-color: var(--brand); color: var(--ink); }
.srch-open .srch-ph { flex: 1; text-align: left; font-size: .92rem; white-space: nowrap; }
.srch-open kbd { font: 600 .72rem/1 system-ui, sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .15rem .35rem; background: var(--card); color: var(--muted); }
@media (max-width: 1080px) { .srch-open { min-width: 0; } .srch-open .srch-ph, .srch-open kbd { display: none; } }
html.srch-lock { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 60; background: rgba(13, 22, 40, .55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 14px 14px; }
.srch-panel { width: min(640px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.3); overflow: hidden; }
.srch-bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--brand); }
.srch-bar .aic { width: 22px; height: 22px; }
.srch-bar input { flex: 1; font: inherit; font-size: 1.08rem; border: none; outline: none; background: transparent; color: var(--ink); min-width: 0; }
.srch-bar input::-webkit-search-cancel-button { display: none; }
.srch-x { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--muted); padding: .2rem .45rem; line-height: 1; }
.srch-out { overflow: auto; padding: .4rem .5rem .8rem; }
.srch-h { margin: .7rem .6rem .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.srch-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.srch-item:hover, .srch-item.on { background: var(--soft); }
.srch-item.on { outline: 2px solid #99f6e4; }
.srch-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; background: var(--soft); }
.srch-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #ecfdf5; color: var(--brand); }
.srch-tx { flex: 1; min-width: 0; display: grid; }
.srch-tx b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-tx small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-item em { font-style: normal; font-weight: 700; color: var(--brand); white-space: nowrap; }
.srch-empty { padding: 1.4rem 1rem; text-align: center; color: var(--muted); margin: 0; }
html[data-theme="dark"] .srch-ic { background: #0f2a2a; }

/* ===== stars ===== */
.stars { display: inline-flex; gap: 1px; line-height: 1; font-size: 1rem; }
.stars i { font-style: normal; color: #d1d5db; }
.stars i.on { color: #f59e0b; }
.stars i.half { background: linear-gradient(90deg, #f59e0b 50%, #d1d5db 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.lg { font-size: 1.35rem; }
.stars-sm { display: block; font-size: .82rem; color: var(--muted); margin: -.2rem 0 .4rem; }
.stars-sm b { color: #b45309; font-weight: 700; }
.p-title a { color: inherit; text-decoration: none; }
.p-title a:hover { color: var(--brand); }
html[data-theme="dark"] .stars i:not(.on):not(.half) { color: #374151; }

/* ===== pages on page.html ===== */
.page-main { min-height: 70vh; padding: 18px 0 60px; }
.page-loading { min-height: 60vh; background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: pgl 1.2s infinite; border-radius: 16px; margin-top: 10px; }
@keyframes pgl { to { background-position: -200% 0; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); margin: 6px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.pp-missing { text-align: center; padding: 80px 20px; }

/* product page */
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.pp-gallery { position: sticky; top: 84px; }
.pp-main { position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; }
.pp-ph { font-size: 4rem; color: var(--brand); }
.pp-ph .aic { width: 72px; height: 72px; }
.pp-ph.sm .aic { width: 40px; height: 40px; }
.pp-off { position: absolute; top: 14px; left: 14px; background: #dc2626; color: #fff; font-weight: 700; font-size: .9rem; padding: .2rem .65rem; border-radius: 99px; }
.pp-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; padding-bottom: 4px; }
.pp-thumb { flex: none; width: 68px; height: 68px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; background: var(--soft); cursor: pointer; }
.pp-thumb.on { border-color: var(--brand); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.pp-badges > span { font-size: .8rem; font-weight: 600; padding: .15rem .65rem; border-radius: 99px; }
.pp-kind { background: #ccfbf1; color: #115e59; }
.pp-badges .tag { background: #fef3c7; color: #92400e; }
.pp-dig { background: #dbeafe; color: #1e40af; display: inline-flex; align-items: center; gap: .25rem; }
.pp-info h1 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin-bottom: .35rem; }
.pp-author { margin: 0 0 .4rem; color: var(--muted); }
.pp-author b { color: var(--ink); }
.pp-rating { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.pp-rating:hover span { color: var(--brand); text-decoration: underline; }
.pp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; margin: .2rem 0 .6rem; }
.pp-price b { font-size: 2rem; color: var(--brand); line-height: 1.1; }
.pp-price s { color: var(--muted); font-size: 1.1rem; }
.pp-price em { font-style: normal; background: #dcfce7; color: #166534; font-weight: 700; font-size: .85rem; padding: .15rem .6rem; border-radius: 99px; }
.pp-summary { margin: .6rem 0; }
.pp-points { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .3rem; }
.pp-points li { display: flex; gap: .4rem; align-items: baseline; }
.pp-points .aic { color: var(--brand); flex: none; }
.pp-buy { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.pp-buy .btn { flex: 1 1 200px; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.pp-trust { list-style: none; margin: 0 0 1rem; padding: .9rem 1rem; display: grid; gap: .45rem; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; font-size: .93rem; }
.pp-trust li { display: flex; gap: .55rem; align-items: center; }
.pp-trust .aic { color: var(--brand); flex: none; width: 19px; height: 19px; }
.pp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); }
.pp-share a, .pp-share button { font: inherit; font-size: .85rem; text-decoration: none; padding: .25rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.pp-share .sh-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.pp-share .sh-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.pp-share .sh-copy:hover { border-color: var(--brand); color: var(--brand); }
.pp-tabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: .3rem; overflow-x: auto; margin: 36px 0 8px; padding: .5rem 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.pp-tabs a { flex: none; padding: .4rem .95rem; border-radius: 99px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.pp-tabs a:hover { background: var(--soft); color: var(--brand); }
.pp-sec { scroll-margin-top: 130px; padding: 22px 0 6px; }
.pp-sec h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.pp-desc { max-width: 78ch; }
.pp-video { margin-top: 1rem; aspect-ratio: 16 / 9; max-width: 760px; border-radius: 14px; overflow: hidden; background: #000; }
.pp-video iframe { width: 100%; height: 100%; border: 0; }
.pp-table { width: 100%; max-width: 760px; border-collapse: collapse; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.pp-table th, .pp-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-table th { width: 34%; background: var(--soft); color: var(--ink); font-weight: 600; }
.pp-table tr:last-child th, .pp-table tr:last-child td { border-bottom: 0; }
.pp-steps { margin: 0 0 .6rem; padding-left: 1.3rem; display: grid; gap: .35rem; max-width: 760px; }
.pp-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pp-rel-item { display: grid; gap: .3rem; align-content: start; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: transform .15s, box-shadow .15s; }
.pp-rel-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pp-rel-item img, .pp-rel-item .pp-ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.pp-rel-item b { color: var(--ink); font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-rel-item span { color: var(--brand); font-weight: 700; font-size: .92rem; }
.pp-sticky { display: none; }
@media (max-width: 860px) {
  .pp-top { grid-template-columns: 1fr; gap: 20px; }
  .pp-gallery { position: static; }
  .pp-main { aspect-ratio: 4 / 3; }
  .pp-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-sticky:not(:empty) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .pp-sticky div { display: grid; line-height: 1.2; }
  .pp-sticky b { color: var(--brand); font-size: 1.2rem; }
  .pp-sticky s { color: var(--muted); font-size: .82rem; }
  .pp-sticky .btn { flex: 1; max-width: 260px; text-align: center; display: inline-flex; justify-content: center; align-items: center; gap: .3rem; }
  .page-main { padding-bottom: 96px; }
}
html[data-theme="dark"] .pp-kind { background: #0f3b37; color: #5eead4; }
html[data-theme="dark"] .pp-dig { background: #172554; color: #93c5fd; }
html[data-theme="dark"] .pp-badges .tag { background: #3a2a0a; color: #fcd34d; }
html[data-theme="dark"] .pp-price em { background: #052e16; color: #86efac; }

/* reviews */
.rv-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.rv-avg { display: grid; justify-items: center; gap: .2rem; min-width: 120px; }
.rv-avg b { font-size: 2.8rem; line-height: 1; color: var(--ink); }
.rv-avg small { color: var(--muted); }
.rv-dist { display: grid; gap: .3rem; }
.rv-dist div { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 2rem; gap: .5rem; align-items: center; font-size: .88rem; color: var(--muted); }
.rv-dist i { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rv-dist em { display: block; height: 100%; background: #f59e0b; border-radius: 99px; }
.rv-cta { display: grid; gap: .4rem; justify-items: start; max-width: 260px; }
.rv-cta p { margin: 0; font-size: .93rem; }
.rv-form { margin: 16px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 680px; }
.rv-form .row-end { display: flex; justify-content: flex-end; gap: .5rem; }
.rv-form .row-end .btn { width: auto; }
.rv-pick { display: flex; gap: .15rem; }
.rv-pick button { font-size: 2rem; line-height: 1; background: none; border: none; cursor: pointer; color: #d1d5db; padding: 0 .1rem; transition: transform .1s; }
.rv-pick button:hover { transform: scale(1.15); }
.rv-pick button.on { color: #f59e0b; }
.rv-list { display: grid; gap: 12px; margin-top: 18px; max-width: 860px; }
.rv-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--card); }
.rv-head { display: flex; align-items: center; gap: .7rem; }
.rv-head > div { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.rv-head b { color: var(--ink); }
.rv-head small { color: var(--muted); font-size: .82rem; }
.rv-av { width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.rv-ver { display: inline-flex; align-items: center; gap: .2rem; font-size: .76rem; font-weight: 600; color: #15803d; background: #dcfce7; padding: .05rem .5rem; border-radius: 99px; }
.rv-item h4 { margin: .6rem 0 .1rem; color: var(--ink); font-size: 1rem; }
.rv-item p { margin: .35rem 0 0; white-space: pre-line; }
.rv-reply { margin-top: .7rem; padding: .6rem .9rem; border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 10px 10px 0; font-size: .93rem; }
.rv-reply b { color: var(--brand); font-size: .85rem; }
.rv-reply p { margin: .15rem 0 0; }
.rv-none { padding: 10px 2px; }
@media (max-width: 720px) {
  .rv-sum { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px; }
  .rv-cta { grid-column: 1 / -1; max-width: none; }
  .rv-avg { min-width: 90px; }
  .rv-avg b { font-size: 2.2rem; }
}
html[data-theme="dark"] .rv-ver { background: #052e16; color: #86efac; }
html[data-theme="dark"] .rv-pick button:not(.on) { color: #374151; }
.pp-save { margin: -.2rem 0 .6rem; color: #15803d; font-weight: 600; font-size: .95rem; }
.pp-incl { margin: .8rem 0 0; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: 14px; }
.pp-incl h3 { font-size: 1rem; margin: 0 0 .35rem; }
.pp-incl .pp-points { margin: 0; }
.pp-trust li > span b { color: var(--ink); font-weight: 600; }
.pp-people { display: grid; gap: 14px; max-width: 860px; }
.pp-person { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pp-person img, .pp-person .rv-av { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; font-size: 1.8rem; }
.pp-person b { display: block; color: var(--ink); font-size: 1.08rem; }
.pp-person small { display: block; color: var(--brand); font-weight: 600; }
.pp-person p { margin: .35rem 0; font-size: .95rem; }
.pp-person a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.pp-faq { display: grid; gap: 8px; max-width: 860px; }
.pp-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; }
.pp-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.pp-faq details[open] summary::after { content: "−"; }
.pp-faq details p { margin: 0 0 14px; color: var(--text); }
@media (max-width: 560px) { .pp-person { flex-direction: column; } .pp-person img, .pp-person .rv-av { width: 72px; height: 72px; } }
html[data-theme="dark"] .pp-save { color: #86efac; }

/* checkout: change quantities in the summary, email typo help, savings, next steps */
.co-qty { display: flex; align-items: center; gap: .25rem; margin-top: .3rem; }
.co-qty button { font: inherit; width: 24px; height: 24px; line-height: 1; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.co-qty button:disabled { opacity: .4; cursor: default; }
.co-qty > span { min-width: 1.4rem; text-align: center; font-size: .85rem; }
.co-qty .co-rm { width: auto; height: auto; border: 0; background: none; color: var(--muted); font-size: .78rem; text-decoration: underline; margin-left: .35rem; }
.co-qty .co-rm:hover { color: #b91c1c; }
.co-t small { display: block; color: var(--muted); font-size: .78rem; }
.co-mail { margin: 0; font-size: .92rem; color: var(--muted); }
.co-mail b { color: var(--ink); word-break: break-all; }
.mail-fix { margin: -.4rem 0 0; font-size: .88rem; color: #b45309; }
.co-help { margin: 0; text-align: center; font-size: .88rem; color: var(--muted); }
.co-help a { font-weight: 600; }
.co-save { color: #15803d; font-size: .9rem; }
.co-save b { color: #15803d; }
.co-next { margin-top: .4rem; padding: .7rem .8rem; border-radius: 10px; background: var(--card); border: 1px dashed var(--line); font-size: .85rem; }
.co-next b { color: var(--ink); }
.co-next ol { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .15rem; color: var(--muted); }
html[data-theme="dark"] .co-save, html[data-theme="dark"] .co-save b { color: #86efac; }
html[data-theme="dark"] .mail-fix { color: #fcd34d; }
@media (max-width: 860px) { body:has(.pp-sticky:not(:empty)) .chat-fab { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* account -> my orders: download buttons */
.oc-dl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0; padding: .55rem .7rem; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.oc-dl > b { width: 100%; font-size: .85rem; color: #065f46; }
.dl-btn { display: inline-flex; flex-direction: column; text-decoration: none; background: var(--brand); color: #fff; border-radius: 10px; padding: .35rem .75rem; font-weight: 600; font-size: .88rem; line-height: 1.3; }
.dl-btn small { font-weight: 400; opacity: .85; font-size: .75rem; }
.dl-btn.off { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
html[data-theme="dark"] .oc-dl { background: #052e26; border-color: #115e59; }
html[data-theme="dark"] .oc-dl > b { color: #5eead4; }
html[data-theme="dark"] .dl-btn:not(.off) { color: #04201d; }

/* ===== blog ===== */
.bl-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 4px 0 18px; }
.bl-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .2rem 0 .4rem; }
.bl-hero .sub { margin: 0; color: var(--muted); max-width: 60ch; }
.bl-search { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: .45rem 1rem; min-width: min(340px, 100%); color: var(--brand); }
.bl-search input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; color: var(--ink); min-width: 0; }
.bl-tagbar { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 18px; }
.bl-tagbar button { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: .25rem .8rem; cursor: pointer; }
.bl-tagbar button.on, .bl-tagbar button:hover { border-color: var(--brand); color: var(--brand); background: var(--soft); }
.bl-tagbar small { color: var(--muted); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bl-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bl-cover { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #ccfbf1, #dbeafe); overflow: hidden; }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; }
.bl-ph { display: grid; place-items: center; height: 100%; font-size: 2.2rem; color: var(--brand); }
.bl-body { display: grid; gap: .35rem; padding: 14px 16px 16px; align-content: start; }
.bl-body b { color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.bl-ex { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-body small { color: var(--muted); font-size: .8rem; }
.bl-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.bl-tags i, .bl-tags a i { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--brand); background: #ccfbf1; padding: .05rem .55rem; border-radius: 99px; }
.bl-tags a { text-decoration: none; }
.bl-card.big { grid-template-columns: 1.2fr 1fr; grid-template-rows: none; margin-bottom: 18px; }
.bl-card.big .bl-cover { aspect-ratio: auto; min-height: 260px; }
.bl-card.big .bl-body { padding: 26px; align-content: center; }
.bl-card.big b { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.bl-empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--soft); border-radius: 16px; }
.bp { max-width: 860px; }
.bp-preview { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 10px; padding: .5rem .9rem; }
.bp-article header h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .5rem 0; }
.bp-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 .8rem; }
.bp-meta { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 1.2rem; }
.bp-meta img, .bp-meta .rv-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bp-meta b { display: block; color: var(--ink); } .bp-meta b a { color: inherit; text-decoration: none; } .bp-meta small { color: var(--muted); }
.bp-cover { width: 100%; border-radius: 16px; margin-bottom: 1.2rem; max-height: 480px; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.85; }
.prose h2 { font-size: 1.45rem; margin: 1.6rem 0 .6rem; } .prose h3 { font-size: 1.2rem; margin: 1.3rem 0 .5rem; }
.prose img { border-radius: 12px; margin: .8rem 0; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1rem 0; padding: .4rem 1rem; background: var(--soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px; overflow: auto; font-size: .9rem; }
.prose code { background: var(--soft); padding: .05rem .35rem; border-radius: 5px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; } .prose th { background: var(--soft); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; margin: .8rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.bp-author { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.bp-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.bp-author small { color: var(--muted); } .bp-author b { display: block; color: var(--ink); font-size: 1.08rem; } .bp-author p { margin: .3rem 0; font-size: .95rem; }
.bp-author a { font-weight: 600; text-decoration: none; }
.pp-share .sh-in:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
@media (max-width: 900px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl-card.big { grid-template-columns: 1fr; } .bl-card.big .bl-cover { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .bl-grid { grid-template-columns: 1fr; } }
html[data-theme="dark"] .bl-tags i { background: #0f3b37; color: #5eead4; }
html[data-theme="dark"] .bl-cover { background: linear-gradient(135deg, #0f3b37, #172554); }
html[data-theme="dark"] .bp-preview { background: #3a2a0a; color: #fcd34d; border-color: #854d0e; }

/* ===== people ===== */
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pe-card { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 22px 16px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.pe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pe-card img, .pe-av { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--soft); }
.pe-av { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; font-size: 2.4rem; font-weight: 700; }
.pe-card b { color: var(--ink); font-size: 1.08rem; } .pe-card small { color: var(--muted); font-size: .88rem; }
.pe-go { color: var(--brand); font-weight: 600; font-size: .88rem; }
.pe-hero { display: flex; gap: 28px; align-items: center; padding: 28px; border-radius: 22px; background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid var(--line); flex-wrap: wrap; }
.pe-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); flex: none; }
.pe-head { flex: 1; min-width: 240px; }
.pe-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .3rem 0 .1rem; }
.pe-head .role { margin: 0 0 .8rem; }
.pe-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pe-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .9rem; display: grid; min-width: 86px; }
.pe-stats b { font-size: 1.3rem; color: var(--brand); line-height: 1.2; } .pe-stats span { font-size: .8rem; color: var(--muted); }
.pe-bio { max-width: 78ch; line-height: 1.85; }
.pe-skills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pe-skills span { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .8rem; font-size: .9rem; color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pf-item { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
a.pf-item:hover { box-shadow: var(--shadow); }
.pf-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pf-item div { padding: 12px 14px; display: grid; gap: .2rem; } .pf-item b { color: var(--ink); } .pf-item small { color: var(--muted); } .pf-item p { margin: 0; font-size: .92rem; }
.pl-ic svg { width: 16px; height: 16px; vertical-align: -3px; }
.person-more { display: inline-block; font-weight: 600; font-size: .9rem; margin: .2rem 0 .4rem; text-decoration: none; }
html[data-theme="dark"] .pe-hero { background: linear-gradient(135deg, #0f2a2a, #111a2b); }
html[data-theme="dark"] .pe-photo { border-color: #1e293b; }

/* ===== certificate verification ===== */
.cv { max-width: 860px; }
.cv-head { margin: 10px 0 18px; } .cv-bar { display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 12px; }
.cv-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .3rem; } .cv-head .sub { color: var(--muted); margin: 0; }
.cv-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cv-row { display: flex; gap: .6rem; align-items: center; }
.cv-ic { font-size: 1.2rem; color: var(--brand); }
.cv-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--ink); letter-spacing: .04em; }
.cv-row input:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }
.cv-form .muted { margin: .6rem 0 0; }
.cv-res { display: flex; gap: 14px; align-items: center; margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.cv-res.ok { background: #f0fdf4; border-color: #86efac; } .cv-res.bad { background: #fef2f2; border-color: #fecaca; }
.cv-res b { color: var(--ink); } .cv-res p { margin: .1rem 0 0; color: var(--muted); }
.cv-seal { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: #fff; }
.cv-res.ok .cv-seal { background: #16a34a; } .cv-res.bad .cv-seal { background: #dc2626; }
.cert { position: relative; text-align: center; padding: 34px 28px 26px; border-radius: 16px; background: #fffdf7; color: #1f2937; border: 10px double #c9a227; box-shadow: var(--shadow); }
.cert.void { filter: grayscale(.8); opacity: .75; }
.cert-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cert-brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #0f766e; } .cert-brand img { width: 30px; height: 30px; }
.cert-id { font: 600 .82rem/1 ui-monospace, Menlo, monospace; color: #6b7280; }
.cert-k { margin: 18px 0 4px; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: #a16207; font-weight: 700; }
.cert-small { margin: 4px 0; color: #6b7280; }
.cert-name { font-size: clamp(1.6rem, 4vw, 2.3rem); color: #111827; margin: 6px 0; font-family: Georgia, "Hind Siliguri", serif; }
.cert-course { font-size: 1.2rem; color: #0f766e; margin: 6px 0 16px; }
.cert-dl { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.cert-dl div { display: grid; } .cert-dl dt { font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; } .cert-dl dd { margin: 0; font-weight: 700; color: #111827; }
.cv-acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 12px; flex-wrap: wrap; }
html[data-theme="dark"] .cv-res.ok { background: #052e16; border-color: #166534; } html[data-theme="dark"] .cv-res.bad { background: #3b0d0d; border-color: #7f1d1d; }
@media print { body * { visibility: hidden; } #cert-card, #cert-card * { visibility: visible; } #cert-card { position: fixed; inset: 20px; } }

/* ===== feedback ===== */
.fb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.fb h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .2rem 0 .3rem; }
.fb .sub { color: var(--muted); margin: 0 0 18px; }
.fb-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.fb-form .btn { width: auto; justify-self: start; }
.fb-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fb-kinds legend { font-weight: 500; font-size: .95rem; margin-bottom: .3rem; }
.fb-kinds label { display: block; } .fb-kinds input { position: absolute; opacity: 0; }
.fb-kinds span { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .9rem; cursor: pointer; background: var(--input); }
.fb-kinds input:checked + span { border-color: var(--brand); background: var(--soft); color: var(--brand); font-weight: 600; }
.fb-kinds input:focus-visible + span { outline: 2px solid #99f6e4; }
.fb-side { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.fb-side h3 { margin: 0 0 4px; }
.fb-ch { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.fb-ch:hover { border-color: var(--brand); }
.fb-ch b { display: block; color: var(--ink); } .fb-ch small { color: var(--muted); }
.fb-ch > span:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ecfdf5; color: var(--brand); flex: none; }
.fb-done { text-align: center; padding: 40px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 820px) { .fb-grid { grid-template-columns: 1fr; } }
html[data-theme="dark"] .fb-ch > span:first-child { background: #0f2a2a; }

/* ===== Discord section (homepage) ===== */
.discord-sec { background: linear-gradient(135deg, #eef2ff, #ecfdf5); }
.dc-inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.dc-text h2 { margin: .3rem 0 .5rem; }
.dc-logo svg { width: 20px; height: 20px; color: #5865F2; vertical-align: -4px; }
.dc-points { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: .4rem; }
.dc-points .aic { color: #5865F2; }
.dc-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; min-height: 34px; }
.dc-online { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); }
.dc-online i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.dc-avs { display: flex; } .dc-avs img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; background: var(--soft); }
.dc-avs img:first-child { margin-left: 0; }
.btn.dc-join { background: #5865F2; border-color: #5865F2; }
.btn.dc-join:hover { background: #4752c4; }
.dc-widget iframe { width: 100%; height: 460px; border: 0; border-radius: 16px; box-shadow: var(--shadow); background: var(--card); }
@media (max-width: 860px) { .dc-inner { grid-template-columns: 1fr; } }
html[data-theme="dark"] .discord-sec { background: linear-gradient(135deg, #111a2b, #0f2a2a); }
html[data-theme="dark"] .btn.dc-join { color: #fff; }

/* ===== account: refer friends ===== */
.ref { display: grid; gap: 12px; }
.ref-hero { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #fef3c7, #ecfdf5); border-radius: 14px; padding: 14px; }
.ref-hero b { display: block; color: var(--ink); } .ref-hero small { color: var(--muted); }
.ref-gift { font-size: 2rem; }
.ref-code { display: flex; align-items: center; gap: .7rem; border: 2px dashed var(--brand); border-radius: 12px; padding: .6rem .8rem; }
.ref-code span { color: var(--muted); font-size: .88rem; }
.ref-code b { flex: 1; font-size: 1.4rem; letter-spacing: .12em; color: var(--brand); font-family: ui-monospace, Menlo, monospace; }
.ref-link { display: flex; gap: .4rem; } .ref-link input { flex: 1; min-width: 0; font: inherit; font-size: .88rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--text); }
.ref-share { display: flex; gap: .4rem; flex-wrap: wrap; }
.ref-rewards { display: grid; gap: 6px; }
.ref-rw { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: .9rem; }
.ref-rw b { font-family: ui-monospace, Menlo, monospace; color: var(--brand); cursor: pointer; } .ref-rw small { color: var(--muted); }
.ref-rw.used { opacity: .6; } .ref-rw.used b { text-decoration: line-through; }
html[data-theme="dark"] .ref-hero { background: linear-gradient(135deg, #3a2a0a, #0f2a2a); }

/* header: room for the Blog / Community links */
.logo, .icon-btn, .links a { white-space: nowrap; }
.links { gap: 1.1rem; }
@media (max-width: 1280px) { .srch-open { min-width: 0; } .srch-open .srch-ph, .srch-open kbd { display: none; } .links { gap: .9rem; } }

/* ===== community ===== */
.cm-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px; margin: 6px 0 22px; border-radius: 22px;
  background: linear-gradient(135deg, #0f172a, #134e4a); color: #e2e8f0; }
.cm-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .5rem 0 .4rem; }
.cm-hero p { margin: 0; color: #cbd5e1; max-width: 56ch; }
.cm-chip { display: inline-block; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .2rem .8rem; border-radius: 99px; }
.cm-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cm-stats span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: .25rem .85rem; font-size: .9rem; }
.cm-stats b { color: #5eead4; }
.cm-hero-art { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.cm-hero-art span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 1.6rem; color: #5eead4; }
.cm-hero-art .aic { width: 28px; height: 28px; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cm-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.cm-side-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cm-side-box h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.cm-side-box p { margin: .2rem 0 .6rem; font-size: .92rem; color: var(--muted); }
.cm-mecard { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.cm-mecard b { display: block; color: var(--ink); } .cm-mecard small { color: var(--muted); }
.cm-rules { margin: 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .2rem; }
.cm-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; text-decoration: none; text-transform: uppercase;
  background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.cm-av.big { width: 56px; height: 56px; font-size: 1.4rem; }
.cm-av.r-author, .cm-av.r-trainer { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.cm-av.r-admin, .cm-av.r-dev { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cm-name { font-weight: 700; color: var(--ink); text-decoration: none; } .cm-name:hover { color: var(--brand); }
.cm-role { font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; margin-left: .35rem; background: #ccfbf1; color: #115e59; vertical-align: 1px; }
.cm-role.r-admin, .cm-role.r-dev { background: #fef3c7; color: #92400e; }
.cm-role.r-student { background: var(--soft); color: var(--muted); }
.cm-compose { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.cm-guest { display: grid; justify-items: start; gap: .3rem; } .cm-guest p { margin: 0 0 .4rem; color: var(--muted); }
.cm-cbody { flex: 1; display: grid; gap: 8px; min-width: 0; }
.cm-cbody input, .cm-cbody textarea, .cm-edit textarea, .cm-cform textarea, #cm-me-form input, #cm-me-form textarea { font: inherit; width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--input); color: var(--text); }
.cm-kinds { display: flex; gap: .35rem; flex-wrap: wrap; }
.cm-kinds input { position: absolute; opacity: 0; }
.cm-kinds span { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .75rem; font-size: .88rem; cursor: pointer; }
.cm-kinds input:checked + span { border-color: var(--brand); background: var(--soft); color: var(--brand); font-weight: 600; }
.cm-cfoot { display: flex; align-items: center; gap: .6rem; }
.cm-cfoot .form-error { margin: 0; font-size: .85rem; }
.cm-img-prev { position: relative; } .cm-img-prev img { max-height: 180px; border-radius: 10px; }
.cm-img-prev .cm-act { position: absolute; top: 6px; left: 6px; background: var(--card); }
.cm-filter, .cm-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: 0 0 12px; }
.cm-filter button, .cm-tabs button { font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: .25rem .8rem; cursor: pointer; }
.cm-filter button.on, .cm-tabs button.on { border-color: var(--brand); color: var(--brand); background: var(--soft); font-weight: 600; }
.cm-tabs button { font-size: .8rem; padding: .2rem .6rem; }
.cm-post { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.cm-post.ann { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, var(--card) 60%); }
.cm-post.pinned { box-shadow: 0 0 0 2px #99f6e4 inset; }
.cm-post.hidden-post, .cm-c.hidden-post { opacity: .55; }
.cm-post header { display: flex; align-items: center; gap: .6rem; }
.cm-meta { flex: 1; min-width: 0; display: grid; } .cm-meta small { color: var(--muted); font-size: .8rem; }
.cm-kind { font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.cm-kind.k-announcement { background: #fef3c7; color: #92400e; } .cm-kind.k-question { background: #dbeafe; color: #1e40af; }
.cm-pin { font-size: .8rem; }
.cm-post h3 { margin: .6rem 0 0; font-size: 1.12rem; } .cm-post h3 a { color: var(--ink); text-decoration: none; } .cm-post h3 a:hover { color: var(--brand); }
.cm-body { margin: .5rem 0 0; line-height: 1.7; word-wrap: break-word; }
.cm-body.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.cm-img { margin-top: .6rem; border-radius: 12px; max-height: 460px; width: 100%; object-fit: cover; }
.cm-post footer { display: flex; align-items: center; gap: .3rem; margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.cm-post footer .spacer { flex: 1; }
.cm-act { font: inherit; font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; border-radius: 8px; padding: .3rem .55rem; color: var(--muted); cursor: pointer; text-decoration: none; }
.cm-act:hover { background: var(--soft); color: var(--ink); }
.cm-act.on { color: #e11d48; }
.cm-file { cursor: pointer; }
.cm-more { text-align: center; margin: 10px 0; }
.cm-lb { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: 6px; }
.cm-lb li { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: .5rem; align-items: center; font-size: .92rem; }
.cm-lb li.muted { display: block; }
.cm-lb .cm-av { width: 32px; height: 32px; font-size: .85rem; }
.cm-lb a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cm-lb b { color: var(--brand); }
.lb-rank { text-align: center; font-weight: 700; color: var(--muted); }
.cm-dc .btn.dc-join { background: #5865F2; border-color: #5865F2; color: #fff; }
.cm-single { max-width: 820px; }
.cm-comments { margin-top: 18px; } .cm-comments h2 { font-size: 1.2rem; }
.cm-c { display: flex; gap: .6rem; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm-cb { flex: 1; min-width: 0; } .cm-cb p { margin: .2rem 0 0; }
.cm-c .cm-av { width: 34px; height: 34px; font-size: .9rem; }
.cm-cform { display: flex; gap: .6rem; align-items: flex-start; margin-top: 12px; }
.cm-cform textarea { flex: 1; }
.cm-edit { margin-top: .5rem; display: grid; gap: .4rem; }
.cm-prof { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 14px; }
.cm-prof .cm-av.big { width: 96px; height: 96px; font-size: 2.4rem; }
.cm-prof-t { flex: 1; min-width: 220px; } .cm-prof-t h1 { font-size: 1.7rem; margin: 0; } .cm-prof-t p { margin: .2rem 0; color: var(--muted); }
.cm-bio { color: var(--text) !important; }
.cm-prof-stats { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px; }
.cm-prof-stats div { background: var(--soft); border-radius: 12px; padding: .5rem .7rem; display: grid; text-align: center; }
.cm-prof-stats b { color: var(--brand); font-size: 1.2rem; } .cm-prof-stats span { font-size: .78rem; color: var(--muted); }
#cm-me-form { display: grid; gap: .5rem; } #cm-me-form label { display: grid; gap: .2rem; font-weight: 500; }
.cm-h { font-size: 1.2rem; margin: 18px 0 10px; }
@media (max-width: 900px) { .cm-grid { grid-template-columns: 1fr; } .cm-side { position: static; } .cm-hero-art { display: none; } }
@media (max-width: 520px) { .cm-hero { padding: 20px; } .cm-prof-stats { grid-template-columns: repeat(3, 1fr); width: 100%; } }
html[data-theme="dark"] .cm-post.ann { background: linear-gradient(180deg, #2a2108, var(--card) 60%); border-color: #854d0e; }
html[data-theme="dark"] .cm-role { background: #0f3b37; color: #5eead4; }
html[data-theme="dark"] .cm-role.r-admin, html[data-theme="dark"] .cm-role.r-dev { background: #3a2a0a; color: #fcd34d; }
html[data-theme="dark"] .cm-kind.k-question { background: #172554; color: #93c5fd; } html[data-theme="dark"] .cm-kind.k-announcement { background: #3a2a0a; color: #fcd34d; }
.cm-meta > .cm-role { justify-self: start; margin-left: 0; margin-top: 1px; }
.lb-rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--soft); }
.lb-rank.r1 { background: #fbbf24; color: #fff; } .lb-rank.r2 { background: #94a3b8; color: #fff; } .lb-rank.r3 { background: #d97706; color: #fff; }
.acc-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.acc-links a { font-size: .85rem; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .7rem; color: var(--text); background: var(--card); }
.acc-links a:hover { border-color: var(--brand); color: var(--brand); }
.cat-pic { display: grid; gap: .4rem; } .cat-prods { display: grid; gap: 6px; } .cat-find { width: 100%; margin: 6px 0; }
