/* ==========================================================================
   KT — design system
   Navy profundo + dourado. Bootstrap 5.3 como base.
   ========================================================================== */

:root {
  --kt-ink: #0b1220;
  --kt-ink-2: #121b30;
  --kt-ink-3: #1b2540;
  --kt-gold: #c9a14a;
  --kt-gold-2: #e9cf8f;
  --kt-gold-grad: linear-gradient(135deg, #e9cf8f 0%, #c9a14a 55%, #a87f2c 100%);
  --kt-bg: #f6f6f3;
  --kt-surface: #ffffff;
  --kt-border: #e7e5df;
  --kt-text: #161b26;
  --kt-muted: #6a7182;
  --kt-success: #1f9d6b;
  --kt-radius: 18px;
  --kt-radius-sm: 12px;
  --kt-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --kt-shadow-lg: 0 2px 6px rgba(11, 18, 32, .06), 0 24px 48px rgba(11, 18, 32, .12);
  --kt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --kt-font-display: "Plus Jakarta Sans", var(--kt-font);

  --bs-body-font-family: var(--kt-font);
  --bs-body-color: var(--kt-text);
  --bs-body-bg: var(--kt-bg);
  --bs-border-color: var(--kt-border);
  --bs-link-color-rgb: 27, 37, 64;
  --bs-link-hover-color-rgb: 168, 127, 44;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--kt-bg);
  color: var(--kt-text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, h5, h6, .kt-display {
  font-family: var(--kt-font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--kt-ink);
}
::selection { background: var(--kt-gold-2); color: var(--kt-ink); }
a { text-decoration: none; }
.text-muted, .kt-muted { color: var(--kt-muted) !important; }
.text-gold { color: var(--kt-gold) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Marca ---------- */
.kt-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--kt-gold-grad);
  color: var(--kt-ink);
  font-family: var(--kt-font-display); font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(201,161,74,.35);
}
.kt-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.35rem; }
.kt-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-family: var(--kt-font-display); font-weight: 700; }
.kt-brand:hover { color: #fff; }

/* ---------- Botões ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .62rem 1.15rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-lg { padding: .85rem 1.5rem; border-radius: 14px; }
.btn-sm { padding: .38rem .75rem; border-radius: 10px; }
.btn-gold {
  background: var(--kt-gold-grad); color: var(--kt-ink); border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px rgba(201,161,74,.3);
}
.btn-gold:hover, .btn-gold:focus { color: var(--kt-ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 28px rgba(201,161,74,.42); }
.btn-ink { background: var(--kt-ink); color: #fff; border: 0; }
.btn-ink:hover, .btn-ink:focus { background: var(--kt-ink-3); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--kt-ink); border: 1px solid var(--kt-border); }
.btn-ghost:hover { background: #fff; border-color: #d6d3ca; color: var(--kt-ink); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; }

/* ---------- Navbar ---------- */
.kt-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.kt-nav .nav-link { color: rgba(255,255,255,.72); font-weight: 500; padding: .5rem .9rem !important; border-radius: 10px; }
.kt-nav .nav-link:hover, .kt-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.06); }
.kt-nav .navbar-toggler { border: 1px solid rgba(255,255,255,.18); color: #fff; }
.kt-nav .navbar-toggler-icon { filter: invert(1); }
.kt-nav .kt-search {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff;
  border-radius: 12px; padding-left: 2.3rem; min-width: 220px;
}
.kt-nav .kt-search::placeholder { color: rgba(255,255,255,.5); }
.kt-nav .kt-search:focus { background: rgba(255,255,255,.12); color: #fff; border-color: var(--kt-gold); box-shadow: 0 0 0 .2rem rgba(201,161,74,.2); }
.kt-search-wrap { position: relative; }
.kt-search-wrap .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.55); }
.dropdown-menu { border: 1px solid var(--kt-border); border-radius: 14px; box-shadow: var(--kt-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-weight: 500; }
.dropdown-item:active { background: var(--kt-ink); }

/* ---------- Avatar ---------- */
.kt-avatar {
  display: inline-grid; place-items: center; overflow: hidden; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--kt-ink-3), var(--kt-ink));
  color: var(--kt-gold-2); font-weight: 700; font-size: .85rem; font-family: var(--kt-font-display);
}
.kt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kt-avatar-sm { width: 30px; height: 30px; font-size: .7rem; }
.kt-avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }

