/* ============================================================
   TIER 10B — PET MODE, GROUP JOURNEY, ETIQUETTE GUIDE
   Three features for First Out.

   Integration: Add <link rel="stylesheet" href="/tier10b-features.css"> to <head>
   All classes prefixed with t10b-
   ============================================================ */

/* ============================================================
   CSS VARIABLES (scoped via prefix)
   ============================================================ */
:root {
  --t10b-bg: #0A0E1A;
  --t10b-card: #141926;
  --t10b-accent: #4C9AFF;
  --t10b-green: #36B37E;
  --t10b-amber: #FFAB00;
  --t10b-red: #FF5630;
  --t10b-text: #E8EAED;
  --t10b-dim: #8B8FA3;
  --t10b-pet: #E88D3F;
  --t10b-pet-dim: rgba(232,141,63,0.15);
  --t10b-group: #9B6AFF;
  --t10b-group-dim: rgba(155,106,255,0.15);
  --t10b-etq: #4ECDC4;
  --t10b-etq-dim: rgba(78,205,196,0.15);
}

/* ============================================================
   1. SHARED COMPONENTS
   ============================================================ */

.t10b-card {
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 14px);
  padding: 16px;
  margin: 12px 0;
}

.t10b-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, var(--t10b-text));
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t10b-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.t10b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-card, var(--t10b-card));
  color: var(--text, var(--t10b-text));
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}

.t10b-btn:active { transform: scale(0.97); }

.t10b-btn-primary {
  background: var(--t10b-accent);
  border-color: var(--t10b-accent);
  color: #fff;
}

.t10b-btn-primary:active {
  background: #3d87e6;
}

.t10b-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-card, var(--t10b-card));
  color: var(--text-secondary, var(--t10b-dim));
}

.t10b-divider {
  border: none;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  margin: 12px 0;
}

.t10b-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated, #1E2340);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--text-secondary, var(--t10b-dim));
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ============================================================
   2. PET-FRIENDLY MODE
   ============================================================ */

/* Dog mode toggle on home screen */
.t10b-pet-toggle {
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.t10b-pet-toggle:active {
  background: var(--bg-card-hover, #1C2137);
}

.t10b-pet-toggle.t10b-pet-on {
  border-color: var(--t10b-pet);
  background: var(--t10b-pet-dim);
}

.t10b-pet-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.t10b-pet-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--t10b-pet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.t10b-pet-toggle.t10b-pet-on .t10b-pet-toggle-icon {
  background: var(--t10b-pet);
  color: #fff;
}

.t10b-pet-toggle-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
}

.t10b-pet-toggle-sub {
  font-size: 11px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 1px;
}

.t10b-pet-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-elevated, #1E2340);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.t10b-pet-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary, var(--t10b-dim));
  transition: transform 0.2s, background 0.2s;
}

.t10b-pet-on .t10b-pet-switch {
  background: var(--t10b-pet);
  border-color: var(--t10b-pet);
}

.t10b-pet-on .t10b-pet-switch::after {
  transform: translateX(20px);
  background: #fff;
}

/* Paw rating */
.t10b-paws {
  display: inline-flex;
  gap: 2px;
  font-size: 14px;
}

.t10b-paw { opacity: 0.2; }
.t10b-paw.t10b-paw-filled { opacity: 1; color: var(--t10b-pet); }

/* Pet info card on result screen */
.t10b-pet-card {
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 14px);
  padding: 16px;
  margin: 12px 0;
  border-left: 3px solid var(--t10b-pet);
}

.t10b-pet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.t10b-pet-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t10b-pet);
  display: flex;
  align-items: center;
  gap: 6px;
}

.t10b-pet-factor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
}

.t10b-pet-factor-label {
  flex: 1;
}

.t10b-pet-bar {
  width: 80px;
  height: 4px;
  background: var(--bg-elevated, #1E2340);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 8px;
}

.t10b-pet-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.t10b-pet-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--t10b-pet-dim);
  border-radius: var(--radius-sm, 10px);
  margin-top: 10px;
  font-size: 12px;
  color: var(--text, var(--t10b-text));
  line-height: 1.4;
}

