:root {
  /* Brand palette — Micro Solutions "Connect": navy + orange */
  --navy: #16205B;
  --navy-deep: #0F1640;
  --navy-soft: #1E2A6E;
  --orange: #F05A28;
  --orange-deep: #D94E1F;
  --bg: #FAFAFA;
  --bg-2: #F2F4F8;
  --ink: #16205B;
  --text: #3A4256;
  --muted: #6B7280;
  --line: #E5E7EB;
  --ok: #1F9D55;
  --warn: #C26A00;
  --bad: #D93838;
  --shadow: 0 18px 50px rgba(22, 32, 91, .12);
  --shadow-orange: 0 10px 24px rgba(240, 90, 40, .25);
  --display: "Syne", system-ui, -apple-system, Segoe UI, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Legacy aliases kept so existing markup re-themes automatically */
  --wine: var(--navy);
  --wine-deep: var(--navy-soft);
  --wine-dark: var(--navy-deep);
  --gold: var(--orange);
  --gold-soft: var(--orange-deep);
  --cream: var(--bg);
  --cream-2: var(--bg-2);
  --serif: var(--display);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.5px; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 22, 64, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: rgba(255, 255, 255, .82); font-size: .92rem; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: #fff; }
.site-nav__admin { background: var(--orange); color: #fff !important; padding: 9px 20px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-orange); }
.site-nav__admin:hover { background: var(--orange-deep); color: #fff !important; }

main { flex: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, .68);
  padding: 32px 0; margin-top: 80px; font-size: .85rem;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer__muted { color: rgba(255, 255, 255, .5); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15,22,64,.72) 0%, rgba(15,22,64,.55) 40%, rgba(15,22,64,.92) 100%); }
.hero__inner { position: relative; padding: 120px 0; max-width: 760px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange);
  letter-spacing: 2px; text-transform: uppercase; font-size: .75rem; font-weight: 600; margin-bottom: 22px; }
