/* ============================================
   PREPBYANNA — TESTS PAGE PREMIUM REDESIGN
   Glassmorphism premium — Task #1233269
   Source de vérité : public/app.html
   ============================================ */

/* --- RESET de l'existant --- */
.test-type-selector,
.test-type-selector *,
#testTypeSelect,
.test-type-label,
.test-type-dropdown {
  display: none !important;
}

/* --- Cards Container --- */
.premium-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  max-width: 900px !important;
  margin: 24px auto !important;
  padding: 0 !important;
  opacity: 0;
  animation: premiumFadeIn 0.6s ease-out 0.2s forwards;
}

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

/* --- Card Premium (POINT 4 — Glassmorphism) ---
   Source: app.html L258-263 (breakdown-card)
   background: rgba(255,255,255,0.70), backdrop-filter: blur(12px),
   border: 1px solid rgba(255,255,255,0.30), box-shadow: 0 4px 24px rgba(0,0,0,0.04),
   border-radius: 16px */
.premium-test-card {
  position: relative !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  border-radius: 16px !important;
  padding: 28px 20px !important;
  cursor: pointer !important;
  transition: all 200ms ease !important;
  text-align: center !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  opacity: 0;
  animation: cardStagger 0.5s ease-out forwards;
}

.premium-test-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, rgba(139, 127, 255, 0.5), transparent) !important;
  opacity: 0 !important;
  transition: opacity 200ms ease !important;
}

/* Stagger animation */
.premium-test-card:nth-child(1) { animation-delay: 0.1s; }
.premium-test-card:nth-child(2) { animation-delay: 0.18s; }
.premium-test-card:nth-child(3) { animation-delay: 0.26s; }
.premium-test-card:nth-child(4) { animation-delay: 0.34s; }
.premium-test-card:nth-child(5) { animation-delay: 0.42s; }
.premium-test-card:nth-child(6) { animation-delay: 0.50s; }

@keyframes cardStagger {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Default hover (POINT 4 — scale(1.02) + glow) ---
   Source: app.html L267-268 (breakdown-card:hover) */
.premium-test-card:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(139, 127, 255, 0.08) !important;
  border-color: rgba(139, 127, 255, 0.20) !important;
}

.premium-test-card:hover::before {
  opacity: 1 !important;
}

/* --- Focus (POINT 4 — ring 3px glow) --- */
.premium-test-card:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(139, 127, 255, 0.20), 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

