:root {
  --bg-main: #1c2430;
  --bg-panel: rgba(28, 36, 48, 0.82);
  --bg-soft: rgba(28, 36, 48, 0.68);
  --bg-input: rgba(255, 255, 255, 0.14);
  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.84);
  --text-subtle: rgba(255, 255, 255, 0.68);
  --accent: #61c161;
  --accent-strong: #61c161;
  --accent-soft: #61c161;
  --accent-rgb: 97, 193, 97;
  --stroke: rgba(255, 255, 255, 0.28);
  --card-shadow: 0 18px 44px rgba(8, 12, 18, 0.42);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.24);
  --surface-1: rgba(28, 36, 48, 0.88);
  --surface-2: rgba(36, 48, 62, 0.88);
  --surface-3: rgba(45, 61, 76, 0.9);
  --surface-solid: #1c2430;
  --border-soft: rgba(255, 255, 255, 0.18);
  --menu-bg: rgba(28, 36, 48, 0.74);
  --menu-bg-scrolled: rgba(28, 36, 48, 0.92);
  --menu-border: rgba(255, 255, 255, 0.16);
  --header-height: 72px;
  --btn-radius: 4px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --page-pad: clamp(16px, 4vw, 58px);
  --media-placeholder: linear-gradient(145deg, #4b5563 0%, #5f6b7a 52%, #4f5b69 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.45;
  color: var(--text-main);
  background:
    radial-gradient(circle at 17% -25%, rgba(255, 255, 255, 0.08) 0%, rgba(28, 36, 48, 0) 40%),
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(28, 36, 48, 0) 36%),
    linear-gradient(180deg, #1b2430 0%, #1c2430 72%, #1a212c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 30px;
  align-items: stretch;
}

