/* ==========================================================================
   Open Minds Academy — Mobile Shell, Navigation, Tab Bar & Bottom Sheets
   Loaded with media="(max-width: 820px)" after pro.css
   Zero blur filters, zero heavy infinite animations, 48x48px touch targets.
   ========================================================================== */

/* ---------- 1. Base Mobile Guardrails & iOS Zoom Prevention ---------- */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-bottom: 0;
}

.u-shell,
.shell .content,
.ft {
  padding-bottom: env(safe-area-inset-bottom) !important;
}

body:has(.m-miniplayer) .u-shell,
body:has(.m-miniplayer) .shell .content,
body:has(.m-miniplayer) .ft,
body:has(.m-buybar) .u-shell,
body:has(.m-buybar) .shell .content,
body:has(.m-buybar) .ft {
  padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
}

body:has(.m-miniplayer):has(.m-buybar) .u-shell,
body:has(.m-miniplayer):has(.m-buybar) .shell .content,
body:has(.m-miniplayer):has(.m-buybar) .ft {
  padding-bottom: calc(146px + env(safe-area-inset-bottom)) !important;
}

/* Hide floating desktop tutor fab on mobile to keep cards clear */
#oma-fab, .oma-fab {
  display: none !important;
}

/* Hide desktop promo bar & desktop hero on native mobile Home & App screens;
   Keep unified top navbar (.pnav.pnav-light) and .m-search-drawer visible on ALL mobile routes! */
.u-shell-home .promo-bar,
.u-shell-home .u-hero-wrap,
body:has(.ma-home) .promo-bar,
body:has(.ma-home) .u-hero-wrap,
body:has(.ma-page) .promo-bar,
.ma-home ~ .u-hero-wrap {
  display: none !important;
}

.u-shell-home .ma-home,
body:has(.ma-home) .ma-home {
  display: block !important;
}

/* ---------- 2. Compact Mobile Promo Bar ---------- */
.promo-bar {
  position: relative;
  padding: 10px 56px 10px 16px;
  font-size: 12px;
  line-height: 1.4;
  min-height: 52px;
  justify-content: flex-start;
}

.promo-in {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  text-align: left;
}

.promo-txt {
  font-size: 12px;
  line-height: 1.4;
  color: #0f172a;
}

.promo-txt code {
  font-size: 11px;
  padding: 2px 6px;
}

.promo-cta {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.2;
  min-height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-x {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #334155;
  background: transparent;
}

/* ---------- 3. Unified Modern Mobile Top Header (.pnav.pnav-light) ---------- */
.pnav.pnav-light {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  min-height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}

.pnav.pnav-light .in {
  height: 60px;
  min-height: 60px;
  max-width: 100%;
  padding: 0 12px;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.pnav.pnav-light .nav-burger,
.pnav.pnav-light .nav-back,
.pnav.pnav-light .logo,
.pnav.pnav-light .nav-right,
.pnav.pnav-light .tb-cart,
.pnav.pnav-light .notif-dd,
.pnav.pnav-light .bar-act {
  order: initial;
}

/* Clean 48x48 ghost hamburger button (zero boxy gray border) */
.pnav.pnav-light .nav-burger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  flex: none;
  color: #0f172a;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.pnav.pnav-light .nav-burger:hover,
.pnav.pnav-light .nav-burger:active,
.pnav.pnav-light .nav-burger[aria-expanded="true"] {
  background: rgba(109, 40, 217, .08);
  color: #6d28d9;
}

.pnav.pnav-light .nav-burger svg {
  width: 20px;
  height: 20px;
}

/* Never cram [x][<-][logo] on mobile top bar — breadcrumbs/in-page back handle detail pages */
.pnav.pnav-light .nav-back,
.pnav.pnav-light .nav-back[hidden] {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: none !important;
}

.pnav.pnav-light .logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  margin-right: 0;
  overflow: hidden;
  text-decoration: none;
}

.pnav.pnav-light .logo-chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  box-shadow: 0 2px 0 var(--violet-700);
}

.pnav.pnav-light .logo-chip .logo-sym,
.pnav.pnav-light .logo-chip .logo-house {
  width: 20px;
  height: 20px;
}