/* --- Selected (POINT 4 — bordure renforcée + glow intensifié) --- */
.premium-test-card.selected {
  border: 2px solid rgba(139, 127, 255, 0.50) !important;
  background: rgba(139, 127, 255, 0.06) !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(139, 127, 255, 0.15),
    0 0 0 1px rgba(139, 127, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

.premium-test-card.selected::before {
  opacity: 1 !important;
  height: 3px !important;
}

/* --- Disabled (POINT 4) --- */
.premium-test-card.dimmed {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* --- Icône SVG Container (POINT 5 — cercle teinté) ---
   Source: app.html L117-122 (premium-card-icon pattern)
   border-radius: 50% (cercle), padding, background rgba */
.premium-card-icon {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 200ms ease !important;
  border: 1px solid rgba(139, 127, 255, 0.10) !important;
  box-shadow: 0 0 12px rgba(139, 127, 255, 0.06);
}

.premium-card-icon svg {
  width: 26px !important;
  height: 26px !important;
  stroke-width: 1.8 !important;
  fill: none !important;
  transition: all 200ms ease !important;
}

.premium-test-card:hover .premium-card-icon {
  transform: scale(1.05) !important;
}

/* --- Typographie Premium --- */
.premium-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 8px !important;
  line-height: 1.3 !important;
}

.premium-card-desc {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* --- Check indicator --- */
.premium-card-check {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  transition: all 200ms ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
}

.premium-test-card.selected .premium-card-check {
  opacity: 1 !important;
  background: var(--accent, #A72270) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(167, 34, 112, 0.35) !important;
}

.premium-card-check svg {
  width: 12px !important;
  height: 12px !important;
  stroke: white !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  opacity: 0 !important;
  transform: scale(0.5) !important;
  transition: all 200ms ease !important;
}

.premium-test-card.selected .premium-card-check svg {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* ════════════════════════════════════════════
   POINT 4+5 — Per-card distinct colors
   ════════════════════════════════════════════ */

/* numerique — violet #8B7FFF (--accent-secondary, app.html L61) */
.premium-test-card[data-test-type="numerique"] .premium-card-icon {
  background: rgba(139, 127, 255, 0.12) !important;
  border-color: rgba(139, 127, 255, 0.15) !important;
  box-shadow: 0 0 12px rgba(139, 127, 255, 0.08);
}
.premium-test-card[data-test-type="numerique"] .premium-card-icon svg {
  stroke: #8B7FFF !important;
}
.premium-test-card[data-test-type="numerique"]::before {
  background: linear-gradient(90deg, transparent, rgba(139, 127, 255, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="numerique"]:hover {
  border-color: rgba(139, 127, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(139, 127, 255, 0.12) !important;
}
.premium-test-card[data-test-type="numerique"].selected {
  border-color: #8B7FFF !important;
  box-shadow: 0 8px 32px rgba(139, 127, 255, 0.18), 0 0 0 1px rgba(139, 127, 255, 0.30) !important;
}
.premium-test-card[data-test-type="numerique"].selected .premium-card-check {
  background: #8B7FFF !important;
  box-shadow: 0 2px 8px rgba(139, 127, 255, 0.40) !important;
}

/* verbal — bleu #3B82F6 (tests.html L51, --c-situational) */
.premium-test-card[data-test-type="verbal"] .premium-card-icon {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.08);
}
.premium-test-card[data-test-type="verbal"] .premium-card-icon svg {
  stroke: #3B82F6 !important;
}
.premium-test-card[data-test-type="verbal"]::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="verbal"]:hover {
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12) !important;
}
.premium-test-card[data-test-type="verbal"].selected {
  border-color: #3B82F6 !important;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.30) !important;
}
.premium-test-card[data-test-type="verbal"].selected .premium-card-check {
  background: #3B82F6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.40) !important;
}

/* inductif (Logique) — rose #EC4899 (index.html L304, nav.js L49) */
.premium-test-card[data-test-type="inductif"] .premium-card-icon {
  background: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.15) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.08);
}
.premium-test-card[data-test-type="inductif"] .premium-card-icon svg {
  stroke: #EC4899 !important;
}
.premium-test-card[data-test-type="inductif"]::before {
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="inductif"]:hover {
  border-color: rgba(236, 72, 153, 0.25) !important;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.12) !important;
}
.premium-test-card[data-test-type="inductif"].selected {
  border-color: #EC4899 !important;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.18), 0 0 0 1px rgba(236, 72, 153, 0.30) !important;
}
.premium-test-card[data-test-type="inductif"].selected .premium-card-check {
  background: #EC4899 !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.40) !important;
}

/* situational (Situationnel) — #F59E0B */
.premium-test-card[data-test-type="situational"] .premium-card-icon {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.15) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
}
.premium-test-card[data-test-type="situational"] .premium-card-icon svg {
  stroke: #F59E0B !important;
}
.premium-test-card[data-test-type="situational"]::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="situational"]:hover {
  border-color: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12) !important;
}
.premium-test-card[data-test-type="situational"].selected {
  border-color: #F59E0B !important;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18), 0 0 0 1px rgba(245, 158, 11, 0.30) !important;
}
.premium-test-card[data-test-type="situational"].selected .premium-card-check {
  background: #F59E0B !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.40) !important;
}

/* case_study — #EF4444 (tests.html L52, --c-case_study) */
.premium-test-card[data-test-type="case_study"] .premium-card-icon {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}
.premium-test-card[data-test-type="case_study"] .premium-card-icon svg {
  stroke: #EF4444 !important;
}
.premium-test-card[data-test-type="case_study"]::before {
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="case_study"]:hover {
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.12) !important;
}
.premium-test-card[data-test-type="case_study"].selected {
  border-color: #EF4444 !important;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.18), 0 0 0 1px rgba(239, 68, 68, 0.30) !important;
}
.premium-test-card[data-test-type="case_study"].selected .premium-card-check {
  background: #EF4444 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.40) !important;
}

