/* Identidade English Buddie: fontes arredondadas e amigaveis (Baloo 2 para
   titulos, Nunito para texto), tom ludico em todo o app. */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@500;600;700;800;900&display=swap");

:root {
  --blue: #1441a8;
  --blue-2: #2563eb;
  --sky: #51acef;
  --yellow: #ffc933;
  --orange: #ff8a1f;
  --green: #4cb944;
  --red: #ef4444;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --pink: #ff6fa5;
  --ink: #1b2a4a;
  --muted: #5f6f8f;
  --line: #dde6f4;
  --paper: #ffffff;
  --soft: #eef4fd;
  --soft-yellow: #fff3c4;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 16px 40px rgba(20, 43, 85, 0.1);
  --shadow-pop: 0 10px 28px rgba(20, 43, 85, 0.14);
  --font-display: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  color-scheme: light;
  font-family:
    Nunito, ui-rounded, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -4%, rgba(81, 172, 239, 0.16), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 201, 51, 0.14), transparent 30%),
    var(--soft);
  background-attachment: fixed;
  color: var(--ink);
}

h1,
h2,
h3,
h4,
.brand-title,
.metric-value {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 16px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 900;
  border: 3px solid var(--blue);
  font-family: var(--font-display);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  margin: 0;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-group-title {
  margin: 18px 8px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  transition: background 0.15s, transform 0.15s;
}

.nav-button:hover {
  background: #eaf2ff;
  transform: translateX(3px);
}

.nav-button.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  box-shadow: 0 10px 22px rgba(20, 65, 168, 0.28);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(6, 58, 150, 0.08);
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: background 0.12s, transform 0.12s;
}

.nav-button:hover .nav-icon {
  transform: scale(1.08);
}

.nav-button.active .nav-icon {
  background: rgba(255, 255, 255, 0.22);
}

.main {
  min-width: 0;
  padding: 22px;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}

.mobile-nav button:active {
  transform: scale(0.95);
  background: var(--soft-yellow);
  border-color: var(--yellow);
}

.page {
  max-width: 1220px;
  margin: 0 auto;
}

.public-shell {
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 210, 46, 0.28), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(81, 172, 239, 0.26), transparent 30%),
    var(--soft);
}

.public-shell > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(25, 47, 88, 0.08);
}

.public-nav .brand {
  margin: 0;
}

.public-nav .hero-actions {
  margin: 0;
}

.public-hero {
  margin-bottom: 18px;
  border-radius: 18px;
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 210, 46, 0.25), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: var(--shadow);
}

.sales-hero-copy h1 {
  max-width: 860px;
  margin: 14px 0;
  color: var(--blue);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sales-hero-copy p {
  max-width: 68ch;
  margin: 0;
  color: #314363;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sales-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.sales-proof .metric {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}

.sales-dashboard-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(6, 58, 150, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 64px rgba(6, 58, 150, 0.16);
  backdrop-filter: blur(12px);
}

.preview-topline {
  display: flex;
  gap: 7px;
}

.preview-topline span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--line);
}

.preview-topline span:nth-child(1) {
  background: var(--red);
}

.preview-topline span:nth-child(2) {
  background: var(--yellow);
}

.preview-topline span:nth-child(3) {
  background: var(--green);
}

.preview-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.preview-card.large {
  min-height: 150px;
  align-content: center;
}

.preview-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-card strong {
  color: var(--blue);
  font-size: 1.25rem;
}

.preview-card:not(.large) strong {
  font-size: 1.55rem;
}

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

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(25, 47, 88, 0.06);
}

.platform-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.86rem;
}

.landing-section {
  margin-top: 18px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
}

