@font-face {
  font-family: "SpaceGrotesk";
  src: local("Space Grotesk"), local("SpaceGrotesk");
  font-weight: 300 700;
}

:root {
  --glass: rgba(24, 30, 44, 0.55);
  --glass-strong: rgba(16, 22, 34, 0.72);
  --text: #f4f6fb;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #c7d7ff;
  --stroke: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SpaceGrotesk", "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.page-index {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), rgba(13, 18, 35, 0.16)),
    url("/static/01.png") center/cover no-repeat fixed;
}

.page-checker {
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.3), rgba(13, 18, 35, 0.18)),
    url("/static/02.JPG") right center/cover no-repeat fixed;
}

.index-shell {
  min-height: 100vh;
  padding: 48px 72px 64px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.index-main {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.app-shell {
  min-height: 100vh;
  padding: 32px 48px 40px;
  backdrop-filter: blur(1px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 700;
  color: #ffffff;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-sub {
  font-size: 12px;
  color: rgba(101, 101, 101, 0.65);
  max-width: 560px;
  line-height: 1.4;
}

.gk-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  outline: none;
}

.gk-indicator {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--stroke);
}

.gk-indicator.active {
  background: #9fe1c1;
  border-color: rgba(159, 225, 193, 0.7);
}

.gk-action {
  font-size: 12px;
  color: rgba(244, 246, 251, 0.85);
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.content {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input {
  flex: 1;
  height: 44px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0 48px 0 18px;
  color: var(--text);
  font-size: 15px;
}

.search-input::placeholder {
  color: rgba(244, 246, 251, 0.7);
}

.search-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  cursor: pointer;
  position: relative;
}

.search-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--muted);
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn.primary {
  background: rgba(255, 255, 255, 0.85);
  color: #0c1224;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--stroke);
}

.btn:hover {
  transform: translateY(-1px);
}

.panel {
  /*background: var(--glass-strong);*/
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(
          135deg,
          rgba(0, 0, 0, 0.5),
          rgba(21, 35, 76, 0.5)
  );
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.table-panel {
  min-height: 160px;
}

.passport-dashboard {
  width: 100%;
}

.passport-panel {
  width: 100%;
}

.panel-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.6);
  margin-bottom: 18px;
}

.page-index .passport-card {
  padding: 26px 30px;
}

.page-index .passport-meta {
  gap: 18px;
}

.page-index .passport-field {
  padding: 14px 16px;
}

.page-index .passport-mrz {
  margin-top: 20px;
}

.passport-meta-wide {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
}

.passport-field-wide {
  grid-column: span 1;
}

.passport-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.passport-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.passport-chip-btn {
  background: rgba(8, 12, 20, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.table-head {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 246, 251, 0.78);
  border-bottom: 1px solid var(--stroke);
}

.table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

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

.table-body .empty {
  padding: 32px 12px;
  color: var(--muted);
}

.detail-panel {
  min-height: 320px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 12px;
}

.detail-title {
  font-size: 18px;
  font-weight: 600;
}

.detail-sub {
  font-size: 13px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-table {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 80px 80px;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 10px;
}

.detail-row input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
}

.detail-row input[readonly] {
  color: var(--muted);
}

.detail-row .value-mask {
  font-family: "SF Mono", "JetBrains Mono", monospace;
}

.detail-empty {
  padding: 24px 8px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.5);
  backdrop-filter: blur(2px);
}

.modal.active {
  display: flex;
}

.modal-card {
  width: min(420px, 90vw);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.modal-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: var(--text);
}

.modal-body input::placeholder {
  color: rgba(244, 246, 251, 0.75);
}

.otp-qr {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
}

.otp-hint {
  font-size: 12px;
  color: var(--muted);
}

.modal-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(20, 24, 36, 0.8);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.checker-shell {
  min-height: 100vh;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passport-card {
  width: min(620px, 78vw);
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(
          135deg,
          rgba(71, 110, 77, 0.5),
          rgba(65, 74, 96, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(10, 16, 30, 0.45);
  position: relative;
  overflow: hidden;
}

.passport-center {
  margin: auto;
}

.passport-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 6px
    ),
    radial-gradient(circle at 10% 20%, rgba(120, 180, 255, 0.18), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.passport-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.passport-mark {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.7);
}

.passport-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(240, 200, 120, 0.9), rgba(120, 80, 30, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.passport-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.passport-field {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
}

.passport-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.6);
}

.passport-value {
  margin-top: 6px;
  font-size: 14px;
  font-family: "SF Mono", "JetBrains Mono", monospace;
  color: rgba(244, 246, 251, 0.95);
  word-break: break-all;
}

.passport-mrz {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(244, 246, 251, 0.7);
  position: relative;
  z-index: 1;
}

.mrz-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.passport-action {
  margin-top: 16px;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.checker-timer {
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}

.checker-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.checker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: rgba(20, 26, 40, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-width: min(520px, 90vw);
}

.checker-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: url("/static/03.png") center/cover no-repeat;

}

.checker-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.checker-otp {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.checker-form input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: var(--text);
}

.checker-otp input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: var(--text);
}

.checker-status {
  color: rgba(244, 246, 251, 0.85);
}

.checker-warning {
  font-size: 12px;
  color: rgba(244, 246, 251, 0.75);
}

@media (max-width: 900px) {
  .app-shell {
    padding: 24px;
  }

  .table-head,
  .table-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .table-head .action,
  .table-row .action {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .checker-shell {
    padding: 24px 18px;
  }

  .passport-card {
    width: 100%;
  }

  .passport-meta {
    grid-template-columns: 1fr;
  }

  .checker-form {
    flex-direction: column;
  }

  .checker-form button {
    width: 100%;
  }

  .index-shell {
    padding: 28px 18px 40px;
  }

  .passport-meta-wide {
    grid-template-columns: 1fr;
  }

  .passport-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .passport-actions .btn {
    flex: 1 1 100%;
  }
}
