/* ═══════════════════════════════════════════
   BYF Edukacija – Premium App Styles v2
   Matches: Moj Izazov, Dnevnik, Zajednica
   ═══════════════════════════════════════════ */

.byf-edu {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
.byf-edu--viewing .byf-edu__header,
.byf-edu--viewing .byf-edu__tabs,
.byf-edu--viewing .byf-edu__tab-panel {
  display: none !important;
}

/* ── Header ── */
.byf-edu__header {
  text-align: center;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #e6e9ff 0%, #f0e6ff 100%);
  border-radius: 20px;
  padding: 32px 24px 28px;
}
.byf-edu__header-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: rgba(111, 99, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f63f6;
}
.byf-edu__header-icon svg {
  width: 22px;
  height: 22px;
}
.byf-edu__title {
  font-size: 26px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 6px;
}
.byf-edu__subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 20px;
}
.byf-edu__progress-bar {
  max-width: 320px;
  margin: 0 auto;
}
.byf-edu__progress-track {
  height: 6px;
  background: rgba(185, 163, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.byf-edu__progress-fill {
  height: 100%;
  background: #6f63f6;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.byf-edu__progress-label {
  font-size: 12px;
  color: #8b85b0;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════ */
.byf-edu__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(185, 163, 255, 0.1);
  border-radius: 14px;
  padding: 4px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.byf-edu__tab {
  flex: 1;
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #8b85b0;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.byf-edu__tab:hover {
  color: #6f63f6;
}
.byf-edu__tab--active {
  background: #fff;
  color: #6f63f6;
  box-shadow: 0 1px 6px rgba(111, 99, 246, 0.1);
}
.byf-edu__tab-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
}
.byf-edu__tab-icon svg {
  width: 16px;
  height: 16px;
}
.byf-edu__tab-panel {
  display: none;
}
.byf-edu__tab-panel--active {
  display: block;
}

/* ═══════════════════════════════════════════
   Lesson Grid & Cards
   ═══════════════════════════════════════════ */
.byf-edu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.byf-edu__card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgb(220 228 235 / 70%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.byf-edu__card--active {
  cursor: pointer;
}
.byf-edu__card--active:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(111, 99, 246, 0.12);
  border-color: rgba(185, 163, 255, 0.4);
}
.byf-edu__card--locked {
  opacity: 0.45;
  cursor: default;
}

/* Card top accent strip */
.byf-edu__card-icon {
  width: 100%;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, rgba(111, 99, 246, 0.06) 0%, rgba(185, 163, 255, 0.08) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(185, 163, 255, 0.1);
}
.byf-edu__card-icon svg {
  width: 24px;
  height: 24px;
  color: #6f63f6;
  flex-shrink: 0;
}
.byf-edu__card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.byf-edu__card-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6f63f6;
}
.byf-edu__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 6px;
  line-height: 1.3;
}
.byf-edu__card-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.byf-edu__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.byf-edu__tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(111, 99, 246, 0.06);
  color: #6f63f6;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.byf-edu__card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.byf-edu__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}
.byf-edu__meta-icon {
  width: 14px;
  height: 14px;
  display: flex;
  color: #b9a3ff;
}
.byf-edu__meta-icon svg {
  width: 14px;
  height: 14px;
}

/* Card action area */
.byf-edu__card-action {
  padding: 0 20px 18px;
}
.byf-edu__play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #6f63f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(111, 99, 246, 0.2);
}
.byf-edu__play-icon {
  width: 12px;
  height: 12px;
  display: flex;
}
.byf-edu__play-icon svg {
  width: 12px;
  height: 12px;
}
.byf-edu__card--active:hover .byf-edu__play-btn {
  background: #5a4fe0;
  box-shadow: 0 4px 14px rgba(111, 99, 246, 0.3);
}
.byf-edu__lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}
.byf-edu__lock-icon {
  width: 14px;
  height: 14px;
  display: flex;
}
.byf-edu__lock-icon svg {
  width: 14px;
  height: 14px;
}

/* ── Viewer ── */
.byf-edu__viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f8f7ff;
  flex-direction: column;
}
.byf-edu__viewer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid rgb(220 228 235 / 50%);
  flex-shrink: 0;
}
.byf-edu__close-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgb(220 228 235 / 70%);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.byf-edu__close-icon {
  width: 16px;
  height: 16px;
  display: flex;
}
.byf-edu__close-icon svg {
  width: 16px;
  height: 16px;
}
.byf-edu__close-btn:hover {
  border-color: #6f63f6;
  color: #6f63f6;
}
.byf-edu__viewer-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e1b4b;
}
.byf-edu__iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ═══════════════════════════════════════════
   Quiz — Selection Screen
   ═══════════════════════════════════════════ */
