.stcdb-vs-wrapper {
  max-width: 740px;
  margin: 2rem auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stcdb-vs-form {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
}

.stcdb-vs-section-label {
  font-weight: 700;
  color: #023E73;
  font-size: 1rem;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #0077B6;
}

.stcdb-vs-section-label:first-child {
  margin-top: 0;
}

.stcdb-vs-section-label--cruise {
  border-color: #0077B6;
}

.stcdb-vs-section-label--resort {
  border-color: #FF6B35;
}

.stcdb-vs-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.stcdb-vs-row > .stcdb-vs-field {
  flex: 1;
  margin-bottom: 0;
}

.stcdb-vs-field {
  margin-bottom: 1.15rem;
}

.stcdb-vs-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #023E73;
  font-size: 0.95rem;
}

.stcdb-vs-field select,
.stcdb-vs-field input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.stcdb-vs-field select:focus,
.stcdb-vs-field input:focus {
  outline: none;
  border-color: #0077B6;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.stcdb-vs-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stcdb-vs-radio-option {
  position: relative;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.6rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
  text-align: center;
}

.stcdb-vs-radio-option:has(input:checked) {
  border-color: #0077B6;
  background: #e6f3fa;
}

.stcdb-vs-radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stcdb-vs-radio-option .stcdb-vs-option-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #023E73;
  display: block;
}

.stcdb-vs-radio-option .stcdb-vs-option-desc {
  font-size: 0.75rem;
  color: #6c757d;
  display: block;
  margin-top: 2px;
}

.stcdb-vs-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

.stcdb-vs-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0077B6;
}

.stcdb-vs-toggle-row label {
  font-weight: 600;
  color: #023E73;
  font-size: 0.9rem;
  cursor: pointer;
}

.stcdb-vs-flight-cost {
  display: none;
  margin-bottom: 1rem;
}

.stcdb-vs-flight-cost.stcdb-vs-visible {
  display: block;
}

.stcdb-vs-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: #0077B6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.stcdb-vs-btn:hover {
  background: #023E73;
}

/* Results */
.stcdb-vs-results {
  display: none;
  margin-top: 1.5rem;
  animation: stcdb-vs-fadeIn 0.4s ease;
}

@keyframes stcdb-vs-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fight card header */
.stcdb-vs-fight-card {
  background: linear-gradient(135deg, #023E73, #0077B6);
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}

.stcdb-vs-fight-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stcdb-vs-fight-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.7;
  font-weight: 600;
}

.stcdb-vs-fight-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0.15rem 0;
}

.stcdb-vs-fight-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Side-by-side totals */
.stcdb-vs-totals {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 2px solid #dee2e6;
  border-top: none;
}

.stcdb-vs-total-card {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.stcdb-vs-total-card.stcdb-vs-winner {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 0;
  position: relative;
}

.stcdb-vs-total-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.stcdb-vs-total-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #495057;
  margin-bottom: 0.35rem;
}

.stcdb-vs-total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #023E73;
  margin-bottom: 0.25rem;
}

.stcdb-vs-total-detail {
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.4;
}

.stcdb-vs-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  background: #FF6B35;
  padding: 0 0.75rem;
  min-width: 40px;
  letter-spacing: 1px;
}

/* Winner verdict */
.stcdb-vs-verdict {
  text-align: center;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-top: none;
}

.stcdb-vs-verdict-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stcdb-vs-verdict-badge.stcdb-vs-tie {
  background: #6c757d;
}

.stcdb-vs-verdict-margin {
  font-size: 0.85rem;
  color: #495057;
  margin-top: 0.4rem;
}

/* Tale of the Tape — comparison bars */
.stcdb-vs-tape {
  background: #fff;
  border: 2px solid #dee2e6;
  border-top: none;
  padding: 1.25rem;
}

.stcdb-vs-section-title {
  margin: 0 0 1rem;
  color: #023E73;
  font-size: 0.95rem;
  font-weight: 700;
}

.stcdb-vs-tape-row {
  margin-bottom: 0.85rem;
}

.stcdb-vs-tape-row:last-child {
  margin-bottom: 0;
}

.stcdb-vs-tape-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.3rem;
}

.stcdb-vs-tape-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stcdb-vs-tape-bar {
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stcdb-vs-tape-cruise {
  background: #0077B6;
}

.stcdb-vs-tape-resort {
  background: #FF6B35;
}

.stcdb-vs-tape-val {
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* What You're Giving Up */
.stcdb-vs-giving-up {
  background: #fff;
  border: 2px solid #dee2e6;
  border-top: none;
  padding: 1.25rem;
}

.stcdb-vs-giving-up-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.stcdb-vs-giving-up-list li {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.stcdb-vs-giving-up-list li:last-child {
  margin-bottom: 0;
}

/* Plot twist */
.stcdb-vs-plot-twist {
  background: #FFF1E6;
  border-left: 4px solid #FF6B35;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.stcdb-vs-plot-intro {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #495057;
  font-style: italic;
}

.stcdb-vs-plot-body {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.5;
}

.stcdb-vs-plot-body p {
  margin: 0;
}

.stcdb-vs-plot-scenario {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.stcdb-vs-plot-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 107, 53, 0.08);
  border-radius: 6px;
}

.stcdb-vs-plot-cruise,
.stcdb-vs-plot-resort {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.stcdb-vs-plot-cruise {
  color: #0077B6;
}

.stcdb-vs-plot-resort {
  color: #FF6B35;
}

.stcdb-vs-plot-cruise em,
.stcdb-vs-plot-resort em {
  font-weight: 400;
  font-size: 0.82rem;
  opacity: 0.8;
}

.stcdb-vs-plot-flip {
  margin-top: 0.5rem;
  font-weight: 700;
  color: #FF6B35;
  font-size: 0.9rem;
}

/* Share */
.stcdb-vs-share {
  margin: 1rem 0;
}

.stcdb-vs-share-box {
  background: #f0f7fb;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.stcdb-vs-share-text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: #023E73;
  font-weight: 500;
  line-height: 1.4;
}

.stcdb-vs-share-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #008080;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.stcdb-vs-share-btn:hover {
  background: #006666;
}

/* Sassy verdict */
.stcdb-vs-sass {
  margin: 1rem 0 0;
}

.stcdb-vs-sass-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.stcdb-vs-sass-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.stcdb-vs-sass-text {
  margin: 0;
  font-size: 0.92rem;
  color: #495057;
  line-height: 1.5;
  font-style: italic;
}

/* Responsive */
@media (max-width: 560px) {
  .stcdb-vs-row {
    flex-direction: column;
    gap: 0;
  }

  .stcdb-vs-radio-group {
    grid-template-columns: 1fr;
  }

  .stcdb-vs-totals {
    flex-direction: column;
  }

  .stcdb-vs-versus {
    padding: 0.4rem 0;
    min-width: unset;
  }

  .stcdb-vs-total-amount {
    font-size: 1.4rem;
  }

  .stcdb-vs-fight-title {
    font-size: 1.3rem;
  }

  .stcdb-vs-sass-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}
