@font-face {
  font-family: "StrayPartsTitle";
  src:
    url("/fonts/itc-motter-corpus-semicondensed.woff2") format("woff2"),
    url("/fonts/itc-motter-corpus-semibold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ede8d0;
  --text: #222;
  --muted: #666;
  --muted-light: #888;
  --border: #d6d1b9;
  --brand: #a42a0e;
  --brand-hover: #c43c1d;
  --pill: #d6d1b9;
  --pill-hover: #cfc8aa;
  --card: #1b1b1b;
  --card-soft: #2a2a2a;
  --card-text: #fff;
  --card-muted: #aaa;
  --banner: #f4efe0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

h1,
h2 {
  font-family: "StrayPartsTitle", Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

a:hover {
  color: var(--brand-hover);
}

button {
  padding: 14px 20px;
  font-size: 18px;
  border: none;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: var(--brand-hover);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.page-narrow {
  max-width: 940px;
  margin: 0 auto;
}

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

.logo-wrap img {
  height: 72px;
  width: auto;
  display: block;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-bar a,
.account-bar button,
.account-bar span {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.account-bar a:hover,
.account-bar button:hover {
  color: var(--brand-hover);
}

.account-bar .active-link {
  color: var(--text);
  font-weight: bold;
  cursor: default;
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  margin: 0 auto;
  text-align: center;
}

.hero-logo img {
  width: min(500px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.1;
}

.hero p,
.subtext,
.page-intro {
  color: #555;
  margin: 0;
  font-size: 16px;
}

.search-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input,
input[type="text"],
input[type="email"],
input[type="password"],
input:not([type]),
textarea,
select {
  width: 420px;
  max-width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  background: #fff;
}

.search-btn {
  padding: 14px 22px;
}

.secondary-btn,
.btn-secondary {
  background: #2a2a2a;
  color: white;
}

.secondary-btn:hover,
.btn-secondary:hover {
  background: #3a3a3a;
}

.divider {
  margin: 40px auto;
  width: min(680px, 100%);
  border: 0;
  border-top: 1px solid var(--border);
}

.results {
  margin-top: 10px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0 0 24px 0;
}

.tab-btn {
  background: var(--pill);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}

.tab-btn:hover {
  background: var(--pill-hover);
}

.tab-btn.active {
  background: var(--brand);
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section-title {
  text-align: left;
  font-size: 22px;
  margin: 30px 0 12px 0;
}

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

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  color: var(--card-text);
}

.card-column {
  flex-direction: column;
}

.dashboard-card {
  background: var(--card);
  color: var(--card-text);
  border-radius: 16px;
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card h2,
.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.thumb {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: var(--card-soft);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.content {
  flex: 1;
}

.title {
  font-size: 19px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: var(--card-text);
}

.price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--card-text);
}

.meta,
.muted {
  color: var(--card-muted);
  font-size: 14px;
  line-height: 1.6;
}

.plan-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.email {
  color: #c9c9c9;
  font-size: 14px;
  margin-top: 8px;
  word-break: break-word;
}

.btn,
.button-link {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn:hover,
.button-link:hover {
  background: var(--brand-hover);
  color: white;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.source-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  color: white;
}

.source-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.success-banner {
  background: var(--banner);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.inline-actions {
  margin-top: 12px;
}

footer.site-footer {
  margin-top: 80px;
  padding: 30px 20px 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto 14px;
  max-width: 760px;
  line-height: 1.6;
}

.footer-nav {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--brand);
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--brand-hover);
}

.footer-meta {
  color: var(--muted-light);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .account-bar {
    justify-content: flex-start;
  }

  h1 {
    font-size: 30px;
  }

  .search-wrap {
    flex-direction: column;
  }

  .search-wrap input,
  .search-wrap button,
  .search-input {
    width: 100%;
  }

  .card {
    flex-direction: column;
  }

  .thumb {
    width: 100%;
    height: 220px;
  }

  .dashboard-card {
    min-height: auto;
  }

  .footer-nav a {
    margin: 6px 10px;
  }
}