.auth-single {
  width: min(460px, calc(100% - 24px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.auth-single .auth-card {
  width: 100%;
  min-height: unset;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  min-height: 720px;
  box-shadow: var(--card-shadow);
}

.logo {
  width: 228px;
  height: 66px;
}

.logo-sm {
  width: 120px;
  height: 40px;
}

.logo,
.logo-sm {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -9999px;
  background: var(--brand-logo-url, url("img/logotipo.svg")) no-repeat center/contain;
}

.auth-card .logo {
  display: block;
  margin: 0 auto;
}

.auth-title {
  margin: 72px 0 10px;
  font-size: clamp(2rem, 2.1vw, 2.5rem);
  line-height: 1.08;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.input,
.pin-cell,
.select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-main);
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.input:focus,
.pin-cell:focus,
.select:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.2);
}

.input.is-invalid {
  border-color: #ff8fa5;
  background: rgba(255, 143, 165, 0.12);
}

.button {
  border: 1px solid transparent;
  color: #1c2430;
  background: var(--accent);
  border-radius: var(--btn-radius);
  padding: 16px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #1c2430;
  border-color: transparent;
}

.button-primary:hover {
  background: var(--accent);
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.button-outline:hover {
  border-color: rgba(var(--accent-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.16);
}

.auth-footer-link {
  display: inline-block;
  margin-top: 6px;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
}

.um5-gateway-page {
  width: min(560px, calc(100% - 24px));
}

.um5-gateway-card {
  min-height: unset;
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}

.um5-gateway-title {
  margin: 12px 0 4px;
}

.um5-gateway-subtitle {
  margin: 0;
}

.um5-gateway-helper {
  margin: 0;
}

.um5-loader {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--accent);
  animation: um5-spin 0.85s linear infinite;
}

.um5-loader.is-hidden {
  display: none;
}

@keyframes um5-spin {
  to {
    transform: rotate(360deg);
  }
}

.um5-gateway-actions {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
}

.um5-gateway-actions[hidden] {
  display: none;
}

.um5-gateway-error {
  margin: 2px 0 0;
}

.preview-panel {
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.app-header {
  height: var(--header-height);
  padding: 0 var(--page-pad);
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 120;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--menu-border);
  background: var(--menu-bg);
  box-shadow: 0 10px 24px rgba(5, 9, 14, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-header-home {
  margin-bottom: calc(-1 * var(--header-height));
}

.app-header.is-scrolled {
  background: var(--menu-bg-scrolled);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(5, 9, 14, 0.44);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  color: #ffffff;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: #ffffff;
}

.coin-badge {
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  padding: 8px 14px;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.header-greeting {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-menu {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.profile-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 12px;
}

.profile-trigger {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: rgba(34, 46, 61, 0.95);
}

.profile-avatar {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  min-width: 170px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(28, 36, 48, 0.96);
  box-shadow: 0 18px 34px rgba(2, 4, 15, 0.46);
  padding: 8px;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 320;
}

.profile-menu:hover .profile-dropdown,
.profile-menu.is-open .profile-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-link {
  width: 100%;
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.profile-link:hover {
  background: rgba(var(--accent-rgb), 0.2);
  color: #fff;
}

.profile-link-button {
  border: 0;
  text-align: left;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.profile-coins-link {
  display: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 5px;
  padding-bottom: 10px;
}

.search-shell {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: width 0.32s ease;
}

.search-shell.is-open {
  width: min(300px, 62vw);
  border-radius: 999px;
}

.search-input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0 46px 0 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-shell.is-open .search-input {
  opacity: 1;
}

.search-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.search-shell.is-open .search-toggle {
  width: 40px;
  left: auto;
  right: 0;
}

.preview-hero,
.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.preview-hero::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(108deg, rgba(8, 12, 18, 0.7) 0%, rgba(8, 12, 18, 0.46) 46%, rgba(8, 12, 18, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.22) 0%, rgba(8, 12, 18, 0.34) 100%),
    var(--hero-image, var(--media-placeholder)) center top/cover;
}

.preview-hero::after,
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(28, 36, 48, 0) 0%, rgba(28, 36, 48, 0.38) 68%, #1c2430 100%);
  pointer-events: none;
}

.hero-2::before {
  background:
    linear-gradient(108deg, rgba(23, 34, 46, 0.94) 0%, rgba(25, 37, 49, 0.7) 45%, rgba(45, 76, 67, 0.3) 100%),
    linear-gradient(180deg, rgba(18, 26, 36, 0.2) 0%, rgba(20, 30, 42, 0.76) 58%, rgba(22, 34, 46, 0.96) 100%),
    var(--media-placeholder) center top/cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.catalog-page .hero-content {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: calc(var(--header-height) + 24px) var(--page-pad) 30px;
}

.preview-panel .hero-content {
  padding: 170px 30px 28px;
  max-width: 560px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.75vw, 3.15rem);
  line-height: 1.1;
}

.hero h1.small {
  font-size: clamp(1.7rem, 2vw, 2.6rem);
}

.hero-text {
  margin: 0;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.56;
  font-size: clamp(0.96rem, 1vw, 1.1rem);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #1c2430;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 26px rgba(8, 12, 18, 0.3);
  margin-top: 8px;
}

.cta-compact {
  padding: 11px 20px;
}

[data-hero-cta].cta {
  width: max-content;
  justify-self: start;
}

@media (min-width: 861px) {
  .home-cards-slider {
    width: 100%;
    min-width: 0;
    grid-auto-columns: minmax(260px, calc((100% - 56px) / 5));
  }

  .cta-compact {
    padding: 7px 14px;
    font-size: 0.78rem;
    border-radius: 10px;
  }
}

.app-content {
  padding: 22px var(--page-pad) 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
}

.section-link {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-link:hover {
  color: #ffffff;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.categories-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card .card-body {
  min-height: 136px;
}

.card-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 300px);
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.55) transparent;
}

.infinite-feed-slider {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-slider .card-body {
  padding: 12px;
}

.card-slider::-webkit-scrollbar {
  height: 8px;
}

.card-slider::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.55);
  border-radius: 999px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(24, 31, 41, 0.96) 0%, rgba(30, 40, 52, 0.94) 62%, rgba(39, 62, 56, 0.9) 100%);
  border: 1px solid var(--border-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(138deg, rgba(var(--accent-rgb), 0.92) 0%, rgba(var(--accent-rgb), 0.52) 54%, rgba(255, 255, 255, 0.38) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.88;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 16px 28px rgba(6, 14, 28, 0.42);
}

.card-thumb {
  position: relative;
  min-height: 172px;
  background: var(--media-placeholder) center/cover;
}

.card-thumb::after {
  content: none !important;
  display: none !important;
}

.card-thumb.thumb-2 {
  background: var(--media-placeholder) center/cover;
}

.card-thumb.thumb-3 {
  background: var(--media-placeholder) center/cover;
}

.card-thumb.thumb-4 {
  background: var(--media-placeholder) center/cover;
}

.card-thumb.thumb-5 {
  background: var(--media-placeholder) center/cover;
}

.card-body {
  padding: 14px;
}

.card-tag {
  color: var(--text-subtle);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-title {
  margin: 6px 0 4px;
  font-size: 1.02rem;
}

.card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.lesson-watch-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
}

.lesson-watch-note.is-complete {
  color: var(--accent);
}

.lesson-watch-note.is-pending {
  color: var(--text-subtle);
}

.lesson-watch-note.is-hidden,
.lesson-sequence-status.is-hidden {
  display: none;
}

.lesson-watch-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(150, 165, 189, 0.55);
  background: rgba(11, 17, 29, 0.72);
  color: #9ba6b7;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lesson-watch-badge svg {
  width: 18px;
  height: 18px;
}

.lesson-watch-badge.is-complete {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(12, 26, 17, 0.86);
}

.lesson-watch-badge.is-pending {
  color: #9ba6b7;
}

.lesson-watch-badge.is-hidden {
  display: none !important;
}

.section-spaced {
  margin-top: 28px;
}

.catalog-page {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.catalog-inner {
  padding: 24px var(--page-pad) 34px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select {
  min-width: 180px;
  background: var(--surface-2);
}

.select option {
  color: #16222e;
  background: #ffffff;
}

.helper {
  color: var(--text-dim);
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.notice,
.error {
  margin-top: 4px;
  font-size: 0.88rem;
}

.notice {
  color: var(--accent);
}

.error {
  color: #ff8fa5;
}

.pin-wrap {
  display: grid;
  gap: 12px;
}

.pin-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.pin-cell {
  text-align: center;
  font-size: 1.2rem;
  background: var(--surface-2);
  padding: 16px 0;
}

.link-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.inline-link {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.lesson-shell {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  display: block;
}

.lesson-top {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.lesson-media {
  min-height: 420px;
  position: relative;
}

.lesson-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.16) 0%, rgba(21, 31, 42, 0.62) 64%, rgba(20, 30, 40, 0.94) 100%),
    var(--media-placeholder) center/cover;
}

.lesson-media.lesson-media-dynamic::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.16) 0%, rgba(21, 31, 42, 0.62) 64%, rgba(20, 30, 40, 0.94) 100%),
    var(--lesson-thumb, var(--media-placeholder)) center/cover;
}

.lesson-media.media-ai::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.16) 0%, rgba(21, 31, 42, 0.62) 64%, rgba(20, 30, 40, 0.94) 100%),
    var(--media-placeholder) center/cover;
}

