:root {
  --platform-bg: #f6f3ec;
  --platform-panel: rgba(255, 255, 255, 0.94);
  --platform-line: rgba(18, 50, 80, 0.12);
  --platform-soft: #6a6f78;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.08);
  --shadow-md: 0 12px 24px rgba(26, 58, 92, 0.12);
  --shadow-lg: 0 20px 40px rgba(26, 58, 92, 0.15);
}

body {
  background:
    radial-gradient(circle at top right, rgba(29, 138, 126, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 168, 76, 0.12), transparent 28%),
    var(--platform-bg);
  transition: background-color 0.5s ease;
}

/* Animaciones globales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes softScale {
  0% { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hidden {
  display: none !important;
}

.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--platform-line);
  color: var(--blue);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(26, 58, 92, 0.06);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.user-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.user-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.user-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.user-btn:active {
  transform: translateY(0);
}

.platform-stage-stack {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 78px 0 84px;
  gap: 14px;
}

.platform-stage-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(26, 58, 92, 0.08);
  backdrop-filter: blur(6px);
  transition: var(--transition-smooth);
  animation: fadeIn 0.6s ease-out;
}

.platform-stage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.platform-stage-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-weight: 700;
}

.platform-stage-card span {
  display: block;
  color: var(--platform-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.platform-stage-card.is-accent {
  background: linear-gradient(135deg, rgba(21, 132, 118, 0.16), rgba(201, 168, 76, 0.22));
  border-color: rgba(21, 132, 118, 0.3);
}

.hero-stage-compact {
  min-height: 220px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
  text-align: center;
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(8, 20, 36, 0.18);
  backdrop-filter: blur(8px);
}

.hero-stage-copy strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.35;
}

.hero-stage-copy span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-weight: 600;
}

.auth-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-grid > .card:only-child {
  grid-column: 1 / -1;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  color: var(--blue);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--platform-line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.credential-copy {
  margin: 0 0 14px;
  color: var(--platform-soft);
  line-height: 1.55;
}

.platform-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.platform-mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--platform-line);
  background: rgba(26, 58, 92, 0.03);
}

.platform-mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.platform-mini-card span {
  display: block;
  color: var(--platform-soft);
  line-height: 1.5;
  font-size: 0.9rem;
}

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

.credential-card,
.platform-note {
  border-radius: 20px;
  border: 1px solid var(--platform-line);
  background: var(--platform-panel);
}

.credential-card {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.platform-note {
  margin-top: 16px;
  padding: 18px;
}

.platform-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.form-error,
.form-success {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 700;
}

.form-error {
  color: #b0322b;
}

.form-success {
  color: #176f5d;
}

.credential-card[data-email] {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.credential-card[data-email]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 58, 92, 0.1);
}

.credential-fill-hint {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.credential-card[data-email]:hover .credential-fill-hint {
  opacity: 1;
}

.program-stack {
  display: grid;
  gap: 18px;
}

.platform-program {
  display: grid;
  gap: 18px;
}

.collapsible-panel {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 241, 228, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.collapsible-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: relative;
  background: linear-gradient(90deg, rgba(21, 132, 118, 0.08), rgba(201, 168, 76, 0.12));
}

.collapsible-panel summary::after {
  content: "\25BE";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.collapsible-panel[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

.collapsible-panel summary::-webkit-details-marker {
  display: none;
}

.collapsible-panel summary span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.collapsible-panel summary strong {
  color: var(--blue);
  font-size: 1rem;
}

.collapsible-body {
  padding: 18px;
  background: rgba(255, 253, 248, 0.76);
}

.program-hero-card,
.program-content-card,
.hero-banner-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 241, 228, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.program-hero-card,
.program-content-card {
  padding: 22px;
}

.program-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: center;
}

.program-hero-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.04;
}

.program-side-stack {
  display: grid;
  gap: 12px;
}

.program-side-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(26, 58, 92, 0.08);
}

.program-side-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.program-side-card span {
  color: var(--platform-soft);
  line-height: 1.5;
}

.program-side-card.is-accent {
  background: linear-gradient(135deg, rgba(21, 132, 118, 0.16), rgba(201, 168, 76, 0.22));
}

.section-header.compact {
  margin-bottom: 14px;
}

.hero-banner-card {
  overflow: hidden;
}

.hero-banner-card img {
  display: block;
  width: 100%;
  height: auto;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.roadmap-step {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-2);
}

.roadmap-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
}

.roadmap-step p {
  margin: 0;
  color: var(--platform-soft);
  line-height: 1.55;
}

.validation-card {
  gap: 18px;
}

.validation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.validation-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}

.validation-head p {
  margin: 0;
  color: var(--platform-soft);
}

.validation-count {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f6efdf;
  border: 1px solid var(--line-2);
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.validation-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--platform-line);
  background: rgba(255, 255, 255, 0.84);
}

.check-item.is-done {
  border-color: rgba(21, 132, 118, 0.35);
  background: rgba(21, 132, 118, 0.05);
}

.check-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--platform-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.check-item.is-done .check-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.validation-summary {
  margin-top: 0;
}

.index-grid {
  display: grid;
  gap: 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.index-note {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 241, 228, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.module-card {
  padding: 18px;
  border-radius: 24px;
}

.module-card h3 {
  margin: 0 0 8px;
  color: var(--red);
}

.module-card p,
.index-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.module-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.62;
}

.module-card li {
  margin: 4px 0;
}

.pre-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.index-note {
  padding: 16px 18px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.index-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.module,
.admin-data-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 241, 228, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.module {
  border-radius: 28px;
  overflow: hidden;
}

.module summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.14), rgba(26, 92, 74, 0.08));
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module-title {
  margin: 0;
  color: var(--red);
  font-weight: 900;
  font-size: 1.08rem;
  text-transform: uppercase;
  line-height: 1.25;
}

.module-sub {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.module-summary-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.module-body {
  padding: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.summary-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--teal);
}

.summary-box ul {
  margin: 0;
  padding-left: 20px;
  color: #3f4e5b;
  line-height: 1.55;
}

.summary-box li {
  margin: 4px 0;
}

.summary-box .biblio {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 42, 74, 0.1);
  color: #5b6a77;
  font-size: 0.92rem;
  line-height: 1.5;
}

.program-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6efdf;
  border: 1px solid var(--line-2);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.program-progress-bar,
.progress-bar-wrap {
  width: 88px;
  height: 6px;
  background: rgba(26, 58, 92, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-wrap {
  width: 100%;
  margin-top: 10px;
}

.progress-bar-wrap.compact {
  width: 72px;
  margin-top: 0;
}

.program-progress-fill,
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), rgba(21, 132, 118, 0.62));
  border-radius: 999px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.lesson-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 34px rgba(23, 32, 48, 0.08);
}

.lesson-card h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.3;
}

.lesson-card p {
  margin: 0 0 12px;
  color: #465767;
  line-height: 1.55;
  font-size: 0.94rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.lesson-kicker,
.lesson-progress {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-kicker {
  color: var(--teal);
}

.lesson-progress {
  color: var(--platform-soft);
}

.resource-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.resource-line {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--platform-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 228, 0.9));
}

.resource-line[data-status="in_progress"] {
  border-left: 4px solid rgba(201, 168, 76, 0.72);
}

.resource-line[data-status="completed"] {
  border-left: 4px solid rgba(21, 132, 118, 0.54);
  background: rgba(21, 132, 118, 0.03);
}

.resource-line-main {
  display: block;
}

.resource-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-line-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--blue);
}

.resource-line-copy strong {
  color: var(--blue);
  line-height: 1.35;
}

.resource-line-copy span:last-child {
  color: var(--platform-soft);
  font-size: 0.88rem;
}

.resource-line-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.resource-time {
  color: var(--platform-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.resource-kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.resource-kind.kind-theory {
  background: rgba(176, 50, 43, 0.08);
  color: var(--red);
}

.resource-kind.kind-lab {
  background: rgba(21, 132, 118, 0.1);
  color: var(--teal);
}

.resource-kind.kind-notebook {
  background: rgba(201, 168, 76, 0.18);
  color: #7c5e09;
}

.visibility-btn {
  border: 1px solid var(--platform-line);
  background: #fff;
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.visibility-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.visibility-btn.is-active {
  background: rgba(21, 132, 118, 0.16);
  border-color: rgba(21, 132, 118, 0.45);
  color: #135c47;
}

.admin-class-card p {
  min-height: 64px;
}

.admin-visibility-row {
  display: flex;
  justify-content: flex-start;
}

.table-wrap {
  overflow-x: auto;
}

.admin-data-card {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
}

.admin-data-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-data-head strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.admin-data-head p {
  margin: 0;
  color: var(--platform-soft);
  line-height: 1.55;
}

.admin-data-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-data-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--platform-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-data-strip strong {
  color: var(--blue);
}

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

.admin-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 520px;
}

.admin-filters input,
.admin-filters select {
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--platform-line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-export-btn {
  width: auto;
  min-width: 170px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--platform-line);
  text-align: left;
}

.compare th {
  color: var(--blue);
  background: rgba(26, 58, 92, 0.04);
}

.compare tbody tr:hover td {
  background: rgba(26, 58, 92, 0.03);
}

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

.admin-table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-student-detail-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 241, 228, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.admin-student-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.admin-student-detail-head strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 1.05rem;
}

.admin-student-detail-head p {
  margin: 0;
  color: var(--platform-soft);
}

.admin-student-empty {
  margin-top: 18px;
}

.admin-create-card {
  margin-bottom: 18px;
}

.admin-create-grid {
  align-items: start;
}

.admin-subtitle {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-upload-note {
  margin-top: 14px;
}

.admin-progress-grid {
  margin-top: 16px;
}

.admin-progress-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.admin-visibility-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.admin-progress-table th,
.admin-progress-table td {
  vertical-align: middle;
}

.admin-visibility-table th,
.admin-visibility-table td {
  vertical-align: middle;
}

.admin-progress-module-name {
  color: var(--blue);
  font-weight: 800;
  line-height: 1.4;
}

.admin-progress-class-name {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-progress-class-sub {
  margin-top: 4px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.45;
}

.admin-progress-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-progress-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-progress-chip.is-done {
  background: rgba(21, 132, 118, 0.12);
  color: #135c47;
}

.admin-progress-chip.is-done .admin-progress-chip-mark {
  background: var(--teal);
  color: #fff;
}

.admin-progress-chip.is-pending {
  background: rgba(26, 58, 92, 0.07);
  color: var(--platform-soft);
}

.admin-progress-chip.is-pending .admin-progress-chip-mark {
  background: rgba(26, 58, 92, 0.1);
  color: transparent;
}

.admin-progress-chip.is-empty {
  background: rgba(26, 58, 92, 0.05);
  color: var(--platform-soft);
}

.pre-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.actions .btn {
  min-width: 120px;
}

.resource-inline .btn {
  min-width: 132px;
}

.resource-open-link.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.pre-btn {
  width: 100%;
}

.pre-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 32, 48, 0.08);
}

.pre-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pre-btn.lab,
.btn.lab {
  color: var(--teal);
}

.pre-btn.theory,
.btn.teoria {
  color: var(--red);
}

.pre-btn.nb,
.btn.nb {
  color: var(--blue);
}

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 340px;
}

.toast {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.25s ease;
}

.toast.is-error {
  background: var(--red);
}

.toast.is-success {
  background: #176f5d;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--platform-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.loading-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--platform-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-pulse {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .auth-grid,
  .admin-grid,
  .platform-mini-grid,
  .module-grid,
  .program-hero-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .module summary,
  .admin-data-head,
  .module-summary-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .platform-stage-stack {
    margin: 84px 0 72px;
  }

  .hero-stage {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .class-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    width: 100%;
  }

  .admin-filters input,
  .admin-filters select,
  .admin-export-btn {
    width: 100%;
  }

  .admin-student-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .validation-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-line-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
