/* ==========================================================================
   Open Minds Academy — Mobile Page Layouts & Components (v107)
   Loaded conditionally with media="(max-width: 820px)" after mobile-shell.css.
   Scope: Mobile Visual Design System, Native Home Craft, Typography, Cards,
          Zero-Truncation Guards, Scroll-Reveal Kill-Switch & Footer Polish.
   Desktop (> 820px) is 100% unaffected by this stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Global Mobile Guards, Scroll-Reveal Kill-Switch, Unified Purple Tokens
      & iOS Safari Zoom Prevention
   -------------------------------------------------------------------------- */
body,
#app,
.u-shell {
  background: var(--oma-canvas, #faf9fd);
}

/* Guarantee iOS Safari NEVER freezes sections faded/offset mid-scroll */
.rv,
.rv.in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#app,
.main,
.content,
.u-shell,
.u-hero-wrap,
.u-trust,
.u-home-body,
.hs-cat-sec,
.nextstep,
.oc-home-banner,
.hs-plans-sec,
.hs-faq-sec,
.cat-layout,
.detail-hero,
.detail-body,
.learn-wrap,
.stu-wrap,
.stf-wrap,
.bib-wrap,
.lvh-page,
.depo-sec,
.ma-page,
.ma-home,
.vf-wrap,
.ft {
  max-width: 100%;
  overflow-x: clip;
}

/* Unified OMA Purple (#6d28d9) Mobile Buttons — ZERO generic #2563eb blue clash */
.btn-p {
  background: var(--oma-purple, #6d28d9);
  border-color: var(--oma-purple, #6d28d9);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(109, 40, 217, 0.45);
}

.btn-p:hover,
.btn-p:active {
  background: var(--oma-purple-dark, #5b21b6);
  border-color: var(--oma-purple-dark, #5b21b6);
  color: #ffffff;
  box-shadow: 0 10px 22px -8px rgba(91, 33, 182, 0.5);
}

.btn-o {
  border-radius: 999px;
  border-color: var(--oma-border, #ebe8f5);
}

.btn-o:hover,
.btn-o:active {
  border-color: var(--oma-purple, #6d28d9);
  color: var(--oma-purple, #6d28d9);
  background: var(--oma-purple-soft, rgba(109, 40, 217, 0.08));
}

.eyebrow-pill,
.course .crow .lvl {
  background: rgba(109, 40, 217, 0.1);
  color: #5b21b6;
}

.pill-i {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.course:hover {
  border-color: #c4b5fd;
}

input,
select,
textarea,
.field input,
.field select,
.field textarea,
.cat-search input,
.stu-search input,
.ma-exp-search input,
.rev-form textarea,
.rev-coment,
.oma-in input,
.chat-in input {
  font-size: 16px;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
}

.btn,
.btn-sm,
.dd-btn,
.dd-i {
  min-height: 48px;
}

.icon-btn {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
}

/* --------------------------------------------------------------------------
   1. Home (#/) — Mobile Hero, 2x2 Trust Strip, Snap Rails & Course Cards
   -------------------------------------------------------------------------- */
.u-home-body {
  max-width: 100%;
  margin-inline: auto;
  padding-block: var(--sec-gap-m, 44px);
  padding-inline: var(--page-pad-m, 18px);
  box-sizing: border-box;
}

.u-hero-wrap {
  padding: 0;
  background: #faf9fd;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.u-hero {
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  touch-action: pan-y;
}

.u-slide {
  position: relative;
  display: none;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.u-slide.active {
  display: flex;
}

.u-slide-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: 76% 20%;
}

.u-card {
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-block: 20px 44px;
  padding-inline: var(--page-pad-m, 18px);
  border-block-start: 0;
  border-inline: 0;
  border-block-end: 1px solid #ebe8f5;
  text-align: start;
}

.u-card h1 {
  font-size: clamp(22px, 6.2vw, 28px);
  line-height: 1.18;
  margin-block-end: 8px;
}

.u-card p {
  font-size: 14.5px;
  line-height: 1.5;
  margin-block-end: 16px;
}

.u-cta {
  width: 100%;
}

.btn-u-hero {
  width: 100%;
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 18px;
  border-radius: 10px;
  background: var(--u-purple, #6d28d9);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
}

.u-arr,
.car-b {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

.u-arr {
  top: 105px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
}

.car-nav {
  gap: 10px;
}

.u-prev {
  inset-inline-start: 10px;
  inset-inline-end: auto;
}

.u-next {
  inset-inline-end: 10px;
  inset-inline-start: auto;
}

.u-dots {
  bottom: 10px;
  gap: 12px;
  padding-block: 8px;
  padding-inline: 14px;
}

.u-dot {
  position: relative;
  min-width: 8px;
  min-height: 8px;
}

.u-dot::after {
  content: "";
  position: absolute;
  inset-block: -16px;
  inset-inline: -8px;
}

/* 2x2 Compact Trust Strip */
.u-trust {
  margin-top: 16px;
  margin-block-start: 16px;
  margin-inline: auto;
  padding-inline: var(--page-pad-m, 18px);
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.u-trust-in {
  position: relative;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ebe8f5;
  box-shadow: 0 10px 26px -16px rgba(109, 40, 217, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.u-trust-in::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d28d9 0%, #9333ea 52%, #f97316 100%);
  pointer-events: none;
}

.u-trust-in > div {
  min-width: 0;
}

.u-trust-in b {
  font-size: 17px;
  line-height: 1.15;
}

.u-trust-in span {
  font-size: 11.5px;
  line-height: 1.3;
}

/* Home Sections Vertical Rhythm (44px) & Goal Chips */
.hs-cat-sec,
.band,
.nextstep,
.hs-plans-sec,
.depo-sec,
.promo-row,
.know-band {
  margin-block-start: var(--sec-gap-m, 44px);
}

.depo-sec,
.oc-home-banner {
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.band {
  padding-block: 24px;
  padding-inline: var(--page-pad-m, 18px);
  border-radius: 20px;
}

.nextstep .ns-in {
  padding-inline: var(--page-pad-m, 18px);
  max-width: 100%;
  box-sizing: border-box;
}

.ns-rays {
  display: none;
}

.ns-grid,
.up-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.ns-card,
.up-card {
  padding: var(--card-pad-m, 16px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ns-t {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ns-card .btn {
  margin-block-start: 14px;
  min-height: 48px;
}

.up-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 14px;
}

.goal-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block-end: 4px;
  max-width: 100%;
}

/* Horizontal scroll-snap rails for Mentors across all mobile widths (<= 820px) */
.u-home-body .sec-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.u-home-body .sec-head > div {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
}

.u-home-body .sec-head .eyebrow-t {
  color: var(--oma-purple, #6d28d9);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.u-home-body .sec-head .section-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.u-home-body .sec-head .see-all {
  align-self: flex-end;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--oma-purple, #6d28d9);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}

.mentor-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 4px 8px;
  padding-inline: 2px;
  max-width: 100%;
  box-sizing: border-box;
}

.mentor-rail::-webkit-scrollbar {
  display: none;
}

.mentor-rail .mentor-card {
  flex: 0 0 162px;
  min-width: 162px;
  padding: 14px 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 10px 24px -18px rgba(109, 40, 217, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  gap: 4px;
  scroll-snap-align: start;
}

.mentor-rail .mentor-card .face {
  width: 66px;
  height: 66px;
  margin-bottom: 4px;
  border: 2.5px solid #ddd6fe;
  box-shadow: 0 6px 14px -8px rgba(109, 40, 217, 0.25);
}

.mentor-rail .mentor-card .mc-n {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.24;
  color: #0f172a;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

.mentor-rail .mentor-card .mc-r {
  font-size: 12px;
  line-height: 1.28;
  color: #475569;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

.mentor-rail .mentor-card .mc-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.mentor-rail .mentor-card .mc-rate {
  color: var(--oma-purple, #6d28d9);
  font-weight: 800;
}

.mentor-rail .mentor-card .mc-link {
  color: #475569;
  font-weight: 700;
}

/* Dark Footer Mobile Craft (leaves tabbar padding-bottom clearance to mobile-shell.css) */
.ft {
  padding-top: 28px;
}

.ft .in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.ft .in > * {
  min-width: 0;
}

.ft-brand,
.ft-news {
  grid-column: 1 / -1;
}

/* Keep Explorar + Legal in a crisp 2-col row; let Apoio span full width so emails never wrap awkwardly at 360px */
.ft .in > .ft-brand {
  order: 1;
}

.ft .in > .ft-col:nth-of-type(2) {
  order: 2;
}

.ft .in > .ft-col:nth-of-type(4) {
  order: 3;
}

.ft .in > .ft-col:nth-of-type(3) {
  grid-column: 1 / -1;
  order: 4;
}

.ft .in > .ft-news {
  order: 5;
}

.ft .logo {
  margin-bottom: 8px;
}

.ft-brand p {
  max-width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
}

.ft-brand .soc {
  margin-top: 10px;
  gap: 10px;
}

.ft-brand .soc-i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.ft-lang-btn {
  margin-top: 10px;
  min-height: 44px;
}

.ft-col h4,
.ft-news h4 {
  color: #c4b5fd;
  margin-bottom: 6px;
}

.ft-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 0;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.ft-news p {
  margin: 0 0 8px !important;
  line-height: 1.45 !important;
}

.ft-news .news-f {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ft-news .news-f input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
}

.ft-news .news-f input:focus {
  border-color: var(--oma-orange, #f97316);
  background: rgba(255, 255, 255, 0.13);
}

/* High-contrast WCAG AAA (7.5:1) Orange Subscribe CTA on dark footer */
.ft-news .news-f button,
.ft-news .news-f .btn-f {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--oma-orange, #f97316);
  border: 1.5px solid var(--oma-orange, #f97316);
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(249, 115, 22, 0.55);
}

.ft-news .news-f button:hover,
.ft-news .news-f button:active,
.ft-news .news-f .btn-f:hover,
.ft-news .news-f .btn-f:active {
  background: var(--oma-orange-dark, #ea580c);
  border-color: var(--oma-orange-dark, #ea580c);
  color: #0f172a;
}

.ft .bar {
  margin-top: 18px;
  padding-top: 14px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ft .bar span + span::before {
  display: none;
  content: none;
}

.ft-pay-subtle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  width: 100%;
  font-size: 12px;
  color: #cbd5e1;
}

.ft-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.goal-row::-webkit-scrollbar {
  display: none;
}

.goal {
  flex: none;
  min-height: 48px;
  min-width: 48px;
  padding-inline: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.promo-row {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.promo {
  padding-block: 20px;
  padding-inline: var(--page-pad-m, 18px);
  border-radius: 20px;
}

.know-band {
  padding-block: 22px;
  padding-inline: var(--page-pad-m, 18px);
  border-radius: 20px;
}

/* Course Cards & Tap-Friendly Cart / Wishlist Buttons (48x48) */
.course {
  border-radius: 16px;
  overflow: hidden;
}

.course .thumb {
  position: relative;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.course .body {
  padding: var(--card-pad-m, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course .body h4 {
  font-size: 15.5px;
  min-height: 0;
}

.course .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-block-start: 14px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line-2, #f1f5f9);
}

.course .price {
  padding-block-start: 0;
  border-block-start: 0;
}

.course .price b {
  font-size: 18px;
}

.cc-cart-btn {
  min-height: 48px;
  min-width: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.course .wl-btn,
.u-card .wl-btn,
.c-card .wl-btn,
.course-card .wl-btn,
.wl-btn.wl-float {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  inset-block-start: 10px;
  inset-inline-end: 10px;
}

.wl-btn.wl-inline,
.wl-btn.wl-pill {
  min-height: 48px;
  height: 48px;
  padding-inline: 16px;
}

/* --------------------------------------------------------------------------
   2. Catalog (#/catalogo) — Scrollable Chips, 16px Search & Crisp Cards
   -------------------------------------------------------------------------- */
.cat-layout {
  grid-template-columns: minmax(0, 1fr);
  padding-block: 18px var(--sec-gap-m, 44px);
  padding-inline: var(--page-pad-m, 18px);
  gap: var(--grid-gap-m, 16px);
}

.cat-rail {
  position: static;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 8px;
  padding-inline: 10px;
  border-radius: 14px;
  max-width: 100%;
}

.cat-rail::-webkit-scrollbar {
  display: none;
}

.cat-rail .rail-h {
  display: none;
}

.rail-i {
  flex: none;
  width: auto;
  min-width: max-content;
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  scroll-snap-align: start;
}

.rail-i .n {
  margin-inline-start: 6px;
}

.cat-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
  margin-block-end: 18px;
}

.cat-hero h1 {
  font-size: clamp(24px, 7vw, 32px);
}

.ch-v {
  max-width: 100%;
}

.ch-v img {
  max-width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

.ch-v .rays,
.ch-v::before {
  display: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-end: 16px;
}

.cat-search {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding-block: 6px;
  padding-inline: 14px;
  border-radius: 12px;
}

.cat-search input {
  font-size: 16px;
  min-height: 36px;
}

.tag-row .chip,
.chat-filt .chip,
.oma-quick .chip {
  min-height: 48px;
  min-width: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-row .dd {
  margin-inline-start: auto;
}

.dd-btn,
.dd-i {
  min-height: 48px;
}

.top-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
  margin-block-end: 20px;
}

.carousel {
  display: flex;
  gap: var(--grid-gap-m, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 4px 10px;
  padding-inline: 2px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .course {
  flex: 0 0 min(82vw, 290px);
  min-width: 0;
  max-width: 290px;
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   3. Course Detail (#/curso/:id) — Stacked Layout & Sticky Mobile Buy Bar
   -------------------------------------------------------------------------- */
.detail-hero {
  margin-block-start: 0;
  padding-block: 18px 24px;
  padding-inline: 0;
}

.detail-hero .in {
  padding-inline: var(--page-pad-m, 18px);
}

.crumbs {
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 12px;
}

.dh-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-block-end: 16px;
}

.dh-grid h1 {
  font-size: clamp(24px, 6.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-block-start: 16px;
}

.cta-row .btn,
.cta-row .wl-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.dh-right {
  min-height: 0;
  padding-block: 6px 0;
}

.dh-right::before {
  display: none;
}

.arch-stack {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 4.2;
  margin-inline: auto;
  transform: none;
}

.cover-card {
  position: static;
  inset: auto;
  width: 100%;
  margin-block-start: 12px;
  transform: none;
}

.info-strip {
  margin-block: 14px 0;
  margin-inline: var(--page-pad-m, 18px);
  border-radius: 16px;
}

.is-in {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.is-in span {
  padding: 10px;
  gap: 10px;
}

.is-in span + span::before {
  display: none;
}

.detail-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-block-start: 20px;
  padding-inline: var(--page-pad-m, 18px);
  padding-block-end: calc(108px + env(safe-area-inset-bottom, 0px));
}

.db-right {
  position: static;
}

.learn-card,
.buy-card,
.instrutor-panel,
.rev-wrap {
  padding: var(--card-pad-m, 16px);
  border-radius: 16px;
}

.acc-h {
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 14px;
}

.lesson-row {
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 14px;
}

.trust-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 22px;
  padding-block-start: 18px;
}

.instrutor-panel .ip-face {
  width: 96px;
  height: 108px;
}

/* Sticky Bottom Mobile Buy Bar (.m-buybar) — pinned cleanly at bottom: 0 */
.m-buybar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  background: #ffffff;
  border-block-start: 1px solid #e2e8f0;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1);
  max-width: 100%;
  box-sizing: border-box;
}

.m-buybar-price,
.m-buy-price,
.m-bb-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
  text-align: start;
}

.m-buybar-price b,
.m-buybar-price strong,
.m-buy-price b,
.m-buy-price strong,
.m-bb-price b,
.m-bb-price strong {
  font-family: var(--font-d, 'Inter', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m-buybar-price s,
.m-buy-price s,
.m-bb-price s {
  font-size: 12px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m-buybar-acts,
.m-buy-acts,
.m-bb-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.m-buybar .btn,
.m-buybar button {
  min-height: 48px;
  min-width: 48px;
  padding-block: 10px;
  padding-inline: 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}

.m-buybar .m-buybar-cart,
.m-buybar .m-bb-cart {
  min-width: 48px;
  min-height: 48px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}

.m-buybar .m-buybar-cart.in,
.m-buybar .m-bb-cart.in {
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.35);
  color: #15803d;
}

.m-buybar .m-buybar-buy,
.m-buybar .m-bb-buy {
  background: var(--u-purple, #6d28d9);
  border-color: var(--u-purple, #6d28d9);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

body:has(.m-buybar) .oma-fab {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

/* --------------------------------------------------------------------------
   4. Course Player (#/aprender/:id) — Sticky Video, Scrollable .pl-bar & Notes
   -------------------------------------------------------------------------- */
.learn-wrap {
  height: auto;
  min-height: calc(100dvh - var(--topbar-h, 60px));
}

.learn-head .lh-in {
  padding-block: 14px 16px;
  padding-inline: var(--page-pad-m, 18px);
}

.lh-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lh-txt h1 {
  white-space: normal;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.22;
}

.lh-prog {
  align-self: flex-start;
}

.lh-prog svg {
  width: 54px;
  height: 54px;
}

.learn {
  grid-template-columns: minmax(0, 1fr);
  flex: none;
  height: auto;
}

.learn .player {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: none;
  background: #000000;
}

.learn .player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pl-bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 10px;
  margin-block-start: 0;
  padding-block: 8px;
  padding-inline: 16px;
  border-radius: 0;
  border-inline: 0;
  max-width: 100%;
}

.pl-bar::-webkit-scrollbar {
  display: none;
}

.pl-bar-group,
.pl-group,
.pl-left,
.pl-right {
  flex-wrap: nowrap;
  flex: none;
  gap: 8px;
}

.pl-btn,
.pl-speed {
  flex: none;
  min-height: 48px;
  min-width: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  font-size: 13.5px;
}

.pl-speed {
  font-size: 16px;
}

.pl-kbd-hint {
  display: none;
}

.learn-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-block: 14px;
  padding-inline: var(--page-pad-m, 18px);
}

.lf-r {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.lf-r .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.side-tabs {
  height: auto;
  min-height: 360px;
  border-inline-start: 0;
  border-block-start: 1px solid var(--line, #e2e8f0);
}

.side-tabs .tabs button {
  min-height: 48px;
  font-size: 14px;
}

.side-tabs .lesson-row {
  min-height: 50px;
  padding-block: 12px;
  padding-inline: 14px;
  gap: 10px;
}

.pl-note-line,
.pl-note-item {
  padding: 12px;
  gap: 10px;
}

.pl-note-ts {
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  font-size: 13px;
}

.nota-foot {
  flex-wrap: wrap;
  gap: 10px;
}

.nota-foot .btn {
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   5. Dashboards (#/aluno, #/instrutor, #/admin) — 2x2 KPIs & Touch Targets
   -------------------------------------------------------------------------- */
.content {
  padding-block: 18px var(--sec-gap-m, 44px);
  padding-inline: var(--page-pad-m, 18px);
}

.card {
  padding: var(--card-pad-m, 16px);
}

/* Student Dashboard (.stu-*) */
.stu-wrap {
  gap: var(--grid-gap-m, 16px);
}

.stu-hero {
  padding: var(--card-pad-m, 16px);
  gap: 12px;
}

.stu-hero h1 {
  font-size: 21px;
}

.stu-hero-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stu-hero-actions .btn {
  flex: 1 1 100%;
  min-height: 48px;
  justify-content: center;
}

.stu-resume {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: var(--card-pad-m, 16px);
}

.stu-resume-actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.stu-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap-m, 16px);
}

.stu-kpi {
  padding: var(--card-pad-m, 16px);
}

.stu-kpi-val {
  font-size: 22px;
}

.stu-main-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.stu-section {
  padding: var(--card-pad-m, 16px);
  gap: 14px;
}

.stu-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.stu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  width: 100%;
}

.stu-tabs::-webkit-scrollbar {
  display: none;
}

.stu-tab {
  flex: none;
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 16px;
}

.stu-grid,
.stu-rec-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

/* Instructor & Admin Dashboards (.stf-* and legacy .kpi grids) */
.stf-wrap {
  gap: var(--grid-gap-m, 16px);
}

.stf-head {
  padding: var(--card-pad-m, 16px);
  gap: 12px;
}

.stf-head h1 {
  font-size: 21px;
}

.stf-head-acts,
.stf-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stf-head-acts .btn,
.stf-actions .btn {
  flex: 1 1 auto;
  min-height: 48px;
  justify-content: center;
}

.stf-kpis,
.grid.g-4:has(.kpi) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap-m, 16px);
}

.stf-kpi {
  padding: var(--card-pad-m, 16px);
}

.stf-kpi-val {
  font-size: 21px;
}

.stf-grid,
.stf-main-grid,
.stf-duo-grid,
.stf-grid-2,
.stf-courses-grid,
.stf-grid-3 {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.stf-card {
  padding: var(--card-pad-m, 16px);
  gap: 14px;
}

.stf-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: var(--card-pad-m, 16px);
}

.stf-row-act,
.stf-row-acts {
  width: 100%;
  display: flex;
  gap: 10px;
}

.stf-row-act .btn,
.stf-row-acts .btn {
  flex: 1;
  min-height: 48px;
  justify-content: center;
}

.stf-table-wrap,
.tbl-wrap,
.card:has(.tbl) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   6. Auth (#/entrar, #/registo), Certificates (#/certificados),
      Library (#/biblioteca) & Live Hub (#/ao-vivo)
   -------------------------------------------------------------------------- */
.auth {
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
}

.auth .art {
  display: none;
}

.auth .form {
  align-items: flex-start;
  padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px));
  padding-inline: var(--page-pad-m, 18px);
  background: var(--surface, #ffffff);
}

.auth .box {
  max-width: 100%;
}

.auth .box .btn,
.auth .box .oauth-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

body:has(.auth) {
  padding-block-end: 0;
}

/* Certificates & Verification */
.cert-share-bar {
  flex-direction: column;
  align-items: stretch;
  padding: var(--card-pad-m, 16px);
  gap: 12px;
}

.cert-qr-box {
  width: 100%;
}

.cert-share-actions,
.cert-share-acts,
.cert-share-btns,
.cert-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cert-share-bar .btn,
.cert-share-bar .btn-wa,
.cert-share-bar .btn-li,
.cert-acts .btn,
.vf-cta .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

/* Library (#/biblioteca) */
.bib-hero {
  margin-block-start: 0;
  padding-block: 28px 26px;
  padding-inline: var(--page-pad-m, 18px);
}

.bib-hero h1 {
  font-size: clamp(24px, 7vw, 32px);
}

.bib-wrap {
  padding-block: 20px var(--sec-gap-m, 44px);
  padding-inline: var(--page-pad-m, 18px);
}

.bib-resume {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.bib-rs {
  padding: var(--card-pad-m, 16px);
  gap: 12px;
}

.bib-go {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
}

.bib-card {
  padding: var(--card-pad-m, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bib-card .btn,
.bib-dl {
  width: 100%;
  min-height: 48px;
  margin-block-start: 14px;
  justify-content: center;
}

/* Live Classes Hub (#/ao-vivo) */
.lvh-page {
  padding-block-end: var(--sec-gap-m, 44px);
}

.lvh-in {
  padding-block: 20px 0;
  padding-inline: var(--page-pad-m, 18px);
}

.lvh-head {
  gap: 14px;
  margin-block-end: 20px;
}

.lvh-head-act,
.lvh-hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lvh-hero {
  grid-template-columns: minmax(0, 1fr);
  margin-block-end: 20px;
}

.lvh-hero-body {
  padding: var(--card-pad-m, 16px);
  gap: 10px;
}

.lvh-hero-act {
  margin-block-start: 8px;
}

.lvh-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px;
  margin-block-end: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lvh-filters::-webkit-scrollbar {
  display: none;
}

.lvh-filter,
.lv-tab {
  flex: none;
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lvh-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap-m, 16px);
}

.lvh-card-body {
  padding: var(--card-pad-m, 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvh-act {
  margin-block-start: 14px;
  padding-block-start: 12px;
  gap: 10px;
}

.lvh-act .btn,
.lvh-hero-act .btn {
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 14px;
}

/* --------------------------------------------------------------------------
   7. Native Mobile App Views (v107 Flagship Mobile Home, Explore, Wishlist,
      Account, Mini-Player) — Pearl-Lavender Canvas, 20px Cards & Zero Clip
   -------------------------------------------------------------------------- */
.ma-page {
  padding-block: 18px var(--sec-gap-m, 32px);
  padding-inline: var(--page-pad-m, 18px);
  background: var(--oma-canvas, #faf9fd);
  box-sizing: border-box;
}

/* Native Mobile Home (.ma-home) — Flagship v107 Visual System */
.ma-home {
  padding: 0 0 8px;
  background: var(--oma-canvas, #faf9fd);
  color: #0f172a;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Curated Mobile Home De-Duplication: kill 9,800px desktop bloat on <= 820px ONLY */
.u-shell-home .u-home-body > .hs-cat-sec,
.u-shell-home .u-home-body > .band,
.u-shell-home .u-home-body > section.card:has(.oma-waitlist-form),
.u-shell-home .u-home-body > .nextstep,
.u-shell-home .u-home-body > .oc-home-banner,
.u-shell-home .u-home-body .hs-plans-stack,
.u-shell-home .u-home-body > .depo-sec:not(:has(.depo-stars)),
body:has(.ma-home) .u-home-body > .hs-cat-sec,
body:has(.ma-home) .u-home-body > .band,
body:has(.ma-home) .u-home-body > section.card:has(.oma-waitlist-form),
body:has(.ma-home) .u-home-body > .nextstep,
body:has(.ma-home) .u-home-body > .oc-home-banner,
body:has(.ma-home) .u-home-body .hs-plans-stack,
body:has(.ma-home) .u-home-body > .depo-sec:not(:has(.depo-stars)) {
  display: none !important;
}

.u-shell-home .u-home-body,
body:has(.ma-home) .u-home-body {
  padding-block: 18px 24px !important;
  padding-inline: var(--page-pad-m, 18px) !important;
  background: var(--oma-canvas, #faf9fd);
}

.u-shell-home .u-home-body > .hs-plans-sec,
body:has(.ma-home) .u-home-body > .hs-plans-sec {
  margin-top: 22px;
}

.u-shell-home .u-home-body .hs-plans-sec .hs-ai-card,
body:has(.ma-home) .u-home-body .hs-plans-sec .hs-ai-card {
  margin-top: 0;
}

/* 7A. First-Fold Guest Hero (.ma-hero) — Pure-CSS Radial Ambient Glow (Zero blur()) */
.ma-hero {
  position: relative;
  padding: 16px var(--page-pad-m, 18px) 10px;
  background:
    radial-gradient(280px 230px at 96% 28%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.04) 55%, transparent 74%),
    radial-gradient(230px 190px at 4% 6%, rgba(249, 115, 22, 0.09) 0%, transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #faf9fd 100%);
  box-sizing: border-box;
}

.ma-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ma-hero-title {
  margin: 0;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: clamp(27px, 7.6vw, 33px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: #0f172a;
  max-width: 15ch;
}

.ma-hero-accent {
  display: block;
  color: var(--oma-purple, #6d28d9);
}

.ma-hero-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.42;
  color: #475569;
  max-width: 32ch;
}

.ma-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: 1.5px solid #6d28d9;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px -10px rgba(109, 40, 217, 0.55);
  box-sizing: border-box;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.ma-hero-cta:active {
  transform: scale(0.975) translateY(1px);
  background: var(--oma-purple-dark, #5b21b6);
  box-shadow: 0 6px 16px -8px rgba(91, 33, 182, 0.5);
}

.ma-hero-cta svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.ma-hero-media {
  margin: 14px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--oma-border, #ebe8f5);
  background: #ede9fe;
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.28), 0 4px 14px rgba(109, 40, 217, 0.08);
}

.ma-hero-media img {
  display: block;
  width: 100%;
  height: 186px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
}

/* 7B. Authenticated User Hero (.ma-user-hero) — Crisp Parity Above the Fold */
.ma-user-hero {
  padding: 16px var(--page-pad-m, 18px) 10px;
  background:
    radial-gradient(260px 200px at 94% 12%, rgba(139, 92, 246, 0.14) 0%, transparent 72%),
    radial-gradient(200px 160px at 6% 8%, rgba(249, 115, 22, 0.08) 0%, transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #faf9fd 100%);
  box-sizing: border-box;
}

.ma-user-card {
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px -18px rgba(109, 40, 217, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.ma-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ma-home .ma-top-av {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(109, 40, 217, 0.5);
  flex: none;
}

.ma-user-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 0;
}

.ma-user-name {
  margin: 0;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: normal;
  overflow-wrap: break-word;
}

.ma-user-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  color: #475569;
  white-space: normal;
  overflow-wrap: break-word;
}

.ma-user-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ma-user-cta {
  flex: 1 1 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(109, 40, 217, 0.5);
  box-sizing: border-box;
}

.ma-user-cta svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ma-user-int {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

/* 7C. 2x2 Icon-Backed Category Pills (.ma-cats-wrap) — Zero Clipping, Zero Mid-Word Break */
.ma-cats-wrap {
  padding: 6px var(--page-pad-m, 18px) 0;
  box-sizing: border-box;
}

.ma-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ma-cat-chip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 9px 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 6px 18px -12px rgba(109, 40, 217, 0.16), 0 1px 3px rgba(15, 23, 42, 0.04);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.12s ease;
}

.ma-cat-chip:active {
  transform: scale(0.975);
  border-color: #c4b5fd;
  background: #f5f3ff;
  box-shadow: 0 2px 8px -6px rgba(109, 40, 217, 0.25);
}

.ma-cat-ic {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: #f5f3ff;
  border: 1px solid rgba(109, 40, 217, 0.12);
  color: var(--oma-purple, #6d28d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ma-cat-ic svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ma-cat-lbl {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #0f172a;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
}

/* 7D. Populated Courses Showcase (cursos.length > 0, Screen 2 Inspired) */
.ma-feat-sec {
  margin-top: 26px;
  padding-inline: var(--page-pad-m, 18px);
  box-sizing: border-box;
}

.ma-sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ma-sec-row .ma-sec-h {
  margin: 0;
  padding: 0;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.ma-sec-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--oma-purple, #6d28d9);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.ma-sec-more svg {
  width: 15px;
  height: 15px;
}

.ma-feat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ma-feat-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 12px 28px -18px rgba(109, 40, 217, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ma-feat-card:active {
  transform: scale(0.985);
  border-color: #c4b5fd;
}

.ma-feat-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e1b4b;
  overflow: hidden;
}

.ma-feat-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.ma-feat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.ma-feat-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ma-feat-title {
  margin: 0;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: #0f172a;
  white-space: normal;
}

.ma-feat-inst {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  line-height: 1.3;
}

.ma-feat-ic,
.ma-feat-lessons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ma-feat-inst svg,
.ma-feat-lessons svg {
  width: 14px;
  height: 14px;
  color: var(--oma-purple, #6d28d9);
  flex: none;
}

.ma-feat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}

.ma-feat-rval {
  font-weight: 800;
  color: #0f172a;
}

.ma-feat-sep {
  color: #cbd5e1;
}

.ma-feat-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  color: #5b21b6;
  font-size: 11.5px;
  font-weight: 800;
}

.ma-feat-meta .ma-stars {
  color: #f59e0b;
  letter-spacing: 0.5px;
}

.ma-feat-foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1eef9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ma-feat-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--oma-purple, #6d28d9);
  font-variant-numeric: tabular-nums;
}

.ma-feat-price s {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.ma-feat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ma-feat-btn svg {
  width: 14px;
  height: 14px;
}

/* 7E. Unified Launch Waitlist Card (cursos.length === 0 — Kills 3x Duplication!) */
.ma-launch-sec {
  margin-top: 18px;
  padding-inline: var(--page-pad-m, 18px);
  box-sizing: border-box;
}

.ma-launch-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 14px 32px -20px rgba(109, 40, 217, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.ma-launch-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d28d9 0%, #9333ea 58%, #f97316 100%);
  pointer-events: none;
}

.ma-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5f3ff, #fff7ed);
  border: 1px solid #ede9fe;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ma-launch-title {
  margin: 8px 0 4px;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.ma-launch-sub {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.46;
  color: #475569;
}

.ma-launch-card [data-nl-msg] .ok,
.ma-launch-card [data-nl-msg] .err {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ma-launch-card [data-nl-msg] .ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ma-launch-card [data-nl-msg] .err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ma-launch-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-launch-form input,
.ma-launch-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 14px;
  background: #faf9fd;
  border: 1.5px solid #ddd6fe;
  color: #0f172a;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ma-launch-form input::placeholder,
.ma-launch-input::placeholder {
  color: #64748b;
}

.ma-launch-form input:focus,
.ma-launch-input:focus {
  background: #ffffff;
  border-color: var(--oma-purple, #6d28d9);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

.ma-launch-btn,
.ma-launch-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--oma-purple, #6d28d9);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -10px rgba(109, 40, 217, 0.5);
  box-sizing: border-box;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.ma-launch-btn:active,
.ma-launch-submit:active {
  transform: scale(0.98);
  background: var(--oma-purple-dark, #5b21b6);
  box-shadow: 0 6px 14px -8px rgba(91, 33, 182, 0.5);
}

.ma-launch-btn svg,
.ma-launch-submit svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ma-launch-inst {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1eef9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #475569;
}

.ma-launch-inst a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--oma-purple, #6d28d9);
  font-weight: 800;
  text-decoration: none;
}

/* 7F. OMA Connect Community Showcase (Screen 3 Inspired, 100% Authentic) */
.ma-comm-sec {
  margin-top: 22px;
  padding-inline: var(--page-pad-m, 18px);
  box-sizing: border-box;
}

.ma-comm-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-d, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: clamp(22px, 6.4vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.ma-comm-accent {
  position: relative;
  display: inline-block;
  color: var(--oma-purple, #6d28d9);
  padding-bottom: 6px;
}

.ma-comm-curve {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -2px;
  width: 104%;
  height: 10px;
  color: var(--oma-purple, #6d28d9);
  pointer-events: none;
  display: block;
}

.ma-comm-card {
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 32px -20px rgba(109, 40, 217, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-sizing: border-box;
}

.ma-comm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
}

.ma-comm-ic,
.ma-comm-head-ic {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  color: var(--oma-purple, #6d28d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ma-comm-ic svg,
.ma-comm-head-ic svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ma-comm-hcopy,
.ma-comm-head-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.ma-comm-hcopy strong,
.ma-comm-hcopy h3,
.ma-comm-head-txt strong,
.ma-comm-head-txt h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
}

.ma-comm-hcopy span,
.ma-comm-hcopy p,
.ma-comm-hcopy small,
.ma-comm-head-txt span,
.ma-comm-head-txt p,
.ma-comm-head-txt small {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  color: #475569;
  white-space: normal;
}

.ma-comm-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d28d9;
  flex: none;
}

.ma-comm-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  align-items: stretch;
}

.ma-comm-photo {
  width: 100%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--oma-border, #ebe8f5);
  background: #ede9fe;
  display: block;
}

.ma-comm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.ma-comm-tile {
  border-radius: 14px;
  padding: 12px 10px;
  background: linear-gradient(145deg, #6d28d9 0%, #4c1d95 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  min-width: 0;
  box-sizing: border-box;
}

.ma-comm-trophy {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ma-comm-tile svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  flex: none;
}

.ma-comm-tile strong {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
}

.ma-comm-tile span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #ede9fe;
}

.ma-comm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ma-comm-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #faf9fd;
  border: 1px solid var(--oma-border, #ebe8f5);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.ma-comm-cta {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: 1.5px solid var(--oma-purple, #6d28d9);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -10px rgba(109, 40, 217, 0.5);
  box-sizing: border-box;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.ma-comm-cta:active {
  transform: scale(0.98);
  background: var(--oma-purple-dark, #5b21b6);
  box-shadow: 0 6px 14px -8px rgba(91, 33, 182, 0.5);
}

.ma-comm-cta svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* 7G. 3-Column Trust Pillar Strip (.ma-pillars) — Hairline Dividers, Zero Clip */
.ma-pillars {
  margin: 14px var(--page-pad-m, 18px) 0;
  padding: 13px 6px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 10px 24px -18px rgba(109, 40, 217, 0.14), 0 1px 4px rgba(15, 23, 42, 0.03);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-sizing: border-box;
}

.ma-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 7px;
  padding: 2px 6px;
  min-width: 0;
}

.ma-pillar + .ma-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--oma-border, #ebe8f5);
}

.ma-pillar-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f5f3ff;
  border: 1px solid rgba(109, 40, 217, 0.12);
  color: var(--oma-purple, #6d28d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ma-pillar-ic svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ma-pillar-lbl {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.26;
  color: #1e293b;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

.ma-top {
  padding-inline: var(--page-pad-m, 18px);
}

.ma-top-edit {
  min-height: 48px;
  padding-block: 8px;
  padding-inline: 4px;
  display: inline-flex;
  align-items: center;
}

.ma-ybanner {
  margin: 0 var(--page-pad-m, 18px) 24px;
  padding: 12px 54px 12px 16px;
  min-height: 52px;
  border-radius: 14px;
  box-sizing: border-box;
}

.ma-ybanner-x {
  right: 2px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

.ma-rec-sec,
.ma-home-cats,
.ma-recent-sec {
  margin-block-start: 26px;
  padding-block-end: 0;
}

.ma-rec-sec h2,
.ma-home-cats h2,
.ma-recent-sec h2 {
  padding-inline: var(--page-pad-m, 18px);
}

.ma-rec-rail,
.ma-rail {
  display: flex;
  gap: var(--grid-gap-m, 14px);
  padding-inline: var(--page-pad-m, 18px);
}

.ma-home-cats .ma-cat-pills {
  padding-inline: var(--page-pad-m, 18px);
  gap: 10px;
}

.ma-rec-card,
.ma-card {
  padding: 14px;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px -18px rgba(109, 40, 217, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.ma-rec-card {
  flex: 0 0 248px;
  width: 248px;
}

.ma-card {
  flex: 0 0 224px;
  width: 224px;
}

.ma-rec-thumb,
.ma-card-thumb {
  margin-block-end: 6px;
  border-radius: 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ma-rec-card .ma-bestseller,
.ma-card .ma-bestseller {
  margin-block-start: 12px;
  align-self: flex-start;
}

/* Explore (#/explorar) — Unified Pearl-Lavender Card Craft */
.ma-exp-search {
  min-height: 48px;
  padding-inline: 16px;
  gap: 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 8px 20px -16px rgba(109, 40, 217, 0.18), 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ma-exp-search:focus-within {
  border-color: var(--oma-purple, #6d28d9);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12), 0 8px 20px -16px rgba(109, 40, 217, 0.22);
}

.ma-exp-search input {
  min-height: 48px;
  font-size: 16px;
}

.ma-pills,
.ma-cat-pills,
.ma-int-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ma-pill,
.ma-int-pill {
  min-height: 48px;
  min-width: 48px;
  padding-block: 10px;
  padding-inline: 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.12s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.ma-pill:active,
.ma-int-pill:active {
  transform: scale(0.97);
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.ma-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-cat-row {
  min-height: 52px;
  padding-block: 12px;
  padding-inline: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 6px 18px -14px rgba(109, 40, 217, 0.14);
  box-sizing: border-box;
  transition: transform 0.12s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.ma-cat-row:active {
  transform: scale(0.985);
  border-color: #c4b5fd;
  background: #faf8ff;
}

/* Wishlist (#/desejos) */
.ma-wish-list {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap-m, 14px);
}

.ma-wish-row {
  padding: 16px;
  gap: 14px;
  border: 1px solid var(--oma-border, #ebe8f5);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px -18px rgba(109, 40, 217, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.ma-wish-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ma-wish-body .ma-bestseller {
  margin-block-start: 6px;
  align-self: flex-start;
}

.ma-wish-acts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 12px;
}

.ma-wish-cart,
.ma-wish-rem {
  min-height: 48px;
  min-width: 48px;
  padding-block: 0;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  box-sizing: border-box;
}

.ma-cta {
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 24px -10px rgba(109, 40, 217, 0.45);
}

/* Account (#/conta) — Flagship Personal Growth Hub (v108) & Modals */
.ma-account {
  padding-top: 12px;
  padding-bottom: 28px;
}

.ma-acc-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 56%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px -18px rgba(76, 29, 149, 0.55);
  box-sizing: border-box;
}

.ma-acc-hero::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -42px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
}

.ma-acc-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ma-account .ma-acc-av {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.35);
}

.ma-account .ma-acc-av svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.ma-acc-hero-copy {
  min-width: 0;
  flex: 1 1 0;
  text-align: left;
}

.ma-acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f5f3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.ma-account .ma-acc-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.ma-account .ma-acc-email {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(245, 243, 255, 0.9);
  overflow-wrap: anywhere;
}

.ma-acc-guest-acts,
.ma-acc-hero-acts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-block-start: 16px;
}

.ma-acc-btn-primary,
.ma-acc-btn-ghost {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.ma-acc-btn-primary {
  background: #ffffff;
  color: #4c1d95;
  border: 0;
  box-shadow: 0 10px 20px -12px rgba(15, 23, 42, 0.4);
}

.ma-acc-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
}

.ma-acc-btn-primary:active,
.ma-acc-btn-ghost:active {
  transform: scale(0.975);
}

/* Honest 3-Tile Status / Value Strip */
.ma-acc-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ma-acc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 82px;
  padding: 10px 6px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 8px 20px -16px rgba(109, 40, 217, 0.18), 0 1px 3px rgba(15, 23, 42, 0.04);
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.ma-acc-tile:active {
  transform: scale(0.97);
  border-color: #c4b5fd;
}

.ma-acc-tile-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(109, 40, 217, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.ma-acc-tile-ic svg,
.ma-acc-ic svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ma-acc-tile strong {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ma-acc-tile > span:last-child {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
}

/* Grouped Icon-Backed Cards */
.ma-acc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 18px;
}

.ma-account .ma-acc-gtitle {
  margin: 0;
  padding-inline: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.ma-acc-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--oma-border, #ebe8f5);
  box-shadow: 0 10px 24px -18px rgba(109, 40, 217, 0.14), 0 1px 3px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.ma-acc-card .ma-acc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  color: #0f172a;
  box-sizing: border-box;
  transition: background-color 0.14s ease, transform 0.12s ease;
}

.ma-acc-card .ma-acc-row + .ma-acc-row {
  border-top: 1px solid #f1eef9;
}

.ma-acc-card .ma-acc-row:active {
  background: #faf8ff;
  transform: scale(0.99);
}

.ma-acc-card .ma-acc-row .ma-acc-ic,
.ma-acc-ic {
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(109, 40, 217, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ma-acc-card .ma-acc-row .ma-acc-ic svg,
.ma-acc-ic svg {
  margin: 0;
  flex: none;
}

.ma-acc-ic.is-purple,
.ma-acc-tile-ic.is-purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.ma-acc-ic.is-gold,
.ma-acc-tile-ic.is-gold {
  background: #fef3c7;
  color: #b45309;
}

.ma-acc-ic.is-indigo,
.ma-acc-tile-ic.is-indigo {
  background: #eef2ff;
  color: #4338ca;
}

.ma-acc-ic.is-teal,
.ma-acc-tile-ic.is-teal {
  background: #f0fdfa;
  color: #0f766e;
}

.ma-acc-ic.is-slate,
.ma-acc-tile-ic.is-slate {
  background: #f1f5f9;
  color: #475569;
}

.ma-acc-lbl {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.ma-acc-val {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
}

.ma-acc-card .ma-chev {
  flex: none;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
}

.ma-acc-logout {
  width: 100%;
  min-height: 48px;
  margin-block-start: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 14.5px;
  font-weight: 800;
  box-sizing: border-box;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.ma-acc-logout:active {
  transform: scale(0.98);
  background: #ffe4e6;
}

.ma-remind-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-block-start: 12px;
}

.ma-remind-primary,
.ma-remind-sec {
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 20px;
  border-radius: 999px;
  box-sizing: border-box;
}

.ma-remind-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 22px -10px rgba(109, 40, 217, 0.45);
}

.ma-remind-sec {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
}

.ma-remind-modal {
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--oma-border, #ebe8f5);
}

.ma-remind-time {
  min-height: 48px;
  font-size: 16px;
}

/* Floating Mini-Player (.m-miniplayer) */
.m-miniplayer .m-mp-ctrls {
  gap: 8px;
}

.m-miniplayer button,
.m-miniplayer .m-mp-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   8. Phone Refinements (<= 640px, <= 480px, <= 400px & <= 374px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .grid.g-4,
  .grid.g-3,
  .grid.g-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--grid-gap-m, 14px);
  }

  /* Keep 2x2 KPI grids intact on phones */
  .grid.g-4:has(.kpi),
  .stu-kpis,
  .stf-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap-m, 14px);
  }

  /* Horizontal scroll-snap rails for Mentors & Category Tiles */
  .mentor-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 4px 10px;
    padding-inline: 2px;
    max-width: 100%;
  }

  .mentor-rail::-webkit-scrollbar {
    display: none;
  }

  .mentor-rail .mentor-card {
    flex: 0 0 162px;
    min-width: 162px;
    padding: 16px 12px;
    scroll-snap-align: start;
  }

  .cat-tiles {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--grid-gap-m, 14px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 2px 8px;
    padding-inline: 2px;
    max-width: 100%;
  }

  .cat-tiles::-webkit-scrollbar {
    display: none;
  }

  .cat-tiles .cat-tile {
    flex: 0 0 82%;
    max-width: 300px;
    padding: var(--card-pad-m, 16px);
    scroll-snap-align: start;
  }

  .promo-art {
    display: none;
  }

  .testi-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: var(--card-pad-m, 16px);
  }

  .tc-side {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line-2, #f1f5f9);
    padding-inline-start: 0;
    padding-block-start: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .u-home-body,
  .u-trust,
  .band,
  .nextstep .ns-in,
  .cat-layout,
  .detail-hero .in,
  .detail-body,
  .bib-hero,
  .bib-wrap,
  .lvh-in,
  .content,
  .ft .in,
  .ma-page,
  .ma-top,
  .ma-rec-sec h2,
  .ma-rec-rail,
  .ma-home-cats h2,
  .ma-home-cats .ma-cat-pills,
  .ma-recent-sec h2,
  .ma-rail {
    padding-inline: var(--page-pad-m, 18px);
  }
}

@media (max-width: 400px) {
  .m-buybar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 10px;
  }

  .m-buybar .btn,
  .m-buybar button {
    min-height: 48px;
    min-width: 48px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .m-buybar-price b,
  .m-buybar-price strong,
  .m-buy-price b,
  .m-buy-price strong,
  .m-bb-price b,
  .m-bb-price strong {
    font-size: 15.5px;
  }
}

/* Compact 360px Phone Precision (360x800 first-fold & zero-clip tuning) */
@media (max-width: 374px) {
  .ma-hero {
    padding: 16px 16px 10px;
  }

  .ma-hero-title {
    font-size: 26px;
  }

  .ma-hero-media {
    margin-top: 14px;
    border-radius: 18px;
  }

  .ma-hero-media img {
    height: 174px;
  }

  .ma-cats-wrap,
  .ma-feat-sec,
  .ma-launch-sec,
  .ma-comm-sec {
    padding-inline: 16px;
  }

  .ma-cat-grid {
    gap: 8px;
  }

  .ma-cat-chip {
    padding: 8px 8px;
    gap: 6px;
  }

  .ma-cat-ic {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .ma-cat-ic svg {
    width: 15px;
    height: 15px;
  }

  .ma-cat-lbl {
    font-size: 11.5px;
  }

  .ma-comm-preview {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 8px;
  }

  .ma-comm-photo {
    height: 112px;
  }

  .ma-pillars {
    margin-inline: 16px;
    padding: 14px 4px;
  }

  .ma-pillar {
    padding: 2px 4px;
  }

  .ma-pillar-lbl {
    font-size: 11px;
  }
}