/* ---------- Hero ---------- */
.kt-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201,161,74,.28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(64,92,170,.35), transparent 60%),
    var(--kt-ink);
  padding: 6.5rem 0 5.5rem;
}
.kt-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.kt-hero > .container { position: relative; z-index: 1; }
.kt-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.kt-hero h1 em { font-style: normal; background: var(--kt-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kt-hero .lead { color: rgba(255,255,255,.72); font-size: 1.15rem; max-width: 560px; }
.kt-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kt-gold-2); background: rgba(201,161,74,.1); border: 1px solid rgba(201,161,74,.25);
  padding: .4rem .8rem; border-radius: 999px;
}
.kt-eyebrow-dark { color: #8a6a22; background: rgba(201,161,74,.12); border-color: rgba(201,161,74,.3); }
.kt-hero-search { max-width: 560px; background: #fff; border-radius: 16px; padding: .4rem; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.kt-hero-search input { border: 0; box-shadow: none !important; font-size: 1.02rem; }
.kt-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.kt-stats strong { display: block; font-family: var(--kt-font-display); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.kt-stats span { color: rgba(255,255,255,.6); font-size: .9rem; }
.kt-hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 1.25rem;
  backdrop-filter: blur(6px);
}

/* ---------- Seções ---------- */
.kt-section { padding: 5rem 0; }
.kt-section-sm { padding: 3rem 0; }
.kt-section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.kt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.kt-link-arrow { font-weight: 600; color: var(--kt-ink); }
.kt-link-arrow:hover { color: var(--kt-gold); }
.kt-link-arrow .bi { transition: transform .15s; }
.kt-link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Cards ---------- */
.kt-card {
  background: var(--kt-surface); border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius); box-shadow: var(--kt-shadow);
}
.kt-card-body { padding: 1.5rem; }
.kt-course {
  display: flex; flex-direction: column; height: 100%;
  background: var(--kt-surface); border: 1px solid var(--kt-border); border-radius: var(--kt-radius);
  overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.kt-course:hover { transform: translateY(-4px); box-shadow: var(--kt-shadow-lg); border-color: #dcd8cd; color: inherit; }
.kt-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kt-ink); }
.kt-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kt-course:hover .kt-cover img { transform: scale(1.04); }
.kt-cover-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(201,161,74,.35), transparent 55%), linear-gradient(135deg, var(--kt-ink-3), var(--kt-ink));
  color: var(--kt-gold-2); font-family: var(--kt-font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; padding: 1rem; text-align: center;
}
.kt-cover .kt-chip { position: absolute; top: .8rem; left: .8rem; }
.kt-course-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.kt-course-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.3; }
.kt-course-desc { color: var(--kt-muted); font-size: .9rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kt-course-meta { display: flex; gap: .9rem; color: var(--kt-muted); font-size: .8rem; margin-bottom: .9rem; flex-wrap: wrap; }
.kt-course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px dashed var(--kt-border); }
.kt-price { font-family: var(--kt-font-display); font-weight: 800; font-size: 1.2rem; color: var(--kt-ink); }
.kt-price small { font-size: .7em; font-weight: 600; color: var(--kt-muted); margin-right: .15rem; }
.kt-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--kt-ink); backdrop-filter: blur(4px);
}
.kt-chip-dark { background: var(--kt-ink); color: var(--kt-gold-2); }
.kt-chip-soft { background: #f1efe8; color: var(--kt-ink-3); }
.kt-stars { color: var(--kt-gold); font-size: .85rem; letter-spacing: .05em; white-space: nowrap; }
.kt-stars .vazia { color: #d9d5c9; }

.kt-cat {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  background: var(--kt-surface); border: 1px solid var(--kt-border); border-radius: var(--kt-radius-sm);
  color: var(--kt-ink); font-weight: 600; transition: all .15s;
}
.kt-cat:hover { border-color: var(--kt-gold); box-shadow: var(--kt-shadow); color: var(--kt-ink); transform: translateY(-2px); }
.kt-cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f4efe1; color: #8a6a22; font-size: 1.25rem; flex-shrink: 0; }
.kt-cat small { display: block; color: var(--kt-muted); font-weight: 500; }

.kt-feature { padding: 1.75rem; height: 100%; }
.kt-feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--kt-ink); color: var(--kt-gold-2); font-size: 1.4rem;
}