.t10b-pet-tip-icon {
  flex-shrink: 0;
  font-size: 14px;
}

/* Park card */
.t10b-park-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(54,179,126,0.08);
  border: 1px solid rgba(54,179,126,0.15);
  border-radius: var(--radius-sm, 10px);
  margin-top: 8px;
  font-size: 12px;
}

.t10b-park-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(54,179,126,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.t10b-park-name {
  font-weight: 600;
  color: var(--t10b-green);
  font-size: 12px;
}

.t10b-park-walk {
  color: var(--text-secondary, var(--t10b-dim));
  font-size: 11px;
}

/* Line spaciousness */
.t10b-line-space {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.t10b-line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t10b-line-name {
  flex: 1;
  color: var(--text, var(--t10b-text));
}

.t10b-line-rating {
  font-weight: 600;
  font-size: 11px;
}

/* Etiquette card on home screen (pet) */
.t10b-pet-etiquette {
  margin-top: 10px;
}

.t10b-pet-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t10b-pet-rules li {
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.t10b-pet-rules li span:first-child {
  flex-shrink: 0;
}

/* Exit badges (paw icons) */
.t10b-exit-paw-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--t10b-pet-dim);
  color: var(--t10b-pet);
  margin-left: 6px;
}

/* ============================================================
   3. GROUP JOURNEY COORDINATOR
   ============================================================ */

/* Group journey card on home screen */
.t10b-group-trigger {
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.t10b-group-trigger:active {
  background: var(--bg-card-hover, #1C2137);
}

.t10b-group-trigger-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--t10b-group-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.t10b-group-trigger-text {
  flex: 1;
}

.t10b-group-trigger-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
}

.t10b-group-trigger-sub {
  font-size: 11px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 1px;
}

.t10b-group-trigger-arrow {
  color: var(--text-secondary, var(--t10b-dim));
  font-size: 16px;
}

/* Group modal overlay */
.t10b-group-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.t10b-group-overlay.t10b-visible {
  opacity: 1;
  pointer-events: auto;
}

.t10b-group-modal {
  background: var(--bg, var(--t10b-bg));
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.t10b-group-overlay.t10b-visible .t10b-group-modal {
  transform: translateY(0);
}

.t10b-group-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, var(--t10b-text));
  margin-bottom: 4px;
}

.t10b-group-modal-sub {
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-bottom: 16px;
}

/* Person inputs */
.t10b-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.t10b-person-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--t10b-group-dim);
  color: var(--t10b-group);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t10b-person-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-card, var(--t10b-card));
  color: var(--text, var(--t10b-text));
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.t10b-person-input:focus {
  border-color: var(--t10b-group);
}

.t10b-person-input::placeholder {
  color: var(--text-muted, #5A6177);
}

.t10b-person-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--t10b-red);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.t10b-person-remove:active { opacity: 1; }

.t10b-add-person {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--t10b-group);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
}

/* Autocomplete dropdown */
.t10b-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 10px);
  max-height: 160px;
  overflow-y: auto;
  z-index: 550;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
  display: none;
}

.t10b-autocomplete.t10b-visible {
  display: block;
}

.t10b-autocomplete-item {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text, var(--t10b-text));
  cursor: pointer;
  transition: background 0.1s;
}

.t10b-autocomplete-item:active,
.t10b-autocomplete-item:hover {
  background: var(--bg-card-hover, #1C2137);
}

.t10b-person-input-wrap {
  flex: 1;
  position: relative;
}

/* Results section */
.t10b-group-result {
  margin-top: 16px;
  animation: t10b-fadeIn 0.3s ease;
}

.t10b-meeting-station {
  text-align: center;
  padding: 16px;
  background: var(--t10b-group-dim);
  border: 1px solid rgba(155,106,255,0.2);
  border-radius: var(--radius, 14px);
  margin-bottom: 14px;
}

.t10b-meeting-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t10b-group);
  margin-bottom: 4px;
}