.byf-kviz__intro {
  text-align: center;
  margin-bottom: 24px;
}
.byf-kviz__intro-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 6px;
}
.byf-kviz__intro-desc {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}
.byf-kviz__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.byf-kviz__card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  border: 1px solid rgb(220 228 235 / 70%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.byf-kviz__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(111, 99, 246, 0.1);
  border-color: rgba(185, 163, 255, 0.35);
}
.byf-kviz__card-icon {
  width: 40px;
  height: 40px;
  background: rgba(111, 99, 246, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f63f6;
  margin-bottom: 14px;
}
.byf-kviz__card-icon svg {
  width: 20px;
  height: 20px;
}
.byf-kviz__card-num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6f63f6;
  margin-bottom: 4px;
}
.byf-kviz__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 8px;
}
.byf-kviz__card-info {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
}
.byf-kviz__card-action { margin-top: auto; }
.byf-kviz__start-btn {
  display: inline-block;
  background: #6f63f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s;
}
.byf-kviz__card:hover .byf-kviz__start-btn {
  background: #5a4fe0;
}

/* ═══════════════════════════════════════════
   Quiz — Player
   ═══════════════════════════════════════════ */
.byf-kviz__player {
  max-width: 640px;
  margin: 0 auto;
}
.byf-kviz__player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.byf-kviz__back-btn {
  background: none;
  border: 1px solid rgb(220 228 235 / 70%);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.byf-kviz__back-btn:hover {
  border-color: #6f63f6;
  color: #6f63f6;
}
.byf-kviz__counter {
  font-size: 13px;
  font-weight: 600;
  color: #6f63f6;
}

/* Progress dots */
.byf-kviz__progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.byf-kviz__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(185, 163, 255, 0.2);
  transition: all 0.3s ease;
}
.byf-kviz__dot--current {
  background: rgba(185, 163, 255, 0.5);
  transform: scale(1.3);
}
.byf-kviz__dot--correct {
  background: #7cb89a;
}
.byf-kviz__dot--wrong {
  background: #d98b8b;
}

