@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-base: #070b18;
  --bg-surface: #0e1528;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(124, 58, 237, 0.5);

  --violet: #7c3aed;
  --violet-light: #9f67ff;
  --violet-dim: rgba(124, 58, 237, 0.15);
  --crimson: #e11d48;
  --crimson-dim: rgba(225, 29, 72, 0.15);
  --gold: #d97706;
  --gold-dim: rgba(217, 119, 6, 0.15);
  --teal: #0d9488;
  --teal-dim: rgba(13, 148, 136, 0.15);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-glow-violet: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-glow-crimson: 0 0 40px rgba(225, 29, 72, 0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient background orbs */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

.view {
  display: none;
  width: 100%;
  max-width: 860px;
  animation: fadeSlideIn 0.5s ease forwards;
}

.view.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f1f5f9 30%, #9f67ff 65%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.brand-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================================
   HEADER (persistent)
   ============================================================ */
.app-header {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.header-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--text-primary), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-logo span {
  background: linear-gradient(120deg, var(--violet-light), var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-step-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.step-dot.active {
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  width: 24px;
  border-radius: 4px;
}

.step-dot.done {
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

/* ============================================================
   CARDS & GLASS
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(135deg, var(--crimson), #9f1239);
  color: #fff;
  box-shadow: 0 4px 24px rgba(225, 29, 72, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.07);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option {
  background: var(--bg-surface);
}

textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

/* ============================================================
   LANDING VIEW
   ============================================================ */
#view-landing {
  align-items: center;
  text-align: center;
  padding-top: 60px;
  gap: 0;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--violet-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.landing-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 6px var(--violet);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.landing-hero-text {
  margin-bottom: 16px;
}

.landing-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.8;
  margin: 0 auto 40px;
}

.landing-pillars {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pillar-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pillar-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.api-key-section {
  width: 100%;
  max-width: 460px;
  margin-bottom: 24px;
}

.api-key-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: left;
}

.api-key-hint a {
  color: var(--violet-light);
  text-decoration: none;
}

.api-key-hint a:hover {
  text-decoration: underline;
}

/* ============================================================
   LORE GATE VIEW
   ============================================================ */
#view-lore {
  gap: 32px;
  padding-top: 0;
}

.view-header {
  margin-bottom: 8px;
}

.view-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 10px;
}

.view-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.7;
}

.lore-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DATA INPUT VIEW
   ============================================================ */
#view-data {
  gap: 28px;
  padding-top: 0;
}

.tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.tab-btn.active {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

.tab-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--violet-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lore-summary-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
}

.lore-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lore-summary-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-light);
}

.lore-summary-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   LOADING VIEW
   ============================================================ */
#view-loading {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  gap: 36px;
  padding-top: 40px;
}

.brain-scan-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spinRing linear infinite;
}

.brain-ring-1 {
  inset: 0;
  border-top-color: var(--violet);
  border-right-color: var(--violet);
  animation-duration: 2.5s;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.brain-ring-2 {
  inset: 16px;
  border-top-color: var(--crimson);
  border-left-color: var(--crimson);
  animation-duration: 3.5s;
  animation-direction: reverse;
}

.brain-ring-3 {
  inset: 32px;
  border-bottom-color: var(--gold);
  border-right-color: var(--gold);
  animation-duration: 2s;
}

.brain-core {
  position: absolute;
  inset: 48px;
  background: radial-gradient(circle, var(--violet-dim), transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes corePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.loading-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.loading-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  height: 22px;
  transition: var(--transition);
}

.loading-frameworks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.framework-badge {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  animation: blink 3s ease-in-out infinite;
}

.framework-badge:nth-child(1) {
  color: var(--violet-light);
  border-color: rgba(124, 58, 237, 0.35);
  animation-delay: 0s;
}

.framework-badge:nth-child(2) {
  color: var(--crimson);
  border-color: rgba(225, 29, 72, 0.35);
  animation-delay: 0.5s;
}

.framework-badge:nth-child(3) {
  color: var(--gold);
  border-color: rgba(217, 119, 6, 0.35);
  animation-delay: 1s;
}

.framework-badge:nth-child(4) {
  color: var(--teal);
  border-color: rgba(13, 148, 136, 0.35);
  animation-delay: 1.5s;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 10px currentColor;
  }
}

/* ============================================================
   REPORT VIEW
   ============================================================ */
#view-report {
  gap: 0;
  padding-top: 0;
}

