/* Maps Business Finder — marketing site */
:root {
  --bg: #0b1220;
  --bg-card: #111a2e;
  --bg-elevated: #162036;
  --text: #e8edf7;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #22c55e;
  --border: #1e293b;
  --warning: #f59e0b;
  --vip: #a855f7;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: #1e2d4a; color: var(--text); }

.btn-chrome {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 28px;
}

.btn-chrome:hover { color: #fff; filter: brightness(1.05); }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin: 0 auto 14px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--vip);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3), var(--shadow);
}

.price-card .tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-card.featured .tier { color: #c4b5fd; }

.price-card .amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card .period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.price-features li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.price-features li.disabled::before {
  content: '— ';
  color: #64748b;
}

.price-features li.disabled {
  opacity: 0.55;
}

/* Download box */
.download-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
}

.download-box h1 { margin-bottom: 12px; }

.download-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.download-note {
  margin-top: 24px;
  padding: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  font-size: 0.88rem;
  color: #fcd34d;
  text-align: left;
}

/* Auth forms */
.auth-wrap {
  max-width: 420px;
  margin: 48px auto 64px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select,
.admin-toolbar select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.admin-toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-wrap--wide {
  max-width: 560px;
}

.req {
  color: #f87171;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.captcha-image {
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #f8fafc;
  flex-shrink: 0;
}

.captcha-refresh {
  padding: 10px 12px;
  min-width: 44px;
  font-size: 1.1rem;
  line-height: 1;
}

.captcha-input {
  flex: 1;
  min-width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.captcha-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.form-success.visible { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Account */
.account-card {
  max-width: 520px;
  margin: 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.account-row span:first-child { color: var(--text-muted); }

.badge-tier {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-free {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.badge-vip {
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p { margin-bottom: 8px; }

/* User menu */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin messages */
.admin-page {
  padding-bottom: 48px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 24px 0 20px;
}

.admin-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 160px;
}

.admin-toolbar select {
  width: auto;
  min-width: 160px;
}

.admin-loading,
.admin-empty {
  color: var(--text-muted);
  padding: 24px 0;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.admin-card h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.admin-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-card__body {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-card__reply {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
}

.admin-reply-label {
  font-size: 0.8rem;
  color: #86efac;
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-reply-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-reply-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

.admin-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.badge-msg {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-open {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.badge-replied {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.badge-tech {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.badge-payment {
  background: rgba(168, 85, 247, 0.18);
  color: #c4b5fd;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.admin-tab {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-elevated);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-empty-cell {
  color: var(--text-muted);
  text-align: center !important;
  padding: 28px !important;
}

.admin-detail {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-detail h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; }
  .hero { padding-top: 48px; }
}
