:root {
  --primary: #377dff;
  --primary-dark: #2563eb;
  --primary-light: #eff5ff;
  --bg-gray: #f5f4f4;
  --text-dark: #181d27;
  --text-mid: #414651;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --warn-bg: #fffbeb;
  --warn: #d97706;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: "Inter", sans-serif;
  background: white;
  color: var(--text-dark);
  min-height: 100vh;
}

.hero-section {
  background: var(--bg);
  padding: 60px 0 48px;
}
.hero-heading-block {
  text-align: center;
  margin-bottom: 36px;
}
.hero-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #181d27;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero-subtitle {
  color: #414651;
  font-size: 17px;
  font-weight: 400;
  margin: 0 auto;
  max-width: 520px;
}

.search-card-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.search-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 36px 40px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(55, 125, 255, 0.18);
}
.search-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.search-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-input {
  flex: 1;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 16px 0 44px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: var(--bg);
  width: stretch;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 110, 245, 0.12);
  background: #fff;
}
.search-input::placeholder {
  color: #9ca3af;
}
.input-icon-wrap {
  position: relative;
  flex: 1;
}
.input-icon-wrap .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 17px;
  pointer-events: none;
}
.search-btn {
  height: 52px;
  padding: 0 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(26, 110, 245, 0.35);
}
.search-btn:active {
  transform: scale(0.98);
}
.search-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.search-btn.loading .btn-text {
  display: none;
}
.search-btn.loading .spinner {
  display: block;
}

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

.hint-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hint-chip {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.hint-chip:hover {
  background: #d1e3fd;
}

.validation-msg {
  display: none;
  margin-top: 5px;
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  align-items: center;
  gap: 8px;
}
.validation-msg.show {
  display: flex;
}

#result-area {
  margin-top: 28px;
}

.result-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.result-body {
  padding: 0;
}
.details-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
}
.detail-cell {
  display: table-row;
  transition: background 0.15s;
}
.detail-cell:hover {
  background: var(--bg);
}
.detail-cell:not(:last-child) .lbl,
.detail-cell:not(:last-child) .val {
  border-bottom: 1px solid var(--border);
}
.detail-cell .lbl {
  display: table-cell;
  width: 38%;
  padding: 13px 20px 13px 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  vertical-align: middle;
  white-space: nowrap;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.detail-cell .val {
  display: table-cell;
  padding: 13px 28px 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
  vertical-align: middle;
}
.detail-cell .val.val-bold {
  font-weight: 700;
}

.result-footer {
  border-top: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fafafa;
}
.disclaimer {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-btn {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, box-shadow 0.2s;
}
.copy-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(55, 125, 255, 0.35);
}

.stats-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

.section {
  padding: 72px 0;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.65s;
  height: 100%;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.info-section {
  background: #fff;
  padding: 72px 0;
}
.info-section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.info-section-heading h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.info-section-heading p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.info-card .icon-container {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card .icon-container .icon {
  width: 22px;
  height: 22px;
}
.info-card .card-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.info-card .card-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .search-input-wrap {
    flex-direction: column;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
  }
  .search-card {
    padding: 24px 20px;
  }
  .detail-cell .lbl {
    padding: 11px 12px 11px 16px;
    font-size: 11px;
  }
  .detail-cell .val {
    padding: 11px 16px 11px 12px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .details-grid {
    display: block;
  }
  .detail-cell {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
  }
  .detail-cell .lbl,
  .detail-cell .val {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: transparent;
  }
  .detail-cell .lbl {
    margin-bottom: 3px;
  }
  .detail-cell:not(:last-child) .lbl,
  .detail-cell:not(:last-child) .val {
    border-bottom: none;
  }
}
