:root {
  --course-bg: #060b14;
  --course-bg-2: #0a1220;
  --course-ink: #e6f2ff;
  --course-muted: rgba(230, 242, 255, 0.68);
  --course-surface: rgba(12, 18, 32, 0.88);
  --course-surface-2: rgba(10, 16, 28, 0.9);
  --course-accent: #37d2ff;
  --course-accent-2: #1f7bff;
  --course-border: rgba(55, 210, 255, 0.18);
  --course-shadow: 0 26px 46px rgba(4, 10, 20, 0.6);
}

.cursos-body {
  font-family: "Manrope", sans-serif;
  color: var(--course-ink);
  background: var(--course-bg);
  min-height: 100vh;
}

.cursos-body.cursos-locked main,
.cursos-body.cursos-locked .sidebar,
.cursos-body.cursos-locked .content-header {
  visibility: hidden;
}

.cursos-body.cursos-locked .access-overlay {
  z-index: 10001;
}

.cursos-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(55, 210, 255, 0.22), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(31, 123, 255, 0.18), transparent 52%),
    linear-gradient(140deg, var(--course-bg), var(--course-bg-2));
  z-index: -1;
}

.course-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.back-home {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 800;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--course-ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(55, 210, 255, 0.25);
  background: rgba(6, 10, 20, 0.7);
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(2, 6, 14, 0.6);
}

.cursos-body.cursos-locked .back-home {
  display: inline-flex;
  z-index: 10002;
}

.back-home svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar {
  background: #05070d;
  color: var(--course-ink);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.sidebar-btn {
  background: linear-gradient(120deg, var(--course-accent), var(--course-accent-2));
  color: #04101f;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(31, 123, 255, 0.3);
}

.sidebar-links {
  display: grid;
  gap: 10px;
}

.sidebar-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 242, 255, 0.7);
  border: 1px solid rgba(55, 210, 255, 0.2);
  font-weight: 600;
  box-shadow: none;
}

.sidebar-btn.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidebar-meta {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: rgba(230, 242, 255, 0.7);
}

.content {
  padding: 32px 4vw 48px;
}

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

.content-header h1 {
  margin: 8px 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.7rem;
  color: var(--course-accent);
}

.lead {
  color: var(--course-muted);
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(120deg, var(--course-accent), var(--course-accent-2));
  border: none;
  color: #04101f;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(31, 123, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(31, 123, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--course-border);
  color: var(--course-ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(31, 36, 48, 0.4);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 28px;
}

.featured-card {
  background: var(--course-surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--course-shadow);
  display: grid;
  gap: 12px;
}

.featured-pill {
  background: rgba(55, 210, 255, 0.15);
  color: var(--course-accent);
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-card h2 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.lesson-meta {
  display: flex;
  gap: 16px;
  color: var(--course-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

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

.video-shell {
  margin-top: 20px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--course-border);
  box-shadow: var(--course-shadow);
  background: #000;
}

#curso-video {
  width: 100%;
  display: block;
  background: #000;
}

.video-area {
  position: relative;
}

.video-tools {
  position: absolute;
  top: 30px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.tool-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(55, 210, 255, 0.35);
  background: rgba(8, 16, 28, 0.85);
  color: var(--course-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 20px rgba(4, 10, 20, 0.5);
}

.tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(4, 10, 20, 0.65);
}

.tool-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.progress-card {
  margin-top: 20px;
  background: var(--course-surface);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--course-border);
}

.progress-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

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

.history-card {
  background: var(--course-surface);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--course-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.history-time {
  font-size: 0.85rem;
  color: var(--course-muted);
}

.info-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.info-card {
  background: var(--course-surface-2);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  display: grid;
  gap: 12px;
}

.info-card.highlight {
  background: rgba(12, 22, 40, 0.92);
  border-color: rgba(55, 210, 255, 0.18);
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--course-muted);
  display: grid;
  gap: 8px;
}

.upcoming-item {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}

.upcoming-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(55, 210, 255, 0.15);
  color: var(--course-accent);
  width: fit-content;
}

.muted {
  color: var(--course-muted);
  font-size: 0.95rem;
}

.access-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.access-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.access-card {
  background: var(--course-surface);
  border: 1px solid var(--course-border);
  border-radius: 24px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  display: grid;
  gap: 14px;
  text-align: left;
  box-shadow: var(--course-shadow);
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: stretch;
}

.access-price {
  background:
    radial-gradient(circle at top left, rgba(55, 210, 255, 0.2), transparent 55%),
    linear-gradient(140deg, rgba(6, 12, 24, 0.95), rgba(10, 18, 34, 0.98));
  border: 1px solid rgba(55, 210, 255, 0.25);
  border-radius: 24px;
  padding: 28px;
  color: var(--course-ink);
  display: grid;
  gap: 12px;
  box-shadow: var(--course-shadow);
  position: relative;
  overflow: hidden;
}

