:root {
  --primary: #2a4ea2;
  --primary-2: #3b64cc;
  --secondary: #00b8ff;
  --secondary-2: #008ed1;
  --bg: #f4f8ff;
  --white: #ffffff;
  --text: #10203f;
  --muted: #667795;
  --border: #dce7f8;
  --soft: #edf5ff;
  --danger: #ef476f;
  --success: #12b981;
  --warning: #f59e0b;
  --shadow: 0 22px 70px rgba(42, 78, 162, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 45%, #ffffff 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 78, 162, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 78, 162, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 40%, transparent);
}

.orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -3;
  animation: orbMove 8s ease-in-out infinite alternate;
}

.orb-a {
  top: 80px;
  left: -140px;
  background: var(--secondary);
}

.orb-b {
  right: -140px;
  bottom: 70px;
  background: var(--primary-2);
  animation-delay: 1s;
}

@keyframes orbMove {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-32px) scale(1.08);
  }
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(42, 78, 162, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(42, 78, 162, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.65s ease both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 34px rgba(0, 184, 255, 0.28);
}

.brand strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a {
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* BUTTONS */

.btn {
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary-2));
  box-shadow: 0 16px 42px rgba(0, 142, 209, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 20px 55px rgba(0, 142, 209, 0.36);
}

.btn-primary-soft {
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
}

.btn-outline {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
}

.btn-danger-soft {
  color: var(--danger);
  background: rgba(239, 71, 111, 0.08);
  border: 1px solid rgba(239, 71, 111, 0.22);
}

.btn-warning-soft {
  color: #9a6200;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-full {
  width: 100%;
}

/* PRODUCTS */

.products-section {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.products-header span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.products-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.products-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(42, 78, 162, 0.1);
  transition: 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: #eaf4ff;
}

.products-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 78, 162, 0.3) transparent;
}

.product-card {
  min-width: 265px;
  max-width: 265px;
  min-height: 190px;
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(42, 78, 162, 0.12);
  overflow: hidden;
  transition: 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(42, 78, 162, 0.18);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 130px;
  height: 130px;
  background: rgba(0, 184, 255, 0.12);
  border-radius: 50%;
}

.product-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-loading {
  width: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* HERO */

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 68px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.badge {
  width: fit-content;
  margin-bottom: 24px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -2.2px;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 122px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(42, 78, 162, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: 1.45rem;
  color: var(--primary);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
}

.screen-card {
  position: relative;
  min-height: 510px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 78, 162, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(0, 184, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(42, 78, 162, 0.16), transparent 35%);
}

.screen-top {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.screen-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c8d8ef;
}

.screen-content {
  position: relative;
  z-index: 2;
  min-height: 330px;
  margin: 26px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  border: 1px solid var(--border);
}

.play-button {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 20px 48px rgba(0, 142, 209, 0.32);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 24px 65px rgba(0, 142, 209, 0.45);
  }
}

.screen-content h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.screen-content p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.screen-footer {
  position: relative;
  z-index: 2;
  margin: 0 26px 26px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-footer small {
  display: block;
  color: var(--muted);
}

.screen-footer i {
  color: var(--success);
  font-size: 1.3rem;
}

.floating-chip {
  position: absolute;
  z-index: 5;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(42, 78, 162, 0.16);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: chipFloat 3.2s ease-in-out infinite alternate;
}

.floating-chip i {
  color: var(--secondary-2);
}

.chip-1 {
  top: 100px;
  left: -28px;
}

.chip-2 {
  right: -22px;
  bottom: 118px;
  animation-delay: 0.6s;
}

@keyframes chipFloat {
  to {
    transform: translateY(-12px);
  }
}

/* SECTIONS */

.courses-section,
.admin-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-header span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
  font-weight: 800;
  font-size: 0.86rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* AUTH MODAL */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 63, 0.44);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn 0.28s ease both;
}

@keyframes modalIn {
  from {
    transform: translateY(24px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(42, 78, 162, 0.15);
}

.auth-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  color: var(--muted);
  background: #f8fbff;
  cursor: pointer;
  font-weight: 900;
  transition: 0.25s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
  background: #eaf4ff;
  border-color: rgba(42, 78, 162, 0.24);
}

.auth-card {
  display: none;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  animation: fadeUp 0.35s ease both;
}

.auth-card.active {
  display: block;
}

.auth-card h3 {
  margin-bottom: 22px;
  font-size: 1.5rem;
}

/* FORMS */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-group input,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: #f8fbff;
  outline: none;
  transition: 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(0, 142, 209, 0.45);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.1);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 52px;
}