.lesson-media.media-magalu::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.16) 0%, rgba(21, 31, 42, 0.62) 64%, rgba(20, 30, 40, 0.94) 100%),
    var(--media-placeholder) center/cover;
}

.lesson-overlay {
  position: relative;
  padding: 260px var(--page-pad) 28px;
}

.lesson-overlay h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.08;
}

.lesson-overlay p {
  margin: 0;
  color: var(--text-dim);
  max-width: 700px;
}

.lesson-body {
  padding: 24px var(--page-pad) 34px;
  display: grid;
  gap: 20px;
  background: rgba(28, 36, 48, 0.9);
  border-top: 1px solid var(--border-soft);
}

.lesson-main {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.player-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 14px;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.42), rgba(22, 34, 46, 0.84)),
    var(--media-placeholder) center/cover;
}

.player-stage.player-stage-ai {
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.42), rgba(22, 34, 46, 0.84)),
    var(--media-placeholder) center/cover;
}

.player-stage.player-stage-magalu {
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.42), rgba(22, 34, 46, 0.84)),
    var(--media-placeholder) center/cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.player-play {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(28, 36, 48, 0.76);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.player-meta {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lesson-dynamic-content {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  min-height: 620px;
  display: grid;
}

.lesson-embed-frame,
.lesson-pdf-frame {
  width: 100%;
  min-height: 620px;
  border: 0;
}

.lesson-pdf-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.lesson-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-pdf-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
}

.lesson-pdf-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(var(--accent-rgb), 0.85);
}

.lesson-pdf-hint {
  margin: 0;
}

.lesson-watch-progress.no-timer .lesson-progress-track {
  display: none;
}

.lesson-rich-text {
  padding: 20px;
  line-height: 1.7;
  color: var(--text-dim);
}