.section-heading h2,
.sales-final-cta h2 {
  margin: 12px 0 8px;
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* .card.landing-step: sem o seletor composto, o padding de .card (declarado
   mais abaixo) vence a cascata e o titulo fica escondido atras do numero. */
.card.landing-step {
  position: relative;
  min-height: 190px;
  padding-top: 62px;
}

.landing-step > span {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 900;
}

.feature-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.governance-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.role-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.role-row p {
  margin: 4px 0 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  color: white;
  background: var(--blue);
}

.role-badge.admin {
  background: #14213d;
}

.role-badge.parent {
  background: var(--blue-2);
}

.role-badge.child {
  background: var(--green);
}

.role-badge.pedagogy {
  background: #7c3aed;
}

.role-badge.contractor {
  background: #b45309;
}

/* Seletor de papel na tabela de contas: troca a governanca sem sair da tela. */
.role-select {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 2px solid var(--border, #e4e7ef);
  background: white;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.role-select:hover:not(:disabled) {
  border-color: var(--blue);
}

.role-select:disabled {
  opacity: 0.55;
  cursor: progress;
}

.role-card {
  min-height: 170px;
}

.waitlist-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.sales-final-cta {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), #10295f);
  color: white;
  box-shadow: var(--shadow);
}

.sales-final-cta h2 {
  max-width: 850px;
  color: white;
}

.sales-final-cta .ghost-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.insider-screen {
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(6, 58, 150, 0.95), rgba(10, 16, 34, 0.96)),
    var(--blue);
  color: white;
  box-shadow: var(--shadow);
}

.insider-copy h1 {
  max-width: 740px;
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.insider-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.65;
}

.governance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.login-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.center-brand {
  justify-content: center;
  margin-bottom: 22px;
}

.login-card form {
  display: grid;
  gap: 13px;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.profile-chooser-shell {
  min-height: calc(100vh - 44px);
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 210, 46, 0.22), transparent 24%),
    linear-gradient(145deg, #07142d, #101a2f 62%, #06122b);
  color: white;
  box-shadow: var(--shadow);
}

.profile-chooser-head h1,
.profile-chooser-head p {
  color: white;
}

.profile-chooser-head p {
  color: rgba(255, 255, 255, 0.72);
}

.netflix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.netflix-profile {
  min-height: 230px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
}

button.netflix-profile:hover,
.netflix-profile.selected {
  border-color: var(--yellow);
  background: rgba(255, 210, 46, 0.12);
}

.netflix-profile small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.avatar.xl {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  font-size: 1.5rem;
  border-width: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s;
}

button.netflix-profile:hover .avatar.xl {
  transform: scale(1.08) rotate(-2deg);
}

.add-profile-card form {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.add-profile-card input,
.add-profile-card select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.parent-primer {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fff8dc;
  color: var(--ink);
  border: 1px solid #ffe59b;
}

.parent-primer h3 {
  margin: 8px 0 0;
  color: var(--blue);
}

.primer-steps {
  display: grid;
  gap: 8px;
  color: #6f4b00;
  font-weight: 800;
}

.parent-watch-card {
  border-color: #b9d3ff;
  background: linear-gradient(180deg, #ffffff, #f2f7ff);
}

.profile-chooser-shell .parent-watch-card {
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: none;
}

.profile-chooser-shell .parent-watch-card h3 {
  color: white;
}

.profile-chooser-shell .parent-watch-card p {
  color: rgba(255, 255, 255, 0.72);
}

.compact-table {
  box-shadow: none;
}

.section {
  margin-bottom: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 201, 51, 0.35), transparent 32%),
    radial-gradient(circle at 6% 92%, rgba(81, 172, 239, 0.3), transparent 36%),
    linear-gradient(135deg, #fffdf4 0%, #eaf4ff 100%);
  border: 2px solid #e4ecfa;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 64ch;
  color: #314363;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-art {
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  border: 4px solid white;
  position: relative;
  box-shadow: var(--shadow-pop);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.asset-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  border: 1px solid var(--line);
}

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

.toolbar h1,
.toolbar h2 {
  margin: 0;
  color: var(--blue);
}

.toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.button,
.ghost-button,
.danger-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}

.button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(2px) scale(0.98);
}

