:root {
  --ink: #171a1f;
  --muted: #68707c;
  --paper: #f6f3ef;
  --panel: #ffffff;
  --line: #e2ddd5;
  --rose: #a74455;
  --teal: #276e68;
  --gold: #b98934;
  --blue: #355f82;
  --shadow: 0 18px 60px rgba(23, 26, 31, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 243, 239, 0)),
    var(--paper);
  color: var(--ink);
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 221, 213, 0.9);
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
nav button {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

button,
.button {
  background: linear-gradient(135deg, var(--ink), #2e3837);
  border: 1px solid #22282e;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

button:hover,
.button:hover,
.danger:hover {
  transform: translateY(-1px);
}

.danger {
  background: #fff4f1;
  border: 1px solid #d65c48;
  border-radius: 8px;
  color: #a43828;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
}

nav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  min-height: 0;
  padding: 0;
}

main,
.public {
  min-height: calc(100vh - 65px);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 26, 31, 0.82), rgba(23, 26, 31, 0.22)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  min-height: 72vh;
  padding: clamp(36px, 8vw, 96px);
}

.hero div {
  max-width: 820px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.grid,
.dashboard-head,
.editor,
.metrics,
.auth,
.public-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(24px, 4vw, 54px) clamp(18px, 4vw, 40px);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(226, 221, 213, 0.95);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(23, 26, 31, 0.055);
  padding: clamp(20px, 2.4vw, 28px);
}

.panel h2,
.panel h3 {
  margin-bottom: 10px;
}

.auth {
  display: grid;
  min-height: calc(100vh - 65px);
  place-items: center;
}

.auth .panel {
  max-width: 460px;
  width: 100%;
}

.auth .panel h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 14px;
}

input,
select,
textarea {
  background: #fbfaf8;
  border: 1px solid #d5d0c8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(39, 110, 104, 0.13);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.dashboard-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 24px;
}

.dashboard-head h1 {
  margin-bottom: 8px;
}

.dashboard-head p:not(.eyebrow) {
  max-width: 620px;
}

.create {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px;
  box-shadow: 0 14px 42px rgba(23, 26, 31, 0.06);
}

.editor {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  padding-top: 0;
}

.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(18px, 4vw, 40px) clamp(18px, 3vw, 26px);
}

.event-tabs a {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  padding: 10px 13px;
}

.event-tabs a.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.stack {
  display: grid;
  gap: 18px;
}

.two {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background: #f3f0eb;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
}

.compact-metrics {
  padding-bottom: 20px;
}

.metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    var(--panel);
}

.metric span {
  color: var(--muted);
  display: block;
  font-weight: 900;
}

.metric strong {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.table {
  overflow-x: auto;
}

.table {
  display: grid;
  gap: 8px;
}

.row {
  align-items: center;
  border: 1px solid rgba(226, 221, 213, 0.95);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr 1.3fr 0.8fr 0.7fr auto;
  padding: 12px;
}

.row:nth-child(odd) {
  background: #fbfaf8;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.event-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.event-card .actions {
  margin-top: auto;
}

.card-top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.status {
  background: #f3f0eb;
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 10px;
}

.status.published {
  background: #e4f2ec;
  color: #176242;
}

.status.payment_pending {
  background: #fff1d6;
  color: #8b5a00;
}

.status.paused,
.status.expired {
  background: #fce3df;
  color: #a43828;
}

.report-row,
.hotel-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 0.8fr 0.8fr;
}

.report-panel {
  margin: 0 auto clamp(24px, 5vw, 64px);
  max-width: 1180px;
}

.preview-card {
  background:
    linear-gradient(145deg, rgba(23, 26, 31, 0.82), rgba(39, 110, 104, 0.72)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  min-height: 320px;
}

.preview-card p,
.preview-card .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.preview-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.notice {
  background: var(--teal);
  border-radius: 8px;
  color: white;
  font-weight: 900;
  left: 50%;
  max-width: min(760px, calc(100vw - 30px));
  padding: 12px 16px;
  position: fixed;
  box-shadow: var(--shadow);
  top: 78px;
  transform: translateX(-50%);
  z-index: 30;
}

.public-hero {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(23, 32, 28, 0.08), rgba(23, 32, 28, 0.72)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  min-height: 78vh;
  padding: clamp(32px, 8vw, 96px);
}

.public-hero h1 {
  font-size: clamp(3rem, 11vw, 9rem);
  margin-bottom: 12px;
}

.public-hero p {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 900px) {
  .grid,
  .editor,
  .metrics {
    grid-template-columns: 1fr;
  }

  .event-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .event-tabs a {
    white-space: nowrap;
  }

  .dashboard-head,
  .create {
    align-items: stretch;
    flex-direction: column;
  }

  .row,
  .two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 64vh;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  button,
  .button,
  .danger {
    width: 100%;
  }
}
