:root {
  --sn-primary: #315fd5;
  --sn-primary-dark: #2447a8;
  --sn-bg: #f4f7fb;
  --sn-text: #172033;
  --sn-muted: #6b7280;
  --sn-border: #dfe5ee;
}

body {
  background: var(--sn-bg);
  color: var(--sn-text);
}

.text-primary,
.navbar-brand {
  color: var(--sn-primary) !important;
}

.btn-primary {
  --bs-btn-bg: var(--sn-primary);
  --bs-btn-border-color: var(--sn-primary);
  --bs-btn-hover-bg: var(--sn-primary-dark);
  --bs-btn-hover-border-color: var(--sn-primary-dark);
}

.hero-panel,
.cta-panel {
  background:
    radial-gradient(circle at 85% 20%, rgba(49, 95, 213, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef3ff);
  border: 1px solid var(--sn-border);
  border-radius: 24px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--sn-border);
  border-radius: 16px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sn-primary);
}

.metric-label,
.score-label {
  color: var(--sn-muted);
  font-size: 0.9rem;
}

.exam-topbar {
  z-index: 1030;
}

.timer-badge {
  min-width: 84px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff0f0;
  color: #bb2d3b;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.question-nav-card {
  top: 92px;
}

.question-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.question-nav-button {
  aspect-ratio: 1;
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  background: #fff;
  color: var(--sn-text);
  font-weight: 700;
  transition: 0.15s ease;
}

.question-nav-button:hover,
.question-nav-button.current {
  border-color: var(--sn-primary);
  color: var(--sn-primary);
}

.question-nav-button.current {
  box-shadow: 0 0 0 3px rgba(49, 95, 213, 0.16);
}

.question-nav-button.answered {
  background: var(--sn-primary);
  border-color: var(--sn-primary);
  color: #fff;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--sn-border);
  vertical-align: -1px;
}

.legend-dot.answered {
  background: var(--sn-primary);
  border-color: var(--sn-primary);
}

.legend-dot.current {
  background: #fff;
  border: 2px solid var(--sn-primary);
}

.exam-card {
  min-height: 560px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--sn-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: 0.15s ease;
}

.option-label:hover {
  border-color: #a9b9e9;
  background: #f8faff;
}

.option-label.selected {
  border-color: var(--sn-primary);
  background: #eef3ff;
  box-shadow: 0 0 0 2px rgba(49, 95, 213, 0.12);
}

.option-key {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1f5;
  font-weight: 800;
}

.option-label.selected .option-key {
  background: var(--sn-primary);
  color: #fff;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--sn-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.score-card.primary {
  background: var(--sn-primary);
  color: #fff;
}

.score-card.primary .score-label {
  color: rgba(255, 255, 255, 0.8);
}

.score-value {
  font-size: 2rem;
  font-weight: 800;
}

.result-option {
  padding: 0.85rem 1rem;
  border: 1px solid var(--sn-border);
  border-radius: 12px;
  background: #fff;
}

.result-option.selected {
  border-color: var(--sn-primary);
  background: #f1f5ff;
}

.result-option.correct {
  border-color: #75b798;
  background: #eefaf4;
}

.explanation-box {
  padding: 1rem;
  border-left: 4px solid var(--sn-primary);
  border-radius: 0 12px 12px 0;
  background: #f4f7ff;
}

@media (max-width: 991.98px) {
  .question-nav-card {
    position: static !important;
  }

  .exam-card {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .question-nav-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .question-nav-button {
    font-size: 0.75rem;
    border-radius: 7px;
  }
}

.question-image-wrap {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--sn-border);
  border-radius: 16px;
  background: #f9fbff;
  text-align: center;
  overflow: hidden;
}

.question-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .question-image-wrap {
    padding: 0.35rem;
    border-radius: 12px;
  }

  .question-image {
    max-height: 260px;
  }
}


/* Opsi jawaban bergambar untuk soal figural */
.option-label {
  align-items: flex-start;
}