.lesson-watch-progress {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.lesson-nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-nav-btn {
  flex: 1 1 200px;
  min-width: 0;
  justify-content: center;
}

.lesson-info-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.lesson-next-list-wrap {
  display: grid;
  gap: 10px;
}

.lesson-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.lesson-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.62));
}

.module-list {
  display: grid;
  gap: 8px;
}

.lesson-sequence-grid {
  display: grid;
  gap: 8px;
}

.lesson-sequence-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.lesson-sequence-item:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.lesson-sequence-item.is-active {
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.28) inset;
}

.lesson-sequence-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  width: 86px;
  min-height: 56px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(20, 30, 40, 0.28), rgba(22, 34, 46, 0.72)),
    var(--media-placeholder) center/cover;
}

.lesson-sequence-body {
  display: grid;
  gap: 4px;
  padding: 0;
}

.lesson-sequence-title {
  font-weight: 600;
  line-height: 1.3;
}

.lesson-sequence-meta {
  color: var(--text-subtle);
  font-size: 0.84rem;
}

.lesson-sequence-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lesson-sequence-page-btn {
  text-transform: none;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.lesson-sequence-page-label {
  color: var(--text-subtle);
  font-size: 0.84rem;
  white-space: nowrap;
}

.lesson-sequence-status {
  color: var(--text-subtle);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.lesson-sequence-status.is-complete {
  color: var(--accent);
}

.lesson-sequence-status.is-pending {
  color: var(--text-subtle);
}

.module-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-name {
  font-weight: 600;
}

.module-time {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.side-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  padding: 16px;
}

.side-card h3 {
  margin: 0 0 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  display: grid;
  gap: 8px;
}

.mobile-topbar {
  display: none;
}

.mobile-lojinha {
  display: none;
}

.mobile-shop-row {
  display: none;
}

.search-empty {
  padding: 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  border-radius: var(--radius-md);
  color: var(--text-dim);
}

.feed-note {
  margin: 6px 0 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.feed-status {
  margin-top: 14px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.feed-sentinel {
  width: 100%;
  height: 2px;
}

.search-page-head {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form .input {
  flex: 1;
}

.search-results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-shell {
  display: grid;
  gap: 24px;
}

.course-hero {
  min-height: 350px;
  position: relative;
}

.course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(22, 33, 45, 0.84) 0%, rgba(24, 38, 50, 0.68) 48%, rgba(34, 56, 52, 0.34) 100%),
    linear-gradient(180deg, rgba(16, 24, 34, 0.22) 0%, rgba(18, 29, 40, 0.8) 72%, rgba(22, 34, 46, 0.94) 100%),
    var(--course-cover-image, var(--media-placeholder)) center/cover;
}

.course-content {
  position: relative;
  padding: 168px var(--page-pad) 28px;
  max-width: 760px;
}

.course-content h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  line-height: 1.1;
}

.course-panel {
  background: rgba(28, 36, 48, 0.92);
  border-top: 1px solid var(--border-soft);
  padding: 24px var(--page-pad) 32px;
}

.course-lessons-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-lessons-grid .card-thumb {
  min-height: 214px;
}

.course-lessons-grid .card-body {
  padding: 16px;
}

.course-lessons-grid .card-title {
  font-size: 1.12rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-media {
  min-height: 212px;
  background:
    linear-gradient(155deg, rgba(23, 34, 46, 0.64), rgba(55, 109, 83, 0.52)),
    var(--media-placeholder) center/cover;
}

.product-media.media-2 {
  background:
    linear-gradient(155deg, rgba(22, 36, 48, 0.68), rgba(54, 112, 84, 0.48)),
    var(--media-placeholder) center/cover;
}

.product-media.media-3 {
  background:
    linear-gradient(155deg, rgba(22, 35, 45, 0.68), rgba(67, 118, 88, 0.5)),
    var(--media-placeholder) center/cover;
}

.product-media.media-4 {
  background:
    linear-gradient(155deg, rgba(20, 31, 43, 0.68), rgba(69, 115, 86, 0.5)),
    var(--media-placeholder) center/cover;
}

.product-body {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.product-body .card-title {
  margin: 2px 0 0;
}

.product-body .product-desc {
  min-height: 42px;
  line-height: 1.38;
}

.product-price {
  margin: 0;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  min-height: 54px;
}

.product-stock {
  margin: -2px 0 0;
  color: var(--text-subtle);
  font-size: 0.84rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}

.order-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  padding: 22px;
  position: sticky;
  top: 88px;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 11px 0;
  color: var(--text-dim);
}

.order-line + .order-line {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.order-line strong {
  text-align: right;
}

.order-line .negative {
  color: #ff9a9a;
}

.checkout-form {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  padding: 18px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.coins-hero {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(28, 36, 48, 0.96), rgba(43, 67, 62, 0.88));
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.coins-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.coins-overview-grid > .side-card {
  height: 100%;
}

.coins-total {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent);
}

.coins-week-note {
  margin: 6px 0 0;
}

.coins-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.coins-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.coins-item-title {
  margin: 0;
  font-size: 1rem;
}

.coins-item-meta {
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.coins-value {
  font-weight: 700;
  color: var(--accent);
}

.coins-value.negative {
  color: #ff9a9a;
}

.pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination button {
  min-width: 106px;
}

.pagination-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.profile-content {
  padding: 30px var(--page-pad) 36px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.6fr);
  gap: 24px;
}

.profile-hero {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(28, 36, 48, 0.95), rgba(39, 55, 68, 0.9));
  padding: 24px 20px;
}

.profile-avatar-xl {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.profile-hero h1 {
  margin: 16px 0 6px;
  font-size: 1.5rem;
}

.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(28, 36, 48, 0.86);
  padding: 24px;
}

.readonly-input,
.input[readonly],
.input-readonly {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.profile-required-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  color: #eef8f2;
  line-height: 1.55;
}

.profile-required-banner strong {
  color: var(--accent);
}

.recent-lessons {
  margin-top: 24px;
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(28, 36, 48, 0.84);
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}

.recent-link {
  color: #ffffff;
  font-weight: 600;
}

.recent-link:hover {
  color: var(--accent);
}

.recent-meta {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.legal-rich {
  display: grid;
  gap: 14px;
}

.legal-rich h3 {
  margin: 0;
  font-size: 1.05rem;
}

.legal-rich p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal-rich .list {
  margin-top: -2px;
}

.proposal-content {
  display: grid;
  gap: 24px;
}

.proposal-page {
  --accent: #2f7d4d;
  --accent-rgb: 47, 125, 77;
}

.proposal-page .button:not(.button-outline) {
  background: #61c161;
  color: #1c2430;
  border-color: transparent;
}

.proposal-page .button:not(.button-outline):hover {
  background: #61c161;
}

.proposal-hero {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.22) 0%, rgba(28, 36, 48, 0) 32%),
    linear-gradient(145deg, rgba(19, 36, 29, 0.98), rgba(24, 48, 37, 0.94));
  padding: 24px;
  display: grid;
  gap: 8px;
}

.proposal-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.1;
}

.proposal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.proposal-form-panel,
.proposal-summary-panel,
.proposal-history-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  box-shadow: var(--card-shadow);
}

