:root {
  --brand: #ff6700;
  --brand-dark: #e45c00;
  --brand-soft: #fff4ec;
  --brand-soft-2: #fff8f3;
  --text: #1f2937;
  --text-dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1e3d8;
  --bg: #fff7f2;
  --white: #ffffff;
  --success: #0f9d58;
  --danger: #c2410c;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
  --shadow-lg: 0 18px 60px rgba(17, 24, 39, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 45%, #fffaf6 100%);
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* Common layout */
.public-wrap,
.admin-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero-card,
.verify-card,
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.subtext,
.helper {
  color: var(--muted);
}

/* Forms and buttons */
.verify-form,
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.verify-form input,
.search-row input,
.admin-form input,
.admin-form select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.verify-form input:focus,
.search-row input:focus,
.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 103, 0, 0.1);
}

.verify-form input {
  flex: 1 1 440px;
}

button,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.2s ease;
}

button {
  background: var(--brand);
  color: #fff;
}

button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.secondary-btn {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #ffd3b4;
}

.secondary-btn:hover {
  text-decoration: none;
  background: #fff4ec;
}

/* Existing utility blocks */
.verify-top,
.admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.verified {
  background: #e8f7ee;
  color: var(--success);
}

.invalidated {
  background: #fff0e8;
  color: var(--danger);
}

.not-verified {
  background: #f3f4f6;
  color: #4b5563;
}

.details-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.detail-item,
.stat-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.detail-item span,
.stat-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-item strong,
.stat-box strong {
  font-size: 18px;
  line-height: 1.4;
}

.verify-actions,
.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.verify-actions {
  margin-top: 24px;
}

.not-found-box {
  border: 1px dashed #fdba74;
  background: #fffaf5;
  border-radius: 18px;
  padding: 24px;
}

/* Admin form */
.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600 !important;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert.success {
  background: #e8f7ee;
  color: var(--success);
}

.alert.error {
  background: #fff0e8;
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.qr-preview-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.qr-preview-box img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.qr-preview-meta h3 {
  margin: 0 0 8px;
  color: var(--text-dark);
}

/* Public verification page */
.verify-page {
  min-height: 100vh;
  padding: 48px 20px;
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 45%, #fffaf6 100%);
}

.verify-hero-section,
.verify-result-section {
  max-width: 1100px;
  margin: 0 auto;
}

.verify-hero-card,
.verify-result-card {
  background: var(--white);
  border: 1px solid rgba(255, 103, 0, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.verify-hero-top,
.verify-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.verify-logo-badge {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6700 0%, #ff8a33 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
  box-shadow: 0 14px 30px rgba(255, 103, 0, 0.25);
}

.verify-hero-text,
.verify-result-heading {
  flex: 1;
}

.verify-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.verify-hero-text h1,
.verify-result-heading h1 {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
}

.verify-description {
  margin: 0;
  color: #5b6472;
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
}

.verify-search-form {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #f3dfd1;
  border-radius: 20px;
  background: #fffaf7;
}

.verify-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.verify-input-group {
  display: flex;
  gap: 12px;
}

.verify-input-group input {
  flex: 1;
  height: 56px;
  border: 1px solid #e6dccf;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--text-dark);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.verify-input-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 103, 0, 0.1);
}

.verify-input-group button,
.verify-btn {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  background: var(--brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.verify-input-group button:hover,
.verify-btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.verify-helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.verify-inline-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.verify-inline-note a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.verify-status-wrap {
  flex-shrink: 0;
}

.verify-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verify-status-badge.verified,
.verify-summary-banner.verified {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.verify-status-badge.invalidated,
.verify-summary-banner.invalidated {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.verify-status-badge.not-verified,
.verify-summary-banner.not-verified {
  background: rgba(107, 114, 128, 0.12);
  color: #374151;
}

.verify-summary-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 28px;
}

.verify-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.verify-summary-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.verify-summary-content p {
  margin: 0;
  line-height: 1.7;
}

.verify-details-panel {
  border: 1px solid #f2e5da;
  border-radius: 22px;
  padding: 28px;
  background: #fffdfa;
}

.verify-panel-head {
  margin-bottom: 22px;
}

.verify-panel-head h2 {
  margin: 0 0 6px;
  color: var(--text-dark);
  font-size: 24px;
}

.verify-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.verify-detail-card {
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f1e3d8;
}

.verify-detail-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.verify-detail-card strong {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-word;
}

.verify-empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed #e7d7ca;
  border-radius: 20px;
  background: #fffaf7;
}

.verify-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 103, 0, 0.12);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.verify-empty-state h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--text-dark);
}

.verify-empty-state p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

/* Header */
.site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand-text strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.site-brand-text span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.2;
}

/* Centered public header */
.site-header-centered {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  padding-top: 18px;
}

.site-header-inner-centered {
  justify-content: center;
}

.site-brand-centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.site-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-brand-logo {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.site-brand-text-centered {
  align-items: center;
  text-align: center;
}

.site-brand-text-centered strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.site-brand-text-centered span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  padding: 28px 20px 34px;
}

.site-footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #eee3da;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-inner p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-inner-centered {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 6px;
}