/* Keep "Open Minds ACADEMY" wordmark readable across 360px-414px+ screens */
.pnav.pnav-light .logo .lw {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pnav.pnav-light .logo .lw b {
  font-size: 7px;
  letter-spacing: 1.7px;
  color: #6d28d9;
}

/* Desktop inline search stays hidden; use .m-search-btn + .m-search-drawer */
.pnav.pnav-light .search {
  display: none;
}

.pnav.pnav-light .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.pnav.pnav-light .nav-ic,
.pnav.pnav-light .m-search-btn,
.pnav.pnav-light .tb-cart,
.pnav.pnav-light .tb-notif {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1e293b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  flex: none;
  position: relative;
  transition: background .14s ease, color .14s ease;
}

.pnav.pnav-light .m-search-btn svg,
.pnav.pnav-light .nav-ic svg {
  width: 20px;
  height: 20px;
}

.pnav.pnav-light .m-search-btn:active,
.pnav.pnav-light .m-search-btn[aria-expanded="true"],
.pnav.pnav-light .m-search-btn.on,
.pnav.pnav-light .nav-ic:active {
  background: rgba(109, 40, 217, .1);
  color: #6d28d9;
}

.pnav.pnav-light .tb-cart,
.pnav.pnav-light .tb-notif {
  position: relative;
  margin-left: 0;
}

/* Crisp circular brand purple (#6d28d9) Cart & Notification badges — ZERO orange */
.pnav.pnav-light .tb-cart .nb,
.pnav.pnav-light .tb-notif .nb,
.pnav.pnav-light .nb-cart,
.pnav.pnav-light #cart-n,
.pnav.pnav-light #notif-n {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #6d28d9 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(109, 40, 217, .32) !important;
  pointer-events: none;
  z-index: 2;
}

.pnav.pnav-light .tb-cart .nb[hidden],
.pnav.pnav-light .tb-notif .nb[hidden],
.pnav.pnav-light .nb-cart[hidden],
.pnav.pnav-light #cart-n[hidden],
.pnav.pnav-light #notif-n[hidden],
.pnav.pnav-light #cart-n:empty,
.pnav.pnav-light #notif-n:empty {
  display: none !important;
}

.pnav.pnav-light .bar-act {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: none;
}

.pnav.pnav-light .bar-act:not(:has(a.btn-u-outline)) {
  display: none !important;
}

/* Hide giant "Inscreva-se" block, logout button (in drawer), and language pill on mobile top bar */
.pnav.pnav-light .bar-act .btn-u-solid,
.pnav.pnav-light .bar-act .btn-f,
.pnav.pnav-light .bar-act button,
.pnav.pnav-light .bar-act button.btn-u-outline,
.pnav.pnav-light .nav-lang {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: none !important;
}

/* Compact 48px-tall "Entrar" pill for guests (!S.user) ONLY — never logged-in logout button */
.pnav.pnav-light .bar-act a.btn-u-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  min-width: 58px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(109, 40, 217, .28);
  color: #6d28d9;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
}

.pnav.pnav-light .bar-act a.btn-u-outline:active {
  background: rgba(109, 40, 217, .08);
}

/* Logged-in avatar is shown in .ma-home .ma-top and .nd-head — hide in top bar to keep 360px 48x48 budget clean */
.pnav.pnav-light .nav-av {
  display: none !important;
}

/* Hide legacy dropdown .pnav.pnav-light .links (replaced by full-height left drawer .nd-wrap) */
.pnav.pnav-light .links,
.pnav.pnav-light .links.open {
  display: none !important;
}

@media (max-width: 400px) {
  .pnav.pnav-light .in {
    padding: 0 12px;
    gap: 8px;
  }

  .pnav.pnav-light .nav-right {
    gap: 8px;
  }

  .pnav.pnav-light .logo .lw {
    display: flex !important;
    font-size: 12.5px;
  }

  .pnav.pnav-light .bar-act a.btn-u-outline {
    padding: 0 10px;
    font-size: 12.5px;
  }
}

/* ---------- 4. Expandable Mobile Search Drawer ---------- */
.m-search-drawer {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 39;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  padding: 12px 16px;
}

.m-search-drawer.open {
  display: block;
}

.m-search-drawer[hidden] {
  display: none !important;
}