/* personality — #a78bfa (TEST_TYPES L1404 in tests.html) */
.premium-test-card[data-test-type="personality"] .premium-card-icon {
  background: rgba(167, 139, 250, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.15) !important;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.08);
}
.premium-test-card[data-test-type="personality"] .premium-card-icon svg {
  stroke: #a78bfa !important;
}
.premium-test-card[data-test-type="personality"]::before {
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent) !important;
}
.premium-test-card[data-test-type="personality"]:hover {
  border-color: rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.12) !important;
}
.premium-test-card[data-test-type="personality"].selected {
  border-color: #a78bfa !important;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.18), 0 0 0 1px rgba(167, 139, 250, 0.30) !important;
}
.premium-test-card[data-test-type="personality"].selected .premium-card-check {
  background: #a78bfa !important;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.40) !important;
}

/* ════════════════════════════════════════════
   LIGHT MODE (html.light-mode)
   ════════════════════════════════════════════ */
html.light-mode .premium-test-card {
  background: rgba(255, 255, 255, 0.70) !important;
  border-color: rgba(229, 231, 235, 0.50) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}
html.light-mode .premium-test-card:hover {
  box-shadow: 0 8px 32px rgba(139, 127, 255, 0.08) !important;
}
html.light-mode .premium-card-title {
  color: #1A1A2E !important;
}
html.light-mode .premium-card-desc {
  color: rgba(107, 114, 128, 0.85) !important;
}
html.light-mode .premium-card-check {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ════════════════════════════════════════════
   DARK MODE (html.dark-mode)
   ════════════════════════════════════════════ */
html.dark-mode .premium-test-card {
  background: rgba(30, 30, 50, 0.70) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
}
html.dark-mode .premium-test-card:hover {
  border-color: rgba(139, 127, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(139, 127, 255, 0.12) !important;
}
html.dark-mode .premium-test-card.selected {
  background: rgba(139, 127, 255, 0.08) !important;
}
html.dark-mode .premium-card-title {
  color: #E5E7EB !important;
}
html.dark-mode .premium-card-desc {
  color: rgba(156, 163, 175, 0.80) !important;
}
html.dark-mode .premium-card-check {
  border-color: rgba(255, 255, 255, 0.10) !important;
}

/* @media (prefers-color-scheme: light) fallback */
@media (prefers-color-scheme: light) {
  .premium-test-card {
    background: rgba(255, 255, 255, 0.70) !important;
    border-color: rgba(229, 231, 235, 0.50) !important;
  }
  .premium-card-title {
    color: #1A1A2E !important;
  }
  .premium-card-desc {
    color: rgba(107, 114, 128, 0.85) !important;
  }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .premium-test-card {
    background: rgba(255, 255, 255, 0.92) !important;
  }
  html.dark-mode .premium-test-card {
    background: rgba(30, 30, 50, 0.92) !important;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .premium-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin: 20px auto !important;
  }
  .premium-test-card {
    padding: 24px 18px !important;
  }
  .premium-card-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 14px !important;
  }
}

@media (max-width: 480px) {
  .premium-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 16px auto !important;
  }
  .premium-test-card {
    padding: 20px 16px !important;
  }
}

@media (max-width: 320px) {
  .premium-cards-grid {
    gap: 10px !important;
    margin: 12px auto !important;
  }
  .premium-test-card {
    padding: 16px 12px !important;
  }
  .premium-card-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
  }
  .premium-card-title {
    font-size: 14px !important;
  }
  .premium-card-desc {
    font-size: 12px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   DROPDOWN LANGUE PREMIUM — Task #1233726
   SOURCE-INPUT  : tests.html POINT 6 (company-input glass, lines 1244-1290)
   SOURCE-CARTE  : tests.html company-info-box (lines 241-265)
   Z-index max   : 200 (company suggestions) → dropdown menu uses 201
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Conteneur ── */
.tests-lang-dropdown {
  position: relative;
}

/* ── Trigger (bouton)
   SOURCE-INPUT: background rgba(255,255,255,0.80), blur(8px),
   border rgba(229,231,235,0.70), border-radius 12px ── */
.tests-lang-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 231, 235, 0.70);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 200ms ease;
  white-space: nowrap;
  user-select: none;
}
.tests-lang-trigger:hover {
  border-color: rgba(139, 127, 255, 0.35);
}
.tests-lang-trigger:focus {
  outline: none;
  border-color: rgba(139, 127, 255, 0.50);
  box-shadow: 0 0 0 3px rgba(139, 127, 255, 0.15);
}
.tests-lang-trigger.open {
  border-color: rgba(139, 127, 255, 0.50);
  box-shadow: 0 0 0 3px rgba(139, 127, 255, 0.10);
}

