:root {
  --primary: #701f35;
  --primary-dark: #541526;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}

.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  display: block;
}

.brand small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.main-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.verify-card {
  background: var(--card);
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  border-top: 5px solid var(--primary);
}

.verify-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  color: var(--primary);
}

.verify-card p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.search-row {
  display: flex;
  gap: 0.6rem;
}

.input {
  flex: 1;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
}

.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-box {
  margin-top: 1.5rem;
  border-radius: 10px;
  padding: 1.25rem;
  display: none;
}

.result-valid {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  display: block;
}

.result-invalid {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.detail-grid {
  background: #fff;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  border: 1px solid #d1fae5;
  color: var(--text);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.92rem;
}

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

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  text-align: right;
  color: #111827;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

@media (max-width: 540px) {
  .verify-card {
    padding: 1.4rem 1.1rem;
  }
  .search-row {
    flex-direction: column;
  }
  .detail-row {
    flex-direction: column;
    gap: 0.15rem;
  }
  .detail-row strong {
    text-align: left;
  }
}