.m-search-drawer .m-search-in,
.m-search-drawer .m-search-box,
.m-search-drawer form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.m-search-drawer .m-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  min-height: 48px;
}

.m-search-drawer .m-search-field:focus-within {
  background: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.m-search-drawer .m-search-field svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex: none;
}

.m-search-drawer input,
.m-search-drawer input[type="search"],
#m-nav-q,
#m-search-q {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  font-size: 16px !important;
  line-height: 1.3;
  color: #0f172a;
  background: transparent;
  border: 0;
  outline: none;
}

.m-search-drawer > input,
.m-search-drawer > .m-search-in > input,
.m-search-drawer > form > input {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
}

.m-search-drawer > input:focus,
.m-search-drawer > .m-search-in > input:focus,
.m-search-drawer > form > input:focus {
  background: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.m-search-drawer input::placeholder {
  color: #64748b;
}

.m-search-drawer .m-search-go,
.m-search-drawer .m-search-close {
  min-width: 48px;
  min-height: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}

.m-search-drawer .m-search-go {
  background: #6d28d9;
  color: #ffffff;
  border: 0;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.m-search-drawer .m-search-close {
  width: 48px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.m-search-drawer .m-search-close svg {
  width: 20px;
  height: 20px;
}

/* ---------- 5. Single Top Navigation Policy: Hide Legacy Bottom Tab Bar (.m-tabbar), Anchor .m-buybar & .m-miniplayer ---------- */
.m-tabbar {
  display: none !important;
}

/* Course Detail Sticky Buy Bar (.m-buybar) — Flush at bottom: 0 with zero gap */
.m-buybar {
  bottom: 0 !important;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
  z-index: 42 !important;
}

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

.m-buybar .btn,
.m-buybar button,
.m-buybar a.btn {
  min-height: 48px;
  min-width: 48px;
  padding: 10px 16px;
}

/* Floating Mini-Player Bar (.m-miniplayer) */
.m-miniplayer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 44;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .14);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  color: #0f172a;
}

body:has(.m-buybar) .m-miniplayer {
  bottom: calc(76px + env(safe-area-inset-bottom)) !important;
}

.m-miniplayer[hidden] {
  display: none !important;
}

.m-miniplayer .m-mp-link,
.m-miniplayer .m-mp-main,
.m-miniplayer > a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
}

.m-miniplayer img,
.m-miniplayer .m-mp-thumb {
  width: 62px;
  height: 44px;
  min-width: 62px;
  border-radius: 9px;
  object-fit: cover;
  background: #0f172a;
  flex: none;
  display: block;
}

.m-miniplayer .m-mp-info,
.m-miniplayer .m-mp-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m-miniplayer .m-mp-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-miniplayer .m-mp-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-miniplayer .m-mp-ctrls,
.m-miniplayer .m-mp-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.m-miniplayer button,
.m-miniplayer .m-mp-btn,
.m-miniplayer .m-mp-play {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  flex: none;
  transition: background .14s ease, color .14s ease;
}

.m-miniplayer button svg,
.m-miniplayer .m-mp-btn svg {
  width: 19px;
  height: 19px;
}