/* Admin UI */
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-page-head h1 {
  margin-bottom: 8px;
  color: var(--text-dark);
}

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

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.admin-stat-card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.admin-stat-card.active {
  border-color: rgba(15, 157, 88, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
}

.admin-stat-card.invalid {
  border-color: rgba(194, 65, 12, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fff9f5 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.record-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff4ec;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.admin-search-form {
  margin-top: 6px;
}

.admin-search-input-wrap {
  display: flex;
  gap: 12px;
}

.admin-search-input-wrap input {
  flex: 1;
  height: 54px;
  border: 1px solid #d8dde5;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
}

.admin-search-input-wrap button {
  min-width: 140px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 780px;
}

.admin-table thead th {
  background: #fffaf7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 16px 14px;
}

.admin-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.admin-table tbody tr:hover td {
  background: #fffaf6;
}

.cell-title {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

.table-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

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

.table-muted {
  color: var(--muted);
  font-size: 14px;
}

.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-status.active {
  background: #e8f7ee;
  color: var(--success);
}

.table-status.invalidated {
  background: #fff0e8;
  color: var(--danger);
}

.table-empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 12px;
}

.table-empty-state strong {
  color: var(--text-dark);
  font-size: 18px;
}

.table-empty-state span {
  color: var(--muted);
  font-size: 14px;
}

.admin-form-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-2col label {
  display: grid;
  gap: 8px;
}

.form-full-width,
.form-actions-full {
  grid-column: 1 / -1;
}

.form-actions-full {
  margin-top: 4px;
}

.form-actions-full button {
  min-width: 220px;
}

.admin-checkbox-card {
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fffaf7;
}

.admin-checkbox-card span {
  color: var(--text-dark);
  font-weight: 600;
}

.admin-auth-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.admin-auth-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid rgba(255, 103, 0, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 34px;
}

.admin-auth-top {
  margin-bottom: 22px;
  text-align: center;
}

.admin-auth-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6700 0%, #ff8a33 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(255, 103, 0, 0.24);
}

.admin-auth-top h1 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.admin-auth-footer-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1e6dc;
  text-align: center;
}

.admin-auth-footer-note span {
  color: var(--muted);
  font-size: 14px;
}

/* Centered verify content */
.verify-hero-top-centered,
.verify-result-header-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.verify-hero-text-centered,
.verify-result-heading-centered {
  text-align: center;
}

.verify-hero-text-centered .verify-description,
.verify-result-heading-centered .verify-description {
  margin-left: auto;
  margin-right: auto;
}

.verify-result-header-centered .verify-status-wrap {
  margin-top: 4px;
}

.verify-bottom-actions {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .verify-hero-top,
  .verify-result-header,
  .verify-top,
  .admin-bar,
  .admin-page-head,
  .section-head {
    flex-direction: column;
  }

  .verify-hero-text h1,
  .verify-result-heading h1 {
    font-size: 32px;
  }

  .verify-info-grid,
  .verify-details-grid,
  .admin-stats-grid,
  .admin-form-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .public-wrap,
  .admin-wrap {
    margin: 20px auto;
    width: min(100% - 20px, 1100px);
  }

  .hero-card,
  .verify-card,
  .admin-card {
    padding: 20px;
    border-radius: 18px;
  }

  .verify-page {
    padding: 24px 14px;
  }

  .verify-hero-card,
  .verify-result-card {
    padding: 22px;
    border-radius: 18px;
  }

  .verify-hero-text h1,
  .verify-result-heading h1 {
    font-size: 28px;
  }

  .verify-search-form {
    padding: 18px;
  }

  .verify-input-group,
  .admin-search-input-wrap {
    flex-direction: column;
  }

  .verify-input-group button,
  .verify-btn,
  .admin-search-input-wrap button,
  .form-actions-full button {
    width: 100%;
  }

  .verify-details-panel {
    padding: 20px;
  }

  .verify-detail-card strong {
    font-size: 16px;
  }

  .verify-actions,
  .top-actions {
    flex-direction: column;
  }

  .site-header-inner {
    width: min(100% - 20px, 1180px);
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: center;
  }

  .site-brand-logo {
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
  }

  .site-brand-text-centered strong {
    font-size: 16px;
  }

  .site-brand-text-centered span {
    font-size: 12px;
  }

  .site-footer {
    padding: 20px 14px 28px;
  }

  .site-footer-inner {
    width: min(100% - 20px, 1100px);
    flex-direction: column;
  }

  .admin-auth-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .admin-table,
  table {
    min-width: 680px;
  }
}
.form-section-title {
  grid-column: 1 / -1;
  margin-top: 8px;
  margin-bottom: -4px;
  padding-top: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid #f1e3d8;
}

.form-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.admin-auth-top {
  margin-bottom: 22px;
  text-align: center;
}

.admin-auth-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.admin-auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.admin-auth-top h1 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .admin-auth-logo {
    width: 58px;
    height: 58px;
  }
}
