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

:root {
  --bg: #0a0a0a;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(0, 212, 255, 0.06);
  --bg-input: rgba(255, 255, 255, 0.04);
  --text: #f0f0f5;
  --text-muted: #7a7a9e;
  --cyan: #00d4ff;
  --primary: #00d4ff;
  --primary-light: #33ddff;
  --accent: #00d4ff;
  --success: #00e676;
  --warning: #ffc107;
  --error: #ff1744;
  --glass-border: rgba(0, 212, 255, 0.12);
  --glass-border-hover: rgba(0, 212, 255, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);
  --cyan-glow: 0 0 12px rgba(0, 212, 255, 0.25);
  --cyan-glow-strong: 0 0 24px rgba(0, 212, 255, 0.45);
  --blur: blur(16px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;

  /* Veil design tokens */
  --veil-cyan: #00d4ff;
  --veil-purple: #7000ff;
  --veil-purple-dim: rgba(112, 0, 255, 0.15);
  --veil-purple-glow: 0 0 16px rgba(112, 0, 255, 0.3);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(0, 212, 255, 0.025) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(0, 212, 255, 0.015) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-section[hidden] {
  display: none;
}

.page-section:not([hidden]) {
  animation: fadeInUp 0.3s ease both;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.error-page {
  text-align: center;
  padding: 3rem;
  color: var(--error);
}

/* Glass Card Utility */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Header */
#main-header {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 20px rgba(0, 212, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--cyan) !important;
  background: rgba(0, 212, 255, 0.06);
  text-decoration: none;
}

.nav-link-admin {
  border: 1px solid var(--glass-border);
}

.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.25rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-hamburger:hover {
  color: var(--cyan);
}

/* Footer */
#main-footer {
  padding: 3rem 1.25rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 260px;
}

.footer-col-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-link {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-badge svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 1.25rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none !important;
}

.btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-primary {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-primary:hover {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: var(--cyan-glow-strong);
  border-color: var(--cyan);
}

.btn-secondary {
  background: var(--bg-glass);
  border-color: var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-glass-hover);
}

.btn-danger {
  background: rgba(255, 23, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: rgba(255, 23, 68, 0.18);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.3);
  border-color: var(--error);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--cyan);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.btn-link:hover {
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--cyan);
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), var(--cyan-glow);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Home Hero */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero-content .section-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.home-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: white;
}

.home-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.home-hero-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.home-hero-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0.5rem 0;
}

.home-hero-bullet {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.home-hero-bullet svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.home-hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.home-hero-visual {
  display: flex;
  justify-content: center;
}

.hero-panel {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.05);
}

.hero-panel-header {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel-dot:first-child { background: rgba(255, 255, 255, 0.15); }
.hero-panel-dot:nth-child(2) { background: rgba(255, 255, 255, 0.1); }
.hero-panel-dot:nth-child(3) { background: rgba(255, 255, 255, 0.06); }

.hero-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-panel-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.hero-panel-id {
  font-size: 0.65rem;
  font-family: var(--mono);
  color: var(--text-muted);
}

.hero-panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-panel-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-panel-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-panel-file svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-panel-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hero-panel-file-name {
  font-size: 0.75rem;
  color: var(--text);
}

.hero-panel-file-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-panel-timeline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-panel-step {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-panel-step.active {
  color: var(--cyan);
}

.hero-panel-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hero-panel-step.active .hero-panel-step-dot {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.hero-panel-step-line {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0 0 1rem;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 150px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.35s ease both;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow), var(--cyan-glow);
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }

.stat-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

/* Section Shared */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-header .section-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 0.5rem;
}

.section-header .section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Home Security */
.home-security {
  padding: 4rem 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.security-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.security-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.security-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.08);
  margin-bottom: 0.75rem;
  color: var(--cyan);
}

.security-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.security-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How It Works */
.home-how {
  padding: 4rem 0;
}

.steps-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  flex: 1;
  padding: 0 0.75rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 auto 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.step-item h3 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.step-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-line {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}

