:root {
  --bg-primary: #080b11;
  --bg-secondary: #0f1420;
  --bg-card: rgba(18, 24, 38, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.3);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  
  --cyan-400: #22d3ee;
  --cyan-bg: rgba(34, 211, 238, 0.12);
  
  --blue-500: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  
  --purple-500: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--cyan-400);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
}

.status-indicator.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  box-shadow: 0 0 10px var(--emerald-500);
}

/* SEARCH SECTION */
.search-section {
  padding: 48px 0 36px;
  text-align: center;
}

.search-container {
  max-width: 760px;
  margin: 0 auto;
}

.search-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.search-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  gap: 10px;
  background: var(--bg-secondary);
  padding: 6px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.btn-verify {
  background: var(--emerald-500);
  color: #041f14;
  font-weight: 700;
  font-size: 14px;
  border: none;
  padding: 0 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-verify:hover {
  background: var(--emerald-400);
  transform: translateY(-1px);
}

/* RESULT CONTAINER */
.result-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.check-icon {
  width: 14px;
  height: 14px;
}

.receipt-id-display {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.timestamp-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge-noncustodial {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* PROOF GRID */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.base-icon { background: var(--blue-bg); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.policy-icon { background: var(--purple-bg); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.apostle-icon { background: var(--cyan-bg); color: var(--cyan-400); border: 1px solid rgba(34, 211, 238, 0.3); }

.card-title-group {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
}

.card-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.data-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-value {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
}

.mono {
  font-family: var(--font-mono);
}

.highlight {
  font-weight: 600;
  color: #fff;
}

.text-green { color: var(--emerald-400); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--cyan-400); }

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 13px;
}

.data-link:hover {
  text-decoration: underline;
}

.badge-valid {
  display: inline-block;
  background: var(--emerald-bg);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* TERMINAL LOG */
.audit-terminal {
  background: #05070a;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-title {
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-terminal {
  background: transparent;
  color: var(--cyan-400);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-terminal:hover {
  background: rgba(34, 211, 238, 0.1);
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  line-height: 1.4;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-card);
  font-size: 12px;
  color: var(--text-muted);
}

.sep {
  margin: 0 8px;
}