.proposal-form-panel,
.proposal-summary-panel {
  padding: 18px;
  height: 100%;
}

.proposal-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.proposal-step-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 11px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.proposal-step-chip.is-active {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.2);
  color: #ffffff;
}

.proposal-form {
  display: grid;
  gap: 14px;
}

.proposal-step-panel {
  display: none;
  gap: 14px;
}

.proposal-step-panel.is-active {
  display: grid;
}

.proposal-step-panel h2,
.proposal-summary-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.proposal-field-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.proposal-field-group legend,
.proposal-field-group > label {
  font-weight: 700;
}

.proposal-inline-notice,
.proposal-preview-notice {
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 14px;
}

.proposal-inline-notice {
  display: grid;
  gap: 4px;
}

.proposal-preview-notice {
  color: var(--text-dim);
  line-height: 1.6;
}

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

.proposal-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  color: #ffffff;
}

.proposal-checkbox-option input {
  margin-top: 2px;
}

.proposal-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 12px 14px;
  color: #ffffff;
}

.proposal-acknowledgement input {
  margin-top: 3px;
}

.proposal-plan-indicator {
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.proposal-plan-indicator span {
  color: var(--text-subtle);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proposal-plan-indicator strong {
  font-size: 1.1rem;
  color: var(--accent);
}

.proposal-plan-indicator small {
  color: var(--text-dim);
}

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

.proposal-segment-option {
  position: relative;
}

.proposal-segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proposal-segment-option span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
}

.proposal-segment-option input:checked + span {
  border-color: rgba(var(--accent-rgb), 0.82);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.86), rgba(var(--accent-rgb), 0.54));
  color: #1c2430;
}