.t10b-meeting-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text, var(--t10b-text));
}

.t10b-meeting-reason {
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 4px;
}

/* Journey cards for each person */
.t10b-journey-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.t10b-journey-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--t10b-group-dim);
  color: var(--t10b-group);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t10b-journey-info {
  flex: 1;
  min-width: 0;
}

.t10b-journey-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t10b-journey-time {
  font-size: 11px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 2px;
}

.t10b-journey-mins {
  font-size: 16px;
  font-weight: 700;
  color: var(--t10b-accent);
  flex-shrink: 0;
}

.t10b-journey-first {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--t10b-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0 0 0 6px;
  text-transform: uppercase;
}

.t10b-journey-last {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--t10b-amber);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0 0 0 6px;
  text-transform: uppercase;
}

/* Animated arrival progress */
.t10b-progress-bar {
  height: 3px;
  background: var(--bg-elevated, #1E2340);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.t10b-progress-fill {
  height: 100%;
  background: var(--t10b-group);
  border-radius: 2px;
  transition: width 1s ease;
}

/* Meeting point suggestions */
.t10b-meeting-points {
  margin-top: 12px;
}

.t10b-meeting-point {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
}

.t10b-meeting-point-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.t10b-meeting-point-name {
  font-weight: 600;
  color: var(--text, var(--t10b-text));
}

/* Share button row */
.t10b-group-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.t10b-group-actions .t10b-btn {
  flex: 1;
}

/* Converging lines map */
.t10b-converge-map {
  position: relative;
  height: 120px;
  margin: 14px 0;
  background: var(--bg-card, var(--t10b-card));
  border-radius: var(--radius, 14px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.t10b-converge-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t10b-group);
  animation: t10b-pulse 2s ease infinite;
}

.t10b-converge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--t10b-accent);
  border: 2px solid #fff;
  z-index: 2;
}

.t10b-converge-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--t10b-group), var(--t10b-accent));
  transform-origin: left center;
  opacity: 0.4;
}

@keyframes t10b-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================================
   4. TUBE ETIQUETTE GUIDE & QUIZ
   ============================================================ */

/* Etiquette trigger on home screen */
.t10b-etq-trigger {
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.t10b-etq-trigger:active {
  background: var(--bg-card-hover, #1C2137);
}

.t10b-etq-trigger-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--t10b-etq-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.t10b-etq-trigger-text {
  flex: 1;
}

.t10b-etq-trigger-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
}

.t10b-etq-trigger-sub {
  font-size: 11px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 1px;
}

/* Daily tip on home screen */
.t10b-daily-tip {
  padding: 12px 14px;
  background: var(--t10b-etq-dim);
  border: 1px solid rgba(78,205,196,0.15);
  border-radius: var(--radius-sm, 10px);
  margin: 8px 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text, var(--t10b-text));
  line-height: 1.4;
}

.t10b-daily-tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.t10b-daily-tip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t10b-etq);
  margin-bottom: 2px;
}

/* Etiquette modal */
.t10b-etq-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.t10b-etq-overlay.t10b-visible {
  opacity: 1;
  pointer-events: auto;
}

.t10b-etq-modal {
  background: var(--bg, var(--t10b-bg));
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.t10b-etq-overlay.t10b-visible .t10b-etq-modal {
  transform: translateY(0);
}

/* Tabs for guide/quiz/violations */
.t10b-etq-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-card, var(--t10b-card));
  border-radius: var(--radius-sm, 10px);
  padding: 3px;
}

.t10b-etq-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-secondary, var(--t10b-dim));
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.t10b-etq-tab.t10b-active {
  background: var(--t10b-etq);
  color: #000;
}

.t10b-etq-section {
  display: none;
}

.t10b-etq-section.t10b-active {
  display: block;
  animation: t10b-fadeIn 0.2s ease;
}

/* Etiquette rules list */
.t10b-etq-rule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.t10b-etq-rule:last-child {
  border-bottom: none;
}

