/* ═══════════════════════════════════════════════════════════════
   JTP360 — 360° Evaluation  |  Premium Dark Theme
   #121212 background  ·  #deff9a neon accent
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ─────────────────────────────────────────────── */
#jtp360-app {
  --bg:          #121212;
  --surface:     #1c1c1c;
  --surface2:    #252525;
  --surface3:    #2e2e2e;
  --accent:      #deff9a;
  --accent-dim:  rgba(222,255,154,.10);
  --accent-glow: rgba(222,255,154,.25);
  --text:        #f2f2f2;
  --text-muted:  #888;
  --text-subtle: #555;
  --border:      #2e2e2e;
  --border-active: #deff9a;
  --green:       #22c55e;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .22s cubic-bezier(.4,0,.2,1);

  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px 60px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. PROGRESS ──────────────────────────────────────────────── */
.jtp360-progress-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.jtp360-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}
.jtp360-progress-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.jtp360-progress-count {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.jtp360-progress-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.jtp360-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── 3. STEPS WRAPPER ─────────────────────────────────────────── */
.jtp360-steps-wrap {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.jtp360-step {
  display: none;
  animation: jtp360-fadein .28s ease;
}
.jtp360-step.active {
  display: block;
}
@keyframes jtp360-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 4. STEP HEADER ───────────────────────────────────────────── */
.jtp360-step-header {
  margin-bottom: 28px;
}
.jtp360-step-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(222,255,154,.2);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.jtp360-step-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 6px;
}
.jtp360-step-desc {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── 5. FORM FIELDS (lead / identity / rankings) ──────────────── */
.jtp360-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.jtp360-field-full { grid-column: 1 / -1; }
.jtp360-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.jtp360-field label,
.jtp360-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.jtp360-field input,
.jtp360-field select,
.jtp360-input,
.jtp360-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.jtp360-field input:focus,
.jtp360-field select:focus,
.jtp360-input:focus,
.jtp360-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.jtp360-field select,
.jtp360-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.jtp360-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jtp360-radio-card {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  user-select: none;
}
.jtp360-radio-card input[type=radio] {
  display: none;
}
.jtp360-radio-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.jtp360-radio-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.jtp360-radio-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}
.jtp360-radio-card.selected .jtp360-radio-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.jtp360-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text-muted);
  transition: border-color var(--transition);
}
.jtp360-checkbox-wrap:hover { border-color: var(--accent); }
.jtp360-checkbox-wrap input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); width:16px; height:16px; }
/* Not ranked toggle pill */
.jtp360-not-ranked-row {
  margin-top: 10px;
}
.jtp360-not-ranked-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.jtp360-not-ranked-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.jtp360-not-ranked-toggle.checked {
  border-color: var(--accent);
  background: rgba(222,255,154,.15);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.jtp360-not-ranked-toggle input[type=checkbox] {
  display: none;
}
.jtp360-nr-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  line-height: 1;
}
.jtp360-not-ranked-toggle.checked .jtp360-nr-icon::after {
  content: '✓';
}
.jtp360-rank-field-disabled {
  opacity: .35;
  pointer-events: none;
}
.jtp360-conditional-block {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
}
.jtp360-conditional-block.visible { display: block; }
.jtp360-conditional-label {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* ── 6. QUESTION OPTION CARDS ─────────────────────────────────── */
.jtp360-question {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.jtp360-question:last-child { border-bottom: none; padding-bottom: 0; }
.jtp360-q-label {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.45;
}
.jtp360-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jtp360-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  user-select: none;
}
.jtp360-option:hover {
  border-color: rgba(222,255,154,.35);
  background: var(--surface2);
}
.jtp360-option.selected {
  border-color: var(--accent);
  background: rgba(222,255,154,.2);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(222,255,154,.08);
}
.jtp360-opt-indicator {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--text-subtle);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.jtp360-option.selected .jtp360-opt-indicator {
  border-color: var(--accent);
  background: var(--accent);
}
.jtp360-opt-indicator::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #121212;
  opacity: 0;
  transition: opacity var(--transition);
}
.jtp360-option.selected .jtp360-opt-indicator::after { opacity: 1; }
.jtp360-opt-score {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-subtle);
  margin-top: 2px;
  min-width: 20px;
  text-align: center;
  transition: color var(--transition);
}
.jtp360-option.selected .jtp360-opt-score {
  color: var(--accent);
  font-size: .78rem;
}
.jtp360-opt-text {
  font-size: .88rem;
  color: #d0d0d0;
  line-height: 1.5;
  transition: color var(--transition);
}
.jtp360-option.selected .jtp360-opt-text {
  color: #ffffff;
  font-weight: 500;
}