.proposal-discount-block {
  display: grid;
  gap: 12px;
}

.proposal-discount-block input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.proposal-discount-current {
  margin: 0;
  color: var(--text-dim);
  font-weight: 600;
}

.proposal-discount-current strong {
  color: var(--accent);
}

.proposal-discount-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.proposal-discount-reset {
  min-width: 160px;
}

.proposal-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.proposal-form-actions .button {
  min-width: 150px;
}

.proposal-submit-wrap {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 150px;
}

.proposal-submit-wrap .button {
  width: auto;
  flex: 1 1 220px;
}

.proposal-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(280px, 74vw);
  transform: translateX(-50%) translateY(6px);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 14px;
  background: rgba(16, 34, 25, 0.96);
  color: #edf8f0;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(4, 14, 8, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.proposal-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.45);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(16, 34, 25, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.proposal-submit-wrap:hover .proposal-tooltip,
.proposal-submit-wrap:focus-within .proposal-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.proposal-kpi-card,
.proposal-plan-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(210, 218, 228, 0.08);
  padding: 14px;
}

.proposal-kpi-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.proposal-kpi-card strong {
  font-size: 1rem;
}

.proposal-best-card {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(135deg, rgba(40, 105, 64, 0.96), rgba(58, 125, 82, 0.82));
  color: #f4fff8;
  display: grid;
  gap: 10px;
}

.proposal-best-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proposal-best-name {
  font-size: 1.4rem;
  line-height: 1.1;
}

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

.proposal-best-values span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.82;
}

.proposal-best-values strong {
  display: block;
  margin-top: 2px;
  font-size: 1.08rem;
}

.proposal-best-savings {
  margin: 0;
  font-size: 0.88rem;
}

.proposal-plan-cards {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.proposal-plan-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.proposal-plan-kicker {
  margin: 0 0 8px;
  color: var(--text-subtle);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proposal-plan-card p {
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.proposal-plan-card strong {
  color: #ffffff;
}

.proposal-plan-card.is-best {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: linear-gradient(135deg, rgba(40, 105, 64, 0.94), rgba(58, 125, 82, 0.78));
}

.proposal-plan-card.is-best .proposal-plan-kicker {
  color: rgba(240, 255, 246, 0.8);
}

.proposal-plan-card.is-muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(194, 203, 214, 0.12);
}

.proposal-history-section {
  display: grid;
  gap: 12px;
}

.proposal-history-toolbar {
  align-items: end;
  gap: 14px;
}

.proposal-history-search {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
}

.proposal-history-list {
  display: grid;
  gap: 12px;
}

.proposal-history-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.proposal-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.proposal-history-head-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.proposal-history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.proposal-history-head strong {
  display: block;
  font-size: 1rem;
}

.proposal-history-head p {
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 0.84rem;
}

.proposal-history-date {
  color: var(--text-subtle);
  font-size: 0.8rem;
  white-space: nowrap;
}

.proposal-history-copy {
  min-width: 0;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.proposal-history-copy svg {
  flex: 0 0 auto;
}

.proposal-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proposal-history-grid p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.proposal-history-grid span {
  color: var(--text-subtle);
  font-size: 0.76rem;
}

.proposal-history-grid strong {
  font-size: 0.92rem;
}

.proposal-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.proposal-history-pagination .helper {
  margin: 0;
}

.recent-pagination {
  margin-top: 4px;
}

.proposal-history-pagination-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proposal-quick-summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  display: none;
  justify-content: space-around;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 36, 48, 0.96);
  backdrop-filter: blur(12px);
}

.proposal-quick-summary span {
  display: block;
  color: var(--text-subtle);
  font-size: 0.72rem;
}

.proposal-quick-summary strong {
  display: block;
  margin-top: 2px;
}

.entry-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.entry-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.entry-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 34, 0.74);
  backdrop-filter: blur(3px);
}

.entry-modal-card {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.98), rgba(36, 50, 64, 0.96));
  box-shadow: 0 18px 50px rgba(2, 5, 22, 0.6);
  padding: 20px;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.entry-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(28, 36, 48, 0.92);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.entry-modal-card h2 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.entry-modal-description {
  margin: 0;
  color: var(--text-dim);
}

.entry-modal-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-solid);
  aspect-ratio: 16 / 9;
}

.entry-modal-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 18px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  background: rgba(28, 36, 48, 0.92);
}