.button {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: white;
  border-color: var(--blue);
  box-shadow: 0 5px 0 #0e2f7c, 0 14px 24px rgba(6, 58, 150, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #0e2f7c, 0 18px 28px rgba(6, 58, 150, 0.26);
}

.button.yellow {
  background: linear-gradient(180deg, #ffd95e, var(--yellow));
  color: #173a8a;
  border-color: #f4b71e;
  box-shadow: 0 5px 0 #d99e08, 0 14px 24px rgba(244, 183, 30, 0.3);
}

.button.yellow:hover {
  box-shadow: 0 7px 0 #d99e08, 0 18px 28px rgba(244, 183, 30, 0.35);
}

.ghost-button {
  background: white;
  color: var(--blue);
  border-color: var(--line);
  box-shadow: 0 3px 0 var(--line);
}

.ghost-button:hover {
  transform: translateY(-1px);
  border-color: #bcd0f0;
}

.danger-button {
  background: #fff1f1;
  color: #a31717;
  border-color: #ffc9c9;
  box-shadow: 0 3px 0 #ffc9c9;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.panel,
.card,
.metric,
.form-panel {
  border: 2px solid #e7eefb;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(25, 47, 88, 0.07);
  transition: transform 0.16s, box-shadow 0.16s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(25, 47, 88, 0.12);
}

.panel,
.form-panel {
  padding: 18px;
}

.card {
  padding: 16px;
}

.card h3,
.panel h3 {
  margin: 0 0 8px;
  color: var(--blue);
}

.card p,
.panel p {
  color: var(--muted);
  line-height: 1.5;
}

.metric {
  padding: 16px;
}

.metric-value {
  color: var(--blue);
  font-size: 1.9rem;
  font-weight: 900;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-card {
  min-height: 170px;
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--soft-yellow);
  color: var(--blue);
  border: 3px solid var(--yellow);
  font-weight: 900;
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.tag,
.status,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag {
  background: #eef5ff;
  color: var(--blue);
}

.status {
  background: #eef9ea;
  color: #27681a;
}

.status.draft {
  background: #fff4d9;
  color: #8a5a00;
}

.status.blocked {
  background: #fff1f1;
  color: #9c1a1a;
}

.pill {
  background: var(--blue);
  color: white;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf7;
  box-shadow: inset 0 2px 4px rgba(20, 43, 85, 0.08);
}

.progress-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  transition: width 0.4s ease;
}

.module-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 280px;
  overflow: hidden;
}

.module-visual {
  position: relative;
  height: 148px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  background:
    linear-gradient(135deg, rgba(6, 58, 150, 0.9), rgba(81, 172, 239, 0.88)),
    var(--blue);
}

.module-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-visual .age-chip {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(20, 43, 85, 0.18);
}

.module-visual.orange {
  background: linear-gradient(135deg, #ff8a1f, #ffc933);
  color: var(--blue);
}

.module-visual.green {
  background: linear-gradient(135deg, #2d8d24, #63b640);
}

.module-visual.red {
  background: linear-gradient(135deg, #ef4444, #ff9e8a);
}

.learning-map {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 12px;
  align-items: center;
}

.map-step {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: white;
  color: var(--blue);
  font-weight: 900;
  font-family: var(--font-display);
  text-align: center;
  box-shadow: 0 4px 0 var(--line);
}

.map-step.done {
  background: #eef9ea;
  border-color: var(--green);
  box-shadow: 0 4px 0 #b9e2ae;
}

.map-step.active {
  background: var(--soft-yellow);
  border-color: var(--yellow);
  box-shadow: 0 6px 0 #e8b90c, 0 14px 26px rgba(255, 201, 51, 0.3);
  transform: scale(1.04);
}

.video-frame {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1b32;
  color: white;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.video-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 210, 46, 0.35), transparent 30%),
    linear-gradient(135deg, #10295f, #0b1630);
}

.play-circle {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 2.8rem;
  padding-left: 7px;
}

.video-side {
  padding: 22px;
  background: white;
  color: var(--ink);
}

.video-side p {
  color: var(--muted);
}

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

.choice {
  min-height: 104px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--blue);
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 5px 0 var(--line);
  transition: transform 0.14s, border-color 0.14s, background 0.14s, box-shadow 0.14s;
}

.choice:hover,
.choice.selected {
  border-color: var(--yellow);
  background: var(--soft-yellow);
  box-shadow: 0 6px 0 #e8b90c;
  transform: translateY(-2px);
}

.choice:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 0 #e8b90c;
}

.answer-box {
  min-height: 58px;
  padding: 14px;
  border-radius: 8px;
  background: #f0f8ed;
  color: #28641f;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f6f9fe;
  color: var(--blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.password-field {
  position: relative;
  display: flex;
}

.password-field input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.asset-board {
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.asset-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 19% 42%;
  display: block;
}

.empty-asset {
  min-height: 220px;
  display: grid;
  place-items: center;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  border-radius: var(--radius);
  border: 3px dashed #cfdcf2;
  background: #f6f9ff;
}

.empty-asset img {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-pop);
}

.notice {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid #ffe59b;
  background: #fff7d9;
  color: #6f4b00;
  line-height: 1.5;
}

.footer-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.boot-splash {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.boot-splash .brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 36px;
  border-width: 4px;
  box-shadow: var(--shadow-pop);
  animation: buddie-bounce 1.1s ease-in-out infinite;
}

.sidebar-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.login-form {
  margin-top: 20px;
}

.video-el {
  width: 100%;
  height: 100%;
  max-height: 360px;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.video-loading {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions .ghost-button,
.row-actions .danger-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

td select[data-action] {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3fb;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: var(--shadow);
  background: var(--blue);
  color: white;
}

.toast.error {
  background: #a31717;
}

@media (max-width: 1020px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-topbar {
    display: block;
  }

  .main {
    padding: 16px;
  }

  .hero,
  .sales-hero,
  .split,
  .video-frame,
  .insider-screen,
  .parent-primer {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-chooser-shell,
  .insider-screen {
    border-radius: 18px;
  }

  .learning-map {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
  }
}

@media (max-width: 680px) {
  .main {
    padding: 12px;
  }

  .hero {
    padding: 16px;
  }

  .public-shell {
    padding: 12px;
  }

  .public-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .insider-screen,
  .profile-chooser-shell {
    min-height: auto;
    padding: 18px;
  }

  .insider-copy h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .sales-hero {
    padding: 20px;
  }

  .sales-proof,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .choice-grid,
  .netflix-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-map {
    grid-template-columns: repeat(2, minmax(86px, 1fr));
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar .button,
  .toolbar .ghost-button {
    flex: 1 1 150px;
  }
}

/* Gestao de tarefas (acompanhamento) */
.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(25, 47, 88, 0.06);
}

.task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-card-head strong {
  color: var(--blue);
}

.task-desc {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.task-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.task-progress .progress-track {
  flex: 1;
}

.progress-pct {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.task-meta button {
  margin-left: auto;
  min-height: 34px;
  padding: 6px 12px;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.task-badge.todo {
  background: #eef0f4;
  color: #5b6172;
}

.task-badge.doing {
  background: #e3f0ff;
  color: var(--blue-2);
}

.task-badge.blocked {
  background: #fff1f1;
  color: #9c1a1a;
}

.task-badge.done {
  background: #eef9ea;
  color: #27681a;
}

/* Kanban de acompanhamento */
.task-new {
  margin: 8px 0 16px;
}

.task-new > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 800;
  color: var(--blue);
  list-style: none;
}

.task-new > summary::-webkit-details-marker {
  display: none;
}

.progress-set {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.progress-set input[type="number"] {
  width: 90px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.kanban-col {
  display: flex;
  flex-direction: column;
  min-height: 120px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
}

.kanban-col.todo { border-top-color: #a7adbb; }
.kanban-col.doing { border-top-color: var(--blue-2); }
.kanban-col.blocked { border-top-color: var(--red); }
.kanban-col.done { border-top-color: var(--green); }

/* Quadro do revisor: 7 colunas em rolagem horizontal (o fluxo das psicólogas). */
.kanban-board.review-kanban {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(228px, 1fr);
  overflow-x: auto;
  padding-bottom: 8px;
}
.review-alert-banner {
  background: #fff4f4;
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 14px;
}
.review-alert-chip {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 2px;
}
.review-card-alert { outline: 2px solid var(--red); outline-offset: -1px; }

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--ink);
}

.kanban-col-title {
  font-size: 0.9rem;
}

.kanban-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(6, 58, 150, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
}

.kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 14px;
}

.kanban-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.kanban-card:hover {
  box-shadow: 0 10px 24px rgba(20, 43, 85, 0.1);
  transform: translateY(-2px);
}

.kanban-card > strong {
  color: var(--blue);
  font-size: 0.94rem;
  line-height: 1.25;
}

.kanban-card-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.kanban-empty {
  margin: 0;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.task-comments {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 340px;
  overflow: auto;
}

.comment {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.comment-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.comment-head .footer-note {
  margin: 0;
}

.comment p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Revisao de videos
   -------------------------------------------------------------------------- */
.review-layout {
  align-items: start;
}

.review-card {
  cursor: grab;
  gap: 7px;
}
.review-card:active {
  cursor: grabbing;
}
.review-card.dragging {
  opacity: 0.45;
  outline: 2px dashed var(--blue);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.review-card-top strong {
  color: var(--blue);
  font-size: 0.94rem;
  line-height: 1.25;
}
.review-grip {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-top: 2px;
  flex: 0 0 auto;
}

.review-nofile {
  color: var(--orange);
  font-weight: 800;
}

/* Roteiro dentro do card (recolhivel) */
.review-card-script,
.review-card-correct {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.review-card-script > summary,
.review-card-correct > summary {
  cursor: pointer;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  list-style: none;
}
.review-card-script > summary::-webkit-details-marker,
.review-card-correct > summary::-webkit-details-marker { display: none; }
.review-card-script > summary::before,
.review-card-correct > summary::before { content: "\25B8 "; }
.review-card-script[open] > summary::before,
.review-card-correct[open] > summary::before { content: "\25BE "; }
.review-card-script p {
  margin: 0;
  padding: 0 10px 10px;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
}

/* Correcoes ja registradas, como chips */
.review-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.review-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--blue);
  border: 1px solid var(--line);
}
.review-chip.is-blocker {
  background: rgba(239, 37, 37, 0.1);
  color: var(--red);
  border-color: rgba(239, 37, 37, 0.3);
}
.review-chip.is-resolved {
  opacity: 0.55;
  text-decoration: line-through;
}
.review-chip.more {
  background: transparent;
  color: var(--muted);
}

/* Mini-formulario de correcao no card */
.review-card-correct-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 10px 10px;
}
.review-card-correct-form select,
.review-card-correct-form textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
}
.review-card-correct-form textarea {
  min-height: 52px;
  resize: vertical;
}
.review-card-correct-form .button {
  padding: 7px 10px;
  font-size: 0.8rem;
}

.review-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Coluna recebendo um card arrastado */
.kanban-col-body {
  min-height: 60px;
  border-radius: 10px;
  transition: background 0.12s, box-shadow 0.12s;
}
.kanban-col-body.drop-active {
  background: rgba(6, 58, 150, 0.06);
  box-shadow: inset 0 0 0 2px var(--blue);
}

/* Placeholder e roteiro no detalhe (sem arquivo) */
.review-nofile-stage {
  padding: 26px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}
/* Linha-guia amigavel no topo do detalhe */
.review-guide {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--soft-yellow);
  color: #6b5300;
  font-size: 0.92rem;
  font-weight: 600;
}
/* Rotulo curto acima de um grupo (categorias, decisao) */
.review-field-label {
  margin: 4px 0 2px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}
/* Bloco de upload limpo (anexar / trocar video) */
.review-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
  border: 1.5px dashed var(--blue);
  border-radius: 12px;
  background: #f2f7ff;
}
.review-upload-title { color: var(--blue); font-size: 0.95rem; }
.review-upload input[type="file"] { font-size: 0.85rem; max-width: 100%; }
.review-upload .button { align-self: flex-start; }
.review-upload .footer-note { margin: 0; }
/* Trocar o video (recolhido, discreto) */
.review-replace { margin-top: 8px; }
.review-replace > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  padding: 4px 0;
}
.review-replace > summary::-webkit-details-marker { display: none; }
.review-replace .review-upload { border-style: solid; border-color: var(--line); background: var(--soft); }
/* Painel de decisao pode acompanhar a rolagem em telas largas */
@media (min-width: 900px) {
  .review-side { position: sticky; top: 16px; align-self: start; }
}
.review-script-panel {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.review-script-panel > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--blue);
}
.review-script {
  margin: 0;
  padding: 0 12px 12px;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.review-time-chip.is-general {
  background: var(--muted);
  cursor: default;
}

/* "+ Nova aula" — criacao rapida no topo do pipeline e da revisao */
.create-lesson {
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.create-lesson > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--blue);
  list-style: none;
}
.create-lesson > summary::-webkit-details-marker { display: none; }
.create-lesson > summary::before { content: "\002B  "; font-weight: 900; }
.create-lesson[open] > summary { border-bottom: 1px solid var(--line); }
.create-lesson-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.create-lesson-form .field:first-child,
.create-lesson-form textarea,
.create-lesson-form > button {
  grid-column: 1 / -1;
}
.create-lesson-form input,
.create-lesson-form select,
.create-lesson-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.create-lesson-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Kanban do pipeline usa o mesmo card visual da revisao */
.pipeline-kanban .review-card {
  cursor: grab;
}

.review-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.review-card-actions .button,
.review-card-actions .ghost-button {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.review-blocker-flag {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

/* Palco do player com camada de comentario sobreposta */
.review-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.review-stage .video-el {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.review-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 56px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 58, 150, 0.92);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.review-overlay.is-blocker {
  background: rgba(239, 37, 37, 0.94);
}

.review-overlay-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
}

/* Linha do tempo com marcadores de comentario */
.review-timeline {
  position: relative;
  height: 14px;
  margin: 14px 0 6px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.review-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transition: width 0.15s linear;
}

.review-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--orange);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(20, 43, 85, 0.35);
}

.review-marker:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

.review-marker.is-blocker {
  background: var(--red);
}

.review-marker.is-resolved {
  background: var(--green);
}

.review-comment-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-timepick {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-time-label {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--blue);
}

.review-form-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.review-form-row .field {
  flex: 1;
  min-width: 160px;
}

.review-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 8px;
}

.review-warn {
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(239, 37, 37, 0.08);
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Roteiro-preview no card (2 linhas) */
.review-card-roteiro {
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-style: italic;
}

/* ---- Interior ludico do revisor ---- */
.review-comment-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  gap: 10px;
}
.review-box-title {
  margin: 0 0 2px;
  font-size: 1rem;
  color: var(--blue);
}
.review-timebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 16px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
}
.review-timebtn:hover { background: #eef4ff; }
.review-timebtn .review-time-label {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}

.review-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.review-cat-chip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}
.review-cat-chip span:hover { border-color: var(--sky); }
.review-cat-chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.review-cat-chip input:focus-visible + span {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.review-comment-box textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  font-size: 0.92rem;
}
.review-btn-big {
  align-self: stretch;
  padding: 12px;
  font-size: 0.98rem;
  font-weight: 800;
}