.report-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.report-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 14px;
  background: var(--crimson-dim);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.report-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

.report-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.report-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.report-meta-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Report Sections */
.report-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.report-section:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  background: var(--bg-card);
  user-select: none;
  transition: var(--transition);
}

.section-header:hover {
  background: var(--bg-card-hover);
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.section-letter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title-group {
  flex: 1;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.section-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 0.9rem;
}

.report-section.open .section-chevron {
  transform: rotate(180deg);
}

.section-body {
  display: none;
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.3s ease;
}

.report-section.open .section-body {
  display: block;
}

/* ─── Section A: Archetypes ─── */
.archetype-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .archetype-cards {
    grid-template-columns: 1fr;
  }
}

.archetype-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.archetype-card.user-card {
  background: var(--violet-dim);
  border-color: rgba(124, 58, 237, 0.25);
}

.archetype-card.them-card {
  background: var(--crimson-dim);
  border-color: rgba(225, 29, 72, 0.2);
}

.archetype-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.user-card .archetype-role {
  color: var(--violet-light);
}

.them-card .archetype-role {
  color: var(--crimson);
}

.archetype-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.archetype-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Section B: Character Radiology ─── */
.radiology-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.radiology-table th {
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.radiology-table th:nth-child(1) {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  width: 22%;
}

.radiology-table th:nth-child(2) {
  background: var(--violet-dim);
  color: var(--violet-light);
}

.radiology-table th:nth-child(3) {
  background: var(--crimson-dim);
  color: var(--crimson);
}

.radiology-table td {
  padding: 13px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.radiology-table td:nth-child(1) {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.radiology-table tr:hover td:not(:first-child) {
  background: rgba(255, 255, 255, 0.015);
}

.strength-text {
  color: #4ade80;
}

.flaw-text {
  color: var(--crimson);
}

/* ─── Section C: Bad Behavior Audit ─── */
.audit-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(225, 29, 72, 0.2);
  background: rgba(225, 29, 72, 0.04);
}

.audit-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.audit-flag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--crimson-dim);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audit-behavior {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-explanation {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.power-dynamics-box {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--gold-dim);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.power-dynamics-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.power-dynamics-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Section D: Human Insight ─── */
.insight-block {
  position: relative;
  padding: 28px 28px 28px 32px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--teal-dim);
}

.insight-quote-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 10px;
  line-height: 1;
}

.insight-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.75;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.insight-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Section E: Tactical Recommendation ─── */
.tactical-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(225, 29, 72, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tactical-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet-light);
  margin-bottom: 12px;
}

.tactical-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.tactical-script {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--violet);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Report actions */
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ERROR STATE
   ============================================================ */
.error-box {
  padding: 16px 20px;
  background: var(--crimson-dim);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-md);
  color: #fda4af;
  font-size: 0.88rem;
  line-height: 1.6;
  display: none;
}

.error-box.visible {
  display: block;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.flex {
  display: flex;
}

.gap-12 {
  gap: 12px;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

/* ============================================================
   MODALS (shared)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-close:hover {
  color: var(--text-primary);
}

#privacyModal .glass-card,
.share-modal-card {
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

/* ============================================================
   AUTH UI
   ============================================================ */
#userProfile {
  background: var(--bg-card);
  padding: 4px 12px 4px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

#authSection .btn {
  font-size: 0.9rem;
  padding: 12px 18px;
}

.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}

/* ============================================================
   MODE PICKER
   ============================================================ */