.access-price::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(55, 210, 255, 0.12), transparent);
  opacity: 0.6;
  pointer-events: none;
}

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

.price-badge {
  background: rgba(55, 210, 255, 0.18);
  color: var(--course-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.price-tag {
  font-size: 0.85rem;
  color: var(--course-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.access-price h3 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.price-main {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}

.price-old {
  text-decoration: line-through;
  color: rgba(230, 242, 255, 0.55);
  font-weight: 600;
}

.price-installments {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(8, 16, 28, 0.65);
  border: 1px solid rgba(55, 210, 255, 0.2);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
}

.price-installments strong {
  color: var(--course-accent);
  font-size: 1.05rem;
}

.price-features {
  margin: 0;
  padding-left: 18px;
  color: var(--course-muted);
  display: grid;
  gap: 8px;
}

.access-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.access-card .muted {
  margin: 0;
}

.access-card form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.access-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(55, 210, 255, 0.25);
  background: rgba(5, 10, 20, 0.9);
  color: var(--course-ink);
}

.access-card label {
  font-size: 0.85rem;
  color: var(--course-muted);
}

.access-card button {
  width: 100%;
  justify-content: center;
}

.error {
  color: #c24646;
  min-height: 18px;
}

.notes-panel {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: min(420px, 90vw);
  min-width: 260px;
  min-height: 240px;
  max-height: 75vh;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(55, 210, 255, 0.28);
  border-radius: 18px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 24px 40px rgba(2, 6, 14, 0.75);
  z-index: 9999;
  resize: both;
  overflow: auto;
}

.notes-panel.show {
  display: flex;
}

.notes-panel[data-color="neon"] {
  --note-bg: rgba(8, 18, 34, 0.98);
}

.notes-panel[data-color="ocean"] {
  --note-bg: rgba(6, 22, 36, 0.98);
}

.notes-panel[data-color="midnight"] {
  --note-bg: rgba(8, 12, 20, 0.98);
}

.notes-panel[data-color="graphite"] {
  --note-bg: rgba(20, 22, 28, 0.98);
}

.notes-panel {
  background: var(--note-bg, rgba(8, 18, 34, 0.98));
}

.notes-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  cursor: move;
}

.icon-btn {
  border: 1px solid rgba(55, 210, 255, 0.3);
  background: transparent;
  color: var(--course-ink);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.notes-colors {
  display: flex;
  gap: 8px;
}

.color-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  background: #0b1c32;
}

.color-btn[data-color="neon"] {
  background: #0b1c32;
}

.color-btn[data-color="ocean"] {
  background: #062236;
}

.color-btn[data-color="midnight"] {
  background: #0b111a;
}

.color-btn[data-color="graphite"] {
  background: #1a1c22;
}

.notes-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--course-muted);
}

#note-title,
#note-content {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(55, 210, 255, 0.2);
  background: rgba(5, 10, 20, 0.85);
  color: var(--course-ink);
  padding: 10px 12px;
  font-family: "Manrope", sans-serif;
}

#note-content {
  min-height: 120px;
  resize: vertical;
}

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

.disk-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}

.disk-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.notes-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.note-item {
  border: 1px solid rgba(55, 210, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(5, 10, 20, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.note-item button {
  border: none;
  background: transparent;
  color: var(--course-accent);
  cursor: pointer;
  font-weight: 600;
}

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

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

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

.note-card button {
  border: none;
  background: transparent;
  color: var(--course-accent);
  font-weight: 600;
  cursor: pointer;
}

body.notes-fullscreen .notes-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-height: 65vh;
}

video::-webkit-media-controls-fullscreen-button {
  display: none;
}

video::-moz-media-controls-fullscreen-button {
  display: none;
}

video::part(fullscreen-button) {
  display: none;
}

@media (max-width: 1100px) {
  .course-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 860px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-meta {
    display: none;
  }

  .content {
    padding: 24px 6vw 40px;
  }
}

@media (max-width: 720px) {
  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .access-shell {
    grid-template-columns: 1fr;
  }
}
.notes-panel::-webkit-scrollbar,
#note-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.notes-panel::-webkit-scrollbar-track,
#note-content::-webkit-scrollbar-track {
  background: rgba(5, 10, 20, 0.6);
  border-radius: 999px;
}

.notes-panel::-webkit-scrollbar-thumb,
#note-content::-webkit-scrollbar-thumb {
  background: rgba(55, 210, 255, 0.45);
  border-radius: 999px;
}

.notes-panel {
  scrollbar-color: rgba(55, 210, 255, 0.45) rgba(5, 10, 20, 0.6);
  scrollbar-width: thin;
}