.toggle-pass {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.switch-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.switch-row input {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

/* COURSES */

.user-panel {
  margin: 0 auto 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(42, 78, 162, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-panel small {
  display: block;
  color: var(--muted);
}

.courses-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  animation: fadeUp 0.45s ease both;
}

.course-sidebar,
.course-player,
.locked-message {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.course-sidebar {
  padding: 20px;
}

.course-sidebar h3 {
  margin-bottom: 16px;
}

.course-list {
  display: grid;
  gap: 12px;
}

.course-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  background: #f8fbff;
  cursor: pointer;
  transition: 0.25s ease;
}

.course-item:hover,
.course-item.active {
  transform: translateX(4px);
  background: #eaf4ff;
  border-color: rgba(42, 78, 162, 0.24);
}

.course-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

.course-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.course-player {
  overflow: hidden;
}

.player-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-header small {
  color: var(--muted);
}

.course-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
  font-weight: 900;
  font-size: 0.82rem;
}

.iframe-box {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #f8fbff;
}

.iframe-box iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

.empty-state,
.locked-message {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}

.empty-state i,
.locked-message i {
  font-size: 3rem;
  color: var(--secondary-2);
  margin-bottom: 18px;
}

.empty-state p,
.locked-message p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px auto 22px;
}

/* ADMIN */

.admin-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--muted);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.admin-tab.active,
.admin-tab:hover {
  color: var(--primary);
  background: #eaf4ff;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-form-header h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.admin-form-header p {
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(42, 78, 162, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.admin-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.admin-item p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.78rem;
}

.admin-badge.off {
  color: var(--danger);
  background: rgba(239, 71, 111, 0.08);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* TOAST */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: 18px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(18, 185, 129, 0.32);
}

.toast.error {
  border-color: rgba(239, 71, 111, 0.32);
}

/* FOOTER */

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  transition: 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ANIMATIONS */

.reveal {
  animation: fadeUp 0.8s ease both;
}

.delay {
  animation-delay: 0.15s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .screen-card {
    min-height: 430px;
  }

  .courses-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    order: 2;
  }

  .course-player {
    order: 1;
  }
}