.option-content {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.option-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 18 / 13;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.option-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.image-loading-container.is-loading {
  min-height: 112px;
}

.question-image-wrap.image-loading-container.is-loading {
  min-height: 190px;
}

.image-loading-target {
  transition: opacity 0.18s ease;
}

.image-loading-target.is-loading {
  opacity: 0;
}

.image-loading-indicator {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(249, 251, 255, 0.96);
  color: var(--sn-muted);
  font-size: 0.85rem;
  text-align: center;
  pointer-events: none;
}

.image-loading-indicator[hidden] {
  display: none;
}

.image-loading-spinner {
  width: 2.1rem;
  height: 2.1rem;
  border: 3px solid #dbe4ff;
  border-top-color: var(--sn-primary);
  border-radius: 50%;
  animation: image-spinner-rotate 0.8s linear infinite;
}

.image-load-error .image-loading-spinner {
  display: none;
}

.image-load-error .image-loading-indicator {
  color: #b42318;
  background: #fff7f6;
}

@keyframes image-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.result-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-option-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.result-option-image {
  display: block;
  width: min(100%, 190px);
  height: 105px;
  object-fit: contain;
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  background: #fff;
}

.result-option-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 575.98px) {
  .option-image-wrap {
    width: 100%;
    height: 96px;
  }

  .option-image {
    width: 100%;
    height: 100%;
  }

  .question-image-wrap.image-loading-container.is-loading {
    min-height: 150px;
  }

  .result-option {
    align-items: flex-start;
  }

  .result-option-image {
    width: 150px;
    height: 90px;
  }
}
/* Perbaikan tampilan pilihan figural pada layar ponsel */
@media (max-width: 575.98px) {
  .option-label {
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .option-content {
    justify-content: center;
  }

  .option-image-wrap {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 18 / 13;
    height: auto !important;
  }

  .option-image {
    width: 100%;
    height: auto !important;
    max-height: none;
  }
}

/* Perbaikan final: tinggi pilihan figural mengikuti rasio asli SVG. */
.option-image-wrap {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 112px;
  overflow: hidden !important;
}

.option-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}

.option-image-wrap.image-loading-container.is-loading {
  min-height: 112px;
}

@media (max-width: 575.98px) {
  .option-image-wrap {
    width: 100%;
    max-width: 220px;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 96px;
  }

  .option-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* Membership MVP */
.auth-shell {
  max-width: 560px;
}

.auth-card {
  border-radius: 22px;
  overflow: hidden;
}

.auth-card .form-control {
  border-color: var(--sn-border);
  border-radius: 12px;
}

.auth-card .form-control:focus {
  border-color: var(--sn-primary);
  box-shadow: 0 0 0 0.2rem rgba(49, 95, 213, 0.14);
}

.account-status-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid #b9d5c6;
  border-radius: 12px;
  background: #eefaf4;
  color: #275c40;
  font-size: 0.92rem;
}

.account-status-box.guest {
  border-color: #d7dfef;
  background: #f5f7fb;
  color: var(--sn-text);
}

