:root {
  --color-bg: #121316;
  --color-surface: #1b1c1f;
  --color-card: rgba(51, 51, 51, 0.8);
  --color-primary: #783ab8;
  --color-primary-strong: #793bb9;
  --color-accent: #d5d8dc;
  --color-text: #f2f2f2;
  --color-muted: #a5a7af;
  --shadow-soft: 0 20px 45px rgba(18, 19, 22, 0.65);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --transition: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(120, 58, 184, 0.25), transparent 55%), var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: 100vh;
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.edit-toolbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  background: rgba(18, 19, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
}

.edit-toolbar__status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.edit-toolbar__status strong {
  color: var(--color-text);
}

.edit-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edit-toolbar[hidden] {
  display: none;
}

body.edit-mode .page-shell {
  margin-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: rgba(18, 19, 22, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(213, 216, 220, 0.12);
}

.logo-stack {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-image {
  width: 130px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  background: rgba(18, 19, 22, 0.6);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-image:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 45px rgba(121, 59, 185, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.logo-title {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-tagline {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.primary-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.primary-nav a:hover {
  color: var(--color-accent);
}

.ghost-cta {
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(242, 242, 242, 0.3);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border var(--transition);
}

.ghost-cta:hover {
  background: var(--color-primary);
  border-color: transparent;
}

.hero {
  position: relative;
  min-height: 85vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  background-image: url("https://digitalavante.com.br/wp-content/uploads/2025/11/ChatGPT-Image-12-de-nov.-de-2025-10_36_20.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 19, 22, 0.98), rgba(18, 19, 22, 0.4));
}

.hero__overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem;
}

.hero__content {
  flex: 1 1 420px;
  max-width: 620px;
}

.hero__eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  line-height: 1.1;
}

.hero__description {
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  color: var(--color-accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-edit {
  display: none;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--color-accent);
  font-size: 0.8rem;
  cursor: pointer;
}

.hero__form-card {
  flex: 1 1 360px;
  max-width: 420px;
  align-self: center;
  background: rgba(27, 28, 31, 0.92);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero__form-heading {
  margin-bottom: 1.5rem;
}

.hero__form-heading h3 {
  margin: 0.15rem 0;
  font-size: 1.35rem;
}

.hero__form-heading p {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-form input,
.lead-form select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 19, 22, 0.85);
  color: var(--color-text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}

.lead-form select {
  appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-accent) 50%),
    linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(120, 58, 184, 0.25);
  background: rgba(18, 19, 22, 0.95);
}

.lead-form select::-ms-expand {
  display: none;
}

.lead-form select option {
  background-color: #0f1116;
  color: var(--color-text);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lead-form__submit {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-form.is-sending .lead-form__submit {
  opacity: 0.6;
  pointer-events: none;
}

.lead-form.is-sending .lead-form__submit::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--color-bg);
  animation: spin 0.9s linear infinite;
}

.form-feedback {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-feedback[data-state="success"] {
  color: #6dd3a4;
}

.form-feedback[data-state="error"] {
  color: #f38c8c;
}

.form-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.metrics-actions {
  display: none;
  margin-top: 0.75rem;
}

.gallery-actions {
  display: none;
  margin: 1rem 0 2rem;
}

.inline-add {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-accent);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.inline-add:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: var(--color-text);
  box-shadow: 0 12px 30px rgba(121, 59, 185, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(242, 242, 242, 0.3);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(242, 242, 242, 0.2);
  color: var(--color-text);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 19, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.metric-card span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.section {
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(213, 216, 220, 0.06);
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-family: "Space Grotesk", sans-serif;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0;
}

.rail-hint {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: rgba(121, 59, 185, 0.6);
  border-radius: 999px;
}

.course-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
  background: rgba(18, 19, 22, 0.7);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.course-card__cover {
  position: relative;
  border: none;
  width: 100%;
  padding: 0;
  min-height: 230px;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
  color: var(--color-text);
  text-align: left;
}

.course-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 19, 22, 0.9), rgba(18, 19, 22, 0.35));
}

.course-card__cover-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.4rem;
  text-align: left;
}

.course-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.course-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.course-card__info {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-card__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.course-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.course-card:hover .course-card__cover {
  animation: coursePulse 1.4s ease-in-out infinite alternate;
  box-shadow: 0 25px 40px rgba(121, 59, 185, 0.25);
  transform: translateY(-4px);
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

.pill--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 110px;
}

.pill--stacked small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(213, 216, 220, 0.7);
}

.pill--stacked span[data-edit] {
  font-size: 0.85rem;
}

.trust {
  background: linear-gradient(135deg, rgba(18, 19, 22, 0.9), rgba(18, 19, 22, 0.65));
}

.trust__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trust__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.testimonials .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-subheader {
  margin-bottom: 1rem;
}

.eyebrow--sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.testimonial-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.gallery-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(27, 28, 31, 0.65);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-card__media {
  width: 100%;
  height: 100%;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card__placeholder {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.video-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(27, 28, 31, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.video-card__player {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-card__player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-card__fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.video-card__fullscreen::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.video-card__fullscreen:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: rgba(0, 0, 0, 0.4);
}

.video-frame video,
.video-frame .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  object-fit: cover;
  border: none;
  display: block;
  background: #000;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.video-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.video-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.video-info .role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.video-info .quote {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(121, 59, 185, 0.35), rgba(121, 59, 185, 0.1));
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ADMIN */
.admin-shell {
  min-height: 100vh;
  padding: 3rem 0;
  width: min(900px, 92vw);
  margin: 0 auto;
  color: var(--color-text);
}

.admin-card {
  background: rgba(18, 19, 22, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.admin-card h1 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.admin-section {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.admin-section h2 {
  margin-top: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-accent);
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--color-text);
  font: inherit;
  resize: vertical;
}

textarea {
  min-height: 100px;
}

.list-manager {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.list-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.list-item--column {
  flex-direction: column;
  align-items: stretch;
}

.list-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.list-item__head h3 {
  margin: 0;
  font-size: 1rem;
}

.list-item__body {
  width: 100%;
}

.list-item button {
  background: none;
  border: none;
  color: #ff7b7b;
  font-weight: 600;
  cursor: pointer;
}

.password-gate {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
}

.password-panel {
  background: rgba(18, 19, 22, 0.98);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.password-panel h1 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.password-panel input {
  width: 100%;
}

.gate-error {
  color: #ff7b7b;
  min-height: 1.2rem;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.admin-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.admin-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.card-controls {
  position: absolute;
  inset: 10px 10px auto auto;
  display: none;
  gap: 0.35rem;
  flex-direction: column;
  align-items: flex-end;
}

.card-controls button {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-controls__edit {
  background: rgba(121, 59, 185, 0.85);
  color: #fff;
}

.card-controls__image {
  background: rgba(34, 34, 34, 0.85);
  color: #f2f2f2;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.card-controls__video {
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-accent);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.card-controls__remove {
  background: rgba(255, 80, 80, 0.9);
  color: #fff;
}

.course-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 45;
}

.course-modal:not([hidden]) {
  display: flex;
}

.course-modal__dialog {
  width: min(1000px, 94vw);
  max-height: 92vh;
  background: #101116;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.course-modal__media {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 17, 22, 0.2), rgba(16, 17, 22, 0.8));
}

.course-modal__content {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-modal__title {
  margin: 0;
  font-size: 2rem;
}

.course-modal__overview {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.course-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.course-modal__block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course-modal__section-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0 0 0.8rem;
}

.course-modal__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-modal__list--ordered {
  list-style: decimal;
  padding-left: 1.2rem;
}

.course-modal__list li {
  position: relative;
  color: var(--color-text);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.course-modal__list span[data-edit] {
  flex: 1;
}

.list-add,
.list-remove {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.list-remove {
  border-color: rgba(255, 120, 120, 0.5);
  color: #ff8a8a;
}

.course-modal.is-editing .list-add,
.course-modal.is-editing .list-remove {
  display: inline-flex;
}

.course-modal__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-modal__cta .link-edit {
  margin-left: 0;
}

.whatsapp-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(18, 19, 22, 0.65);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 35;
}

.whatsapp-float__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 30;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__card {
  background: #111217;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(400px, 95vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.admin-modal__card input {
  margin-top: 1rem;
  width: 100%;
}

.admin-modal__error {
  min-height: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #ff8585;
}

.admin-modal__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 40;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__dialog {
  width: min(900px, 95vw);
  background: #000;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.video-modal__player {
  position: relative;
  padding-top: 56.25%;
}

.video-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border: none;
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
}

body.edit-mode .link-edit,
body.edit-mode .metrics-actions,
body.edit-mode .gallery-actions,
body.edit-mode .card-controls {
  display: flex;
}

[data-edit][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(213, 216, 220, 0.5);
  font-style: italic;
}

[data-edit][data-placeholder]:focus:empty::before {
  color: rgba(242, 242, 242, 0.7);
}

.metric-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 1rem;
  line-height: 1;
}

body.edit-mode .metric-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.edit-mode [data-edit] {
  outline: 1px dashed rgba(121, 59, 185, 0.7);
  outline-offset: 3px;
  cursor: text;
}

body.edit-mode [data-edit]:focus {
  background: rgba(121, 59, 185, 0.08);
}

@keyframes coursePulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }

  .logo-stack {
    justify-content: center;
    text-align: center;
  }

  .logo-text {
    align-items: center;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .ghost-cta {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  .hero__overlay {
    padding: 2.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 1.75rem;
  }

  .edit-toolbar {
    flex-direction: column;
  }

  .hero__form-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding: 1rem 0;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rail {
    grid-auto-columns: minmax(220px, 85%);
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    padding: 0.25rem;
  }

  .logo-stack {
    gap: 0.6rem;
  }

  .logo-text {
    width: 100%;
  }

  .logo-image {
    width: 170px;
  }

  .ghost-cta {
    max-width: 100%;
  }
}