.m-miniplayer .m-mp-play {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.m-miniplayer .m-mp-close {
  color: #64748b;
}

.m-miniplayer button:active,
.m-miniplayer .m-mp-btn:active {
  background: rgba(109, 40, 217, .12);
  color: #6d28d9;
}

/* Keep Tutor FAB cleanly above floating pill tab bar & mini-player */
body:has(.m-tabbar) .oma-fab {
  bottom: calc(82px + max(12px, env(safe-area-inset-bottom))) !important;
}

body:has(.m-miniplayer) .oma-fab {
  bottom: calc(146px + env(safe-area-inset-bottom)) !important;
}

/* Hide tab bar & mini-player inside Live Studio */
body:has(.lvs-shell) .m-tabbar,
body:has(.lvs-shell) .m-miniplayer {
  display: none !important;
}

body:has(.lvs-shell) .u-shell,
body:has(.lvs-shell) .shell .content,
body:has(.lvs-shell) .ft {
  padding-bottom: 0;
}

/* ---------- 6. Touch Targets & Safe Area on Drawers / Modals (<= 820px) ---------- */
.cd-close,
.cd-rem,
.lm-close,
.nm-acts button,
.nm-phead button,
.nm-mark,
.icon-btn,
.nav-lang {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

.cd-coupon-in input,
.modal input,
.modal select,
.modal textarea {
  font-size: 16px !important;
  min-height: 48px;
}

.cd-foot {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.nm-mark {
  opacity: 1;
}

.lm-item {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ---------- 7. Native Bottom Sheets on <= 640px ---------- */
@media (max-width: 640px) {
  /* Cart Drawer Bottom Sheet */
  .cart-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 86dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgba(11, 16, 38, .24);
    transform: translateY(100%);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  }

  .cart-wrap.open .cart-drawer {
    transform: translateY(0);
  }

  .cart-drawer::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 8px auto 0;
    flex: none;
  }

  .cd-head {
    padding: 12px 16px 14px;
    border-radius: 20px 20px 0 0;
  }

  .cd-body {
    padding: 14px 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .cd-foot {
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .cd-go,
  .cd-pay-acts .btn,
  .cd-coupon .btn {
    min-height: 48px;
  }

  .cd-pay-acts {
    flex-direction: column;
    gap: 10px;
  }

  .cd-pay-acts .btn {
    width: 100%;
    justify-content: center;
  }

  /* Notifications Bottom Sheet */
  .notif-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 86dvh;
    z-index: 1180;
    border-radius: 20px 20px 0 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -16px 48px rgba(11, 16, 38, .26);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    transform-origin: bottom center;
  }

  .nm-head {
    padding: 14px 16px 12px;
  }

  .nm-bar {
    padding: 8px 12px;
    gap: 8px;
  }

  .nm-chips {
    gap: 8px;
  }

  .nm-chips button,
  .nm-unread-toggle {
    min-height: 48px;
    padding: 8px 14px;
  }

  .nm-list {
    max-height: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nm-foot {
    padding: 10px 14px;
    gap: 10px;
  }

  .nm-foot button {
    min-height: 48px;
    padding: 10px 14px;
  }

  /* Language Modal Bottom Sheet */
  .lang-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .lang-modal {
    width: 100%;
    max-width: 100%;
    max-height: 86dvh;
    border-radius: 20px 20px 0 0;
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .lang-wrap.open .lang-modal {
    transform: translateY(0);
  }

  .lang-modal::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 12px;
  }

  .lm-head {
    margin-bottom: 14px;
  }

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

  /* Generic Modal Bottom Sheet */
  .overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, .56);
  }

  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 86dvh;
    margin: 0;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal .mh {
    padding: 16px 18px;
  }

  .modal .mb {
    padding: 16px 18px;
  }

  .modal .mb .btn,
  .modal .mf .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 8. PWA Install Banner (.pwa-install-bar) ---------- */
.pwa-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 38;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

body:has(.m-miniplayer) .pwa-install-bar,
body:has(.m-buybar) .pwa-install-bar {
  bottom: calc(80px + env(safe-area-inset-bottom));
}

.pwa-install-bar[hidden] {
  display: none !important;
}

.pwa-install-bar .pwa-ic,
.pwa-install-bar .pwa-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(109, 40, 217, .1);
  color: #6d28d9;
  display: grid;
  place-items: center;
  flex: none;
}

.pwa-install-bar .pwa-txt,
.pwa-install-bar .pwa-info {
  flex: 1;
  min-width: 0;
}

.pwa-install-bar .pwa-txt b,
.pwa-install-bar .pwa-info b,
.pwa-install-bar strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.pwa-install-bar .pwa-txt small,
.pwa-install-bar .pwa-info small,
.pwa-install-bar p {
  display: block;
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.3;
  color: #475569;
}

.pwa-install-bar .pwa-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.pwa-install-bar .pwa-btn,
.pwa-install-bar .pwa-install-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pwa-install-bar .pwa-close,
.pwa-install-bar .pwa-dismiss {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.pwa-install-bar .pwa-close svg,
.pwa-install-bar .pwa-dismiss svg {
  width: 18px;
  height: 18px;
}

body:has(.lvs-shell) .pwa-install-bar {
  display: none !important;
}

/* ---------- 9. Udemy iOS Mobile App Screens (.ma-*) ---------- */
.ma-page {
  background: #ffffff;
  color: #0f172a;
  padding: 20px var(--page-pad-m, 18px) 44px;
  max-width: 100%;
  min-height: calc(100dvh - 130px);
  overflow-x: clip;
}

.ma-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  min-height: 48px;
}

.ma-head h1,
.ma-head h2,
.ma-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.ma-head-sub,
.ma-count {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.ma-head-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ma-head-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ma-sec-h,
.ma-sec-title {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f172a;
}

/* Explore: Rounded Pill Search Bar */
.ma-exp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  min-height: 48px;
  margin-bottom: 20px;
  transition: background .15s ease, border-color .15s ease;
}

.ma-exp-search:focus-within {
  background: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.ma-exp-search svg {
  width: 19px;
  height: 19px;
  color: #64748b;
  flex: none;
}

.ma-exp-search input,
#ma-exp-q {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 16px !important;
  line-height: 1.3;
  outline: none;
}

.ma-exp-search input::placeholder,
#ma-exp-q::placeholder {
  color: #64748b;
}

/* Explore: Top Searches Pill Chips */
.ma-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.ma-pills a,
.ma-pills button,
.ma-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.ma-pills a:active,
.ma-pills button:active,
.ma-pill:active {
  background: rgba(109, 40, 217, .09);
  border-color: #6d28d9;
  color: #6d28d9;
}

/* Explore: Category List with Hairline Dividers & Right Chevrons */
.ma-cat-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.ma-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.ma-cat-row:active {
  background: #f8fafc;
  color: #6d28d9;
}

.ma-cat-row .ma-chev,
.ma-cat-row svg:last-child {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex: none;
  margin-left: auto;
}

/* Wishlist Rows & Bestseller Badge */
.ma-wish-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.ma-wish-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ma-wish-thumb,
.ma-wish-row > a > img,
.ma-wish-row > img {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
  flex: none;
  display: block;
}

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

.ma-wish-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ma-wish-inst,
.ma-wish-author {
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-wish-rate,
.ma-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #b4690e;
}

.ma-stars {
  color: #e59819;
  letter-spacing: 0.4px;
}

.ma-rate-n {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.ma-wish-price,
.ma-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 0;
}

.ma-wish-price b,
.ma-wish-price strong,
.ma-price b,
.ma-price strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ma-wish-price s,
.ma-wish-price del,
.ma-price s,
.ma-price del {
  font-size: 12px;
  color: #64748b;
  text-decoration: line-through;
}

.ma-badge,
.ma-bestseller {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #eceb98;
  color: #3d3c0a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 12px;
}

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

.ma-wish-cart,
.ma-btn-primary {
  min-height: 48px;
  min-width: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.ma-wish-rem,
.ma-btn-ghost {
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #e11d48;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ma-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  gap: 10px;
}

.ma-empty-ic {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(109, 40, 217, .1);
  color: #6d28d9;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.ma-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.ma-empty p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  max-width: 280px;
}

.ma-cta {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* Account Screen */
.ma-acc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 22px;
  gap: 6px;
}

.ma-acc-av {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 999px;
  background: #1e293b;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.ma-acc-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.ma-acc-email {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

.ma-acc-inst,
.ma-acc-link {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #6d28d9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
}

.ma-acc-guest-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 14px auto 0;
}

.ma-acc-group {
  margin: 18px 0 0;
}

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

.ma-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.ma-acc-row:active {
  background: #f8fafc;
  color: #6d28d9;
}

.ma-acc-row .ma-chev,
.ma-acc-row svg:last-child {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex: none;
  margin-left: auto;
}

.ma-acc-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 24px 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(109, 40, 217, .08);
  color: #6d28d9;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ma-acc-logout:active {
  background: rgba(109, 40, 217, .16);
}

.ma-acc-ver {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 8px 0 0;
}

/* Native iOS Learning Reminder Modal */
.ma-remind-wrap {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, .56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ma-remind-wrap[hidden] {
  display: none !important;
}

.ma-remind-modal {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .26);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ma-remind-modal h2,
.ma-remind-modal h3,
.ma-remind-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.ma-remind-modal p,
.ma-remind-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

#ma-rem-time,
.ma-remind-time {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px !important;
  font-weight: 700;
  text-align: center;
}

.ma-remind-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ma-remind-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ma-remind-sec,
.ma-remind-secondary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Recently Viewed Horizontal Scroll-Snap Rail */
.ma-recent-sec {
  margin-top: 40px;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}

.ma-recent-sec h2,
.ma-recent-sec h3,
.ma-recent-sec .ma-sec-h {
  margin: 0 0 14px;
  padding: 0 var(--page-pad-m, 18px);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.ma-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.ma-card {
  flex: 0 0 224px;
  width: 224px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  text-decoration: none;
  color: #0f172a;
}

.ma-card img,
.ma-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
  display: block;
  margin-bottom: 6px;
}

.ma-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ma-card-inst {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-card-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #b4690e;
}

.ma-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.ma-card-price s,
.ma-card-price del {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-decoration: line-through;
}

/* ---------- 10. Udemy iOS Native Home (.ma-home) & Interests Modal (.ma-int-pills) ---------- */
.ma-home {
  background: #ffffff;
  color: #1c1d1f;
  padding: 16px 0 0;
  max-width: 100%;
  overflow-x: clip;
}

/* Native Top Greeting Bar (sits cleanly beneath the 60px unified top navbar) */
.ma-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 4px var(--page-pad-m, 18px) 16px;
}

.ma-top:empty {
  display: none !important;
}

/* Hide duplicate top-bar Cart/Bell actions inside .ma-home (unified top bar owns Cart + Bell) */
.ma-home .ma-top-acts,
.ma-home .ma-top-right {
  display: none !important;
}

.ma-top-left,
.ma-top-user {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ma-top-av {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  background: #1c1d1f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.ma-top-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: #6d28d9;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}

.ma-top-logo svg,
.ma-top-logo img {
  width: 26px;
  height: 26px;
}

.ma-top-info,
.ma-top-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ma-top-name,
.ma-top h1,
.ma-top h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #1c1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-top-sub,
.ma-top p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-top-edit,
.ma-top-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 2px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.ma-top-edit:active,
.ma-top-link:active {
  opacity: 0.72;
}

.ma-top-acts,
.ma-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ma-top-ic,
.ma-top-btn,
.ma-top-acts .nav-ic,
.ma-top-acts button {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1c1d1f;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex: none;
  transition: background .14s ease, color .14s ease;
}

.ma-top-ic:active,
.ma-top-btn:active,
.ma-top-acts .nav-ic:active,
.ma-top-acts button:active {
  background: rgba(109, 40, 217, .1);
  color: #6d28d9;
}

.ma-top-ic svg,
.ma-top-btn svg,
.ma-top-acts .nav-ic svg,
.ma-top-acts button svg {
  width: 20px;
  height: 20px;
}

.ma-top-badge,
.ma-top-acts .badge,
.ma-top-acts #cart-n,
.ma-top-acts #notif-n {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.ma-top-badge:empty,
.ma-top-acts .badge:empty,
.ma-top-acts #cart-n:empty,
.ma-top-acts #notif-n:empty {
  display: none;
}

/* Soft-Yellow Dismissible Countdown Banner */
.ma-ybanner {
  margin: 0 var(--page-pad-m, 18px) 24px;
  background: #fbf2b5;
  border-radius: 10px;
  padding: 12px 54px 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #1c1d1f;
  min-height: 52px;
}

.ma-ybanner[hidden] {
  display: none !important;
}

.ma-ybanner-x,
.ma-ybanner-close {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1c1d1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.78;
}

.ma-ybanner-x:active,
.ma-ybanner-close:active {
  opacity: 1;
  background: rgba(28, 29, 31, .08);
}

.ma-ybanner-txt,
.ma-ybanner-cta,
#ma-promo-cd {
  color: #1c1d1f;
  text-decoration: none;
  cursor: pointer;
}

/* "Recomendados para você" Horizontal Scroll-Snap Rail */
.ma-rec-sec {
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}

.ma-rec-sec h2,
.ma-rec-sec h3,
.ma-rec-h,
.ma-rec-sec .ma-sec-h {
  margin: 0;
  padding: 0 var(--page-pad-m, 18px) 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1c1d1f;
}

.ma-rec-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ma-rec-rail::-webkit-scrollbar {
  display: none;
}

.ma-rec-card {
  flex: 0 0 248px;
  width: 248px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  text-decoration: none;
  color: #1c1d1f;
}

.ma-rec-card img,
.ma-rec-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, .08);
  display: block;
  margin-bottom: 6px;
}

