/* Flagship lesson — lezione 69 crypto */

.il-app--flagship {
  --ilf-accent: #4f46e5;
  --ilf-accent-soft: #eef2ff;
  --ilf-success: #059669;
  --ilf-warn: #d97706;
}

.il-lesson-hero--flagship {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #312e81 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1rem;
  border: none;
}

.il-lesson-hero--flagship .il-lesson-hero__sub,
.il-lesson-hero--flagship .il-lesson-hero__time,
.il-lesson-hero--flagship .il-lesson-hero__module {
  color: #cbd5e1;
}

.il-lesson-hero--flagship .il-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

.il-flagship-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.il-mode-toggle {
  display: inline-flex;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid var(--il-border);
}

.il-mode-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.il-mode-btn.is-active {
  background: #fff;
  color: var(--ilf-accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.il-flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ilf-accent);
  background: var(--ilf-accent-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.il-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--il-border);
  border-radius: 12px;
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.il-stepper__item {
  flex: 1 1 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.il-stepper__item:hover {
  background: #f8fafc;
  color: var(--ilf-accent);
  text-decoration: none;
}

.il-stepper__item.is-active {
  background: var(--ilf-accent-soft);
  color: var(--ilf-accent);
}

.il-stepper__item.is-done {
  color: var(--ilf-success);
}

.il-stepper__icon {
  font-size: 1rem;
}

.il-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.il-chapter-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--il-border);
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.il-chapter-pill:hover {
  border-color: var(--ilf-accent);
  color: var(--ilf-accent);
  text-decoration: none;
}

.il-app--flagship.il-mode-quick .il-theory-block[data-chapter-tier="full"] {
  display: none;
}

.il-app--flagship.il-mode-quick .il-chapter-pill[data-chapter-tier="full"] {
  display: none;
}

.il-panel--theory {
  border-color: #c7d2fe;
}

.il-theory--flagship .il-theory-block {
  scroll-margin-top: 5.5rem;
}

.il-diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.il-diagram-card {
  margin: 0;
  padding: 0.75rem;
  background: linear-gradient(180deg, #fafafa 0%, #f8fafc 100%);
  border: 1px solid var(--il-border);
  border-radius: 12px;
}

.il-diagram-card figcaption {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
  text-align: center;
}

.il-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.il-panel__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.il-checklist {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
}

.il-checklist__title {
  font-size: 0.92rem;
  margin: 0 0 0.65rem;
}

.il-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.il-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  cursor: pointer;
}

.il-checklist__item input {
  margin-top: 0.2rem;
  accent-color: var(--ilf-accent);
}

.il-panel--think {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
}

.il-panel--think .il-panel__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.il-think-sub {
  color: #92400e;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
}

.il-think-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.il-think-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.il-think-card h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 0.5rem;
  color: #334155;
}

.il-analyst-questions {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.il-mistake-cards {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.il-mistake-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.84rem;
}

.il-mistake-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #9a3412;
}

.il-mini-case {
  background: #fff;
  border: 1px solid var(--il-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.il-mini-case h3 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
  color: #1e293b;
}

.il-mini-case__context {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.il-mini-case__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.il-mini-case__opt {
  text-align: left;
  border: 1px solid var(--il-border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.il-mini-case__opt:hover {
  border-color: var(--ilf-accent);
}

.il-mini-case__opt.is-correct {
  border-color: var(--ilf-success);
  background: #ecfdf5;
}

.il-mini-case__opt.is-wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

.il-mini-case__feedback {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f0fdf4;
  border-left: 3px solid var(--ilf-success);
}

.il-reflection-fields {
  margin-top: 0.5rem;
}

.il-reflection-fields h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: #334155;
}

.il-reflection-field {
  display: block;
  margin-bottom: 0.65rem;
}

.il-reflection-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #334155;
}

.il-reflection-field textarea {
  width: 100%;
  border: 1px solid var(--il-border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  resize: vertical;
}

.il-panel--quiz {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.il-quiz__item {
  border: none;
  margin: 0 0 1rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.il-quiz__item legend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #14532d;
}

.il-quiz__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  cursor: pointer;
}

.il-quiz__explain {
  font-size: 0.82rem;
  color: #475569;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border-radius: 6px;
}

.il-quiz-score {
  font-size: 0.9rem;
  margin: 0.5rem 0 0.75rem;
}

.il-quiz-pass {
  color: var(--ilf-success);
  font-weight: 700;
}

.il-feedback-block {
  text-align: left;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--il-border);
}

.il-feedback-stars {
  margin-bottom: 0.65rem;
}

.il-feedback-stars > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.il-star-row {
  display: flex;
  gap: 0.25rem;
}

.il-star-row label {
  cursor: pointer;
  margin: 0;
}

.il-star-row label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.il-star-row label span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--il-border);
  font-size: 0.82rem;
  font-weight: 600;
}

.il-star-row label input:checked + span {
  background: var(--ilf-accent);
  color: #fff;
  border-color: var(--ilf-accent);
}

.il-feedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.il-tag-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--il-border);
  cursor: pointer;
}

.il-tag-chip:has(input:checked) {
  background: var(--ilf-accent-soft);
  border-color: var(--ilf-accent);
  color: var(--ilf-accent);
}

.il-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.il-complete-warn {
  font-size: 0.82rem;
  color: var(--ilf-warn);
  margin-top: 0.5rem;
}

.il-complete-form {
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .il-stepper__label {
    font-size: 0.65rem;
  }
  .il-stepper__item {
    flex: 1 1 28%;
  }
}