/* ── 7. RQE BLOCK ─────────────────────────────────────────────── */
.jtp360-rqe-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.jtp360-rqe-title {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.jtp360-rqe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.jtp360-rqe-field label {
  display: block;
  font-size: .73rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.jtp360-rqe-field input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
  transition: border-color var(--transition);
}
.jtp360-rqe-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.jtp360-rqe-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.jtp360-rqe-display-label { font-size: .8rem; color: var(--text-muted); }
.jtp360-rqe-display-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── 8. PALMARES REPEATER ─────────────────────────────────────── */
.jtp360-palmares-block { margin-bottom: 24px; }

/* ── Q1 / Q2 Result Questions ─────────────────────────────────── */
.jtp360-result-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}
.jtp360-result-question-title {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.jtp360-result-question-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.jtp360-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.jtp360-result-field label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.jtp360-result-field select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .88rem;
  padding: 10px 30px 10px 12px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: menulist;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.jtp360-result-field select:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 500px) {
  .jtp360-result-row { grid-template-columns: 1fr; }
}
.jtp360-palmares-title {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.jtp360-title-entries { display: flex; flex-direction: column; gap: 12px; }
.jtp360-title-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  animation: jtp360-fadein .2s ease;
}
.jtp360-title-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.jtp360-title-entry-field label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.jtp360-title-entry-field input,
.jtp360-title-entry-field select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .87rem;
  padding: 9px 12px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.jtp360-title-entry-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.jtp360-title-remove {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px;
  transition: color var(--transition);
}
.jtp360-title-remove:hover { color: var(--red); }
.jtp360-add-title-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all var(--transition);
}
.jtp360-add-title-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.jtp360-empty-palmares {
  text-align: center;
  padding: 24px;
  color: var(--text-subtle);
  font-size: .85rem;
  font-style: italic;
}

/* ── 9. NAV BUTTONS ───────────────────────────────────────────── */
.jtp360-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}
.jtp360-btn-primary {
  flex: 1;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .02em;
  box-shadow: 0 0 20px var(--accent-glow);
}
.jtp360-btn-primary:hover {
  background: #eaff77;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}
.jtp360-btn-primary:active { transform: translateY(0); }
.jtp360-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.jtp360-btn-secondary {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  padding: 13px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.jtp360-btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ── 10. VALIDATION STEP ──────────────────────────────────────── */
.jtp360-validation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.jtp360-validation-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.jtp360-validation-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.jtp360-validation-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.jtp360-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}
.jtp360-summary-chip {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.jtp360-summary-chip.done {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── 11. RESULT PAGE ──────────────────────────────────────────── */
#jtp360-result {
  display: none;
  animation: jtp360-fadein .4s ease;
}
#jtp360-result.visible { display: block; }
.jtp360-result-hero {
  text-align: center;
  padding: 16px 0 36px;
}
.jtp360-result-player-name {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Score Ring */
.jtp360-score-ring-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.jtp360-score-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}
.jtp360-score-svg {
  position: absolute;
  top: -4px; left: -4px;
  width: 176px; height: 176px;
}
.jtp360-score-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}
.jtp360-score-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 6px var(--accent));
}
.jtp360-score-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
}
.jtp360-score-denom {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.jtp360-score-band-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid;
}
.jtp360-score-band-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 14px auto 0;
}