.ma-rec-card .ma-rec-title,
.ma-rec-card-title,
.ma-rec-ctitle {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #1c1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ma-rec-inst,
.ma-rec-card-inst,
.ma-rec-cinst {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-rec-rate,
.ma-rec-card-rate,
.ma-rec-crate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
  color: #b4690e;
  line-height: 1.2;
}

.ma-rec-rate .ma-stars {
  color: #e59819;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

.ma-rec-rate .ma-rate-n {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.ma-rec-price,
.ma-rec-card-price,
.ma-rec-cprice {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #1c1d1f;
}

.ma-rec-price b,
.ma-rec-price strong,
.ma-rec-card-price b,
.ma-rec-card-price strong,
.ma-rec-cprice b,
.ma-rec-cprice strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #1c1d1f;
}

.ma-rec-price s,
.ma-rec-price del,
.ma-rec-card-price s,
.ma-rec-card-price del,
.ma-rec-cprice s,
.ma-rec-cprice del {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: line-through;
}

.ma-bestseller,
.ma-rec-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #eceb98;
  color: #3d3c0a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 12px;
}

/* Home Categories Horizontal Pill Rail */
.ma-home-cats,
.ma-cats-sec {
  margin-top: 40px;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}

.ma-home-cats h2,
.ma-home-cats h3,
.ma-home-cats .ma-sec-h,
.ma-cats-sec h2,
.ma-cats-sec h3,
.ma-cats-sec .ma-sec-h {
  margin: 0;
  padding: 0 var(--page-pad-m, 18px) 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #1c1d1f;
}

.ma-home-cats .ma-cat-pills,
.ma-cats-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 0 var(--page-pad-m, 18px);
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--page-pad-m, 18px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ma-home-cats .ma-cat-pills::-webkit-scrollbar,
.ma-cats-rail::-webkit-scrollbar {
  display: none;
}

.ma-home-cats .ma-pill,
.ma-cat-pill,
.ma-cats-rail a,
.ma-cats-rail button {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1c1d1f;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.ma-cat-pill:active,
.ma-cats-rail a:active,
.ma-cats-rail button:active {
  background: rgba(109, 40, 217, .1);
  border-color: #6d28d9;
  color: #6d28d9;
}

/* Occupation & Interests Modal Pills (.ma-int-pills) */
.ma-int-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.ma-int-pills button,
.ma-int-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1c1d1f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.ma-int-pills button.on,
.ma-int-pills button.selected,
.ma-int-pills button[aria-pressed="true"],
.ma-int-pill.on,
.ma-int-pill.selected,
.ma-int-pill[aria-pressed="true"] {
  background: rgba(109, 40, 217, .12);
  border-color: #6d28d9;
  color: #6d28d9;
}

/* ---------- 11. Mobile Section Vertical Rhythm (40px–48px) & Lateral Breathing ---------- */
.u-home-body {
  padding: var(--sec-gap-m, 44px) var(--page-pad-m, 18px) !important;
}

.u-home-body > #sec-mentores:first-child {
  margin-top: 0;
}

.u-home-body > .hs-cat-sec,
.u-home-body > .band,
.u-home-body > .nextstep,
.u-home-body > .hs-plans-sec,
.u-home-body > .depo-sec,
.u-home-body > .sec-head {
  margin-top: var(--sec-gap-m, 44px);
}

@media (max-width: 374px) {
  .pnav.pnav-light .in {
    padding: 0 8px !important;
    gap: 6px !important;
  }

  .pnav.pnav-light .logo-chip {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  .pnav.pnav-light .bar-act a.btn-u-outline {
    min-width: 48px !important;
    padding: 0 6px !important;
  }

  .pnav.pnav-light .logo .lw {
    font-size: 11.5px !important;
  }

  .m-miniplayer .mp-info {
    display: none !important;
  }

  .m-miniplayer {
    justify-content: space-between;
  }
}

/* Compact Mobile Guest Hero Intro */
.ma-guest-hero {
  padding: 6px 18px 16px;
}

.ma-gh-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(109, 40, 217, .1);
  color: #6d28d9;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ma-gh-title {
  margin: 10px 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.ma-gh-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}
