:root {
  --bg: #02060b;
  --bg-soft: #07111c;
  --panel: rgba(8, 15, 24, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #93a4b8;
  --cyan: #4fdcff;
  --cyan-strong: #2ec4e6;
  --cyan-glow: rgba(79, 220, 255, 0.34);
  --success: #7dffbd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(27, 88, 125, 0.16), transparent 28%),
    linear-gradient(180deg, #010409 0%, #02060b 100%);
}

.app-body {
  position: relative;
  overflow-x: hidden;
}

/* Background */
.app-background-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.08;
  pointer-events: none;
}

.app-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 7s ease-in-out infinite;
}

.app-glow-1 {
  width: 320px;
  height: 320px;
  background: rgba(79, 220, 255, 0.08);
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.app-glow-2 {
  width: 220px;
  height: 220px;
  background: rgba(79, 220, 255, 0.05);
  bottom: 8%;
  right: 10%;
  animation-delay: 1.3s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0px);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.78;
  }
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 18px;
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(79, 220, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 16px rgba(79, 220, 255, 0.12),
    inset 0 0 12px rgba(79, 220, 255, 0.04);
}

.logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 13px;
  box-shadow:
    0 0 12px rgba(0, 191, 255, 0.28),
    0 0 28px rgba(0, 191, 255, 0.1);
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tm {
  font-size: 0.34em;
  vertical-align: top;
  margin-left: 2px;
  opacity: 0.9;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topnav a {
  color: #a9b8c8;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.18s ease;
}

.topnav a:hover {
  color: white;
}

/* Dashboard */
.dashboard {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 28px));
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, rgba(6, 14, 22, 0.92), rgba(4, 10, 17, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 0 0 1px rgba(79, 220, 255, 0.04) inset,
    0 18px 60px rgba(0, 0, 0, 0.28);
}

.panel-large {
  min-height: 620px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-copy {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 680px;
}

.panel-badge {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(79, 220, 255, 0.08);
  border: 1px solid rgba(79, 220, 255, 0.22);
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.panel-badge-secondary {
  color: #9ed8ff;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  color: white;
}

.input-field {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 18px 20px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-field::placeholder {
  color: rgba(201, 214, 227, 0.5);
}

.input-field:focus {
  border-color: rgba(79, 220, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(79, 220, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

textarea.input-field {
  min-height: 170px;
  resize: vertical;
}

/* Buttons */
.action-btn,
.secondary-btn,
.button,
.button-ghost {
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}

.action-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 18px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #5fe6ff 0%, #2ec4e6 100%);
  color: #021018;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow:
    0 0 28px rgba(79, 220, 255, 0.28),
    inset 0 0 8px rgba(255, 255, 255, 0.14);
}

.action-btn:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 38px rgba(79, 220, 255, 0.38),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.action-btn:active,
.secondary-btn:active,
.button:active,
.button-ghost:active {
  transform: scale(0.98);
}

.secondary-btn,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(79, 220, 255, 0.05);
}

.secondary-btn:hover,
.button-ghost:hover {
  border-color: rgba(79, 220, 255, 0.28);
  box-shadow: 0 0 16px rgba(79, 220, 255, 0.1);
}

.verify-actions {
  margin-bottom: 22px;
}

/* Output / Result */
.verify-result,
#uploadResult {
  margin-top: 20px;
}

.result-status {
  margin: 0;
  color: #8da2b8;
  font-size: 0.98rem;
}

.placeholder {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: #9eb1c4;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-card {
  margin-top: 16px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(79, 220, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(79, 220, 255, 0.04);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 220, 255, 0.08);
  border: 1px solid rgba(79, 220, 255, 0.2);
  color: var(--cyan);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.result-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span {
  color: #93a6ba;
}

.result-row strong {
  color: white;
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

/* Info Strip */
.info-strip {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-strip span {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(79, 220, 255, 0.09);
  color: #d5e0ea;
  font-size: 0.96rem;
}

/* Entrance Motion */
.brand-reveal,
.panel-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.7s ease forwards;
}

.brand-reveal-1 { animation-delay: 0.08s; }
.brand-reveal-2 { animation-delay: 0.18s; }
.panel-reveal-1 { animation-delay: 0.14s; }
.panel-reveal-2 { animation-delay: 0.26s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 920px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 16px;
  }

  .topnav {
    gap: 18px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    width: min(100% - 16px, 1000px);
    margin-top: 18px;
    gap: 16px;
  }

  .panel {
    padding: 24px;
    border-radius: 24px;
  }

  .panel-large {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .logo {
    width: 42px;
    height: 42px;
  }

  .brand-copy h1 {
    font-size: 1.9rem;
  }

  .brand-copy p {
    font-size: 0.92rem;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel h2 {
    font-size: 2.2rem;
  }

  .action-btn,
  .secondary-btn,
  .button,
  .button-ghost {
    width: 100%;
  }

  .result-row {
    flex-direction: column;
    gap: 6px;
  }

  .result-row strong {
    max-width: 100%;
    text-align: left;
  }

  .info-strip {
    flex-direction: column;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .app-glow,
  .brand-reveal,
  .panel-reveal,
  .action-btn,
  .secondary-btn,
  .button,
  .button-ghost {
    animation: none !important;
    transition: none !important;
  }
}

/* === Proof page additions === */

.proof-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow:
    0 0 16px rgba(0, 191, 255, 0.22),
    0 0 36px rgba(0, 191, 255, 0.08);
}

.proof-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.authenticity-card {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.auth-findings {
  margin-top: 16px;
}

.auth-findings-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #38414a;
}

.auth-findings ul {
  margin: 0;
  padding-left: 18px;
}

.auth-findings li {
  margin-bottom: 8px;
  color: #4b545d;
  line-height: 1.5;
}