.hero__eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--orange); display: inline-block; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; color: #fff; }
.hero__tag { font-family: var(--sans); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: rgba(255,255,255,.85); margin-top: 16px; font-weight: 400; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; font-size: .95rem; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta span:first-child { color: var(--orange); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.hero__meta span:last-child { font-size: 1.05rem; margin-top: 4px; }
.hero__cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .2px;
  padding: 13px 28px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-gold:hover { background: var(--orange-deep); box-shadow: 0 12px 30px rgba(240,90,40,.34); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wine { background: var(--navy); color: #fff; }
.btn-wine:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--cream { background: #fff; }
.section--soft { background: var(--bg-2); }
.section-eyebrow { color: var(--orange); letter-spacing: 2px; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-top: 12px; color: var(--ink); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--text); margin-top: 18px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.fact { border-left: 3px solid var(--orange); padding-left: 16px; }
.fact strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.fact span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Tickets ---------- */
.tickets-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: start; }
.ticket-list { display: flex; flex-direction: column; gap: 18px; }
.ticket-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  transition: border-color .2s, box-shadow .2s;
}
.ticket-card.is-active { border-color: var(--orange); box-shadow: var(--shadow); }
.ticket-card__info h3 { font-size: 1.4rem; }
.ticket-card__info p { color: var(--text); font-size: .92rem; margin: 8px 0 0; max-width: 46ch; }
.ticket-card__price { font-family: var(--display); font-size: 1.4rem; color: var(--orange); margin-top: 10px; font-weight: 700; }
.ticket-card__price small { font-size: .7rem; color: var(--muted); letter-spacing: 1px; font-family: var(--sans); font-weight: 400; }
.ticket-card__action { text-align: right; min-width: 130px; }
.ticket-inclusions {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 8px 26px rgba(22,32,91,.05);
}
.ticket-inclusions__eyebrow {
  color: var(--orange); letter-spacing: 1px; text-transform: uppercase;
  font-size: .72rem; font-weight: 700; margin-bottom: 14px;
}
.ticket-inclusions__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ticket-inclusion { border-left: 3px solid var(--orange); padding-left: 14px; }
.ticket-inclusion strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.05rem; }
.ticket-inclusion span { display: block; color: var(--text); font-size: .9rem; margin-top: 4px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: none; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.stepper button:hover { background: var(--bg-2); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 38px; text-align: center; font-weight: 600; }

/* Summary / checkout */
.summary {
  position: sticky; top: 96px; background: var(--navy); color: #fff;
  border-radius: 16px; padding: 30px; box-shadow: var(--shadow);
}
.summary h3 { color: #fff; font-size: 1.6rem; }
.summary__hint { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 4px; }
.summary__lines { margin: 22px 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; min-height: 40px; }
.summary__line { display: flex; justify-content: space-between; font-size: .95rem; padding: 7px 0; color: rgba(255,255,255,.9); }
.summary__empty { color: rgba(255,255,255,.55); font-style: italic; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; margin-top: 8px; }
.summary__total span { color: var(--orange); letter-spacing: 1px; text-transform: uppercase; font-size: .75rem; font-weight: 600; }
.summary__total strong { font-family: var(--display); font-size: 2rem; color: #fff; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; font-family: var(--sans);
}
.field input::placeholder { color: rgba(255,255,255,.45); }
.field input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.12); }
.validation-message, .val-msg { color: #ffb4a3; font-size: .8rem; margin-top: 5px; display: block; }
.secure-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .78rem; margin-top: 16px; justify-content: center; }

/* ---------- Payment result ---------- */
.result { max-width: 720px; margin: 0 auto; padding: 90px 0; text-align: center; }
.result__icon { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; font-size: 2.4rem; }
.result__icon--ok { background: rgba(31,157,85,.12); color: var(--ok); border: 2px solid rgba(31,157,85,.35); }
.result__icon--pending { background: rgba(194,106,0,.12); color: var(--warn); border: 2px solid rgba(194,106,0,.35); }
.result__icon--bad { background: rgba(217,56,56,.1); color: var(--bad); border: 2px solid rgba(217,56,56,.3); }
.result h1 { font-size: 2.6rem; }
.result p { color: var(--text); font-size: 1.05rem; margin-top: 14px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; margin: 36px 0; text-align: left; box-shadow: var(--shadow); }
.order-card__num { font-family: var(--display); font-size: 1.8rem; color: var(--navy); letter-spacing: 1px; font-weight: 700; }
.ticket-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ticket-chip { background: var(--bg-2); border: 1px dashed var(--orange); border-radius: 10px; padding: 10px 14px; font-family: var(--display); font-size: 1.02rem; letter-spacing: 1px; color: var(--navy); font-weight: 600; }
.ticket-chip small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; font-weight: 400; }

/* ---------- Admin ---------- */
.admin { padding: 50px 0 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.admin-head h1 { font-size: 2.4rem; }
.admin-head p { color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 40px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat__label { font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--display); font-size: 2rem; color: var(--ink); margin-top: 6px; font-weight: 700; }
.stat--accent { background: var(--navy); border-color: var(--navy); }
.stat--accent .stat__label { color: var(--orange); }
.stat--accent .stat__value { color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-bottom: 28px; box-shadow: 0 8px 26px rgba(22,32,91,.05); }
.panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.panel__sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

/* Verify */
.verify-row { display: flex; gap: 12px; flex-wrap: wrap; }
.verify-row input { flex: 1; min-width: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--sans); letter-spacing: 1px; }
.verify-row input:focus { outline: none; border-color: var(--orange); }
.verify-result { margin-top: 20px; border-radius: 12px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.verify-result--ok { background: rgba(31,157,85,.08); border: 1px solid rgba(31,157,85,.3); }
.verify-result--bad { background: rgba(217,56,56,.07); border: 1px solid rgba(217,56,56,.3); }
.verify-result__title { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.verify-result__meta { color: var(--text); font-size: .9rem; margin-top: 4px; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 8px 16px; border-radius: 999px; font-size: .82rem; cursor: pointer; transition: all .15s; }
.chip-btn:hover { border-color: var(--orange); }
.chip-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-box { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 240px; font-size: .9rem; }
.search-box:focus { outline: none; border-color: var(--orange); }

/* Table */
.table-wrap { overflow-x: auto; }
table.orders { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.orders th { text-align: left; padding: 12px 14px; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
table.orders td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.orders tbody tr:hover { background: var(--bg-2); }
.mono { font-family: var(--display); letter-spacing: .5px; color: var(--navy); font-size: 1rem; font-weight: 600; }
.cust-name { font-weight: 600; color: var(--ink); }
.cust-email { color: var(--muted); font-size: .82rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--paid { background: rgba(31,157,85,.12); color: var(--ok); }
.badge--pending { background: rgba(194,106,0,.14); color: var(--warn); }
.badge--cancelled, .badge--failed { background: rgba(217,56,56,.1); color: var(--bad); }

.link-btn { background: none; border: none; color: var(--orange); font-weight: 600; cursor: pointer; font-size: .85rem; padding: 0; }
.link-btn:hover { text-decoration: underline; }

.detail-row td { background: var(--bg-2); }
.detail-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 4px; }
.detail-box h4 { font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state h3 { font-family: var(--display); margin-bottom: 8px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .tickets-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-box { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.site-nav__admin) { display: none; }
}
@media (max-width: 560px) {
  .ticket-card { flex-direction: column; align-items: flex-start; }
  .ticket-card__action { text-align: left; width: 100%; }
  .ticket-inclusions__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
}
