/* ── Ticket Tomato Influencer Hub — clean modern ──────────────
   Calm, intuitive, one accent. Alan Sans headings + SN Pro body.
   White surfaces on warm off-white, tomato red as the single
   action color, their lime green reserved for money & success. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #211f1c;
  --muted: #6e6862;
  --tomato: #d64c2a;
  --tomato-dark: #b03a1c;
  --tomato-soft: #fbeee9;
  --green: #8dc63f;
  --green-dark: #567f26;
  --green-soft: #eff6e2;
  --line: #e9e5de;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(33, 31, 28, 0.05);
  --shadow-md: 0 4px 10px rgba(33, 31, 28, 0.06), 0 12px 32px rgba(33, 31, 28, 0.08);
  --font-display: "Alan Sans", -apple-system, sans-serif;
  --font-body: "SN Pro", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* ── Prototype banner ── */
.proto-banner {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-size: 12px;
  padding: 6px 16px;
}

/* ── Header ── */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-ticket { font-size: 22px; }
.logo-word { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.logo-word b { font-weight: 800; color: var(--tomato); }
.logo-hub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 99px;
  padding: 4px 11px;
}
.header-nav { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.18s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: #fff; background: var(--tomato); }

/* ── Hero ── */
.hero { padding: 64px 0 40px; }
.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  max-width: 20ch;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--tomato); }
.hero-sub { max-width: 62ch; font-size: 16.5px; color: var(--muted); }
.hero-sub strong { color: var(--ink); }
.hero-stats { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--tomato); }
.hero-stat span { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ── Filters ── */
.filters-section {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px;
}
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar input[type="search"] { flex: 2 1 240px; }
.filter-bar select { flex: 1 1 150px; }
.filter-bar input, .filter-bar select,
.form-grid input, .form-grid select, .form-grid textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-bar input:focus, .filter-bar select:focus,
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px var(--tomato-soft);
}
.platform-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Cards ── */
.grid-section { padding: 32px 0 24px; }
.results-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d8d2c9;
  box-shadow: var(--shadow-md);
}
.card-media {
  position: relative;
  height: 158px;
  background: linear-gradient(135deg, #f1ece3, #e6e0d5);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media.img-missing img { display: none; }
.card-media .flag { position: absolute; top: 12px; right: 12px; margin: 0; background: var(--surface); box-shadow: var(--shadow-sm); }
.card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-top { display: flex; align-items: center; gap: 10px; }
.card-date { font-size: 13px; font-weight: 700; color: var(--tomato); letter-spacing: 0.02em; }
.card-cat { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card-cat::before { content: "·"; margin-right: 10px; color: var(--line); }
.flag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 99px;
}
.card h3 { font-size: 19.5px; }
.card-loc { font-size: 13.5px; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.comp-paid, .badge.comp-hybrid {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green-dark);
}
.card-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tomato);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.card-cta::after { content: "→"; }

/* ── How it works ── */
.how-section { padding: 48px 0 72px; }
.section-title { font-size: 28px; margin-bottom: 22px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 99px;
  background: var(--tomato);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 17.5px; margin-bottom: 7px; }
.how-step p { font-size: 14px; color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover { background: var(--tomato-dark); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* ── Organizer view ── */
.hero-organizer { padding-bottom: 48px; }
.hero-organizer .btn { margin-top: 26px; }
.demo-pill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 99px;
  padding: 4px 10px;
  vertical-align: middle;
}
.dash-section { padding: 6px 0 40px; }
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dash-head h3 { font-size: 20px; }
.dash-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dash-stats { display: flex; gap: 28px; }
.dash-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--tomato);
  text-align: center;
}
.dash-stats span { font-size: 12px; font-weight: 500; color: var(--muted); }
.applicant-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.applicant-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 11px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.applicant-table td { padding: 13px 24px; border-bottom: 1px solid var(--line); }
.applicant-table tr:last-child td { border-bottom: none; }
.applicant-table .handle { color: var(--muted); font-size: 12.5px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.status-new    { background: var(--tomato-soft); color: var(--tomato-dark); }
.status-review { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.status-intro  { background: var(--green-soft); color: var(--green-dark); }

/* ── Organizer form ── */
.form-section { padding: 24px 0 80px; }
.form-intro { color: var(--muted); margin: -8px 0 22px; }
#organizer-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-grid label, .form-grid fieldset { display: flex; flex-direction: column; gap: 7px; border: none; }
.form-grid label > span, .form-grid fieldset > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.span-2 { grid-column: span 2; }
.form-grid textarea { border-radius: 12px; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; }
.check {
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.check input { accent-color: var(--tomato); width: 16px; height: 16px; }
.form-fine { font-size: 12.5px; color: var(--muted); margin-top: 13px; }
.success-panel {
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 46px 30px;
  text-align: center;
}
.success-emoji { font-size: 38px; margin-bottom: 10px; }
.success-panel h3 { font-size: 22px; margin-bottom: 10px; }
.success-panel p { color: var(--muted); max-width: 48ch; margin: 0 auto 22px; }

/* ── Modal ── */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 31, 28, 0.5);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  max-width: 660px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 70px rgba(20, 15, 10, 0.3);
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.modal-close:hover { color: var(--ink); border-color: var(--muted); }
.modal-img { width: 100%; height: 216px; object-fit: cover; display: block; }
.modal-banner { padding: 20px 28px 0; }
.modal-banner .cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tomato);
}
.modal-content { padding: 8px 28px 28px; }
.modal-content h2 { font-size: 25px; margin-bottom: 4px; }
.modal-loc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.modal-section { margin-bottom: 18px; }
.modal-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-section p, .modal-section li { font-size: 14.5px; }
.modal-section ul { padding-left: 20px; }
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.modal-meta div span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.modal-meta div b { font-size: 14.5px; font-weight: 600; }
.apply-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.apply-note { font-size: 12.5px; color: var(--muted); }

/* apply form inside modal */
.apply-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.apply-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.apply-form input, .apply-form select, .apply-form textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px var(--tomato-soft);
}
.apply-form .span-2 { grid-column: span 2; }
.modal-success { text-align: center; padding: 28px 10px 10px; }
.modal-success .success-emoji { font-size: 42px; }
.modal-success h3 { font-size: 22px; margin: 8px 0 10px; }
.modal-success p { color: var(--muted); max-width: 44ch; margin: 0 auto; font-size: 14.5px; }

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 38px 0 46px;
  margin-top: 8px;
}
.footer-inner p { margin-bottom: 6px; font-size: 14px; }
.footer-inner b { color: var(--ink); }
.footer-fine { font-size: 12px; color: #9b948c; max-width: 70ch; margin-top: 12px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner { height: auto; padding: 12px 0; flex-direction: column; gap: 10px; }
  .filters-section { position: static; }
  .hero { padding-top: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .apply-form { grid-template-columns: 1fr; }
  .apply-form .span-2 { grid-column: span 1; }
  .modal-meta { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .logo-hub { display: none; }
}
