:root {
  --brand-50:  #f0fdf6;
  --brand-100: #d9f9e6;
  --brand-300: #7fe3ac;
  --brand-500: #17b673;
  --brand-600: #0f9e61;
  --brand-700: #0c7c4d;
  --ink-900: #14151a;
  --ink-700: #3b3d45;
  --ink-500: #71737d;
  --ink-300: #a9abb3;
  --border: #eaeaee;
  --border-strong: #dcdce2;
  --page-bg: #f2f2f4;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(20,21,26,0.04), 0 8px 24px rgba(20,21,26,0.06);
  --shadow-card-hover: 0 4px 10px rgba(20,21,26,0.06), 0 16px 40px rgba(20,21,26,0.10);
  --shadow-boxed: 0 0 0 1px rgba(20,21,26,0.04), 0 10px 50px rgba(20,21,26,0.06);
}

* { box-sizing: border-box; }
html { font-size: 17px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-500); font-size: 15px; }

/* ---------- Boxed site layout ---------- */
/* Wraps navbar + page content + footer in a constrained, framed layout so
   the site reads as a "boxed" app on wide screens instead of stretching
   edge-to-edge. */
.site-boxed {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow-boxed);
  min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(14px); z-index: 40;
}
.navbar .container { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--brand-700); }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: var(--ink-700); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink-900); }
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 13px 24px;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { border: 1px solid var(--border-strong); background: #fff; color: var(--ink-900); }
.btn-outline:hover { border-color: var(--ink-900); }
.btn-sm { padding: 9px 17px; font-size: 14px; border-radius: 999px; }
.btn-danger { background: #fde8e8; color: #b42318; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 20px 40px; }
.hero h1 {
  font-size: 46px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero .accent { color: var(--brand-600); }
.hero p { color: var(--ink-500); font-size: 18px; max-width: 580px; margin: 0 auto 36px; }

/* Search bar — bigger, bolder, the visual anchor of the hero */
.search-pill {
  max-width: 700px; margin: 0 auto 24px; display: flex; align-items: center;
  border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 8px 8px 8px 30px;
  box-shadow: var(--shadow-card); background: #fff; transition: box-shadow .15s, border-color .15s;
}
.search-pill:focus-within { box-shadow: var(--shadow-card-hover); border-color: var(--ink-900); }
.search-pill input {
  flex: 1; border: none; outline: none; font-size: 18px; padding: 16px 10px;
  font-family: inherit; background: transparent; min-width: 0;
}
.search-pill input::placeholder { color: var(--ink-300); }
.search-pill button {
  border: none; background: var(--brand-600); color: #fff; width: 56px; height: 56px;
  border-radius: 999px; cursor: pointer; font-size: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.search-pill button:hover { background: var(--brand-700); }

.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

.popular-searches {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin: 0 auto 8px; max-width: 700px;
}
.popular-label { font-size: 14px; color: var(--ink-500); font-weight: 600; }
.popular-searches a {
  font-size: 14px; font-weight: 600; color: var(--ink-700);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px;
  transition: .12s;
}
.popular-searches a:hover { border-color: var(--ink-900); color: var(--ink-900); background: #fafafa; }

/* ---------- Journey chips ---------- */
.journey-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.journey-item {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 8px; text-align: center;
  transition: .15s; cursor: pointer;
}
.journey-item:hover { border-color: var(--ink-900); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.journey-emoji { font-size: 32px; }
.journey-label { margin-top: 10px; font-size: 14px; font-weight: 600; }

/* ---------- Campaign cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.campaign-card {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.card-banner {
  height: 190px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-300));
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.card-body { padding: 16px 4px 4px; }
.card-title { font-weight: 700; font-size: 17px; margin: 0 0 5px; letter-spacing: -0.01em; }
.card-meta { color: var(--ink-500); font-size: 15px; margin: 0; }
.card-status { color: var(--ink-900); font-weight: 600; }

/* Status pills */
.pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.01em; }
.pill-green { background: var(--brand-100); color: var(--brand-700); }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-blue { background: #dbeafe; color: #1e40af; }
.pill-solid { background: var(--brand-600); color: #fff; }
.pill-gray { background: #f1f1f4; color: var(--ink-500); }

/* ---------- Sections ---------- */
section.section { padding: 56px 0; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-head .see-all { font-weight: 600; font-size: 15px; color: var(--ink-900); border-bottom: 1px solid var(--ink-900); }

/* ---------- Campaign detail page ---------- */
.campaign-hero {
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  padding: 36px 20px;
}
.campaign-hero-inner {
  max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.campaign-hero-emoji { font-size: 40px; line-height: 1; }
.campaign-hero-text { flex: 1; min-width: 240px; }
.campaign-hero-text h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.campaign-hero-text p { margin: 0; color: var(--ink-700); font-size: 15px; max-width: 560px; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.category-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; background: #fff;
}
.category-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.category-card-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.category-desc { color: var(--ink-500); font-size: 14px; margin: 2px 0 12px; }

.biz-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-chip {
  display: flex; align-items: center; gap: 8px; background: var(--page-bg);
  border-radius: 999px; padding: 7px 14px 7px 7px; font-size: 14px; font-weight: 600;
}
.biz-chip-avatar {
  width: 26px; height: 26px; border-radius: 999px; background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.biz-chip-empty {
  font-size: 14px; color: var(--ink-500); font-style: italic;
}

/* ---------- Footer ---------- */
footer { margin-top: 80px; background: var(--ink-900); color: rgba(255,255,255,0.65); }
footer .container { padding: 56px 24px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer p { font-size: 15px; margin: 6px 0; }
footer .bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 18px; font-size: 13px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 15px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  transition: border-color .12s;
}
.form-control:focus { outline: none; border-color: var(--ink-900); }
.auth-box {
  max-width: 420px; margin: 96px auto; padding: 36px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.error-text { color: #b91c1c; font-size: 14px; }
.success-text { color: var(--brand-700); font-size: 14px; }

/* ---------- Dashboard shell ---------- */
.dash-layout { display: flex; min-height: 100vh; background: #fafafa; }
.dash-sidebar {
  width: 250px; background: #fff; border-right: 1px solid var(--border);
  padding: 24px 16px; flex-shrink: 0;
}
.dash-sidebar .brand { display: block; padding: 0 8px; margin-bottom: 8px; }
.sidebar-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-300); padding: 18px 10px 6px;
}
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-700); margin-bottom: 1px;
}
.dash-sidebar nav a .icon { font-size: 16px; width: 18px; text-align: center; }
.dash-sidebar nav a:hover { background: #f2f2f4; color: var(--ink-900); }
.dash-sidebar nav a.active { background: var(--ink-900); color: #fff; }
.dash-main { flex: 1; padding: 40px 48px; max-width: 1100px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.stat-label { font-size: 14px; color: var(--ink-500); }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }

.list-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.list-row:last-child { border-bottom: none; }
.empty-row { padding: 36px 22px; color: var(--ink-500); font-size: 15px; }

.seat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.seat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-size: 15px; }

@media (max-width: 860px) {
  .nav-links, .dash-sidebar { display: none; }
  .journey-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .stat-grid, .seat-grid { grid-template-columns: 1fr 1fr; }
  footer .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .dash-main { padding: 28px 20px; }
  .search-pill { padding-left: 20px; }
  .search-pill input { font-size: 16px; padding: 13px 8px; }
  .search-pill button { width: 48px; height: 48px; }
}