.kt-band {
  border-radius: 28px; color: #fff; padding: 3.5rem;
  background: radial-gradient(600px 300px at 100% 0%, rgba(201,161,74,.35), transparent 60%), var(--kt-ink);
}
.kt-band h2 { color: #fff; }

/* ---------- Página do curso ---------- */
.kt-course-hero {
  color: #fff; padding: 3.5rem 0 7rem;
  background: radial-gradient(800px 400px at 90% -20%, rgba(201,161,74,.25), transparent 60%), var(--kt-ink);
}
.kt-course-hero.compacto { padding-bottom: 3.5rem; }
.kt-course-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.kt-course-hero .lead { color: rgba(255,255,255,.75); }
.kt-breadcrumb a { color: rgba(255,255,255,.6); }
.kt-breadcrumb a:hover { color: var(--kt-gold-2); }
.kt-breadcrumb { color: rgba(255,255,255,.45); font-size: .85rem; }
.kt-hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,.75); font-size: .92rem; }
.kt-hero-meta .bi { color: var(--kt-gold-2); margin-right: .35rem; }
.kt-buy { position: sticky; top: 90px; margin-top: -5.5rem; overflow: hidden; }
.kt-buy .kt-cover { aspect-ratio: 16 / 9; }
.kt-checklist { list-style: none; padding: 0; margin: 0; }
.kt-checklist li { display: flex; gap: .65rem; padding: .45rem 0; color: var(--kt-text); font-size: .93rem; }
.kt-checklist .bi { color: var(--kt-success); }
.kt-lessons { border: 1px solid var(--kt-border); border-radius: var(--kt-radius-sm); overflow: hidden; background: #fff; }
.kt-lesson { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--kt-border); }
.kt-lesson:last-child { border-bottom: 0; }
.kt-lesson-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f1efe8; font-size: .8rem; font-weight: 700; color: var(--kt-ink-3); flex-shrink: 0; }
.kt-prose { color: #2b3242; line-height: 1.75; font-size: 1.02rem; }
.kt-rating-big { font-family: var(--kt-font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--kt-ink); }

/* ---------- Formulários ---------- */
.form-control, .form-select { border-radius: 12px; border-color: #dedbd2; padding: .68rem .95rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--kt-gold); box-shadow: 0 0 0 .22rem rgba(201,161,74,.18); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--kt-ink-3); margin-bottom: .4rem; }
.form-text { color: var(--kt-muted); }
.errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: #c0392b; font-size: .85rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #e0a29a; }

/* ---------- Auth (split) ---------- */
.kt-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.kt-auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(201,161,74,.32), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(64,92,170,.35), transparent 60%),
    var(--kt-ink);
}
.kt-auth-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.kt-auth-side p { color: rgba(255,255,255,.7); }
.kt-auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--kt-bg); }
.kt-auth-box { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) {
  .kt-auth { grid-template-columns: 1fr; }
  .kt-auth-side { display: none; }
}

