:root {
  --gold: #c9a227;
  --gold-light: #f0d060;
  --gold-dim: #7a6010;
  --jade: #00875a;
  --jade-light: #00b377;
  --dark-bg: #0c0a0a;
  --dark-card: #180e0e;
  --dark-card2: #201414;
  --border: #3a1e1e;
  --text: #f0e0b0;
  --text-dim: #a08040;
  /* Techcombank brand */
  --tcb-red: #CC0000;
  --tcb-red-light: #E31E24;
  --tcb-red-dim: #7a0000;
  --tcb-red-glow: rgba(204, 0, 0, 0.25);
  --tcb-red-subtle: rgba(204, 0, 0, 0.08);
  /* TCB tri-pillars */
  --hoa-color: #e85a3a;
  --tho-color: #c8a050;
  --kim-color: #c0c0c0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== BACKGROUND PARTICLES ========== */
#particles-bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0; /* fallback for Safari < 15.4 */
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ========== HEADER ========== */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 36px 20px 36px;
  background: linear-gradient(180deg, #1a0808 0%, #110c08 60%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

/* Version badge */
.app-version-badge {
  font-size: 0.65rem;
  color: rgba(204, 0, 0, 0.35);
  letter-spacing: 0.08em;
  font-family: monospace;
  user-select: none;
}

.logo-symbol {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(204,0,0,0.5)) drop-shadow(0 0 20px rgba(201,162,39,0.3));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(204,0,0,0.5)) drop-shadow(0 0 20px rgba(201,162,39,0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(204,0,0,0.8)) drop-shadow(0 0 32px rgba(201,162,39,0.5));
  }
}

header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--tcb-red) 0%, var(--gold) 40%, var(--gold-light) 60%, var(--gold) 80%, var(--tcb-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

header p.subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* TCB input badge */
.tcb-input-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tcb-red-subtle);
  border: 1px solid rgba(204,0,0,0.25);
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.tcb-input-badge strong { color: var(--tcb-red-light); }

/* ========== MAIN LAYOUT ========== */
main {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ========== INPUT CARD ========== */
.input-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,162,39,0.15);
}

.input-card h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .input-card { padding: 24px; }
  .section-card { padding: 20px 18px; }
  .two-col-grid { grid-template-columns: 1fr !important; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.form-group input {
  background: var(--dark-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder { color: #4a3a18; font-weight: 400; font-size: 0.9rem; }

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.form-group small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.btn-analyze {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #8a0000 0%, var(--tcb-red) 35%, #e84040 55%, var(--tcb-red) 75%, #8a0000 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px var(--tcb-red-glow);
}

.btn-analyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204,0,0,0.55);
}

.btn-analyze:active { transform: translateY(0); }

/* ========== ERROR / LOADING ========== */
.error-msg {
  color: #e74c3c;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 12px;
  display: none;
}

.loading-overlay {
  display: none;
  text-align: center;
  padding: 48px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }

/* ========== REPORT ========== */
#report {
  display: none;
  animation: fadeIn 0.6s ease;
}

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

/* Summary banner */
.report-banner {
  background: linear-gradient(135deg, #1a1208 0%, #2a1e08 50%, #1a1208 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.report-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.report-banner .account-num-display {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.report-banner .banner-subtitle { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.1em; }

.stars-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
  font-size: 1.4rem;
}

/* Score circle */
.score-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.score-item {
  text-align: center;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: var(--dark-bg);
  position: relative;
}

.score-circle .score-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.score-circle .score-unit {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.score-item .score-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ========== SECTION CARDS ========== */
.section-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-card-tcb::before {
  background: linear-gradient(90deg, transparent, var(--tcb-red), transparent);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========== NUMBER BREAKDOWN ========== */
.digit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.digit-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--dark-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 52px;
  transition: border-color 0.2s;
}

.digit-chip:hover { border-color: var(--gold-dim); }

.digit-chip .d-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.digit-chip .d-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: center;
  max-width: 60px;
}

.arrow-chip {
  display: flex;
  align-items: center;
  color: var(--gold-dim);
  font-size: 1.2rem;
  padding-top: 8px;
}

.result-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2a1e08, #3a2a10);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 12px 20px;
  margin: 12px 0;
}

.result-chip .r-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.result-chip .r-info { flex: 1; }
.result-chip .r-name { font-weight: 700; color: var(--text); font-size: 1rem; }
.result-chip .r-desc { color: var(--text-dim); font-size: 0.85rem; margin-top: 2px; }

/* ========== TEXT CONTENT ========== */
.analysis-text {
  color: var(--text);
  line-height: 1.9;
  font-size: 1.05rem;
}

.analysis-text p { margin-bottom: 16px; }

.analysis-text strong {
  color: var(--gold-light);
  font-weight: 800;
}

.key-insight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(201,162,39,0.05), transparent);
  border-radius: 10px;
  border: 1px solid rgba(201,162,39,0.12);
}