.review-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.review-decision .button,
.review-decision .ghost-button {
  padding: 12px 10px;
  font-size: 0.95rem;
  font-weight: 800;
}
.review-btn-approve { background: var(--green); }
.review-btn-changes { background: var(--orange); }
.review-btn-publish { background: var(--blue); }
.review-decision .ghost-button { grid-column: 1 / -1; }

.review-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.review-comment {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
}

.review-comment.is-blocker {
  border-left-color: var(--red);
}

.review-comment.is-resolved {
  border-left-color: var(--green);
  opacity: 0.7;
}

.review-comment.is-resolved p {
  text-decoration: line-through;
}

.review-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.review-time-chip {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}

.review-time-chip:hover {
  background: var(--sky);
}

.review-comment p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.review-comment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.review-comment-tools {
  display: flex;
  gap: 6px;
}

.review-comment-tools .ghost-button,
.review-comment-tools .danger-button {
  padding: 4px 10px;
  font-size: 0.76rem;
}

/* Quadro de entregaveis (contratante): log de comentarios em modo leitura */
.deliverable-log {
  list-style: none;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.deliverable-log li {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.deliverable-log li span {
  font-weight: 700;
  color: var(--ink);
  margin-right: 6px;
}

/* ---------------------------------------------------------------------------
   Identidade ludica English Buddie: arte gerada (Gemini), animacoes e
   componentes infantis. Assets em public/assets/art/.
--------------------------------------------------------------------------- */
@keyframes buddie-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes buddie-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pop-in {
  0% { transform: scale(0.7); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-art.floaty img {
  animation: buddie-float 3.6s ease-in-out infinite;
}

/* Balao de fala do Buddie (home infantil) */
.speech-bubble {
  display: inline-block;
  position: relative;
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 3px solid var(--blue);
  background: white;
  color: var(--blue);
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 6px 0 rgba(20, 65, 168, 0.12);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -12px;
  width: 16px;
  height: 16px;
  background: white;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg) skew(8deg, 8deg);
  border-radius: 0 0 4px 0;
}

/* Cards "O que voce quer fazer hoje?" com arte full-bleed */
.action-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 0;
  border: 4px solid white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue);
  color: white;
  text-align: left;
  box-shadow: var(--shadow-pop);
  transition: transform 0.16s, box-shadow 0.16s;
}

.action-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.action-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 20px 40px rgba(20, 43, 85, 0.22);
}

