/* Terrific Tacos App Styles */
:root {
  --bg-primary: #121415;
  --bg-secondary: #1a1e20;
  --bg-card: #22282a;
  --bg-card-hover: #293033;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.4);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-gold: #f59e0b;
  --accent-orange: #ea580c;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-teal: #06b6d4;

  --sponsor-gold: #fbbf24;
  --verified-badge: #10b981;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Top Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 21, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.brand-icon {
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.nav-link {
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--accent-gold); font-weight: 600; }
.btn-header.active { box-shadow: 0 0 0 2px var(--accent-gold); }

@media (max-width: 640px) {
  .header { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .nav-links { gap: 12px; flex-wrap: wrap; font-size: 13px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-note { margin-top: 6px; max-width: 560px; margin-left: auto; margin-right: auto; }
.footer-links { margin-top: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a.footer-accent { color: var(--accent-gold); }

/* Forms */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font: inherit;
  font-size: 14px;
}
.form-input:focus { outline: 2px solid var(--accent-gold); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.flash {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 14px;
  text-align: center;
}

.btn-header {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #000;
  border: 0;
  cursor: pointer;
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 40px 24px 28px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

/* Filter Controls */
.filter-bar {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.pill-btn:hover { color: var(--text-main); border-color: rgba(255,255,255,0.2); }
.pill-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill-btn:has(input:focus-visible) { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 4px;
}
.badge-live {
  color: #4ade80;
  font-weight: 600;
}
.pill-btn.pill-live:has(input:checked) {
  background: rgba(74, 222, 128, 0.12);
  border-color: #4ade80;
  color: #4ade80;
  font-weight: 600;
}
.pill-btn:has(input:checked),
.pill-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Cards Grid */
.cards-grid {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.taco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.taco-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}

.taco-card.featured-sponsor {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.card-top {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-featured {
  background: var(--accent-gold);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-unverified {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.card-rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
}

.card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.deal-highlight {
  margin: 6px 18px 12px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fef3c7;
}

.hh-row {
  padding: 0 18px 12px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hh-drink { color: #67e8f9; }

.card-tags {
  padding: 0 18px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Detail Page */
.detail-container {
  max-width: 800px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.detail-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.deals-section, .reviews-section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deal-item.pro-perk {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.deal-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Crawl & Voting Page */
.crawl-container {
  max-width: 680px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.vote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vote-count {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  min-width: 44px;
  text-align: center;
}

/* Monetization Pricing Tables */
.pricing-grid {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.popular {
  border: 2px solid var(--accent-gold);
  background: rgba(245, 158, 11, 0.04);
}

.tier-price {
  font-size: 36px;
  font-weight: 900;
  margin: 12px 0 4px;
  color: #fff;
}
.tier-period { font-size: 14px; color: var(--text-muted); font-weight: 400; }

.tier-features {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.tier-features li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tier-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.roi-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .roi-grid { grid-template-columns: 1fr; } }

/* Admin */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--text-dim); font-weight: 600; }
.admin-table a { color: var(--accent-gold); }

.badge-owner {
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.3);
  color: #67e8f9;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Simple single-column pages (sign-in, dashboard) */
.narrow-page { max-width: 560px; margin: 36px auto 60px; padding: 0 16px; }
.narrow-page.wide { max-width: 860px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-lede { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.link-accent { color: var(--accent-gold); text-decoration: underline; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 15px; font-weight: 700; border-radius: 8px; text-align: center; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.form-hint code, .page-lede code { font-family: var(--font-mono); color: var(--text-muted); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dash-section { margin-top: 28px; }
.dash-tiers { padding: 0; margin: 0; }
.tier-name { font-size: 20px; font-weight: 700; }
.approve-form { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.approve-form .btn-primary { padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }

/* Page-specific styles (moved out of inline style attributes) */
.vote-main { flex: 1; }
.vote-title-row { display: flex; align-items: center; gap: 8px; }
.vote-name { font-weight: 700; font-size: 17px; color: #fff; text-decoration: underline; }
.meta-dim { font-size: 12px; color: var(--text-dim); }
.vote-taco { font-size: 13px; color: var(--accent-gold); margin-top: 4px; }
.vote-drink { font-size: 12px; color: #67e8f9; margin-top: 2px; }
.vote-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-top: 12px; overflow: hidden; max-width: 320px; }
.vote-side { display: flex; align-items: center; gap: 12px; }
.vote-unit { font-size: 11px; font-weight: 400; color: var(--text-dim); display: block; }
.btn-vote { padding: 8px 16px; border-radius: 8px; font-size: 13px; }
.hero-wide { max-width: 850px; }
.hero-pill-green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: var(--accent-green); }
.tier-ribbon { position: absolute; top: -12px; right: 20px; background: var(--accent-gold); color: #000; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tier-headline { font-size: 13px; color: var(--text-muted); min-height: 38px; }
.tier-cta { margin-top: auto; width: 100%; padding: 11px; border-radius: 8px; font-weight: 700; text-align: center; }
.roi-box { max-width: 760px; margin: 0 auto 80px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; text-align: center; }
.roi-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.roi-sub { color: var(--text-muted); font-size: 14px; max-width: 540px; margin: 0 auto 24px; }
.roi-stat { background: var(--bg-card); padding: 16px; border-radius: 10px; }
.roi-value.gold { font-size: 28px; font-weight: 800; color: var(--accent-gold); }
.roi-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.roi-value.green { font-size: 28px; font-weight: 800; color: var(--accent-green); }
.roi-value.cyan { font-size: 28px; font-weight: 800; color: #67e8f9; }
.section-form { max-width: 640px; margin: 0 auto 80px; padding: 0 24px; }
.section-heading { font-size: 24px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.section-sub { color: var(--text-muted); font-size: 14px; text-align: center; margin-bottom: 20px; }
.hero-narrow { max-width: 800px; }
.hero-pill-gold { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); color: var(--accent-gold); }
.pricing-grid-narrow { max-width: 750px; }
.section-form.narrow { max-width: 560px; margin: 0 auto 80px; padding: 0 24px; }
.page-intro { text-align: center; margin-bottom: 28px; }
.intro-title { font-size: 30px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; }
.intro-text { color: var(--text-muted); font-size: 14px; }
.share-box { margin: 20px auto 0; max-width: 440px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-url { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-small { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.voter-box { max-width: 440px; margin: 0 auto 20px; }
.hint-dim { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.page-form { max-width: 640px; margin: 36px auto 60px; padding: 0 24px; }
.mb-14 { margin-bottom: 14px; }
.mb-20 { margin-bottom: 20px; }
.candidate-list { display: flex; flex-direction: column; gap: 8px; }
.candidate { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.candidate-check { width: 16px; height: 16px; accent-color: var(--accent-gold); }
.candidate-name { font-weight: 600; font-size: 14px; }
.candidate-meta { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.rating-count { color: var(--text-dim); font-weight: 400; font-size: 11px; }
.feed-empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.detail-title { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.detail-address { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.detail-rating-row { display: flex; align-items: center; gap: 16px; }
.detail-rating { color: var(--accent-gold); font-weight: 700; font-size: 15px; }
.btn-maps { font-size: 12px; padding: 4px 10px; }
.pro-perk-label { font-size: 11px; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.deal-title { font-weight: 600; font-size: 15px; }
.deal-when { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: 14px; }
.review-stars { font-size: 12px; color: var(--accent-gold); }
.review-scores { display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.review-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.review-form { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 24px; }
.review-form-title { font-size: 16px; margin-bottom: 12px; }
.form-grid.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.btn-submit { padding: 10px 20px; font-size: 13.5px; font-weight: 600; border-radius: 8px; }
.mt-20 { margin-top: 20px; }
.mt-12 { margin-top: 12px; }
.push-bottom { margin-top: auto; }
.page-admin { max-width: 1000px; margin: 32px auto 60px; padding: 0 24px; }
.admin-title { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.mt-32 { margin-top: 32px; }
.text-muted { color: var(--text-muted); }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange)); }

/* Phones: 16px side gutters */
@media (max-width: 640px) {
  .cards-grid, .filter-bar, .hero, .section-form, .page-form, .page-admin { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 30px; }
}
