:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --bg-mint: #e8f8ef;
  --card: rgba(255, 255, 255, 0.92);
  --card-border: rgba(10, 116, 68, 0.12);
  --text: #1a2b24;
  --muted: #5f6f67;
  --label: #7a8a82;
  --accent: #0a7444;
  --danger: #c62828;
  --danger-bg: #fff5f5;
  --danger-border: rgba(198, 40, 40, 0.18);
  --divider: rgba(10, 116, 68, 0.14);
  --shadow: 0 18px 48px rgba(26, 43, 36, 0.1);
  --wave: rgba(10, 116, 68, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(165deg, #fdfefe 0%, var(--bg-mint) 42%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wave {
  position: absolute;
  width: 100%;
  color: var(--wave);
}

.wave-bottom {
  bottom: 0;
  height: 200px;
  color: rgba(10, 116, 68, 0.12);
}

.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.main-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.details-card {
  width: min(420px, 100%);
  min-height: 480px;
  padding: 28px 24px 56px;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.details-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #0a7444, #3ecf8e, #0a7444);
}

.state-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 8px;
}

.state-icon {
  width: 32px;
  height: 32px;
}

.state-text {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.state-panel.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 16px;
  padding: 28px 20px;
}

.error-message {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5c3d3d;
  max-width: 28ch;
}

.hidden {
  display: none !important;
}

.id-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  animation: fadeIn 0.35s ease;
}

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

.id-section {
  margin-top: 18px;
}

.id-section:first-child {
  margin-top: 4px;
}

.id-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}

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

.id-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 4px;
}

.id-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.id-value.is-highlight {
  font-size: 1.2rem;
  color: var(--accent);
}

.footer-container {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.footer-container img{
  width: 80px;
  height: auto;
}

@media (max-width: 480px) {
  .details-card {
    width: 100%;
    min-height: 440px;
    padding-inline: 20px;
  }

  .main-title {
    font-size: 1.6rem;
  }
}