/* ---------- Painéis (app) ---------- */
.kt-app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.kt-sidebar {
  background: var(--kt-ink); color: #fff; padding: 1.4rem 1rem;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto;
}
.kt-side-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 1.2rem .8rem .5rem; font-weight: 600; }
.kt-side-link {
  display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 11px;
  color: rgba(255,255,255,.7); font-weight: 500; font-size: .93rem; margin-bottom: 2px;
}
.kt-side-link .bi { font-size: 1.05rem; width: 20px; text-align: center; }
.kt-side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.kt-side-link.active { background: rgba(201,161,74,.14); color: var(--kt-gold-2); box-shadow: inset 2px 0 0 var(--kt-gold); }
.kt-side-user { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .9rem .6rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.kt-side-user small { color: rgba(255,255,255,.5); display: block; }
.kt-main { min-width: 0; }
.kt-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 2rem; background: rgba(246,246,243,.85); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid var(--kt-border);
}
.kt-content { padding: 2rem; max-width: 1240px; }
.kt-page-title { font-size: 1.65rem; font-weight: 800; margin: 0; }
.kt-stat { padding: 1.35rem 1.4rem; height: 100%; }
.kt-stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .9rem; }
.kt-stat-value { font-family: var(--kt-font-display); font-size: 1.9rem; font-weight: 800; color: var(--kt-ink); line-height: 1.1; }
.kt-stat-label { color: var(--kt-muted); font-size: .86rem; }
.tone-gold { background: #f6eedb; color: #8a6a22; }
.tone-ink { background: #e6e9f2; color: var(--kt-ink-3); }
.tone-green { background: #e3f4ec; color: #17805a; }
.tone-amber { background: #fdf1dc; color: #a26812; }
.kt-progress { height: 7px; background: #ece9e1; border-radius: 99px; overflow: hidden; }
.kt-progress > div { height: 100%; background: var(--kt-gold-grad); border-radius: 99px; }
.kt-table { --bs-table-bg: transparent; margin: 0; }
.kt-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--kt-muted); font-weight: 600; border-bottom-width: 1px; padding: .9rem 1.25rem; }
.kt-table td { padding: .95rem 1.25rem; vertical-align: middle; border-color: var(--kt-border); }
.kt-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; }
.kt-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kt-badge-green { background: #e3f4ec; color: #17805a; }
.kt-badge-amber { background: #fdf1dc; color: #a26812; }
.kt-badge-blue { background: #e4ecfb; color: #2c55b8; }
.kt-badge-gray { background: #eeede8; color: #5b6170; }
.kt-empty { text-align: center; padding: 3rem 1rem; color: var(--kt-muted); }
.kt-empty .bi { font-size: 2.2rem; color: #cfcabd; display: block; margin-bottom: .6rem; }
@media (max-width: 991.98px) {
  .kt-app { grid-template-columns: 1fr; }
  .kt-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 1050; transform: translateX(-100%); transition: transform .25s ease; }
  .kt-sidebar.aberta { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .kt-content { padding: 1.25rem; }
  .kt-topbar { padding: 1rem 1.25rem; }
}

/* ---------- Upload ---------- */
.kt-drop {
  border: 2px dashed #d9d4c6; border-radius: var(--kt-radius-sm); padding: 1.6rem; text-align: center;
  background: #fbfaf6; cursor: pointer; transition: all .15s;
}
.kt-drop:hover, .kt-drop.arrastando { border-color: var(--kt-gold); background: #fbf6e8; }
.kt-drop .bi { font-size: 2rem; color: var(--kt-gold); }
.kt-drop input[type=file] { display: none; }

/* ---------- Player ---------- */
.kt-player-page { background: #070b14; min-height: 100vh; color: #e6e8ee; }
.kt-player-bar {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem;
  background: rgba(11,18,32,.9); border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0; z-index: 1020; backdrop-filter: blur(10px);
}
.kt-player-bar h1 { font-size: 1rem; color: #fff; margin: 0; font-weight: 700; }
.kt-stage { background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.kt-stage video, .kt-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.kt-stage-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.7); padding: 2rem; }
.kt-next-overlay {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: rgba(7,11,20,.82); backdrop-filter: blur(4px); color: #fff; z-index: 2;
}
.kt-next-overlay.ativo { display: grid; }
.kt-dark-card { background: #0f1626; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.kt-dark-card h2, .kt-dark-card h3, .kt-dark-card h4, .kt-dark-card h5, .kt-dark-card h6 { color: #fff; }
.kt-player-page .text-muted, .kt-player-page .kt-muted { color: rgba(230,232,238,.55) !important; }
.kt-player-page .form-control, .kt-player-page .form-select { background: #0b1220; border-color: rgba(255,255,255,.12); color: #fff; }
.kt-player-page .form-control::placeholder { color: rgba(255,255,255,.35); }
.kt-player-page .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.kt-playlist { max-height: calc(100vh - 220px); overflow-y: auto; }
.kt-pl-item { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; color: rgba(230,232,238,.8); border-bottom: 1px solid rgba(255,255,255,.05); font-size: .9rem; }
.kt-pl-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.kt-pl-item.atual { background: rgba(201,161,74,.12); color: var(--kt-gold-2); }
.kt-pl-item.bloqueada { color: rgba(230,232,238,.35); cursor: not-allowed; }
.kt-pl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .75rem; background: rgba(255,255,255,.07); }
.kt-pl-item.feita .kt-pl-dot { background: rgba(31,157,107,.2); color: #4fd1a0; }
.kt-pl-item.atual .kt-pl-dot { background: var(--kt-gold-grad); color: var(--kt-ink); }
.kt-player-page .nav-tabs { border-color: rgba(255,255,255,.08); }
.kt-player-page .nav-tabs .nav-link { color: rgba(230,232,238,.6); border: 0; border-bottom: 2px solid transparent; font-weight: 600; }
.kt-player-page .nav-tabs .nav-link.active { background: transparent; color: #fff; border-bottom-color: var(--kt-gold); }
.kt-qa { border-bottom: 1px solid rgba(255,255,255,.06); padding: 1rem 0; }
.kt-qa-resp { background: rgba(255,255,255,.04); border-radius: 12px; padding: .7rem .9rem; margin-top: .6rem; }
.kt-player-page .kt-progress { background: rgba(255,255,255,.08); }
.kt-rate input { display: none; }
.kt-rate label { font-size: 1.6rem; color: #3a4257; cursor: pointer; padding: 0 .1rem; }
.kt-rate { display: inline-flex; flex-direction: row-reverse; }
.kt-rate input:checked ~ label, .kt-rate label:hover, .kt-rate label:hover ~ label { color: var(--kt-gold); }

/* ---------- Alertas / toasts ---------- */
.kt-toasts { position: fixed; top: 84px; right: 20px; z-index: 1100; display: flex; flex-direction: column; gap: .6rem; max-width: 380px; }
.kt-toast {
  display: flex; gap: .75rem; align-items: start; padding: .9rem 1rem; border-radius: 14px;
  background: var(--kt-ink); color: #fff; box-shadow: var(--kt-shadow-lg); font-size: .92rem;
  animation: kt-in .3s ease;
}
.kt-toast .bi { font-size: 1.1rem; }
.kt-toast.success .bi { color: #4fd1a0; }
.kt-toast.error .bi { color: #ff8a80; }
.kt-toast.warning .bi { color: var(--kt-gold-2); }
.kt-toast.info .bi { color: #8fb3ff; }
.kt-toast button { background: none; border: 0; color: rgba(255,255,255,.5); margin-left: auto; padding: 0; }
@keyframes kt-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Rodapé ---------- */
.kt-footer { background: var(--kt-ink); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; margin-top: 5rem; }
.kt-footer h6 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.kt-footer a { color: rgba(255,255,255,.65); display: block; padding: .2rem 0; }
.kt-footer a:hover { color: var(--kt-gold-2); }
.kt-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }

/* ---------- Paginação ---------- */
.kt-pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.kt-pagination a, .kt-pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .8rem;
  border-radius: 12px; border: 1px solid var(--kt-border); background: #fff; color: var(--kt-ink); font-weight: 600;
}
.kt-pagination a:hover { border-color: var(--kt-gold); }
.kt-pagination .atual { background: var(--kt-ink); color: #fff; border-color: var(--kt-ink); }

.modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.kt-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.kt-reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .kt-reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Grupo auth (login, cadastro, senha) ---------- */
.kt-auth-form .input-group-text { background: #fff; border-color: #dedbd2; color: var(--kt-muted); border-radius: 12px 0 0 12px; padding-inline: .9rem; }
.kt-auth-form .input-group:focus-within .input-group-text { border-color: var(--kt-gold); color: #8a6a22; }
.kt-auth-form .input-group .form-control { border-left: 0; }
.kt-auth-form .input-group .form-control:focus { box-shadow: none; }
.kt-auth-form .input-group:focus-within { border-radius: 12px; box-shadow: 0 0 0 .22rem rgba(201,161,74,.18); }
.kt-auth-form .form-text ul, .kt-auth-ajuda ul { padding-left: 1.1rem; margin: .35rem 0 0; font-size: .8rem; }
.kt-auth-form fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.kt-papel { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.kt-papel-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kt-papel-card {
  display: flex; flex-direction: column; gap: .15rem; cursor: pointer; margin: 0;
  padding: 1rem 1.1rem; border: 1.5px solid var(--kt-border); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.kt-papel-card .bi { font-size: 1.35rem; color: var(--kt-ink-3); margin-bottom: .25rem; }
.kt-papel-titulo { font-family: var(--kt-font-display); font-weight: 700; color: var(--kt-ink); }
.kt-papel-texto { font-size: .82rem; color: var(--kt-muted); }
.kt-papel-card:hover { border-color: #d6d3ca; }
.kt-papel-input:checked + .kt-papel-card { border-color: var(--kt-gold); background: #fffbf1; box-shadow: 0 0 0 3px rgba(201,161,74,.16); }
.kt-papel-input:checked + .kt-papel-card .bi { color: #8a6a22; }
.kt-papel-input:focus-visible + .kt-papel-card { outline: 2px solid var(--kt-ink-3); outline-offset: 2px; }
.kt-auth-aviso { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--kt-border); border-radius: 14px; background: #fff; }
.kt-auth-aviso-icone { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(201,161,74,.14); color: #8a6a22; }
.kt-auth-aviso-icone.ok { background: rgba(31,157,107,.12); color: var(--kt-success); }
.kt-auth-aviso-icone.erro { background: rgba(192,57,43,.1); color: #c0392b; }

/* ---------- Grupo aluno (painel do aluno e conta) ---------- */
@media (min-width: 768px) { .kt-continuar .kt-cover { aspect-ratio: auto; height: 100%; min-height: 220px; } }
.kt-mini-capa { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--kt-ink); }
.kt-mini-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-mini-capa .kt-cover-placeholder { font-size: .85rem; padding: 0; }
.kt-curso-aluno:hover { transform: none; }
.kt-perfil { max-width: 880px; }
.kt-perfil-secao { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--kt-muted); margin: 2rem 0 1rem; }
.kt-perfil-secao:first-of-type { margin-top: 0; }
.kt-perfil-rodape {
  display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; padding: 1rem 1.5rem;
  border-top: 1px solid var(--kt-border); background: #fbfaf7; border-radius: 0 0 var(--kt-radius) var(--kt-radius);
}
.kt-empty .kt-stat-icon { width: 56px; height: 56px; margin-bottom: 1rem; }
.kt-empty .kt-stat-icon .bi { font-size: 1.5rem; color: inherit; margin: 0; }
.kt-perfil .min-w-0 { min-width: 0; }

/* ---------- Grupo professor (painel do professor) ---------- */
.kt-prof-min0 { min-width: 0; }
.kt-prof-curso { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem; }
.kt-prof-thumb { border-radius: var(--kt-radius-sm); }
.kt-prof-thumb .kt-cover-placeholder { font-size: .85rem; line-height: 1.2; }
.kt-prof-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--kt-muted); font-size: .85rem; }
.kt-prof-meta .bi { margin-right: .35rem; }
.kt-prof-curso-acoes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; align-items: center; }
.kt-prof-curso-acoes form { margin: 0; }
@media (max-width: 767.98px) {
  .kt-prof-curso { grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; }
  .kt-prof-curso-acoes { grid-column: 1 / -1; justify-content: flex-start; padding-top: .75rem; border-top: 1px dashed var(--kt-border); }
}
.kt-prof-preview { border-radius: var(--kt-radius-sm); }
.kt-prof-video { border-radius: var(--kt-radius-sm); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.kt-prof-video video { width: 100%; height: 100%; display: block; }
.kt-prof-ou { display: flex; align-items: center; gap: .75rem; color: var(--kt-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; }
.kt-prof-ou::before, .kt-prof-ou::after { content: ""; flex: 1; height: 1px; background: var(--kt-border); }
.kt-drop:focus-visible { outline: 2px solid var(--kt-ink-3); outline-offset: 2px; }
.kt-lesson.kt-prof-editando { background: #fbf6e8; box-shadow: inset 3px 0 0 var(--kt-gold); }
.kt-lesson form { margin: 0; }
@media (min-width: 992px) { .kt-prof-sticky { position: sticky; top: 96px; } }
.kt-prof-pendente { border-left: 3px solid var(--kt-gold); }
.kt-prof-resp { display: flex; gap: .7rem; align-items: flex-start; background: #f8f7f3; border: 1px solid var(--kt-border); border-radius: var(--kt-radius-sm); padding: .75rem .9rem; margin-top: .6rem; }

/* ---------- Grupo player (sala de aula do aluno) ---------- */
.kt-player-min0 { min-width: 0; }
.kt-player-sup { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(233,207,143,.8); }
.kt-player-prog { display: flex; align-items: center; gap: .6rem; width: 96px; }
@media (min-width: 768px) { .kt-player-prog { width: 200px; } }
@media (max-width: 575.98px) { .kt-player-bar { padding: .7rem 1rem; gap: .7rem; } }
.kt-player-aside-head { border-bottom: 1px solid rgba(255,255,255,.07); }
@media (min-width: 992px) { .kt-player-aside { position: sticky; top: 84px; } }
.kt-pl-item:focus-visible { outline: 2px solid var(--kt-gold); outline-offset: -2px; }
.kt-player-page .kt-empty .bi { color: rgba(255,255,255,.25); }
/* Radios das estrelas acessíveis por teclado (sem display:none) */
.kt-rate { position: relative; }
.kt-rate input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kt-rate input:focus-visible + label { outline: 2px solid var(--kt-gold); outline-offset: 2px; border-radius: 6px; }
/* Âncora "Aulas" (mobile) não fica escondida sob a barra fixa */
#conteudo-curso { scroll-margin-top: 80px; }

/* ---------- Grupo pagamento-admin (checkout e retorno do pagamento) ---------- */
.kt-checkout { position: relative; margin-top: -4.5rem; padding-bottom: 1rem; }
.kt-order { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.kt-order .kt-cover { border-radius: var(--kt-radius-sm); }
.kt-order .kt-cover-placeholder { font-size: 1rem; line-height: 1.2; }
@media (max-width: 575.98px) { .kt-order { grid-template-columns: 1fr; } }
.kt-order-specs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.kt-order-specs li { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--kt-border); border-radius: var(--kt-radius-sm); background: #fbfaf7; font-size: .9rem; }
.kt-order-specs .bi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f4efe1; color: #8a6a22; flex-shrink: 0; }
.kt-order-specs strong { display: block; color: var(--kt-ink); line-height: 1.2; }
.kt-order-specs small { color: var(--kt-muted); }
.kt-order-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; color: var(--kt-muted); }
.kt-order-total { border-top: 1px dashed var(--kt-border); margin-top: .4rem; padding-top: 1rem; color: var(--kt-ink); font-weight: 600; }
.kt-order-total .kt-price { font-size: 1.6rem; }
.kt-pay-head { background: var(--kt-ink); color: #fff; padding: 1.4rem 1.5rem; border-radius: var(--kt-radius) var(--kt-radius) 0 0; background-image: radial-gradient(420px 200px at 100% 0%, rgba(201,161,74,.3), transparent 60%); }
.kt-pay-head .kt-price { color: #fff; font-size: 2.1rem; }
.kt-pay-head .kt-price small { color: rgba(255,255,255,.6); }
.kt-pay-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kt-gold-2); margin-bottom: .25rem; }
.kt-pay-sub { font-size: .85rem; color: rgba(255,255,255,.68); margin: 0; }
@media (min-width: 992px) { .kt-pay-sticky { position: sticky; top: 96px; } }
.kt-seals { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.kt-seals li { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: var(--kt-muted); }
.kt-seals .bi { font-size: 1.15rem; color: #8a6a22; line-height: 1.2; }
.kt-seals strong { display: block; color: var(--kt-ink); font-weight: 600; }
.kt-pay-aviso { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: #fbf6e8; border: 1px solid rgba(201,161,74,.35); }
.kt-pay-aviso > .bi { font-size: 1.3rem; color: #8a6a22; line-height: 1.2; }
.kt-status { max-width: 560px; margin: 0 auto; text-align: center; }
.kt-status-icon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 2.6rem; box-shadow: 0 0 0 10px rgba(11,18,32,.03); }
.tone-red { background: #fbe7e5; color: #b4372b; }

/* ---------- Grupo professor (revisão) ---------- */
/* Formulário de aula fixo no desktop: rola por dentro para o botão Salvar nunca ficar fora da tela. */
@media (min-width: 992px) { .kt-prof-sticky { max-height: calc(100vh - 112px); overflow-y: auto; } }

/* ---------- Envio de vários vídeos ---------- */
.kt-lote { display: flex; flex-direction: column; gap: .5rem; max-height: 340px; overflow-y: auto; }
.kt-lote-item { border: 1px solid var(--kt-border); border-radius: var(--kt-radius-sm); padding: .65rem .8rem; font-size: .88rem; background: #fff; }
.kt-lote-item .bi { color: var(--kt-muted); }
.kt-lote-item.ativo { border-color: var(--kt-gold); }
.kt-lote-item.ativo .bi { color: var(--kt-gold); animation: kt-giro 1s linear infinite; }
.kt-lote-item.ok .bi, .kt-lote-item.ok .text-muted { color: #17805a !important; }
.kt-lote-item.erro { border-color: #e0a29a; background: #fff7f6; }
.kt-lote-item.erro .bi, .kt-lote-item.erro .text-muted { color: #c0392b !important; }
@keyframes kt-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kt-lote-item.ativo .bi { animation: none; } }