.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 2px solid var(--border);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.mode-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.mode-card.selected {
  border-color: var(--violet);
  background: var(--violet-dim);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.mode-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.mode-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .mode-picker {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RED FLAG SCORE
   ============================================================ */
.red-flag-container {
  padding: 28px;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.red-flag-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}

.red-flag-gauge {
  margin-bottom: 16px;
}

.gauge-track {
  width: 100%;
  height: 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gauge-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #10b981, #ef4444);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.red-flag-score-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-flag-verdict {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.6;
}

/* ============================================================
   PUSHBACK / CLARIFICATION
   ============================================================ */
.pushback-section {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pushback-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pushback-icon {
  font-size: 1.6rem;
}

.pushback-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.pushback-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pushback-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pushback-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pushback-history {
  margin-top: 20px;
}

.pushback-entry {
  padding: 20px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-md);
  animation: pushbackSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.12);
  position: relative;
}

.pushback-entry::before {
  content: '⚡ ANALYSIS RE-EVALUATED';
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--violet-light);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

@keyframes pushbackSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    box-shadow: 0 0 0 rgba(124, 58, 237, 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.12);
  }
}

.pushback-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.pushback-entry-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pushback-entry-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.04em;
}

.pushback-entry-badge.up {
  color: var(--crimson);
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(225, 29, 72, 0.08);
}

.pushback-entry-badge.down {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.pushback-entry-badge.hold {
  color: var(--gold);
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(217, 119, 6, 0.08);
}

.pushback-entry-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(124, 58, 237, 0.3);
}

.pushback-entry-verdict {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   SHARE CARD
   ============================================================ */
.share-card-preview {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.share-card {
  width: 340px;
  padding: 28px 24px;
  background: linear-gradient(145deg, #0e1528 0%, #1a1040 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 58, 237, 0.3);
  text-align: center;
}

.share-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.share-card-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}

.share-card-logo span {
  background: linear-gradient(120deg, var(--violet-light), var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-light);
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.share-card-score {
  margin: 16px 0;
}

.share-card-score-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--crimson);
}

.share-card-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.share-card-archetypes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.share-card-arch {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.share-card-vs {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--crimson);
  letter-spacing: 0.1em;
}

.share-card-insight {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin: 12px 0;
  padding: 0 8px;
}

.share-card-footer {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 16px;
}

/* ============================================================
   HISTORY VIEW
   ============================================================ */
#view-history {
  gap: 24px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.history-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.history-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.history-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.history-card-score {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  min-width: 50px;
}

.history-card-info {
  flex: 1;
}

.history-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.history-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.history-mode-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--crimson-dim);
  color: var(--crimson);
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 6px;
}

.history-card-verdict {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

.history-card-pushbacks {
  font-size: 0.72rem;
  color: var(--violet-light);
  margin-top: 8px;
  font-weight: 600;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.6);
}

/* ============================================================
   ZODIAC DIVIDER & FORM ROW
   ============================================================ */
.zodiac-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.zodiac-divider-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}



/* ============================================================
   DONATION BANNER
   ============================================================ */
.donate-banner {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 28px 0 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(217, 119, 6, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.donate-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.donate-banner-text {
  flex: 1;
  min-width: 200px;
}

.donate-banner-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.donate-banner-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--violet), var(--crimson));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-donate:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================================
   COSMIC PROFILE (Section F)
   ============================================================ */
.cosmic-signs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cosmic-sign-badge {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid;
}

.cosmic-sign-badge.user-sign {
  background: var(--violet-dim);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--violet-light);
}

.cosmic-sign-badge.them-sign {
  background: var(--crimson-dim);
  border-color: rgba(225, 29, 72, 0.3);
  color: var(--crimson);
}

.cosmic-vs {
  font-size: 1.2rem;
  color: var(--gold);
}

.cosmic-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a78bfa;
  margin-bottom: 6px;
  margin-top: 16px;
}

.cosmic-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.cosmic-flag-item {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 8px 12px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(167, 139, 250, 0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cosmic-irony-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-md);
}

.cosmic-irony-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.cosmic-irony-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================================
   DONATION BANNER
   ============================================================ */