html.dark-mode .tests-lang-trigger {
  background: rgba(15, 15, 26, 0.80);
  border-color: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}
html.dark-mode .tests-lang-trigger:hover {
  border-color: rgba(139, 127, 255, 0.35);
}
html.dark-mode .tests-lang-trigger:focus,
html.dark-mode .tests-lang-trigger.open {
  border-color: rgba(139, 127, 255, 0.50);
  box-shadow: 0 0 0 3px rgba(139, 127, 255, 0.15);
}
html.light-mode .tests-lang-trigger {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(229, 231, 235, 0.70);
  color: #1A1A2E;
}
html.light-mode .tests-lang-trigger:hover {
  border-color: rgba(139, 127, 255, 0.35);
}

@supports not (backdrop-filter: blur(8px)) {
  .tests-lang-trigger { background: rgba(255, 255, 255, 0.97); }
  html.dark-mode .tests-lang-trigger { background: rgba(15, 15, 26, 0.97); }
}

/* Chevron */
.tests-lang-chevron {
  font-size: 0.70rem;
  color: var(--text-secondary);
  transition: transform 200ms ease;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}
.tests-lang-dropdown.open .tests-lang-chevron {
  transform: rotate(180deg);
}

/* Trigger flag/name slots */
.tests-lang-trigger-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.tests-lang-trigger-flag i {
  font-size: 1.05rem;
  line-height: 1;
}
.tests-lang-trigger-name {
  /* hide on very narrow screens */
}

/* ── Menu déroulant
   SOURCE-CARTE: background rgba(255,255,255,0.70), blur(12px),
   border rgba(255,255,255,0.30), border-radius 16px,
   box-shadow 0 4px 24px rgba(0,0,0,0.04) ── */
.tests-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 164px;
  z-index: 201;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 4px;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.tests-lang-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
html.dark-mode .tests-lang-menu {
  background: rgba(26, 26, 46, 0.90);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.15);
}
html.light-mode .tests-lang-menu {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(229, 231, 235, 0.50);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
@supports not (backdrop-filter: blur(12px)) {
  .tests-lang-menu { background: rgba(255, 255, 255, 0.97); }
  html.dark-mode .tests-lang-menu { background: rgba(26, 26, 46, 0.98); }
}

/* ── Options ── */
.tests-lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.83rem;
  color: var(--text-primary);
  transition: background 200ms ease;
  min-height: 44px;
  border-radius: 10px;
  outline: none;
}
.tests-lang-option:hover,
.tests-lang-option:focus {
  background: rgba(139, 127, 255, 0.06);
}
html.dark-mode .tests-lang-option {
  color: #E5E7EB;
}
html.dark-mode .tests-lang-option:hover,
html.dark-mode .tests-lang-option:focus {
  background: rgba(139, 127, 255, 0.12);
}
html.light-mode .tests-lang-option {
  color: #1A1A2E;
}
html.light-mode .tests-lang-option:hover,
html.light-mode .tests-lang-option:focus {
  background: rgba(139, 127, 255, 0.07);
}
.tests-lang-option[aria-selected="true"] {
  background: rgba(139, 127, 255, 0.08);
}
html.dark-mode .tests-lang-option[aria-selected="true"] {
  background: rgba(139, 127, 255, 0.13);
}
html.light-mode .tests-lang-option[aria-selected="true"] {
  background: rgba(139, 127, 255, 0.08);
}

.tests-lang-opt-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 22px;
  justify-content: center;
}
.tests-lang-opt-flag i {
  font-size: 1.05rem;
  line-height: 1;
}
.tests-lang-opt-name {
  flex: 1;
  white-space: nowrap;
}
.tests-lang-check {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}
.tests-lang-option[aria-selected="true"] .tests-lang-check {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .tests-lang-trigger-name {
    display: none;
  }
  .tests-lang-trigger {
    padding: 7px 9px;
    gap: 5px;
  }
  .tests-lang-menu {
    min-width: 152px;
  }
}
@media (max-width: 320px) {
  .tests-lang-menu {
    min-width: 140px;
  }
}
