/* Where Can I Spend Crypto? — style.css */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #0d1117;
  --bg-alt:       #161b22;
  --bg-card:      #161b22;
  --bg-card-hover:#1c2128;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --accent:       #f7931a;
  --accent-hover: #e08312;
  --border:       #30363d;
  --nav-height:   60px;
  --max-width:    1200px;
  --radius:       10px;
  --transition:   0.15s ease;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-muted); line-height: 1.7; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── NAV ────────────────────────────────────────────────── */
#nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo i { color: var(--accent); font-size: 1.1rem; }
.nav-submit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  transition: color var(--transition), border-color var(--transition);
}
.nav-submit:hover { color: var(--text); border-color: var(--text-muted); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  text-align: center;
  background: var(--bg);
}
.hero h1 { color: var(--text); margin-bottom: 0.875rem; }
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── FILTERS ────────────────────────────────────────────── */
.filters-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 2rem;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cat-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cat-pill {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cat-pill:hover { color: var(--text); border-color: var(--text-muted); }
.cat-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cry-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.cry-pill {
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  opacity: 0.35;
  transition: opacity var(--transition);
}
.cry-pill.active { opacity: 1; }
.cry-pill.btc  { background: rgba(247,147,26,0.15);  color: #f7931a; border-color: rgba(247,147,26,0.3); }
.cry-pill.eth  { background: rgba(98,126,234,0.15);  color: #627eea; border-color: rgba(98,126,234,0.3); }
.cry-pill.ltc  { background: rgba(74,144,217,0.15);  color: #4a90d9; border-color: rgba(74,144,217,0.3); }
.cry-pill.doge { background: rgba(195,166,52,0.15);  color: #c3a634; border-color: rgba(195,166,52,0.3); }
.cry-pill.usdc { background: rgba(39,117,202,0.15);  color: #2775ca; border-color: rgba(39,117,202,0.3); }

.result-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 8px;
}
.result-count span { color: var(--text); font-weight: 600; }

/* ─── DIRECTORY ──────────────────────────────────────────── */
.directory-wrap { padding-bottom: 80px; }

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .merchants-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .merchants-grid { grid-template-columns: 1fr; } }

/* ─── MERCHANT CARD ──────────────────────────────────────── */
.merchant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.merchant-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(247,147,26,0.3);
  transform: translateY(-2px);
}
.card-top {
  padding: 1.375rem 1.5rem 1rem;
  flex: 1;
}
.card-top h3 { color: var(--text); margin: 0.5rem 0 0.5rem; }
.card-top p  { font-size: 0.875rem; }
.card-bottom {
  padding: 1rem 1.5rem 1.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}

/* Category tag */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 4px;
  padding: 3px 8px;
}
.cat-tag.online-retail  { background: rgba(129,140,248,0.12); color: #818cf8; }
.cat-tag.food-drink     { background: rgba(52,211,153,0.12);  color: #34d399; }
.cat-tag.travel         { background: rgba(34,211,238,0.12);  color: #22d3ee; }
.cat-tag.entertainment  { background: rgba(251,191,36,0.12);  color: #fbbf24; }
.cat-tag.gift-cards     { background: rgba(248,113,113,0.12); color: #f87171; }
.cat-tag.tech-software  { background: rgba(52,211,235,0.12);  color: #34d3eb; }

/* Crypto badges */
.crypto-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
}
.badge.btc  { background: rgba(247,147,26,0.15);  color: #f7931a; }
.badge.eth  { background: rgba(98,126,234,0.15);  color: #627eea; }
.badge.ltc  { background: rgba(74,144,217,0.15);  color: #4a90d9; }
.badge.doge { background: rgba(195,166,52,0.15);  color: #c3a634; }
.badge.usdc { background: rgba(39,117,202,0.15);  color: #2775ca; }

/* Visit button */
.visit-btn {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(247,147,26,0.1);
  border-radius: 6px;
  padding: 5px 12px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.visit-btn:hover { background: var(--accent); color: #fff; }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; color: var(--border); margin-bottom: 1rem; display: block; }
.empty-state p { margin-bottom: 1.25rem; }
.reset-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.reset-btn:hover { background: var(--accent-hover); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { font-size: 0.875rem; }
.footer-note { font-size: 0.875rem; }
.footer-note a { color: var(--accent); }
.footer-note a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .filter-row { gap: 0.75rem; }
  .cry-pills { margin-left: 0; }
}

/* ─── SUBMIT PAGE ────────────────────────────────────── */
.hero-sm { padding: calc(var(--nav-height) + 48px) 0 40px; }
.hero h1 span { color: var(--accent); }

/* Active nav link */
.nav-submit-active {
  color: var(--accent);
  border-color: var(--accent);
}

/* Pricing banner */
.pricing-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.pricing-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pricing-feature {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pricing-feature i { color: #3fb950; }
.pricing-price {
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.pricing-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Submit layout */
.submit-wrap {
  padding: 2.5rem 0 80px;
}

/* Steps bar */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity var(--transition);
}
.step.active { opacity: 1; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.step.active .step-num {
  background: var(--accent);
  color: #fff;
}
.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step.active .step-label { color: var(--text); }
.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
}

/* Submit card */
.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.submit-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.submit-card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Form elements */
.form-row { margin-bottom: 1.25rem; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; line-height: 1.6; }

.field-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1em;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #f87171; }

.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Crypto checkboxes */
.crypto-checks {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 4px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Next button */
.btn-next {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}
.btn-next:hover { background: var(--accent-hover); }

/* Back button */
.back-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--text); }

/* Order summary */
.order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-total { padding-top: 0.6rem; }
.summary-label { color: var(--text-muted); }
.summary-val { color: var(--text); font-weight: 500; word-break: break-all; }
.summary-total .summary-val { color: var(--accent); font-size: 1rem; font-weight: 700; }

/* Payment tabs */
.pay-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.pay-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
}
.pay-tab:hover { color: var(--text); }
.pay-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Payment panels */
.pay-panel { padding-top: 0.75rem; }
.pay-panel-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Stripe button */
.btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  transition: background var(--transition), color var(--transition);
}
.btn-stripe {
  background: #635bff;
  color: #fff;
}
.btn-stripe:hover { background: #4f46e5; }

/* Crypto address block */
.crypto-addr-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.crypto-addr-tabs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.crypto-addr-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 14px;
  transition: all var(--transition);
}
.crypto-addr-tab:hover { color: var(--text); border-color: var(--text-muted); }
.crypto-addr-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.coin-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.addr-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.addr-val {
  flex: 1;
  font-size: 0.8125rem;
  font-family: 'Courier New', monospace;
  color: var(--text);
  word-break: break-all;
}
.copy-btn {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  transition: all var(--transition);
}
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }
.copy-btn.copied { color: #3fb950; border-color: #3fb950; }

.pay-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}
.pay-note a { color: var(--accent); }
.pay-note a:hover { text-decoration: underline; }

/* After-payment note */
.paid-note {
  margin-top: 1.5rem;
  background: rgba(247,147,26,0.08);
  border: 1px solid rgba(247,147,26,0.2);
  border-radius: 6px;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.6;
}
.paid-note i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.paid-note a { color: var(--accent); }
.paid-note a:hover { text-decoration: underline; }

/* Submit page responsive */
@media (max-width: 640px) {
  .submit-card { padding: 1.5rem 1.25rem; }
  .form-row.two-col { grid-template-columns: 1fr; gap: 0; }
  .pricing-banner-inner { gap: 0.875rem; }
  .pricing-price { margin-left: 0; }
}