.key-insight em { color: var(--gold-light); font-style: normal; font-weight: 800; }

.highlight-box {
  background: linear-gradient(135deg, rgba(0,135,90,0.12), rgba(0,135,90,0.05));
  border-left: 4px solid var(--jade);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.85;
}

.highlight-box strong { color: var(--jade-light); font-weight: 800; font-size: 1.1rem; }

.gold-highlight {
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(201,162,39,0.04));
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.85;
}

.gold-highlight strong { color: var(--gold-light); font-weight: 800; font-size: 1.1rem; }

/* ========== LUCKY SEQUENCES ========== */
.sequences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.seq-card {
  background: var(--dark-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.seq-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

.seq-card.found {
  border-color: var(--jade);
  background: linear-gradient(135deg, rgba(0,135,90,0.08), var(--dark-card2));
}

.seq-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.seq-card.found .seq-num { color: var(--jade-light); }

.seq-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.seq-mean { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }
.seq-badge {
  display: inline-block;
  background: var(--jade);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ========== FIVE ELEMENTS ========== */
.elements-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.elem-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 80px;
  transition: transform 0.2s;
}

.elem-badge:hover { transform: scale(1.05); }

.elem-badge .e-icon { font-size: 1.8rem; margin-bottom: 6px; }
.elem-badge .e-name { font-size: 0.9rem; font-weight: 700; }
.elem-badge .e-nums { font-size: 0.72rem; opacity: 0.8; }

.elem-kim { background: rgba(180,180,180,0.1); border-color: #b0b0b0; color: #d0d0d0; }
.elem-moc { background: rgba(0,135,90,0.1); border-color: #00875a; color: #00cc88; }
.elem-thuy { background: rgba(30,80,180,0.1); border-color: #1e50b4; color: #4a90e8; }
.elem-hoa { background: rgba(200,60,30,0.1); border-color: #c83c1e; color: #e85a3a; }
.elem-tho { background: rgba(150,100,30,0.1); border-color: #966420; color: #c8a050; }

.elem-badge.active {
  box-shadow: 0 0 20px currentColor;
  transform: scale(1.1);
}

/* ========== COMPATIBILITY BAR ========== */
.compat-bar-wrap {
  margin: 12px 0;
}

.compat-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.compat-label span:first-child { color: var(--text-dim); }
.compat-label span:last-child { color: var(--gold); font-weight: 700; }

.compat-bar {
  height: 10px;
  background: var(--dark-card2);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compat-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

/* ========== ICHING HEXAGRAM ========== */
.hexagram-display {
  text-align: center;
  margin: 16px 0;
}

.hex-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.hex-line {
  width: 80px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: relative;
}

.hex-line.broken::before,
.hex-line.broken::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 35px;
  background: var(--dark-card);
  border-radius: 2px;
}

.hex-line.broken::before { left: 0; }
.hex-line.broken::after { right: 0; }

.hex-name { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.hex-meaning { font-size: 0.85rem; color: var(--text-dim); }

/* ========== FINAL VERDICT ========== */
.verdict-card {
  background: linear-gradient(135deg, #1a1208, #2a1e08, #1a1208);
  border: 2px solid var(--gold-dim);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.verdict-card::after {
  content: '☯';
  position: absolute;
  font-size: 200px;
  right: -40px;
  bottom: -60px;
  opacity: 0.03;
  color: var(--gold);
}

.verdict-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.verdict-statement {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.verdict-statement em { color: var(--gold-light); font-style: normal; }

/* ========== ACTION BUTTONS ========== */
.action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(201,162,39,0.08);
  border-color: var(--gold);
}

.btn-print {
  padding: 12px 28px;
  background: var(--jade);
  border: 1px solid var(--jade-light);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.btn-print:hover { background: var(--jade-light); }

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ========== PRINT ========== */
@media print {
  body { background: white; color: black; }
  #particles-bg, header .subtitle, .input-card, .action-row, footer { display: none; }
  .section-card, .report-banner, .verdict-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
  * { color: black !important; background: white !important; }
  .digit-chip .d-num, .score-val, .result-chip .r-num, .seq-num, .section-title,
  .verdict-statement em, .key-insight em { color: #8a6010 !important; }
}

/* ========== DIVIDER ========== */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 20px;
}

.gold-divider::before, .gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gold-divider span { color: var(--gold-dim); font-size: 1rem; }

/* Tag pills */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-pill {
  padding: 4px 12px;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ========== TCB HIGHLIGHT BOX ========== */
.tcb-highlight {
  background: linear-gradient(135deg, var(--tcb-red-subtle), rgba(204,0,0,0.03));
  border-left: 4px solid var(--tcb-red);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.85;
}

.tcb-highlight strong { color: var(--tcb-red-light); font-weight: 800; font-size: 1.1rem; }

/* ========== TCB TRI-PILLARS ========== */
.tcb-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

@media (max-width: 500px) { .tcb-pillars { grid-template-columns: 1fr; } }

.tcb-pillar {
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s;
}

.tcb-pillar:hover { transform: translateY(-3px); }

.tcb-pillar .p-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tcb-pillar .p-name { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.tcb-pillar .p-sub  { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; opacity: 0.85; margin-bottom: 8px; }
.tcb-pillar .p-desc { font-size: 0.82rem; line-height: 1.6; opacity: 0.9; }

.tcb-pillar-hoa {
  background: linear-gradient(135deg, rgba(232,90,58,0.12), rgba(204,0,0,0.06));
  border-color: #e85a3a;
  color: #e85a3a;
}

.tcb-pillar-tho {
  background: linear-gradient(135deg, rgba(200,160,80,0.12), rgba(200,160,80,0.05));
  border-color: #c8a050;
  color: #c8a050;
}

.tcb-pillar-kim {
  background: linear-gradient(135deg, rgba(200,200,200,0.1), rgba(200,200,200,0.04));
  border-color: #c0c0c0;
  color: #d0d0d0;
}

/* ========== TCB RELATION CARD ========== */
.tcb-relation-card {
  background: linear-gradient(135deg, rgba(204,0,0,0.07), rgba(204,0,0,0.02));
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.tcb-relation-card::before {
  content: '🔥';
  position: absolute;
  font-size: 120px;
  right: -20px;
  bottom: -30px;
  opacity: 0.05;
  line-height: 1;
}

.tcb-relation-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tcb-red-light);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.tcb-relation-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.12);
  border: 1px solid rgba(204,0,0,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tcb-red-light);
}

.tcb-relation-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px;
}

.tcb-relation-advice {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-dim);
  font-style: italic;
  border-top: 1px solid rgba(204,0,0,0.15);
  padding-top: 12px;
}

/* Compat bar TCB variant */
.compat-fill-tcb {
  background: linear-gradient(90deg, var(--tcb-red-dim), var(--tcb-red), #e84040);
}

/* Narrative block inside verdict-card */
.verdict-tcb-narrative {
  text-align: left;
  margin: 20px 0;
  font-size: 1rem;
}

/* ========== FOOTER TCB ========== */
.footer-tcb-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  opacity: 0.6;
}