.t10b-etq-rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--t10b-etq-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.t10b-etq-rule-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
  margin-bottom: 3px;
}

.t10b-etq-rule-desc {
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  line-height: 1.4;
}

/* Regional comparisons */
.t10b-regional {
  background: var(--bg-card, var(--t10b-card));
  border-radius: var(--radius-sm, 10px);
  padding: 14px;
  margin-top: 14px;
}

.t10b-regional-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, var(--t10b-text));
  margin-bottom: 10px;
}

.t10b-regional-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.t10b-regional-city {
  width: 70px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
}

.t10b-regional-note {
  flex: 1;
  color: var(--text-secondary, var(--t10b-dim));
}

/* Quiz section */
.t10b-quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.t10b-quiz-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated, #1E2340);
  border-radius: 2px;
  overflow: hidden;
}

.t10b-quiz-bar-fill {
  height: 100%;
  background: var(--t10b-etq);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.t10b-quiz-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, var(--t10b-dim));
  white-space: nowrap;
}

.t10b-quiz-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, var(--t10b-text));
  margin-bottom: 14px;
  line-height: 1.4;
}

.t10b-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t10b-quiz-option {
  padding: 12px 14px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: var(--bg-card, var(--t10b-card));
  color: var(--text, var(--t10b-text));
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.t10b-quiz-option:active {
  background: var(--bg-card-hover, #1C2137);
}

.t10b-quiz-option.t10b-correct {
  border-color: var(--t10b-green);
  background: rgba(54,179,126,0.15);
  color: var(--t10b-green);
}

.t10b-quiz-option.t10b-wrong {
  border-color: var(--t10b-red);
  background: rgba(255,86,48,0.15);
  color: var(--t10b-red);
}

.t10b-quiz-option.t10b-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.t10b-quiz-explanation {
  padding: 10px 12px;
  background: var(--bg-card, var(--t10b-card));
  border-radius: var(--radius-sm, 10px);
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 10px;
  line-height: 1.4;
  animation: t10b-fadeIn 0.2s ease;
}

.t10b-quiz-next {
  margin-top: 14px;
}

/* Quiz results */
.t10b-quiz-result {
  text-align: center;
  padding: 20px 0;
}

.t10b-quiz-score {
  font-size: 48px;
  font-weight: 800;
  color: var(--t10b-etq);
  line-height: 1;
}

.t10b-quiz-score-label {
  font-size: 14px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-top: 4px;
  margin-bottom: 12px;
}

.t10b-quiz-rank {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, var(--t10b-text));
  margin-bottom: 4px;
}

.t10b-quiz-rank-desc {
  font-size: 12px;
  color: var(--text-secondary, var(--t10b-dim));
  margin-bottom: 16px;
}

/* Badges */
.t10b-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0;
}

.t10b-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card, var(--t10b-card));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, var(--t10b-dim));
}

.t10b-badge-item.t10b-earned {
  border-color: var(--t10b-etq);
  color: var(--t10b-etq);
  background: var(--t10b-etq-dim);
}

.t10b-badge-icon {
  font-size: 14px;
}

/* Violation reporter */
.t10b-violations-list {
  margin-bottom: 12px;
}

.t10b-violation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.t10b-violation-item:last-child { border-bottom: none; }

.t10b-violation-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,86,48,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.t10b-violation-text {
  flex: 1;
  font-size: 13px;
  color: var(--text, var(--t10b-text));
}

.t10b-violation-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--t10b-red);
  min-width: 24px;
  text-align: center;
}

.t10b-violation-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,86,48,0.1);
  border: 1px solid rgba(255,86,48,0.2);
  color: var(--t10b-red);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t10b-violation-btn:active {
  background: rgba(255,86,48,0.2);
}

.t10b-violation-total {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--text-secondary, var(--t10b-dim));
}

.t10b-violation-total strong {
  color: var(--t10b-red);
}

/* ============================================================
   5. ANIMATIONS
   ============================================================ */

@keyframes t10b-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes t10b-slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