/* ── 12. RADAR CHART ──────────────────────────────────────────── */
.jtp360-radar-section {
  margin: 32px 0;
}
.jtp360-radar-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}
.jtp360-radar-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.jtp360-radar-wrap svg {
  max-width: 100%;
  height: auto;
}
/* Radar SVG elements styled via inline attrs from JS */
.jtp360-radar-polygon {
  animation: jtp360-radar-grow .9s cubic-bezier(.4,0,.2,1) both;
  transform-origin: 200px 200px;
}
@keyframes jtp360-radar-grow {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── 13. FORCES / VIGILANCE ───────────────────────────────────── */
.jtp360-fv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.jtp360-fv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.jtp360-fv-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.jtp360-fv-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jtp360-fv-card-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.jtp360-fv-card-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.jtp360-fv-card-head-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.jtp360-fv-card-head-label.green { color: var(--green); }
.jtp360-fv-card-head-label.amber { color: var(--amber); }
.jtp360-fv-items { display: flex; flex-direction: column; gap: 8px; }
.jtp360-fv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.jtp360-fv-item-name {
  font-size: .83rem;
  color: var(--text);
  font-weight: 500;
}
.jtp360-fv-item-score {
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}
.jtp360-fv-item-score.green { background: rgba(34,197,94,.12); color: var(--green); }
.jtp360-fv-item-score.amber { background: rgba(245,158,11,.12); color: var(--amber); }

/* ── 14. RECOMMENDATIONS ──────────────────────────────────────── */
.jtp360-recs-section {
  margin: 24px 0;
}
.jtp360-recs-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.jtp360-rec {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}
.jtp360-rec-num {
  font-size: .8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 20px;
}
.jtp360-rec-text {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── 15. RUNWAY INDICATOR ─────────────────────────────────────── */
.jtp360-runway {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 16px 0 24px;
}
.jtp360-runway-icon { font-size: 1.4rem; flex-shrink: 0; }
.jtp360-runway-text { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }
.jtp360-runway-weeks { font-weight: 700; color: var(--text); }

/* ── 16. DISCLAIMER ───────────────────────────────────────────── */
.jtp360-disclaimer {
  font-size: .75rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
  font-style: italic;
}

/* ── 17. ERROR / TOAST ────────────────────────────────────────── */
.jtp360-error {
  background: rgba(239,68,68,.1);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: .85rem;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: none;
}
.jtp360-error.visible { display: block; }

/* ── Fix select repeater : valeur sélectionnée visible dans la barre ── */
#jtp360-app .jtp360-title-entry-field select,
#jtp360-app .jtp360-title-entry-field input[type=text],
#jtp360-app .jtp360-title-entry-field input[type=date] {
  color: var(--text) !important;
  background-color: var(--surface2) !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
#jtp360-app .jtp360-title-entry-field select option {
  background-color: #1e1e1e;
  color: #f2f2f2;
}
/* Force tous les select du plugin à afficher correctement */
#jtp360-app select {
  color: var(--text) !important;
  pointer-events: auto !important;
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
  opacity: 1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}

/* ── 18. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  #jtp360-app { padding: 0 16px 60px; }
  .jtp360-field-grid { grid-template-columns: 1fr; }
  .jtp360-rqe-grid   { grid-template-columns: 1fr; }
  .jtp360-fv-grid    { grid-template-columns: 1fr; }
  .jtp360-title-entry-grid { grid-template-columns: 1fr; }
  .jtp360-radio-group { flex-direction: column; }
  .jtp360-score-ring  { width: 140px; height: 140px; }
  .jtp360-score-svg   { width: 148px; height: 148px; top: -4px; left: -4px; }
  .jtp360-score-number { font-size: 2.2rem; }
  .jtp360-nav { flex-direction: column-reverse; }
  .jtp360-btn-secondary { width: 100%; }
}