.dashboard-hero {
  background:
    radial-gradient(circle at 86% 16%, rgba(49, 95, 213, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #edf3ff);
  border: 1px solid var(--sn-border);
  border-radius: 24px;
}

.dashboard-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 1.25rem;
  border: 1px solid var(--sn-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.dashboard-stat-card.primary {
  border-color: var(--sn-primary);
  background: var(--sn-primary);
  color: #fff;
}

.dashboard-stat-value {
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.dashboard-stat-label {
  margin-top: 0.55rem;
  color: var(--sn-muted);
  font-size: 0.9rem;
}

.dashboard-stat-card.primary .dashboard-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.empty-state-card {
  border: 1px dashed #b8c4d8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.dashboard-table thead th {
  padding: 1rem;
  border-bottom-color: var(--sn-border);
  background: #f7f9fc;
  color: var(--sn-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-table td {
  padding: 1rem;
  border-bottom-color: #edf0f5;
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .dashboard-stat-card {
    min-height: 112px;
    padding: 1rem;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 0.8rem;
  }
}

/* Membership access codes and package catalog */
.activation-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.activation-security-note {
  padding: 1rem;
  border: 1px solid #d7dfef;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--sn-muted);
  font-size: 0.92rem;
}

.activation-security-note strong {
  display: block;
  color: var(--sn-text);
}

.package-access-card {
  border-radius: 22px;
  overflow: hidden;
}

.package-status-badge {
  white-space: nowrap;
}

.package-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.package-metric-grid > div {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border: 1px solid var(--sn-border);
  border-radius: 13px;
  background: #f8faff;
}

.package-metric-grid strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.package-metric-grid span {
  margin-top: 0.25rem;
  color: var(--sn-muted);
  font-size: 0.78rem;
}

.package-feature-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
  list-style: none;
}

.package-feature-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--sn-text);
}

.package-feature-list li::before {
  position: absolute;
  top: 0.08rem;
  left: 0;
  color: var(--sn-primary);
  content: "✓";
  font-weight: 800;
}

.package-dashboard-card {
  border-radius: 18px;
}

@media (max-width: 575.98px) {
  .package-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Member tryout catalog */
.catalog-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--sn-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-package-card {
  border: 1px solid var(--sn-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(49, 95, 213, 0.1), transparent 30%),
    #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.catalog-exam-card {
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.catalog-exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.1) !important;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-meta span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--sn-muted);
  font-size: 0.78rem;
}

.catalog-meta strong {
  color: var(--sn-text);
}

.catalog-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: var(--sn-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Admin Panel v1.2.0 */
.admin-header {
  padding: 1.5rem;
  border: 1px solid var(--sn-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(49, 95, 213, 0.16), transparent 32%),
    #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
}

.admin-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--sn-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-account-box {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd7f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-account-box span {
  color: var(--sn-muted);
  font-size: 0.78rem;
}

.admin-account-box strong {
  overflow-wrap: anywhere;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tab {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--sn-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sn-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: var(--sn-primary);
  background: var(--sn-primary);
  color: #fff;
}

.admin-stat-card,
.admin-mini-stat {
  height: 100%;
  border: 1px solid var(--sn-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 1.25rem;
}

.admin-stat-card span,
.admin-mini-stat span {
  color: var(--sn-muted);
  font-size: 0.86rem;
}

.admin-stat-card strong {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
}

.admin-stat-card small {
  margin-top: auto;
  color: var(--sn-muted);
}

.admin-stat-warning {
  border-color: #f4cf7a;
  background: #fffaf0;
}

.admin-mini-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
  padding: 1rem;
}

.admin-mini-stat strong {
  font-size: 1.7rem;
}

.admin-card {
  border-radius: 20px;
  overflow: hidden;
}

.admin-table thead th {
  padding: 0.9rem;
  border-bottom-color: var(--sn-border);
  background: #f7f9fc;
  color: var(--sn-muted);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.9rem;
  border-bottom-color: #edf0f5;
  vertical-align: middle;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--sn-border);
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.admin-list-item:hover {
  border-color: #b7c8ee;
  background: #f8faff;
}

.admin-list-item > div {
  min-width: 0;
}

.admin-list-item strong,
.admin-list-item span,
.admin-list-item small {
  display: block;
}

.admin-list-item span,
.admin-list-item small {
  color: var(--sn-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-detail-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.admin-detail-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf0f5;
}

.admin-detail-list dt {
  color: var(--sn-muted);
  font-size: 0.85rem;
}

.admin-detail-list dd {
  margin: 0;
  font-weight: 600;
}

.admin-inline-form {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.admin-inline-form input[type="text"] {
  width: 170px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--sn-border);
  border-radius: 8px;
  font-size: 0.78rem;
}

.admin-generated-codes {
  border-radius: 18px;
}

.activation-code-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

@media (max-width: 767.98px) {
  .admin-header {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .admin-account-box {
    min-width: 0;
    width: 100%;
  }

  .admin-stat-card {
    min-height: 125px;
    padding: 1rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem;
  }

  .admin-detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .admin-inline-form {
    align-items: stretch;
    flex-direction: column;
    width: 180px;
  }

  .admin-inline-form input[type="text"] {
    width: 100%;
  }
}

/* IELTS module */
.ielts-topbar { z-index: 1040; }
.ielts-audio-panel,
.ielts-passage-panel {
  background: #fff;
  border: 1px solid var(--sn-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}
.ielts-passage-panel { max-height: calc(100vh - 105px); overflow: auto; }
.ielts-passage-content { line-height: 1.75; font-size: 1rem; }
.ielts-passage-content p { white-space: pre-line; }
.ielts-question-prompt { font-size: 1.08rem; line-height: 1.65; white-space: pre-line; }
.ielts-nav-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .45rem; }
.ielts-nav-button {
  border: 1px solid var(--sn-border); background: #fff; color: var(--sn-text);
  border-radius: 9px; min-height: 38px; font-weight: 700;
}
.ielts-nav-button.current { border-color: var(--sn-primary); box-shadow: 0 0 0 3px rgba(49,95,213,.14); color: var(--sn-primary); }
.ielts-nav-button.answered { background: var(--sn-primary); border-color: var(--sn-primary); color: #fff; }
.ielts-nav-button.current.answered { box-shadow: 0 0 0 3px rgba(49,95,213,.22); }
.ielts-text-answer { line-height: 1.7; }
@media (max-width: 991.98px) {
  .ielts-passage-panel { position: static !important; max-height: 48vh; }
  .ielts-nav-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ielts-nav-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; }
  .ielts-nav-button { min-height: 34px; font-size: .78rem; }
}


/* IELTS secure one-pass Listening player */
.ielts-audio-copy { min-width: 220px; }
.ielts-secure-player audio { display: none; }
.ielts-audio-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}
.ielts-audio-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sn-primary);
  transition: width .2s linear;
}
.ielts-live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #dc3545;
  box-shadow: 0 0 0 5px rgba(220, 53, 69, .12);
}
.ielts-volume-range { width: min(260px, 55vw); margin: 0; }
.ielts-audio-complete .ielts-live-dot {
  background: #198754;
  box-shadow: 0 0 0 5px rgba(25, 135, 84, .12);
}

/* IELTS Package Builder v1.9.0 */
.module-picker-card {
  display: block;
  height: 100%;
  padding: .9rem 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.module-picker-card:hover,
.module-picker-card.selected {
  border-color: #3157d5;
  background: #f5f7ff;
  box-shadow: 0 8px 20px rgba(49, 87, 213, .08);
}
.module-picker-card .form-check-input { margin-right: .45rem; }
.admin-tabs { overflow-x: auto; padding-bottom: .35rem; }
.admin-tabs .admin-tab { white-space: nowrap; }


/* v1.9.1 - category-first training catalog */
.training-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--sn-border);
  border-radius: 22px;
  background: #fff;
  color: var(--sn-text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.training-category-card:hover {
  border-color: rgba(49, 95, 213, 0.55);
  color: var(--sn-text);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.1);
}

.training-category-card.is-active {
  border-color: var(--sn-primary);
  box-shadow: 0 0 0 3px rgba(49, 95, 213, 0.1), 0 14px 34px rgba(23, 32, 51, 0.08);
}

.training-category-card--soon {
  background: #f8fafc;
}

.training-category-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.training-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 48px;
  padding: 0 0.8rem;
  border-radius: 14px;
  background: #edf3ff;
  color: var(--sn-primary);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.training-category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 1.15rem;
}

.training-category-stats span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--sn-muted);
  font-size: 0.78rem;
}