/* Question area */
.byf-kviz__question-area {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid rgb(220 228 235 / 50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.byf-kviz__question-area--enter {
  animation: kvizFadeIn 0.35s ease;
}
@keyframes kvizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.byf-kviz__question {
  font-size: 17px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: center;
}

/* Options */
.byf-kviz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.byf-kviz__option {
  background: rgba(111, 99, 246, 0.03);
  border: 1.5px solid rgb(220 228 235 / 70%);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.byf-kviz__option:hover:not(.byf-kviz__option--disabled) {
  border-color: rgba(185, 163, 255, 0.5);
  background: rgba(111, 99, 246, 0.06);
  transform: translateY(-1px);
}
.byf-kviz__option--disabled { cursor: default; opacity: 0.7; }
.byf-kviz__option--correct {
  border-color: #7cb89a !important;
  background: rgba(124, 184, 154, 0.08) !important;
  color: #2d6a4f !important;
  opacity: 1 !important;
  font-weight: 600;
}
.byf-kviz__option--wrong {
  border-color: #d98b8b !important;
  background: rgba(217, 139, 139, 0.08) !important;
  color: #9b2c2c !important;
  opacity: 1 !important;
}
.byf-kviz__option--shake { animation: kvizShake 0.5s ease; }
@keyframes kvizShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Feedback */
.byf-kviz__feedback {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgb(220 228 235 / 50%);
  text-align: center;
  animation: kvizFadeIn 0.3s ease;
}
.byf-kviz__feedback-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.byf-kviz__feedback-icon--correct {
  background: rgba(124, 184, 154, 0.12);
  color: #2d6a4f;
}
.byf-kviz__feedback-icon--wrong {
  background: rgba(217, 139, 139, 0.12);
  color: #9b2c2c;
}
.byf-kviz__feedback-icon svg {
  width: 22px;
  height: 22px;
}
.byf-kviz__explanation {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.byf-kviz__next-btn {
  background: #6f63f6;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.byf-kviz__next-btn:hover { background: #5a4fe0; }

/* Submit button */
.byf-kviz__submit-btn {
  display: block;
  margin: 20px auto 0;
  background: #6f63f6;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.byf-kviz__submit-btn:disabled { opacity: 0.35; cursor: default; }
.byf-kviz__submit-btn:not(:disabled):hover {
  background: #5a4fe0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(111, 99, 246, 0.2);
}

/* ═══════════════════════════════════════════
   Quiz — Slider Type
   ═══════════════════════════════════════════ */
.byf-kviz-slider { text-align: center; padding: 10px 0; }
.byf-kviz-slider__value {
  font-size: 36px;
  font-weight: 800;
  color: #6f63f6;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.byf-kviz-slider__value--correct { color: #2d6a4f; }
.byf-kviz-slider__value--wrong { color: #9b2c2c; font-size: 18px; }
.byf-kviz-slider__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; max-width: 400px; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(185,163,255,.35), #6f63f6);
  outline: none;
}
.byf-kviz-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid #6f63f6;
  box-shadow: 0 2px 8px rgba(111, 99, 246, 0.25);
  cursor: pointer; transition: transform 0.15s;
}
.byf-kviz-slider__range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.byf-kviz-slider__range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid #6f63f6;
  box-shadow: 0 2px 8px rgba(111, 99, 246, 0.25);
  cursor: pointer;
}
.byf-kviz-slider__range:disabled { opacity: 0.5; }
.byf-kviz-slider__labels {
  display: flex; justify-content: space-between;
  max-width: 400px; margin: 8px auto 0;
  font-size: 12px; color: #9ca3af;
}

/* ═══════════════════════════════════════════
   Quiz — Category Type
   ═══════════════════════════════════════════ */
.byf-kviz-cat__headers { display: flex; gap: 10px; margin-bottom: 14px; }
.byf-kviz-cat__header {
  flex: 1; text-align: center; padding: 8px;
  border-radius: 10px; border: 2px solid;
  font-size: 13px; font-weight: 700;
}
.byf-kviz-cat__items { display: flex; flex-direction: column; gap: 6px; }
.byf-kviz-cat__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  background: rgba(111, 99, 246, 0.03);
  border-radius: 10px; border: 1.5px solid transparent;
  transition: all 0.3s;
}
.byf-kviz-cat__item--correct { border-color: #7cb89a; background: rgba(124,184,154,0.05); }
.byf-kviz-cat__item--wrong   { border-color: #d98b8b; background: rgba(217,139,139,0.05); }
.byf-kviz-cat__item-name { font-size: 14px; font-weight: 500; color: #262626; flex: 1; }
.byf-kviz-cat__item-btns { display: flex; gap: 6px; flex-shrink: 0; }
.byf-kviz-cat__btn {
  padding: 5px 12px; border: 1.5px solid rgb(220 228 235 / 70%);
  border-radius: 8px; background: #fff; font-family: inherit;
  font-size: 11px; font-weight: 600; color: #6b7280;
  cursor: pointer; transition: all 0.2s;
}
.byf-kviz-cat__btn:hover:not(.byf-kviz-cat__btn--disabled) {
  border-color: var(--cat-color); color: var(--cat-color);
}
.byf-kviz-cat__btn--selected { background: var(--cat-color); border-color: var(--cat-color); color: #fff !important; }
.byf-kviz-cat__btn--disabled { cursor: default; opacity: 0.5; }
.byf-kviz-cat__btn--answer { opacity: 1 !important; border-color: var(--cat-color) !important; outline: 2px solid var(--cat-color); outline-offset: 1px; }

/* ═══════════════════════════════════════════
   Quiz — Fill-In Type
   ═══════════════════════════════════════════ */
.byf-kviz-fillin { text-align: center; padding: 16px 0; }
.byf-kviz-fillin__input {
  width: 100%; max-width: 280px;
  padding: 16px 20px; border: 2px solid rgba(185,163,255,0.3);
  border-radius: 14px; font-family: inherit;
  font-size: 24px; font-weight: 700; color: #6f63f6;
  text-align: center; outline: none;
  background: rgba(111,99,246,0.03);
  transition: border-color 0.25s; box-sizing: border-box;
}
.byf-kviz-fillin__input:focus { border-color: #6f63f6; }
.byf-kviz-fillin__input::placeholder { color: #c4b5e0; font-size: 16px; font-weight: 400; }
.byf-kviz-fillin__input--correct { border-color: #7cb89a; color: #2d6a4f; background: rgba(124,184,154,0.05); }
.byf-kviz-fillin__input--wrong   { border-color: #d98b8b; color: #9b2c2c; background: rgba(217,139,139,0.05); }
.byf-kviz-fillin__answer { margin-top: 12px; font-size: 15px; font-weight: 600; color: #7cb89a; }

/* ═══════════════════════════════════════════
   Quiz — Order Type
   ═══════════════════════════════════════════ */
.byf-kviz-order { display: flex; flex-direction: column; gap: 8px; }
.byf-kviz-order__hint { text-align: center; font-size: 12px; color: #9ca3af; margin-bottom: 6px; font-style: italic; }
.byf-kviz-order__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(111,99,246,0.03);
  border: 1.5px solid rgb(220 228 235 / 70%);
  border-radius: 12px; font-family: inherit;
  cursor: pointer; transition: all 0.25s; text-align: left; width: 100%;
}
.byf-kviz-order__item:hover:not(.byf-kviz-order__item--disabled) {
  border-color: rgba(185,163,255,0.5); transform: translateY(-1px);
}
.byf-kviz-order__item--numbered { border-color: rgba(185,163,255,0.5); background: rgba(111,99,246,0.05); }
.byf-kviz-order__badge {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(185,163,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #8b85b0; transition: all 0.2s;
}
.byf-kviz-order__item--numbered .byf-kviz-order__badge { background: #6f63f6; color: #fff; }
.byf-kviz-order__label { font-size: 14px; font-weight: 500; color: #262626; }
.byf-kviz-order__item--disabled { cursor: default; }
.byf-kviz-order__item--correct  { border-color: #7cb89a !important; background: rgba(124,184,154,0.05) !important; }
.byf-kviz-order__item--correct .byf-kviz-order__badge { background: #7cb89a !important; color: #fff; }
.byf-kviz-order__item--wrong    { border-color: #d98b8b !important; background: rgba(217,139,139,0.05) !important; }
.byf-kviz-order__item--wrong .byf-kviz-order__badge   { background: #d98b8b !important; color: #fff; }

/* ═══════════════════════════════════════════
   Quiz — Results
   ═══════════════════════════════════════════ */
.byf-kviz__results { display: flex; justify-content: center; animation: kvizFadeIn 0.4s ease; }
.byf-kviz__results-card {
  background: #fff; border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgb(220 228 235 / 50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  text-align: center; max-width: 480px; width: 100%;
}
.byf-kviz__results-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: rgba(111, 99, 246, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.byf-kviz__results-icon svg {
  width: 28px;
  height: 28px;
  color: #6f63f6;
}
.byf-kviz__score { font-size: 36px; font-weight: 800; color: #6f63f6; margin-bottom: 8px; }
.byf-kviz__score-text { font-size: 14px; color: #4b5563; margin-bottom: 20px; line-height: 1.5; }
.byf-kviz__score-bar { height: 6px; background: rgba(185,163,255,0.15); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.byf-kviz__score-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.byf-kviz__results-detail { margin-bottom: 24px; }
.byf-kviz__results-list { text-align: left; }
.byf-kviz__results-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgb(220 228 235 / 40%);
  font-size: 13px; color: #4b5563;
}
.byf-kviz__results-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.byf-kviz__results-dot svg {
  width: 12px;
  height: 12px;
}
.byf-kviz__results-dot--ok   { background: rgba(124,184,154,0.12); color: #2d6a4f; }
.byf-kviz__results-dot--fail { background: rgba(217,139,139,0.12); color: #9b2c2c; }
.byf-kviz__results-q { line-height: 1.4; flex: 1; }
.byf-kviz__results-type {
  flex-shrink: 0; font-size: 10px; padding: 2px 8px;
  border-radius: 10px; background: rgba(111,99,246,0.06);
  color: #6f63f6; font-weight: 600;
}
.byf-kviz__results-actions { display: flex; gap: 10px; justify-content: center; }
.byf-kviz__retry-btn {
  background: #6f63f6; color: #fff; border: none;
  padding: 10px 24px; border-radius: 10px; font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.byf-kviz__retry-btn:hover { background: #5a4fe0; }
.byf-kviz__back-list-btn {
  background: none; border: 1px solid rgb(220 228 235 / 70%);
  padding: 10px 24px; border-radius: 10px; font-family: inherit;
  font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; transition: all 0.2s;
}
.byf-kviz__back-list-btn:hover { border-color: #6f63f6; color: #6f63f6; }

/* ═══════════════════════════════════════════
   Glossary — Rečnik
   ═══════════════════════════════════════════ */
.byf-recnik__intro { text-align: center; margin-bottom: 24px; }
.byf-recnik__intro-title { font-size: 20px; font-weight: 700; color: #1e1b4b; margin-bottom: 6px; }
.byf-recnik__intro-desc { font-size: 13px; color: #6b7280; font-weight: 400; }

.byf-recnik__search-wrap { max-width: 400px; margin: 0 auto 16px; }
.byf-recnik__search {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid rgb(220 228 235 / 70%);
  border-radius: 10px; font-family: inherit;
  font-size: 14px; color: #262626; background: #fff;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.byf-recnik__search:focus { border-color: #6f63f6; }
.byf-recnik__search::placeholder { color: #9ca3af; }

.byf-recnik__filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-bottom: 24px;
}
.byf-recnik__filter {
  padding: 6px 14px; border: 1px solid rgb(220 228 235 / 70%);
  border-radius: 20px; background: #fff; font-family: inherit;
  font-size: 12px; font-weight: 500; color: #6b7280;
  cursor: pointer; transition: all 0.2s;
}
.byf-recnik__filter:hover { border-color: rgba(185,163,255,0.5); color: #6f63f6; }
.byf-recnik__filter--active { background: #6f63f6; color: #fff; border-color: #6f63f6; }
.byf-recnik__filter--active:hover { color: #fff; }

.byf-recnik__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.byf-recnik__card {
  background: #fff; border-radius: 14px; padding: 18px;
  border: 1px solid rgb(220 228 235 / 60%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.byf-recnik__card:hover {
  box-shadow: 0 4px 14px rgba(111,99,246,0.08);
  border-color: rgba(185,163,255,0.35);
}
.byf-recnik__card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.byf-recnik__term { font-size: 14px; font-weight: 700; color: #6f63f6; line-height: 1.3; }
.byf-recnik__lesson-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  background: rgba(111,99,246,0.06); color: #6f63f6;
  padding: 2px 8px; border-radius: 10px;
}
.byf-recnik__definition { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 10px; }
.byf-recnik__cat-tag {
  display: inline-block; font-size: 10px; padding: 2px 10px;
  border-radius: 20px; background: rgba(185,163,255,0.1);
  color: #8b85b0; font-weight: 500;
}
.byf-recnik__empty { text-align: center; padding: 40px; font-size: 14px; color: #9ca3af; }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .byf-edu { padding: 16px 12px 40px; }
  .byf-edu__header { padding: 24px 16px 20px; border-radius: 16px; }
  .byf-edu__title { font-size: 22px; }
  .byf-edu__grid { grid-template-columns: 1fr; }
  .byf-edu__tabs { max-width: 100%; }
  .byf-edu__tab { font-size: 12px; padding: 8px 10px; gap: 4px; }
  .byf-edu__tab-icon { width: 14px; height: 14px; }
  .byf-edu__tab-icon svg { width: 14px; height: 14px; }
  .byf-kviz__question { font-size: 15px; }
  .byf-kviz__options { grid-template-columns: 1fr; }
  .byf-kviz__question-area { padding: 20px 16px; }
  .byf-kviz__results-card { padding: 24px 16px; }
  .byf-kviz__cards { grid-template-columns: 1fr; }
  .byf-kviz-slider__value { font-size: 28px; }
  .byf-kviz-slider__value--wrong { font-size: 15px; }
  .byf-kviz-cat__headers { gap: 6px; }
  .byf-kviz-cat__header { font-size: 11px; padding: 6px; }
  .byf-kviz-cat__btn { font-size: 10px; padding: 4px 8px; }
  .byf-kviz-cat__item-name { font-size: 13px; }
  .byf-kviz-fillin__input { font-size: 20px; max-width: 240px; }
  .byf-kviz-order__item { padding: 12px 14px; }
  .byf-recnik__grid { grid-template-columns: 1fr; }
  .byf-recnik__filters { gap: 4px; }
  .byf-recnik__filter { font-size: 11px; padding: 5px 10px; }
}