@media (max-width: 680px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 24px;
  }

  .navbar .btn {
    display: inline-flex;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .products-section,
  .hero,
  .courses-section,
  .admin-section,
  .footer {
    width: calc(100% - 24px);
  }

  .products-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card {
    min-width: 240px;
    max-width: 240px;
  }

  .hero {
    padding: 44px 0;
  }

  .hero h1 {
    letter-spacing: -1.2px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .screen-card {
    min-height: 380px;
    border-radius: 26px;
  }

  .screen-content {
    margin: 18px;
    min-height: 250px;
    padding: 22px;
  }

  .screen-footer {
    margin: 0 18px 18px;
  }

  .floating-chip {
    display: none;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .auth-box {
    padding: 12px;
    border-radius: 24px;
  }

  .auth-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .user-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .iframe-box,
  .iframe-box iframe {
    min-height: 320px;
    height: 320px;
  }

  .admin-form-header,
  .admin-item {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}


.modal-admin {
  width: min(520px, 100%);
}

.auth-note {
  color: var(--muted);
  line-height: 1.6;
  margin: -10px 0 20px;
}

.products-section {
  padding: 20px 0 82px;
}

/* =========================================================
   HERO COMPACTO CON CLASES A LA DERECHA
========================================================= */

.hero-with-courses {
  min-height: auto;
  padding: 54px 0 70px;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: center;
}

.hero-with-courses .hero-text {
  max-width: 520px;
}

.hero-with-courses .badge {
  margin-bottom: 18px;
  font-size: 0.78rem;
  padding: 8px 13px;
}

.hero-with-courses h1 {
  font-size: clamp(2.35rem, 4.7vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
}

.hero-with-courses p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 480px;
}

.hero-with-courses .hero-actions {
  margin-bottom: 24px;
}

.hero-with-courses .hero-stats {
  gap: 10px;
}

.hero-with-courses .hero-stats div {
  min-width: 105px;
  padding: 13px 15px;
  border-radius: 18px;
}

.hero-with-courses .hero-stats strong {
  font-size: 1.2rem;
}

.hero-with-courses .hero-stats span {
  font-size: 0.76rem;
}

/* PANEL DERECHO */

.hero-courses-panel {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.hero-courses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-courses-header span:not(.course-pill) {
  display: inline-block;
  margin-bottom: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #eaf4ff;
  border: 1px solid rgba(42, 78, 162, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-courses-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin-bottom: 6px;
}

.hero-courses-header p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  font-size: 0.88rem;
}

/* LAYOUT INTERNO DEL PANEL */

.hero-courses-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-course-sidebar,
.hero-course-player {
  box-shadow: none;
  border-radius: 22px;
}

.hero-course-sidebar {
  padding: 16px;
  max-height: 410px;
  overflow-y: auto;
}

.hero-course-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.hero-course-sidebar .course-list {
  gap: 10px;
}

.hero-course-sidebar .course-item {
  padding: 12px;
  border-radius: 15px;
}

.hero-course-sidebar .course-item strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.hero-course-sidebar .course-item span {
  font-size: 0.76rem;
  line-height: 1.4;
}

.hero-course-player {
  min-width: 0;
  overflow: hidden;
}

.hero-course-player .player-header {
  padding: 14px 16px;
}

.hero-course-player .player-header h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.hero-course-player .player-header small {
  font-size: 0.78rem;
}

.hero-course-player .iframe-box {
  min-height: 330px;
}

.hero-course-player .iframe-box iframe {
  height: 330px;
}

.hero-course-player .empty-state {
  min-height: 330px;
  padding: 34px 18px;
}

.hero-course-player .empty-state i {
  font-size: 2.3rem;
}

.hero-course-player .empty-state h3 {
  font-size: 1rem;
}

.hero-course-player .empty-state p {
  font-size: 0.86rem;
}

/* SCROLL SUAVE PARA LISTA DE CLASES */

.hero-course-sidebar::-webkit-scrollbar {
  width: 7px;
}

.hero-course-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.hero-course-sidebar::-webkit-scrollbar-thumb {
  background: rgba(42, 78, 162, 0.22);
  border-radius: 999px;
}

.hero-course-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 78, 162, 0.38);
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .hero-with-courses {
    grid-template-columns: 1fr;
  }

  .hero-with-courses .hero-text {
    max-width: 720px;
  }

  .hero-courses-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-courses-layout {
    grid-template-columns: 1fr;
  }

  .hero-course-sidebar {
    max-height: 260px;
  }

  .hero-course-player .iframe-box,
  .hero-course-player .iframe-box iframe {
    min-height: 320px;
    height: 320px;
  }
}

@media (max-width: 680px) {
  .hero-with-courses {
    padding: 44px 0 60px;
  }

  .hero-with-courses h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .hero-courses-panel {
    padding: 15px;
    border-radius: 24px;
  }

  .hero-courses-header {
    flex-direction: column;
  }

  .hero-course-sidebar {
    max-height: 240px;
  }
}

.btn-whatsapp {
  color: var(--white);
  background: linear-gradient(135deg, #25d366, #128c4a);
  box-shadow: 0 16px 42px rgba(37, 211, 102, 0.26);
  padding: 13px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  box-shadow: 0 20px 55px rgba(37, 211, 102, 0.38);
}

.contact-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 34px;
  padding: 0;
}

.contact-cta-content {
  padding: 24px 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(42, 78, 162, 0.95), rgba(0, 142, 209, 0.92));
  color: var(--white);
  box-shadow: 0 18px 50px rgba(42, 78, 162, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  overflow: hidden;
}

.contact-cta-content span {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0.9;
}

.contact-cta-content h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  margin-bottom: 6px;
}

.contact-cta-content p {
  max-width: 620px;
  line-height: 1.55;
  opacity: 0.88;
}

.btn-contact-cta {
  color: var(--primary);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 32, 63, 0.18);
  white-space: nowrap;
}

.btn-contact-cta:hover {
  box-shadow: 0 18px 45px rgba(16, 32, 63, 0.24);
}

@media (max-width: 680px) {
  .contact-cta {
    width: calc(100% - 24px);
    margin-bottom: 28px;
  }

  .contact-cta-content {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-contact-cta {
    width: 100%;
  }
}