.training-category-stats strong {
  color: var(--sn-text);
}

.training-category-card__link {
  color: var(--sn-primary);
  font-weight: 750;
  text-decoration: none;
}

.app-navbar__logout {
  padding-inline: 0.35rem;
}

@media (max-width: 767.98px) {
  .app-navbar .container {
    flex-wrap: wrap;
  }

  .app-navbar__actions {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .app-navbar__actions {
    gap: 0.35rem !important;
  }

  .app-navbar__actions .btn {
    font-size: 0.76rem;
    padding: 0.32rem 0.5rem;
  }
}


/* v1.9.3 - free member onboarding */
.auth-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.auth-benefit-list span {
  position: relative;
  padding: .7rem .75rem .7rem 2rem;
  border: 1px solid #dbe7fb;
  border-radius: .7rem;
  background: #f8fbff;
  color: #34445d;
  font-size: .9rem;
  font-weight: 600;
}
.auth-benefit-list span::before {
  content: '✓';
  position: absolute;
  left: .72rem;
  color: #198754;
  font-weight: 800;
}
@media (max-width: 575.98px) {
  .auth-benefit-list { grid-template-columns: 1fr; }
}

/* v1.9.4 - IELTS Listening multi-question blocks */
.ielts-listening-audio-sticky {
  position: sticky;
  top: 58px;
  z-index: 1030;
}
.ielts-listening-group-header {
  background: rgba(245, 248, 255, .94);
  border: 1px solid var(--sn-border);
  border-radius: 16px;
  padding: .9rem 1rem;
}
.ielts-listening-question {
  scroll-margin-top: 190px;
}
.ielts-listening-question .ielts-question-prompt {
  white-space: pre-line;
}
.ielts-listening-mobile-bar {
  position: fixed;
  z-index: 1035;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem;
  border: 1px solid var(--sn-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 35px rgba(23, 32, 51, .18);
  backdrop-filter: blur(10px);
}
.ielts-listening-mobile-bar .btn {
  min-width: 90px;
}

@media (max-width: 1199.98px) {
  .ielts-listening-main {
    padding-bottom: 6.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .ielts-listening-audio-sticky {
    top: 52px;
    margin-left: -.25rem;
    margin-right: -.25rem;
    border-radius: 14px;
    padding: .75rem;
  }
  .ielts-listening-audio-sticky .ielts-audio-copy {
    min-width: 0;
  }
  .ielts-listening-audio-sticky .ielts-audio-copy #audioStatus {
    font-size: .76rem;
  }
  .ielts-listening-question {
    scroll-margin-top: 205px;
  }
  .ielts-listening-mobile-bar {
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    border-radius: 14px;
    padding: .55rem;
  }
  .ielts-listening-mobile-bar .btn {
    min-width: 82px;
    padding-left: .55rem;
    padding-right: .55rem;
    font-size: .78rem;
  }
  .ielts-listening-mobile-bar strong,
  .ielts-listening-mobile-bar span {
    font-size: .72rem !important;
  }
}
