:root {
  --bg: #0b0b0e;
  --panel: #151519;
  --panel-2: #1d1d23;
  --border: #2b2b33;
  --text: #f3f3f6;
  --sub: #aaaab6;
  --muted: #747482;
  --purple: #9147ff;
  --green: #25d0a4;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(145, 71, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #09090d 0%, var(--bg) 42%, #050507 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: #0a0a0d;
}

.brand,
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 25px;
  height: 25px;
}

.brand b {
  font-size: 0.92rem;
}

.project-link {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid rgba(145, 71, 255, 0.55);
  border-radius: 6px;
  background: rgba(145, 71, 255, 0.12);
  color: #e3d5ff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: rgba(199, 168, 255, 0.9);
  background: rgba(145, 71, 255, 0.22);
  color: #fff;
}

main {
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 34px;
}

.lookup {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(145, 71, 255, 0.35));
}

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

h1 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.lookup > p {
  max-width: 500px;
  margin-bottom: 20px;
  color: var(--sub);
}

.auth-card,
.status-line,
.price-section,
.example-section,
.form-section {
  width: 100%;
}

.auth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.auth-card strong {
  display: block;
  font-size: 1rem;
}

.auth-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pill {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--sub);
  font-size: 0.78rem;
  white-space: nowrap;
}

.primary-button,
.search button {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--purple);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  padding: 0 14px;
}

.search {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-bottom: 10px;
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

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

.search button {
  padding: 0 16px;
}

.status-line {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--sub);
  font-size: 0.86rem;
  text-align: left;
}

.price-section,
.example-section,
.form-section {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.section-heading span,
#price-count-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.price-card {
  display: grid;
  min-height: 172px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.price-card:hover {
  background: var(--panel-2);
}

.price-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.price-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.price {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(145, 71, 255, 0.14);
  color: #c7a8ff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.price-card p {
  margin: 10px 0;
  color: var(--sub);
  font-size: 0.84rem;
  line-height: 1.45;
}

.price-card small {
  align-self: end;
  color: var(--muted);
  font-size: 0.72rem;
}

.example-list {
  display: grid;
  gap: 8px;
}

.example-list article {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.example-list strong,
.example-list small {
  display: block;
}

.example-list strong {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.example-list small {
  color: var(--muted);
  font-size: 0.8rem;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.order-form label {
  display: grid;
  gap: 6px;
  text-align: left;
}

.order-form span {
  color: var(--sub);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #101014;
  color: var(--text);
  outline: none;
}

.order-form input,
.order-form select {
  min-height: 42px;
  padding: 0 12px;
}

.order-form textarea {
  min-height: 122px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.4;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--purple);
}

.order-form .wide {
  grid-column: 1 / -1;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 26px;
  text-align: center;
}

.site-footer p {
  display: inline-flex;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--sub);
  font-size: 0.8rem;
  font-weight: 750;
}

@media (max-width: 620px) {
  .nav,
  .auth-card,
  .auth-actions,
  .search {
    align-items: stretch;
    flex-direction: column;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .project-link,
  .primary-button,
  .search button {
    width: 100%;
  }
}
