/* ============================================
   FTH FORENSICS — DARK FORENSIC THEME
   Case: NTI-LEAVITT-2026-001
   tronsite.unykorn.org
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1e2a42;
  --border: #2a3550;
  --border-glow: #3b82f6;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --red: #ef4444;
  --red-dark: #991b1b;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #a855f7;
  --pink: #ec4899;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* CLASSIFIED BANNER */
.classified-banner {
  background: repeating-linear-gradient(45deg, var(--red-dark), var(--red-dark) 10px, #7f1d1d 10px, #7f1d1d 20px);
  color: white;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* NAV */
#main-nav {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  z-index: 999;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 1.6rem;
  color: var(--cyan);
  font-weight: 900;
}

.nav-title {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-case {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* SECTIONS */
.section {
  display: none;
  padding: 110px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section.active { display: block; }

.section-header {
  margin-bottom: 40px;
}

.section-header h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ALERT BOXES */
.alert-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.alert-box.critical {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-box.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.alert-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: var(--border-glow);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

/* SCHEME STEPS */
.scheme-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scheme-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border-left: 4px solid var(--border);
  transition: all 0.3s;
  cursor: default;
}

.scheme-step:hover {
  border-left-color: var(--cyan);
  background: var(--bg-card-hover);
}

.scheme-step[data-step="4"]:hover,
.scheme-step[data-step="5"]:hover {
  border-left-color: var(--red);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* DATA TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 53, 80, 0.5);
  vertical-align: top;
}

.data-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

code, .hash {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
  word-break: break-all;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-red { background: rgba(239,68,68,0.2); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-orange { background: rgba(249,115,22,0.2); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.badge-yellow { background: rgba(234,179,8,0.2); color: var(--yellow); border: 1px solid rgba(234,179,8,0.3); }
.badge-green { background: rgba(34,197,94,0.2); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.badge-blue { background: rgba(59,130,246,0.2); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.badge-cyan { background: rgba(6,182,212,0.2); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.badge-purple { background: rgba(168,85,247,0.2); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }

/* TEXT COLORS */
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-green { color: var(--green); }
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }

/* BUTTONS */
.btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
}

.btn.btn-active, .btn-active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
}

.ext-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.8rem;
}

.ext-link:hover { text-decoration: underline; }

/* TIMELINE */
.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-phase {
  position: relative;
  margin: 32px 0 16px -40px;
  padding-left: 40px;
}

.phase-header {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--cyan);
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.phase-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-event {
  position: relative;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.timeline-event:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--bg-primary);
}

.timeline-event[data-type="money"]::before { background: var(--red); }
.timeline-event[data-type="doc"]::before { background: var(--purple); }
.timeline-event[data-type="infra"]::before { background: var(--yellow); }
.timeline-event[data-type="exchange"]::before { background: var(--green); }
.timeline-event[data-type="investigation"]::before { background: var(--cyan); }

.event-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.event-badge {
  display: inline-block;
  margin-bottom: 8px;
}

.event-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.event-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FUND FLOW */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.flow-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flow-source, .flow-center {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 220px;
}

.flow-source.victim { border-color: var(--blue); }
.flow-source.exchange { border-color: var(--green); }
.flow-center.fraud-wallet { border-color: var(--red); background: rgba(239,68,68,0.05); }

.flow-label {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.flow-addr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  word-break: break-all;
}

.flow-amount {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--red);
}

.flow-amount.total { color: var(--orange); font-size: 0.9rem; }

.flow-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.flow-status {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-tag {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--text-muted);
  font-weight: 200;
}

/* SINK GRID */
.sink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sink-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  transition: all 0.3s;
}

.sink-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.sink-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sink-label {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sink-addr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sink-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  font-family: var(--font-mono);
}

.sink-txns {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sink-dates {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sink-status {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.sink-status.freeze { color: var(--red); }
.sink-status.active { color: var(--orange); }
.sink-status.launder { color: var(--yellow); }

.sink-bar {
  margin-top: 12px;
  height: 4px;
  background: rgba(239,68,68,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.sink-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 2px;
  transition: width 1s ease;
}

/* OPERATOR DIAGRAM */
.operator-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.operator-node {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
  min-width: 350px;
}

.operator-node.operator { border-color: var(--red); }
.operator-node.sink { border-color: var(--orange); }

.node-label {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.node-addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  word-break: break-all;
}

.node-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.node-tag {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
}

.operator-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.arrow-icon {
  font-size: 1.5rem;
  color: var(--orange);
}

.info-box {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
}

.info-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.info-box p:last-child { margin-bottom: 0; }

/* WALLET TABLE */
.wallet-table td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.threat-critical td { border-left: 3px solid var(--red); }
.threat-high td { border-left: 3px solid var(--orange); }
.threat-medium td { border-left: 3px solid var(--yellow); }
.threat-exchange td { border-left: 3px solid var(--green); }
.threat-victim td { border-left: 3px solid var(--blue); }

/* DOCUMENT CARDS */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}

.doc-card:hover {
  border-color: var(--red);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.doc-evid {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6,182,212,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.doc-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.doc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.doc-meta {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-weight: 600;
}

.doc-content h4 {
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 12px 0 6px;
}

.doc-content p, .doc-content li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.doc-content ul {
  padding-left: 16px;
}

.doc-content li {
  margin-bottom: 4px;
}

.doc-verdict {
  margin-top: 16px;
  text-align: center;
}

/* COMPARISON TABLE */
.comparison-table .text-green { font-weight: 600; }
.comparison-table .text-red { font-weight: 600; }

/* PERSONA GRID */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.persona-card:hover { border-color: var(--purple); }

.persona-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 12px;
  color: white;
}

.persona-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.persona-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.persona-checks {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.check-item {
  font-size: 0.78rem;
  padding: 3px 0;
}

.check-item.fail {
  color: var(--red);
}

.check-item.fail::before {
  content: '✕ ';
  font-weight: 900;
}

.persona-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

/* RELATIONSHIP MAP */
.relationship-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.map-entity {
  background: var(--bg-secondary);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
}

.map-entity span, .map-persona span, .map-phantom span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-connections {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.map-persona {
  background: var(--bg-card);
  border: 1px solid var(--purple);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  min-width: 200px;
}

.map-phantom {
  background: var(--bg-secondary);
  border: 1px dashed var(--text-muted);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  opacity: 0.7;
}

/* TRANSACTION TABLE */
.tx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tx-table-wrap {
  overflow-x: auto;
}

.tx-table td:nth-child(6) {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row-out { background: rgba(239,68,68,0.03); }
.tx-row-in { background: rgba(34,197,94,0.03); }

.direction-in { color: var(--green); font-weight: 700; }
.direction-out { color: var(--red); font-weight: 700; }
.direction-self { color: var(--yellow); font-weight: 700; }

/* EVIDENCE GRID */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.evidence-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: all 0.3s;
}

.evidence-item[data-status="confirmed"] {
  border-left: 4px solid var(--green);
}

.evidence-item[data-status="pending"] {
  border-left: 4px solid var(--yellow);
  opacity: 0.8;
}

.evidence-item:hover {
  border-color: var(--cyan);
}

.evidence-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}

.evidence-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.evidence-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.evidence-hash {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ACTION GRID */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.action-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.action-priority {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.priority-immediate .action-priority { color: var(--red); }
.priority-24h .action-priority { color: var(--orange); }
.priority-7d .action-priority { color: var(--yellow); }

.action-item h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.action-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.action-item a {
  color: var(--cyan);
}

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-content a { color: var(--cyan); text-decoration: none; }
.footer-content strong { color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .section { padding: 100px 16px 40px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 24px; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid, .persona-grid { grid-template-columns: 1fr; }
  .flow-layer { flex-direction: column; }
  .footer-content { flex-direction: column; }
  .sink-grid { grid-template-columns: 1fr; }
  .story-chapter { flex-direction: column; }
  .chapter-marker { flex-direction: row; align-items: center; gap: 12px; }
  .chapter-line { display: none; }
  .btn-print { display: none; }
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* PRINT BUTTON (NAV) */
.btn-print {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  margin-left: 8px;
}

.btn-print:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
}

/* SCROLL-TO-TOP */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--cyan);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  border-color: var(--cyan);
}

/* COPY TOAST */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--cyan);
  color: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 2000;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* TX SEARCH */
.tx-search-wrap {
  flex: 1;
  min-width: 200px;
}

.tx-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.tx-search:focus { border-color: var(--cyan); }
.tx-search::placeholder { color: var(--text-muted); }

/* SORTABLE HEADERS */
.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.sortable:hover { color: var(--cyan); }
.sortable.asc .sort-arrow::after { content: ' \\25B2'; font-size: 0.65rem; }
.sortable.desc .sort-arrow::after { content: ' \\25BC'; font-size: 0.65rem; }

/* VICTIM STORY SECTION */
.story-intro {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.story-intro strong { color: var(--text-primary); }

.story-chapters {
  position: relative;
}

.story-chapter {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}

.chapter-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.chapter-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.chapter-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  min-height: 40px;
}

.chapter-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}

.chapter-body:hover { border-color: var(--cyan); }

.chapter-header {
  margin-bottom: 16px;
}

.chapter-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chapter-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.chapter-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.chapter-content strong { color: var(--text-primary); }

.chapter-evidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.evidence-ref {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Story: payment amounts */
.story-amounts {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.story-payment {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  min-width: 140px;
}

.payment-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.payment-amount {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red);
  font-family: var(--font-mono);
}

/* Story: findings */
.story-findings {
  margin: 16px 0;
}

.finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.finding-icon {
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.finding span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.finding strong { color: var(--text-primary); }

.story-closing {
  font-weight: 600;
  color: var(--text-primary) !important;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
  margin-top: 16px;
}

/* CLICKABLE ADDRESSES (copy) */
.addr-copy {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.addr-copy:hover { color: var(--text-primary); text-decoration: underline dotted; }
.addr-copy::after {
  content: ' \\1F4CB';
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.addr-copy:hover::after { opacity: 0.5; }

/* WALLET LABEL TOOLTIPS */
[data-wallet-label] {
  position: relative;
}

[data-wallet-label]:hover::after {
  content: attr(data-wallet-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.section.active {
  animation: fadeIn 0.4s ease;
}

.stat-card {
  animation: fadeIn 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

.count-done {
  animation: countPulse 0.3s ease;
}

/* PRINT STYLES */
@media print {
  .classified-banner, #main-nav, .timeline-controls, .tx-filters,
  .scroll-top-btn, .copy-toast, .hamburger, .tx-search-wrap, .login-gate { display: none; }
  .section { display: block !important; padding: 20px 0; page-break-inside: avoid; }
  body { background: white; color: black; }
  .card { border: 1px solid #ccc; box-shadow: none; }
  .chapter-body { border: 1px solid #ccc; break-inside: avoid; }
  .story-chapter { break-inside: avoid; }
  .invoice-table { font-size: 11px; }
  .invoice-table th, .invoice-table td { padding: 6px 8px; }
}

/* ============================================
   LOGIN GATE
   ============================================ */
.login-gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-gate.dismissed {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #0f1729 0%, #060a12 100%);
}

.login-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(6,182,212,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59,130,246,0.04) 0%, transparent 50%);
  animation: loginPulse 8s ease-in-out infinite alternate;
}

@keyframes loginPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.login-container {
  position: relative;
  width: 420px;
  max-width: 92vw;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 16px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: 0 0 80px rgba(6,182,212,0.06), 0 24px 64px rgba(0,0,0,0.5);
}

.login-glow {
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,182,212,0.2), transparent 40%, transparent 60%, rgba(59,130,246,0.2));
  z-index: -1;
  opacity: 0.5;
  animation: glowRotate 6s linear infinite;
}

@keyframes glowRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.login-shield {
  width: 64px;
  height: 72px;
  filter: drop-shadow(0 0 12px rgba(6,182,212,0.3));
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand-name {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.login-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 16px auto 20px;
}

.login-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.login-notice {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-wrap {
  position: relative;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 4px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

.login-input::placeholder {
  letter-spacing: 2px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.login-input-border {
  position: absolute;
  bottom: 0; left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.login-input:focus ~ .login-input-border {
  width: 100%;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(59,130,246,0.25));
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6,182,212,0.15);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.login-btn:hover .login-btn-icon {
  transform: translateX(4px);
}

.login-error {
  color: var(--red);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  min-height: 1.2em;
  transition: opacity 0.3s;
}

.login-error:empty {
  opacity: 0;
}

.login-error.shake {
  animation: loginShake 0.4s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.login-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.login-lock-icon {
  font-size: 0.8rem;
}

/* Site hidden when login gate is active */
.site-locked .classified-banner,
.site-locked #main-nav,
.site-locked .section,
.site-locked footer,
.site-locked .scroll-top-btn,
.site-locked .copy-toast {
  display: none !important;
}

/* ============================================
   NAV — BILLING LINK ACCENT
   ============================================ */
.nav-link-billing {
  color: var(--cyan) !important;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 4px;
  padding: 4px 10px !important;
  font-weight: 600;
}

.nav-link-billing.active,
.nav-link-billing:hover {
  background: rgba(6,182,212,0.12);
  border-color: var(--cyan);
}

/* ============================================
   SYSTEM OUTLINE
   ============================================ */
.outline-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
}

.outline-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.outline-meta-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.outline-meta-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  text-align: right;
}

.outline-phase {
  display: flex;
  gap: 24px;
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.phase-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.phase-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.phase-content {
  flex: 1;
  padding-bottom: 8px;
}

.phase-content h2 {
  margin-bottom: 4px;
}

.phase-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.outline-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.outline-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.outline-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.outline-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.outline-item code {
  background: rgba(6,182,212,0.08);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* DELIVERABLES GRID */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.deliverable-stat {
  text-align: center;
  padding: 20px 12px;
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.1);
  border-radius: 10px;
  transition: all 0.3s;
}

.deliverable-stat:hover {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.08);
  transform: translateY(-2px);
}

.deliverable-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deliverable-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ============================================
   INVOICE / BILLING
   ============================================ */
.invoice-header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.invoice-shield {
  width: 48px;
  height: 54px;
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.2));
}

.invoice-meta-card {
  padding: 28px 32px !important;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .invoice-meta-grid { grid-template-columns: 1fr; gap: 24px; }
}

.invoice-meta-block h3 {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.invoice-entity {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.invoice-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.invoice-meta-numbers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-number-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(42,53,80,0.5);
}

.invoice-num-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.invoice-num-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* INVOICE TABLE */
.invoice-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.invoice-table thead {
  background: var(--bg-secondary);
}

.invoice-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.invoice-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(42,53,80,0.4);
  color: var(--text-secondary);
  vertical-align: top;
}

.invoice-table td:first-child {
  color: var(--text-primary);
  white-space: nowrap;
}

.invoice-table tbody tr:hover {
  background: rgba(6,182,212,0.03);
}

.inv-col-hrs, .inv-col-rate, .inv-col-total {
  text-align: right;
  white-space: nowrap;
}

.invoice-table td:nth-child(3),
.invoice-table td:nth-child(4),
.invoice-table td:nth-child(5) {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.invoice-table tfoot td {
  padding: 10px 14px;
  border: none;
}

.invoice-subtotal td {
  border-top: 2px solid var(--border) !important;
  font-weight: 600;
}

.invoice-discount td {
  color: var(--green);
}

.invoice-total-row td {
  border-top: 2px solid var(--cyan) !important;
  font-size: 1.05rem;
}

.invoice-grand-total {
  font-family: var(--font-mono);
  font-size: 1.4rem !important;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* INDUSTRY COMPARISON */
.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: -4px;
  margin-bottom: 20px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.comparison-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
}

.comparison-card:hover {
  border-color: rgba(6,182,212,0.3);
  transform: translateY(-2px);
}

.comp-firm {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.comp-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.comp-range {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 10px;
}

.comp-per {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.comp-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-summary {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 600px) {
  .comparison-summary { flex-direction: column; align-items: flex-start; }
}

.comp-summary-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  letter-spacing: 1px;
}

.comp-summary-rate {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.comp-summary-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
  line-height: 1.5;
}

/* PAYMENT TERMS */
.payment-terms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.term-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.term-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.term-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* INVOICE FOOTER */
.invoice-footer-block {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-secondary);
}

.invoice-footer-block strong {
  color: var(--cyan);
}

.invoice-footer-sub {
  font-size: 0.82rem;
  margin-top: 4px;
  color: var(--text-muted);
}

/* ============================================
   FOOTER BRAND
   ============================================ */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(42,53,80,0.4);
  margin-top: 16px;
}

.footer-brand-icon {
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