.step-line-inner {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* Home Stats */
.home-stats {
  padding: 4rem 0;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Home Trust */
.home-trust {
  padding: 4rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}

.trust-item:hover {
  border-color: rgba(0, 212, 255, 0.12);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.05);
  color: var(--cyan);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.trust-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Home CTA */
.home-cta {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.home-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 0.75rem;
}

.home-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Fade-in animations */
.home-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.home-fade-in.home-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: fadeInUp 0.35s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.08s; }
.feature-card:nth-child(3) { animation-delay: 0.16s; }

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg), var(--cyan-glow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.2));
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Report Form */
.report-form {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.3s ease both;
}

.report-form h2 {
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-actions {
  margin-top: 1.5rem;
}

/* File Uploader */
.drop-zone {
  border: 2px dashed rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-glass);
}

.drop-zone:hover,
.drop-zone-active {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: inset var(--cyan-glow);
}

.drop-zone-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.drop-zone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.file-item:hover {
  border-color: var(--glass-border-hover);
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-item-status {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.file-status-hashing,
.file-status-uploading {
  color: var(--warning);
}

.file-status-uploaded {
  color: var(--success);
}

.file-status-error {
  color: var(--error);
}

.evidence-id-badge {
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.file-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.upload-progress {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.upload-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.upload-progress::-webkit-progress-value {
  background: var(--cyan);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.upload-progress::-moz-progress-bar {
  background: var(--cyan);
  border-radius: 3px;
}

/* Success Page */
.success-page {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.report-id-display {
  font-family: var(--mono);
  font-size: 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1.5rem auto;
  word-break: break-all;
  max-width: 500px;
  user-select: all;
  color: var(--cyan);
}

/* Track Report */
.track-page h2 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.track-form {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.3s ease both;
}

.track-result {
  margin-top: 1rem;
}

.report-status-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.3s ease both;
}

.report-status-card h3 {
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-reviewing {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.status-closed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Admin */
.admin-login-page {
  max-width: 400px;
  margin: 0 auto;
}

.admin-login-page h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-form {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.3s ease both;
}

.form-error {
  color: var(--error);
  margin-top: 1rem;
  text-align: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-header h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-select {
  width: auto;
  min-width: 150px;
}

.admin-table-container {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.2);
}

.admin-table tbody tr {
  animation: fadeInUp 0.3s ease both;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:nth-child(1) { animation-delay: 0s; }
.admin-table tbody tr:nth-child(2) { animation-delay: 0.03s; }
.admin-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.admin-table tbody tr:nth-child(4) { animation-delay: 0.09s; }
.admin-table tbody tr:nth-child(5) { animation-delay: 0.12s; }
.admin-table tbody tr:nth-child(6) { animation-delay: 0.15s; }
.admin-table tbody tr:nth-child(7) { animation-delay: 0.18s; }
.admin-table tbody tr:nth-child(8) { animation-delay: 0.21s; }
.admin-table tbody tr:nth-child(9) { animation-delay: 0.24s; }
.admin-table tbody tr:nth-child(10) { animation-delay: 0.27s; }

.admin-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

.cell-id {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-pagination .btn {
  min-width: 40px;
}

/* Badge variants */
.badge-info { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.badge-warning { background: rgba(255, 193, 7, 0.15); color: var(--warning); }
.badge-danger { background: rgba(255, 23, 68, 0.15); color: var(--error); }
.badge-success { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.cell-date { white-space: nowrap; font-size: 0.85rem; }
.cell-detail { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-ip { font-size: 0.8rem; color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--error);
}

/* Admin Detail */
.admin-detail > .btn-sm {
  margin-bottom: 1rem;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-header h2 {
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-info {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.info-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.info-label {
  width: 150px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.info-value {
  color: var(--text);
}

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

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.detail-text {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.7;
}

.status-actions {
  display: flex;
  gap: 0.5rem;
}

.evidence-list {
  display: grid;
  gap: 0.75rem;
}

.evidence-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.3s ease both;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.evidence-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow), var(--cyan-glow);
}

.evidence-card:nth-child(1) { animation-delay: 0s; }
.evidence-card:nth-child(2) { animation-delay: 0.04s; }
.evidence-card:nth-child(3) { animation-delay: 0.08s; }
.evidence-card:nth-child(4) { animation-delay: 0.12s; }
.evidence-card:nth-child(5) { animation-delay: 0.16s; }
.evidence-card:nth-child(6) { animation-delay: 0.2s; }

.evidence-card-info {
  flex: 1;
  min-width: 0;
}

.evidence-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.evidence-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.evidence-hash {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.evidence-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-self: center;
  background: #000;
  border: 1px solid var(--glass-border);
}

.evidence-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Evidence Preview */
.evidence-preview {
  margin-top: 0.5rem;
}

.preview-unavailable {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 400px;
}

.toast-success {
  border-color: var(--success);
  box-shadow: var(--shadow), 0 0 12px rgba(0, 230, 118, 0.2);
}

.toast-error {
  border-color: var(--error);
  box-shadow: var(--shadow), 0 0 12px rgba(255, 23, 68, 0.2);
}

.toast-info {
  border-color: var(--cyan);
  box-shadow: var(--shadow), 0 0 12px rgba(0, 212, 255, 0.2);
}

.toast-fadeout {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Track Report Page */
.track-search {
  text-align: center;
  padding: 2rem 0;
  max-width: 480px;
  margin: 0 auto;
}

.track-search-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 0.5rem;
}

.track-search-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.track-search-form {
  display: flex;
  gap: 0.5rem;
}

.track-search-input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--mono);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), var(--cyan-glow);
}

.track-search-btn {
  flex-shrink: 0;
}

.track-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  align-items: start;
}

.track-evidence-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-evidence-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.track-evidence-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.track-evidence-count {
  font-size: 0.75rem;
  color: var(--cyan);
  font-family: var(--mono);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
}

.track-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.track-evidence-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-glass);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
}

.track-evidence-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.track-evidence-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-glass-hover);
}

.track-evidence-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.track-evidence-body {
  flex: 1;
  min-width: 0;
}

.track-evidence-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.track-evidence-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.track-detail-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.track-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.track-detail-id-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.track-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
}

.track-detail-id {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.4;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.track-badge-cyan {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

.track-badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.track-badge-gray {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-section-heading {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.track-description {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
}

.track-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.track-info-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.track-info-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.track-info-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

/* Timeline */
.track-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-step {
  display: flex;
  gap: 0.85rem;
}

.timeline-dot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.timeline-step.completed .timeline-dot {
  border-color: var(--cyan);
  background: var(--cyan);
}

.timeline-step.current .timeline-dot {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.timeline-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease;
}

.timeline-step.completed .timeline-line {
  background: rgba(0, 212, 255, 0.3);
}

.timeline-content {
  padding: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline-step:last-child .timeline-content {
  padding-bottom: 0;
}

.timeline-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.timeline-step.completed .timeline-title {
  color: var(--text);
}

.timeline-step.current .timeline-title {
  color: var(--cyan);
  font-weight: 600;
}

.track-error {
  text-align: center;
  padding: 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.track-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.1);
  color: var(--error);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.track-error p {
  margin: 0;
}

/* ============================
   ADMIN LAYOUT
   ============================ */
.admin-layout {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg);
}

/* Sidebar */
.admin-sidebar {
  background: rgba(0, 0, 0, 0.4);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--veil-cyan);
  flex-wrap: wrap;
}

.sidebar-brand-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--veil-cyan), var(--veil-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-brand-role {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--veil-purple-dim);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-left: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link:hover svg {
  opacity: 0.8;
}

.sidebar-link.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}

.sidebar-link.active svg {
  opacity: 1;
  color: var(--cyan);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sidebar-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 4px rgba(0, 230, 118, 0.4);
}

.sidebar-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}

.sidebar-metric-label {
  color: var(--text-muted);
}

.sidebar-metric-value {
  color: var(--text);
  font-family: var(--mono);
}

/* Admin Main Area */
.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* Topbar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.topbar-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  max-width: 320px;
}

.topbar-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-search-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.8rem;
  width: 100%;
  outline: none;
  font-family: var(--font);
}

.topbar-search-input::placeholder {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-datetime {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--mono);
  white-space: nowrap;
}

.topbar-admin {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.topbar-admin-name {
  font-size: 0.75rem;
  color: var(--text);
}

.topbar-admin-role {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.topbar-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.topbar-logout:hover {
  color: var(--error);
  background: rgba(255, 23, 68, 0.08);
}

/* Admin Content */
.admin-content {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

/* Admin Section Header */
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}

.admin-section-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-select-sm {
  width: auto;
  min-width: 130px;
  padding: 0.35rem 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.filter-select-sm:focus {
  border-color: var(--cyan);
}

.filter-input-sm {
  width: auto;
  min-width: 120px;
  padding: 0.35rem 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.75rem;
  outline: none;
  font-family: var(--mono);
  transition: border-color 0.15s;
}

.filter-input-sm:focus {
  border-color: var(--cyan);
}

/* ============================
   METRICS
   ============================ */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color 0.15s;
}

.metric-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}

.metric-value.metric-cyan { color: var(--cyan); }
.metric-value.metric-amber { color: var(--warning); }
.metric-value.metric-green { color: var(--success); }
.metric-value.metric-red { color: var(--error); }
.metric-value.metric-muted { color: var(--text-muted); }

.metric-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-sub {
  display: block;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 0.15rem;
  font-family: var(--mono);
}

/* ============================
   REPORTS FEED
   ============================ */
.admin-reports-feed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  cursor: pointer;
  align-items: center;
}

.report-card:hover {
  border-color: rgba(0, 212, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.report-card-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.report-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-card-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.report-card-category {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.report-card-text {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.report-card-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

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

.report-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.report-card-evidence-count {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.report-card-critical {
  border-left: 2px solid rgba(255, 23, 68, 0.3);
}

/* ============================
   STATUS BADGES (Admin)
   ============================ */
.badge-received {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.badge-reviewing {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(255, 193, 7, 0.08);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.12);
}

.badge-investigating {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(0, 230, 118, 0.08);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.12);
}

.badge-closed {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-critical {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(255, 23, 68, 0.08);
  color: var(--error);
  border: 1px solid rgba(255, 23, 68, 0.12);
}

/* ============================
   DETAIL PANEL (Aside)
   ============================ */
.admin-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  border-left: 1px solid var(--glass-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.2s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}

.admin-detail-panel[hidden] {
  display: none !important;
}

#admin-detail-panel[hidden] {
  display: none !important;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.detail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.detail-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.detail-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

.detail-panel-close:hover {
  color: var(--text);
}

.detail-panel-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

#detail-status-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  word-break: break-all;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-info-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
}

.detail-info-label {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.detail-info-value {
  display: block;
  font-size: 0.75rem;
  color: var(--text);
}

.detail-section-block {
  margin-bottom: 1.25rem;
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.detail-text-block {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text);
  max-height: 200px;
  overflow-y: auto;
}

.detail-status-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.detail-status-actions .btn {
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
}

/* Timeline */
.detail-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1.25rem;
}

.detail-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-step {
  position: relative;
  padding: 0.4rem 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-step.active::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

.timeline-step.done::before {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
}

.timeline-step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.05rem;
}

.timeline-step.active .timeline-step-label {
  color: var(--cyan);
}

.timeline-step-date {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--mono);
}

/* Detail Evidences */
.detail-evidences {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-evidence-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.detail-evidence-card:hover {
  border-color: rgba(0, 212, 255, 0.12);
}

.detail-evidence-thumb {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  background: #000;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-evidence-info {
  flex: 1;
  min-width: 0;
}

.detail-evidence-name {
  font-size: 0.7rem;
  color: var(--text);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-evidence-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.detail-evidence-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.detail-evidence-actions .btn {
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
}

/* ============================
   AUDIT TERMINAL
   ============================ */
.audit-terminal {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
}

.audit-entry {
  display: grid;
  grid-template-columns: 140px 100px 1fr 100px;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.1s;
}

.audit-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.audit-entry:last-child {
  border-bottom: none;
}

.audit-entry-header {
  display: grid;
  grid-template-columns: 140px 100px 1fr 100px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.audit-entry-timestamp {
  color: rgba(255, 255, 255, 0.25);
}

.audit-entry-event {
  font-weight: 500;
}

.audit-entry-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-entry-ip {
  text-align: right;
  font-size: 0.65rem;
}

/* ============================
   MONITORING
   ============================ */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.monitor-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.monitor-card-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.monitor-card-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.monitor-card-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.monitor-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.monitor-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.monitor-bar-fill.cyan { background: var(--cyan); }
.monitor-bar-fill.green { background: var(--success); }
.monitor-bar-fill.amber { background: var(--warning); }
.monitor-bar-fill.red { background: var(--error); }

/* ============================
   ADMINS LIST
   ============================ */
.admin-admins-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

.admin-card-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.admin-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--cyan);
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.admin-card-info {
  min-width: 0;
}

.admin-card-name {
  font-size: 0.8rem;
  color: var(--text);
}

.admin-card-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.admin-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ============================
   PAGINATION (Admin)
   ============================ */
.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.admin-pagination .btn {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
}

/* ============================
   EMPTY / LOADING / ERROR STATES
   ============================ */
.admin-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================
   RESPONSIVE: ADMIN
   ============================ */
@media (max-width: 1200px) {
  .admin-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .admin-detail-panel {
    width: 360px;
  }
}

/* ============================
   VEIL SUBMIT PAGE
   ============================ */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.submit-main {
  min-width: 0;
}

/* Hero */
.submit-hero {
  margin-bottom: 2rem;
}

.submit-hero-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.submit-hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.security-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.security-badge svg {
  color: var(--veil-cyan);
  flex-shrink: 0;
}

/* Progress Tracker */
.progress-track {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  position: relative;
  transition: background 0.25s;
}

.progress-step::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-step:last-child::after {
  display: none;
}

.progress-step.done {
  background: rgba(0, 230, 118, 0.04);
}

.progress-step.active {
  background: rgba(0, 212, 255, 0.05);
}

.progress-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s;
}

.progress-step.done .progress-step-num {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.progress-step.active .progress-step-num {
  background: rgba(0, 212, 255, 0.15);
  color: var(--veil-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.progress-step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.progress-step.done .progress-step-label {
  color: var(--success);
}

.progress-step.active .progress-step-label {
  color: var(--veil-cyan);
}

/* Submit Form */
.submit-form {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeInUp 0.3s ease both;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.field-optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

/* Category Picker */
.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.category-badge:hover {
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--text);
  background: rgba(0, 212, 255, 0.04);
}

.category-badge[aria-checked="true"] {
  border-color: var(--veil-cyan);
  color: var(--veil-cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Submit Notice */
.submit-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.submit-notice svg {
  color: var(--veil-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.submit-notice span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--veil-cyan), rgba(0, 212, 255, 0.6));
  border: none;
  border-radius: var(--radius-sm);
  color: #0a0a0a;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-submit-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.btn-submit:hover .btn-submit-arrow {
  transform: translateX(3px);
}

/* Security Sidebar */
.submit-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.security-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.security-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--veil-cyan);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.security-panel-header::-webkit-details-marker {
  display: none;
}

.security-panel-header::marker {
  display: none;
  content: "";
}

.security-panel-header svg {
  flex-shrink: 0;
}

.security-panel-body {
  padding: 0 1rem 0.75rem;
}

.security-panel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.security-panel-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-panel-icon.on {
  background: rgba(0, 230, 118, 0.12);
  color: var(--success);
}

.security-panel-icon svg {
  width: 10px;
  height: 10px;
}

.security-panel-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.3;
}

.security-panel-status {
  display: block;
  font-size: 0.6rem;
  color: var(--success);
  letter-spacing: 0.04em;
}

/* Security Tips */
.security-tips {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.security-tips-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.security-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-tips li {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.security-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* Success Page */
.submit-success {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.submit-success-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  animation: fadeInUp 0.3s ease both;
}

.submit-success-icon {
  color: var(--success);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.submit-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.submit-success-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.submit-success-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.submit-success-code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--veil-cyan);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  user-select: all;
  word-break: break-all;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: var(--veil-cyan);
  color: var(--veil-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.submit-success-qr {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.submit-success-qr canvas {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: white;
  padding: 6px;
}

/* ============================
   STATIC PAGES (how-it-works, security)
   ============================ */

.static-page {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.static-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.static-page-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

.static-page-grid {
  display: grid;
  gap: 1.25rem;
}

/* Flowchart / Workflow SVG */
.workflow-svg {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.workflow-svg svg {
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* Security layer diagram */
.layer-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.layer-diagram svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Glass cards for static pages */
.static-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.static-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-glass-hover);
}

.static-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.static-card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--veil-cyan);
}

.static-card-icon.purple {
  background: rgba(112, 0, 255, 0.1);
  border-color: rgba(112, 0, 255, 0.2);
  color: var(--veil-purple);
}

.static-card-icon.green {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.15);
  color: var(--success);
}

.static-card-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--veil-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-card-body h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.static-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.static-card-body p strong {
  color: var(--text);
  font-weight: 500;
}

/* Card with internal diagram */
.diagram-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.diagram-card:hover {
  border-color: var(--glass-border-hover);
}

.diagram-card .diagram-svg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram-card .diagram-svg svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.diagram-card .diagram-text h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.diagram-card .diagram-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA card */
.static-card-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius);
}

.static-card-cta h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.static-card-cta p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

/* Connector arrow between steps */
.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0;
  color: rgba(0, 212, 255, 0.3);
}

.step-connector svg {
  width: 24px;
  height: 24px;
}

/* Two-column layout for some card grids */
.static-page-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Scroll reveal */
.static-card,
.diagram-card,
.static-card-cta,
.workflow-svg,
.layer-diagram {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.static-card.visible,
.diagram-card.visible,
.static-card-cta.visible,
.workflow-svg.visible,
.layer-diagram.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .static-page-grid-2 {
    grid-template-columns: 1fr;
  }

  .diagram-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .diagram-card .diagram-svg svg {
    max-width: 180px;
  }

  .static-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .submit-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .submit-form {
    padding: 1.25rem;
  }

  .submit-hero-title {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-sidebar {
    position: static;
  }

  .progress-step-label {
    display: none;
  }

  .progress-step {
    justify-content: center;
    padding: 0.5rem;
  }

  .security-panel {
    margin-bottom: 1rem;
  }

  .submit-success {
    margin: 2rem auto;
  }

  .submit-success-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    z-index: 100;
    background: rgba(10, 10, 10, 0.98);
  }

  .admin-sidebar.open {
    display: flex;
  }

  .topbar-datetime {
    display: none;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .monitoring-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-panel {
    width: 100%;
  }

  .admin-detail-panel[hidden] {
    display: none !important;
  }

  .admin-section-filters {
    flex-wrap: wrap;
  }

  .audit-entry {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
  }

  .audit-entry-header {
    display: none;
  }

  .audit-entry-ip {
    text-align: left;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }

  .topbar-menu-btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #main-content {
    padding: 1rem 0.75rem;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    gap: 0;
    box-shadow: var(--shadow);
    z-index: 99;
  }

  .nav-toggle:checked + .nav-hamburger + .nav-links {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1rem;
  }

  .home-hero-title {
    font-size: 1.75rem;
  }

  .home-hero-bullets {
    grid-template-columns: 1fr;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .btn {
    text-align: center;
  }

  .hero-panel {
    max-width: 300px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .steps-track {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .step-line {
    width: auto;
    padding-top: 0;
    padding: 0 0 0 18px;
  }

  .step-line-inner {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .report-form {
    padding: 1.25rem;
  }

  .drop-zone {
    padding: 1.5rem 1rem;
  }

  .file-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-header-actions {
    flex-wrap: wrap;
  }

  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
    min-width: 0;
  }

  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 500px;
  }

  .status-actions {
    flex-wrap: wrap;
  }

  .status-actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 36px;
  }

  #toast-container {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .toast {
    max-width: none;
    width: 100%;
  }

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

  .info-label {
    width: auto;
    margin-bottom: 0.25rem;
  }

  .evidence-card {
    flex-direction: column;
  }

  .login-form {
    padding: 1.25rem;
  }

  .track-form {
    padding: 1.25rem;
  }

  .track-layout {
    grid-template-columns: 1fr;
  }

  .track-search-form {
    flex-direction: column;
  }

  .track-search-input {
    text-align: center;
  }

  .track-info-grid {
    grid-template-columns: 1fr;
  }

  .track-detail-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .admin-login-page {
    max-width: none;
    margin: 0 0.5rem;
  }
}