.donate-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.donate-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.donate-banner-text {
  flex: 1;
  min-width: 180px;
}

.donate-banner-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.donate-banner-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-donate {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-donate:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ============================================================
   CRYPTO DONATIONS
   ============================================================ */
.crypto-donate {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.crypto-donate-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.crypto-addresses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crypto-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.crypto-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: var(--gold);
}

.crypto-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crypto-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.crypto-addr {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy-crypto {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copy-crypto:hover {
  background: rgba(124, 58, 237, 0.3);
}

/* ============================================================
   DANGER BUTTON + HISTORY ACTIONS
   ============================================================ */
.btn-danger {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #f87171;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.7);
}

.history-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   NO-PAYWALL TRUST BAR
   ============================================================ */
.no-paywall-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.no-paywall-lock {
  font-size: 0.95rem;
}

.no-paywall-divider {
  color: var(--text-muted);
  flex-shrink: 0;
}

.no-paywall-tip {
  color: var(--teal);
  font-style: italic;
}

/* ============================================================
   GLOBAL SUPPORT FOOTER
   ============================================================ */
.global-support-footer {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, 0.95) 40%);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  margin-top: 32px;
}

.global-support-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.support-left {
  flex: 0 0 220px;
  min-width: 180px;
}

.support-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.support-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.support-coffee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-crypto {
  flex: 1;
  min-width: 260px;
}

.support-crypto-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
/* Pulse highlight for newly added pushback entry */
.pushback-entry-new {
  animation: pushbackSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1), pushbackPulse 1.2s ease 0.5s 2;
}

@keyframes pushbackPulse {
  0%   { box-shadow: 0 0 24px rgba(124,58,237,0.12); }
  50%  { box-shadow: 0 0 40px rgba(124,58,237,0.5), 0 0 80px rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.8); }
  100% { box-shadow: 0 0 24px rgba(124,58,237,0.12); }
}

/* Crypto text badge (replaces broken unicode icons) */
.crypto-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 22px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
  flex-shrink: 0;
}

/* Per-session delete button in history cards */
.btn-delete-session {
  background: transparent;
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: rgba(225, 29, 72, 0.5);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all var(--transition);
  margin-left: auto;
}

.btn-delete-session:hover {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.5);
  color: #f87171;
}

/* ── ANALYSIS COUNT BADGE ─────────────────────────────────── */
.analysis-count-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ── SHARED REPORT BANNER ─────────────────────────────────── */
.shared-report-banner {
    background: rgba(217,119,6,0.1);
    border: 1px solid rgba(217,119,6,0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 20px;
}

/* ── TIMELINE GRAPH ───────────────────────────────────────── */
.timeline-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.timeline-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.timeline-chart {
    width: 100%;
    min-height: 100px;
}

/* ── REPORT ACTIONS — wider wrap for new buttons ──────────── */
.report-actions {
    flex-wrap: wrap;
    gap: 10px;
}

/* ── PRINT / PDF EXPORT ───────────────────────────────────── */
@media print {
    body { background: #fff !important; color: #111 !important; }
    .app-header, .pushback-section, .report-actions,
    .global-support-footer, .header-step-indicator,
    .modal-overlay, #sharedReportBanner { display: none !important; }
    .view { display: block !important; }
    .view:not(#view-report) { display: none !important; }
    .report-section { border: 1px solid #ddd !important; break-inside: avoid; }
    .glass-card { background: #fff !important; border: 1px solid #eee !important; }
    * { box-shadow: none !important; }
}

/* ── MOBILE: Footer responsive ────────────────────────────── */
@media (max-width: 640px) {
    .global-support-inner {
        flex-direction: column;
        gap: 24px;
    }
    .support-left {
        text-align: center;
    }
    .crypto-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .crypto-addr {
        font-size: 0.65rem;
        word-break: break-all;
    }
    .report-actions {
        justify-content: center;
    }
    .report-actions .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
        text-align: center;
        font-size: 0.78rem;
    }
}