@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .preview-panel {
    display: none;
  }

  .auth-card {
    min-height: unset;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .lesson-main {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .coins-overview-grid {
    grid-template-columns: 1fr;
  }

  .proposal-layout {
    grid-template-columns: 1fr;
  }

  .proposal-history-toolbar {
    align-items: stretch;
  }

  .proposal-history-search {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .auth-single {
    width: min(100%, calc(100% - 24px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-single .auth-card {
    margin: 0 auto;
    min-height: unset;
  }

  .page {
    width: min(100%, calc(100% - 24px));
    margin: 14px auto 24px;
  }

  .catalog-page,
  .lesson-shell {
    width: 100%;
    margin: 0;
  }

  .app-header {
    --header-height: 94px;
    min-height: 94px;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 8px 12px 10px;
    display: block;
    position: sticky;
    top: 0;
    overflow: visible;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .app-header-home {
    margin-bottom: -94px;
  }

  .header-left {
    display: block;
    min-height: 0;
    height: 0;
  }

  .header-right {
    display: contents;
  }

  .header-link,
  .coin-badge,
  .header-greeting,
  .header-right > .mobile-topbar {
    display: none !important;
  }

  .app-header .logo-sm {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    margin: 0;
    width: 112px;
    height: 37px;
    z-index: 2;
  }

  .app-header .search-shell {
    position: absolute;
    left: 12px;
    top: 9px;
    width: 40px;
    height: 40px;
    z-index: 3;
  }

  .app-header .search-shell.is-open {
    width: min(56vw, 188px);
  }

  .app-header .profile-menu {
    position: absolute;
    right: 12px;
    top: 9px;
    margin: 0;
    padding: 0;
    z-index: 4;
  }

  .app-header .profile-menu::after {
    display: none;
  }

  .app-header .profile-trigger {
    width: 40px;
    height: 40px;
  }

  .app-header .mobile-shop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 44px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .app-header .mobile-shop-row .mobile-topbar {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1;
  }

  .mobile-topbar {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--btn-radius);
    padding: 7px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1;
  }

.mobile-lojinha {
  display: inline-flex;
  border-color: transparent;
  background: var(--accent);
  color: #1c2430;
}

  .search-shell {
    width: 38px;
    height: 38px;
  }

  .hero,
  .preview-hero {
    min-height: 310px;
  }

  .hero-content {
    padding: 138px 20px 28px;
    gap: 14px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.3rem);
    line-height: 1.22;
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .app-content,
  .catalog-inner {
    padding: 28px 20px 34px;
  }

  .profile-content {
    padding: 28px 20px 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 1.2rem;
    line-height: 1.32;
  }

  .section-link {
    font-size: 0.86rem;
  }

  .section-spaced {
    margin-top: 30px;
  }

  .card-slider {
    grid-auto-columns: minmax(78vw, 78vw);
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .card-slider .card {
    scroll-snap-align: start;
  }

  .compact-slider .card {
    min-height: 126px;
    display: grid;
    grid-template-columns: 104px 1fr;
  }

  .compact-slider .card-thumb {
    min-height: 126px;
  }

  .compact-slider .card-body {
    padding: 10px 10px 10px 12px;
    display: grid;
    gap: 4px;
    align-content: center;
  }

  .compact-slider .card-tag {
    font-size: 0.7rem;
  }

  .compact-slider .card-title {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .compact-slider .card-meta {
    font-size: 0.78rem;
  }

  .compact-slider .lesson-watch-badge {
    width: 30px;
    height: 30px;
    top: 6px;
    right: 6px;
  }

  .compact-slider .lesson-watch-badge svg {
    width: 16px;
    height: 16px;
  }

  .helper,
  .feed-note {
    line-height: 1.65;
  }

  .profile-coins-link {
    display: block;
  }

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

  .infinite-feed-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-thumb {
    min-height: 148px;
  }

  .card-body {
    padding: 16px 14px;
  }

  .card-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .card-meta {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-filters {
    width: 100%;
  }

  .select {
    min-width: 0;
    flex: 1;
  }

  .auth-card {
    padding: 30px 18px;
  }

  .auth-title {
    margin-top: 42px;
    font-size: 2rem;
    line-height: 1.24;
  }

  .auth-subtitle {
    line-height: 1.55;
  }

  .pin-row {
    gap: 8px;
  }

  .lesson-media {
    min-height: 300px;
  }

  .lesson-overlay {
    padding: 190px 18px 22px;
  }

  .lesson-overlay p {
    line-height: 1.6;
  }

  .lesson-body {
    padding: 22px 18px 30px;
    gap: 24px;
  }

  .lesson-dynamic-content,
  .lesson-embed-frame,
  .lesson-pdf-frame {
    min-height: 320px;
  }

  .lesson-nav-btn {
    flex: 1 1 calc(50% - 6px);
    font-size: 0.78rem;
    padding: 11px 10px;
  }

  .lesson-sequence-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .lesson-sequence-thumb {
    width: 74px;
    min-height: 46px;
  }

  .lesson-sequence-page-btn {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .lesson-sequence-page-label {
    font-size: 0.78rem;
  }

  .module-item {
    padding: 14px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 146px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .product-media {
    min-height: 100%;
  }

  .product-body {
    padding: 12px;
    gap: 6px;
  }

  .product-body .button {
    width: 100%;
    justify-content: center;
  }

  .product-desc {
    min-height: unset;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .checkout-form,
  .order-card,
  .profile-panel,
  .profile-hero,
  .side-card {
    padding: 16px;
  }

  .order-line {
    font-size: 0.92rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-card {
    position: static;
    top: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .course-content {
    padding: 172px 18px 24px;
  }

  .course-panel {
    padding: 24px 18px 28px;
  }

  .coins-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .coins-overview-grid {
    gap: 14px;
  }

  .coins-value {
    justify-self: start;
  }

  .proposal-kpi-grid,
  .proposal-history-grid,
  .proposal-best-values {
    grid-template-columns: 1fr;
  }

  .proposal-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .proposal-quick-summary {
    display: flex;
  }

  .proposal-form-panel,
  .proposal-summary-panel {
    padding: 16px;
  }

  .proposal-steps {
    grid-template-columns: 1fr;
  }

  .proposal-form-actions .button {
    width: 100%;
  }

  .proposal-content {
    padding-bottom: 86px;
  }

  .proposal-history-head {
    flex-direction: column;
  }

  .proposal-history-date {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .app-header {
    --header-height: 90px;
    min-height: 90px;
    padding: 9px 10px 11px;
  }

  .app-header-home {
    margin-bottom: -90px;
  }

  .app-header .logo-sm {
    top: 12px;
    width: 102px;
    height: 34px;
  }

  .app-header .search-shell,
  .app-header .profile-menu {
    top: 8px;
  }

  .mobile-topbar {
    padding: 9px 10px;
    font-size: 0.75rem;
  }

  .search-shell.is-open {
    width: min(58vw, 166px);
  }

  .app-header .mobile-shop-row {
    margin-top: 42px;
    gap: 10px;
    padding-top: 9px;
  }

  .section-head {
    gap: 8px;
    margin-bottom: 14px;
  }

  .proposal-kpi-grid,
  .proposal-history-grid,
  .proposal-best-values {
    grid-template-columns: 1fr;
  }

  .proposal-history-head {
    flex-direction: column;
  }

  .proposal-history-head-side {
    width: 100%;
    justify-items: stretch;
  }

  .proposal-history-copy {
    width: 100%;
    justify-content: center;
  }

  .proposal-history-pagination-actions {
    width: 100%;
  }

  .proposal-history-pagination-actions .button {
    flex: 1 1 0;
  }

  .card-slider {
    grid-auto-columns: minmax(84vw, 84vw);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .infinite-feed-slider {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 130px 16px 24px;
  }

  .section-title {
    font-size: 1.16rem;
  }

  .input,
  .button {
    padding: 14px 14px;
  }

  .app-content,
  .catalog-inner,
  .profile-content {
    padding: 22px 16px 30px;
  }

  .pin-cell {
    font-size: 1.05rem;
    padding: 12px 0;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .lesson-dynamic-content,
  .lesson-embed-frame,
  .lesson-pdf-frame {
    min-height: 260px;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .lesson-nav-btn {
    width: 100%;
  }

  .lesson-sequence-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lesson-sequence-page-label {
    width: 100%;
    text-align: center;
  }

  .lesson-sequence-page-btn {
    flex: 1 1 120px;
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .product-media {
    min-height: 196px;
  }

  .logo {
    width: 196px;
    height: 56px;
  }

  .logo-sm {
    width: 96px;
    height: 32px;
  }
}
