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

:root {
  --bg-1: #040814;
  --bg-2: #091124;
  --panel: rgba(12, 18, 35, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --green: #22c55e;
  --green-2: #4ade80;
  --gold: #f59e0b;
  --red: #ef4444;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}
/* ===== DARK UPGRADE LAYER (SAFE ADD) ===== */

body {
  background: #000 !important;
  color: #fff !important;
}

/* animated glow bg */
body::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, #0f172a, transparent),
              radial-gradient(circle at 70% 70%, #020617, black);
  animation: moveBg 15s infinite alternate;
  z-index: -1;
}

@keyframes moveBg {
  0% { transform: translate(0,0); }
  100% { transform: translate(-50px,-50px); }
}

/* buttons upgrade */
button {
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* result glow */
.result.valid {
  border: 2px solid #00ff88 !important;
  box-shadow: 0 0 15px rgba(0,255,136,0.3);
}

.result.invalid {
  border: 2px solid #ff4444 !important;
  box-shadow: 0 0 15px rgba(255,0,0,0.3);
}
body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(245, 158, 11, 0.12), transparent 16%),
    radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.08), transparent 14%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.8px),
    radial-gradient(circle at 80% 60%, #fff 0.6px, transparent 0.8px),
    radial-gradient(circle at 40% 80%, #fff 0.6px, transparent 0.8px);
  background-size: 120px 120px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  animation: floatGlow 10s ease-in-out infinite;
}

.aurora-1 {
  width: 260px;
  height: 260px;
  background: rgba(59, 130, 246, 0.3);
  top: 8%;
  left: -5%;
}

.aurora-2 {
  width: 280px;
  height: 280px;
  background: rgba(245, 158, 11, 0.22);
  right: -6%;
  top: 18%;
  animation-delay: 1.5s;
}

.aurora-3 {
  width: 260px;
  height: 260px;
  background: rgba(34, 197, 94, 0.14);
  bottom: 0%;
  left: 35%;
  animation-delay: 3s;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}

.navbar {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 14, 28, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 3;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, #1d4ed8, #f59e0b);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.28);
}

.brand-text h3 {
  font-size: 20px;
  font-weight: 800;
}

.brand-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #dbeafe;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta,
.refresh-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 52px auto 18px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #dbeafe;
  font-size: 13px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -2px;
  max-width: 980px;
  margin: 0 auto 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, #ffffff, #93c5fd, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.25);
}

.secondary-btn {
  color: white;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.feature-strip {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 2;
}

.feature-box {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.feature-icon.blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.feature-icon.green { background: linear-gradient(135deg, var(--green), var(--green-2)); }
.feature-icon.gold { background: linear-gradient(135deg, #d97706, #f59e0b); }

.feature-box h4 {
  margin-bottom: 6px;
  font-size: 18px;
}

.feature-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.console-section,
.history-section,
.explorer-section,
.about-section {
  width: min(1240px, calc(100% - 32px));
  margin: 40px auto;
  position: relative;
  z-index: 2;
}

.console-section {
  display: flex;
  justify-content: center;
}

.floating-pill {
  position: absolute;
  top: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: #e2e8f0;
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.left-pill { left: 0; }
.right-pill { right: 0; }

.device-shell {
  width: min(1100px, 100%);
  position: relative;
}

.device-glow {
  position: absolute;
  inset: 40px 60px -20px 60px;
  background: radial-gradient(circle at center, rgba(59,130,246,0.22), transparent 55%);
  filter: blur(40px);
  z-index: 0;
}

.device-frame {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05)),
    linear-gradient(145deg, #0b1120, #020617);
  box-shadow:
    0 40px 90px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.device-topbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 12px;
}

.device-topbar span {
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.device-screen {
  border-radius: 26px;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top center, rgba(59,130,246,0.12), transparent 20%),
    linear-gradient(180deg, #050b18 0%, #030817 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
}

.screen-left {
  padding: 40px 30px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.console-badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.screen-left h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.screen-left p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.mini-metrics {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.metric-title {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
}

.metric-value.live {
  color: #86efac;
}

.screen-right {
  padding: 30px;
  display: grid;
  gap: 22px;
  align-content: center;
}

.action-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  flex-shrink: 0;
}

.card-icon.verify {
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.card-top h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.card-top p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.file-wrap {
  display: block;
  margin-bottom: 10px;
}

.file-input {
  display: none;
}

.custom-file {
  display: inline-block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #dbeafe;
  font-weight: 600;
  cursor: pointer;
}

.file-name {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  word-break: break-word;
}

.action-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.upload-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.22);
}

.verify-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 18px 28px rgba(34, 197, 94, 0.18);
}

.result-box {
  margin: 18px 20px 20px;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
}

.result-top {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.status-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid var(--line);
}

.status-valid {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.36);
}

.status-invalid {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.36);
}

.status-neutral {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.36);
}

.result-message {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}

.result-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-hash,
.result-value {
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}

.result-valid {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.36);
}

.result-invalid {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.36);
}

.result-neutral {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.36);
}

.history-header,
.explorer-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.history-tag,
.explorer-tag {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.history-tag {
  color: #93c5fd;
}

.explorer-tag {
  color: #fbbf24;
}

.history-header h2,
.explorer-header h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.history-subtext,
.explorer-subtext {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  font-size: 15px;
}

.history-table-wrap {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table thead {
  background: rgba(255,255,255,0.04);
}

.history-table th,
.history-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.history-table th {
  color: #e2e8f0;
  font-weight: 800;
}

.history-table td {
  color: #cbd5e1;
}

.hash-preview {
  color: #93c5fd;
  font-family: monospace;
  word-break: break-all;
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 28px !important;
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.explorer-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.explorer-wide {
  grid-column: span 2;
}

.explorer-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.explorer-value {
  font-size: 30px;
  font-weight: 800;
  color: #f8fafc;
}

.explorer-hash {
  color: #fde68a;
  font-size: 13px;
  line-height: 1.8;
  word-break: break-all;
  font-family: monospace;
}

.status-true {
  color: #86efac;
}

.status-false {
  color: #fca5a5;
}

.about-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.hidden {
  display: none;
}

@media (max-width: 1080px) {
  .device-screen {
    grid-template-columns: 1fr;
  }

  .screen-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .floating-pill {
    display: none;
  }
}

@media (max-width: 900px) {
  .history-table-wrap {
    overflow-x: auto;
  }

  .history-table {
    min-width: 760px;
  }

  .explorer-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .explorer-wide {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero-stats,
  .feature-strip,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 640px) {
  .navbar,
  .hero,
  .feature-strip,
  .console-section,
  .history-section,
  .explorer-section,
  .about-section {
    width: calc(100% - 18px);
  }

  .screen-left,
  .screen-right {
    padding: 22px 16px;
  }

  .screen-left h2 {
    font-size: 32px;
  }

  .card-top h3 {
    font-size: 20px;
  }

  .device-screen {
    min-height: auto;
  }

  .device-frame {
    padding: 10px;
  }
}