.action-card:hover img {
  transform: scale(1.05);
}

.action-card:active {
  transform: translateY(1px) scale(0.99);
}

.action-card-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 25, 60, 0.72) 36%);
  padding-top: 34px;
}

.action-card-label strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.action-card-label small {
  display: block;
  font-weight: 700;
  opacity: 0.92;
  font-size: 0.8rem;
}

.action-card-label .go {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

/* Feedback do quiz/exercicio com o Buddie */
.buddie-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 3px solid var(--green);
  background: #f0faee;
  color: #23641b;
  font-weight: 900;
  animation: pop-in 0.35s ease;
}

.buddie-feedback img {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  flex: 0 0 auto;
}

.buddie-feedback.oops {
  border-color: var(--sky);
  background: #eef7ff;
  color: #14508f;
}

/* Banner de recompensas com arte */
.rewards-banner {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-pop);
  display: grid;
  align-content: end;
  margin-bottom: 18px;
}

.rewards-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rewards-banner > div {
  position: relative;
  padding: 16px 18px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(10, 25, 60, 0.7) 42%);
}

.rewards-banner h2 {
  margin: 0;
  font-size: 1.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rewards-banner p {
  margin: 2px 0 0;
  font-weight: 700;
  opacity: 0.95;
}

/* Arte no painel do modulo e poster do video */
.module-hero-art {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 3px solid #eef3fc;
}

/* Login com o Buddie */
.login-buddie {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow-pop);
}

/* Hero da landing com arte de fundo */
.sales-hero-art {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-pop);
}

.sales-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.landing-art-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-art-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid white;
  box-shadow: var(--shadow);
  background: white;
}

.landing-art-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.landing-art-strip figcaption {
  padding: 8px 10px;
  font-weight: 900;
  color: var(--blue);
  font-family: var(--font-display);
  text-align: center;
}

@media (max-width: 1020px) {
  .action-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-art-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .action-cards {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 150px;
  }

  .rewards-banner {
    min-height: 170px;
  }
}
