:root {
  --bg: #100708;
  --bg-soft: #1b0d10;
  --panel: rgba(21, 11, 12, 0.92);
  --panel-soft: rgba(33, 18, 19, 0.92);
  --paper: #fff6ef;
  --line: rgba(255, 255, 255, 0.08);
  --line-light: #ead9d1;
  --text: #fff7f2;
  --muted: rgba(255, 239, 229, 0.72);
  --dark-text: #211616;
  --dark-muted: #6f6462;
  --fire: #ff431a;
  --fire-deep: #b31217;
  --gold: #d8a13c;
  --purple: #7b55f3;
  --blue: #2a9cc7;
  --green: #26a66f;
  --red: #d84545;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.brand-mark-event {
  background: linear-gradient(135deg, var(--fire), #ff6e35);
  box-shadow: 0 15px 35px rgba(255, 67, 26, 0.28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-fire,
.button-accent {
  background: linear-gradient(135deg, var(--fire), #f16224);
  color: #fff;
  box-shadow: 0 18px 38px rgba(255, 67, 26, 0.25);
}

.button-secondary {
  background: #fff;
  color: #6d6564;
  border-color: #e8dfdc;
}

.button-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.button-block {
  width: 100%;
}

.event-body {
  background:
    radial-gradient(circle at top, rgba(255, 67, 26, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(179, 18, 23, 0.35), transparent 20%),
    linear-gradient(180deg, #16090a 0%, #100708 38%, #f8ede7 38%, #f8ede7 100%);
  color: var(--text);
}

.event-shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.event-topbar,
.event-brand,
.event-nav,
.event-highlights,
.event-actions,
.stats-band,
.guest-row,
.legend,
.tab-row,
.dashboard-actions {
  display: flex;
}

.event-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.event-brand {
  align-items: center;
  gap: 14px;
}

.event-brand strong,
.sidebar-brand strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
}

.event-brand small,
.sidebar-brand small {
  display: block;
  color: rgba(255, 235, 225, 0.64);
  margin-top: 2px;
}

.event-nav {
  align-items: center;
  gap: 12px;
}

.event-nav a {
  color: rgba(255, 237, 228, 0.84);
  padding: 10px 12px;
}

.event-hero,
.content-grid,
.two-column-band {
  display: grid;
}

.event-hero {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding: 46px 0 28px;
}

.event-eyebrow {
  margin: 0 0 10px;
  color: #f5bc7a;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.event-copy h1,
.section-intro h2,
.mood-panel h2,
.admin-preview-panel h2,
.reserve-card h1,
.dashboard-header h1,
.panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.95;
}

.event-copy h1 {
  font-size: clamp(4rem, 7vw, 7.4rem);
  text-shadow: 0 0 30px rgba(255, 67, 26, 0.24);
}

.event-subtitle,
.section-intro p,
.expect-card p,
.mood-list li,
.admin-preview-panel p,
.upload-intro,
.form-caption,
.form-success p,
.guest-row span,
.map-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.event-subtitle {
  max-width: 640px;
  margin: 18px 0 24px;
  font-size: 1.08rem;
}

.event-highlights,
.event-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.event-highlights {
  margin-bottom: 24px;
}

.event-highlights span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.event-flyer-card,
.expect-card,
.mood-panel,
.admin-preview-panel,
.archive-card,
.rsvp-card,
.reserve-card,
.kpi-card,
.panel {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.event-flyer-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1400px;
  isolation: isolate;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.flyer-tilt-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
}

.flyer-tilt-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 220ms ease, filter 220ms ease;
  transform: translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  will-change: transform;
  z-index: 2;
}

.event-flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(34px) scale(1.03);
}

.flyer-hero-3d .flyer-depth-backdrop {
  position: absolute;
  inset: 18px 18px 84px;
  border-radius: 26px;
  background:
    radial-gradient(circle at center, rgba(255, 90, 48, 0.2), transparent 40%),
    url("./fly1.png");
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.15) brightness(0.9);
  transform: translate3d(calc(var(--tx) * -0.65), calc(var(--ty) * -0.65), -90px) scale(1.08);
  opacity: 0.78;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 0;
}

.flyer-shadow-plane {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 52px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(14px);
  transform: translateY(16px) scaleX(0.92);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.7;
  z-index: 0;
}

.flyer-tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(135deg, rgba(255, 90, 48, 0.12), transparent 40%, rgba(255, 202, 116, 0.14));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: 3;
}

.flyer-tilt-card.is-tilting::after {
  opacity: 1;
}

.flyer-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.flyer-orb-left {
  width: 170px;
  height: 170px;
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 82, 44, 0.4), transparent 68%);
}

.flyer-orb-right {
  width: 220px;
  height: 220px;
  right: -10%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(255, 197, 104, 0.28), transparent 70%);
}

.flyer-caption {
  padding: 18px 20px 22px;
  position: relative;
  z-index: 4;
}

.flyer-caption strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.flyer-caption span {
  color: rgba(255, 237, 228, 0.7);
}

.stats-band {
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.stats-band article {
  flex: 1 1 210px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 249, 245, 0.94);
  color: var(--dark-text);
  border: 1px solid rgba(224, 205, 196, 0.85);
}

.stats-band strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.stats-band span {
  color: var(--dark-muted);
}

.content-grid,
.two-column-band {
  gap: 24px;
  margin-top: 34px;
}

.content-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.section-intro h2,
.mood-panel h2,
.admin-preview-panel h2,
.reserve-card h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: #251516;
}

.section-intro p {
  color: #756664;
}

.expect-grid,
.archive-grid,
.sidebar-stats,
.pipeline-list {
  display: grid;
}

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

.expect-card,
.mood-panel,
.admin-preview-panel,
.archive-card,
.rsvp-card,
.reserve-card {
  background: rgba(255, 249, 244, 0.96);
  color: var(--dark-text);
  border: 1px solid rgba(230, 210, 201, 0.92);
}

.expect-card {
  padding: 24px;
}

.expect-card h3,
.archive-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.two-column-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mood-panel,
.admin-preview-panel,
.rsvp-card,
.reserve-card,
.payment-panel,
.map-panel,
.pipeline-panel,
.payments-panel {
  padding: 28px;
}

.mood-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.mood-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 67, 26, 0.06);
  color: #6e5958;
}

.admin-preview-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 67, 26, 0.15), transparent 26%),
    linear-gradient(180deg, #1d1012, #180d0f);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-preview-panel h2 {
  color: #fff;
}

.admin-preview-panel p {
  margin: 18px 0 24px;
}

.archives-section,
.rsvp-section,
.event-footer {
  margin-top: 34px;
}

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

.archive-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.archive-card-featured {
  background:
    radial-gradient(circle at top right, rgba(255, 84, 44, 0.24), transparent 28%),
    linear-gradient(180deg, #1c0c0d, #180b0c);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.archive-card-featured p,
.archive-card-featured small {
  color: rgba(255, 241, 235, 0.78);
}

.archive-card-tilt {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.archive-card-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.09), transparent 24%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.archive-card-tilt.is-tilting::after {
  opacity: 1;
}

.archive-card-media {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-tilt-inner {
  transform: translate3d(calc(var(--tx) * 0.35), calc(var(--ty) * 0.35), 0) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease, filter 220ms ease;
  will-change: transform;
}

.archive-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.archive-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 67, 26, 0.12);
  color: var(--fire);
  font-size: 0.82rem;
  font-weight: 800;
}

.archive-tag-muted {
  background: rgba(0, 0, 0, 0.05);
  color: #7d6d69;
}

.event-form,
.reserve-card {
  display: grid;
  gap: 16px;
}

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

.event-form label {
  display: grid;
  gap: 8px;
  color: #5c4a47;
  font-weight: 700;
}

.event-form input,
.event-form select,
.event-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-light);
  background: #fff;
  color: #2a1d1d;
}

.event-form textarea {
  resize: vertical;
}

.form-success {
  border-radius: 20px;
  padding: 20px;
  background: #f6fbf8;
  border: 1px solid #cee6d8;
}

.form-success strong {
  color: var(--green);
}

.event-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 233, 224, 0.7);
}

.reserve-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 67, 26, 0.22), transparent 24%),
    linear-gradient(180deg, #14090a 0%, #180b0d 45%, #f7ede8 45%, #f7ede8 100%);
}

.reserve-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.reserve-brand {
  margin-bottom: 22px;
}

.reserve-card-copy {
  margin-bottom: 8px;
}

.dashboard-body {
  background: linear-gradient(180deg, #f2efef 0%, #f8f5f5 100%);
  color: var(--dark-text);
}

.crm-layout {
  display: grid;
  grid-template-columns: 338px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 22px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 22px;
  color: #fff;
  background: linear-gradient(180deg, #171314, #120f10);
}

.sidebar-event {
  background:
    radial-gradient(circle at top, rgba(255, 67, 26, 0.18), transparent 24%),
    linear-gradient(180deg, #181112, #120d0e);
}

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

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

.side-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.side-stat strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.side-stat span,
.sidebar-nav a,
.sidebar-user small,
.mini-fleet-card span {
  color: rgba(255, 240, 231, 0.58);
}

.side-stat-green {
  background: rgba(27, 100, 65, 0.18);
}

.side-stat-red {
  background: rgba(109, 31, 35, 0.2);
}

.side-stat-gold {
  background: rgba(110, 77, 18, 0.2);
}

.side-stat-orange {
  background: rgba(126, 42, 21, 0.2);
}

.accent-green,
.legend-green {
  color: var(--green);
}

.accent-gold,
.legend-gold {
  color: var(--gold);
}

.accent-orange {
  color: var(--fire);
}

.accent-purple {
  color: var(--purple);
}

.accent-blue {
  color: var(--blue);
}

.accent-muted {
  color: #a09ea6;
}

.legend-red {
  color: var(--red);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  align-content: start;
}

.sidebar-nav p,
.fleet-preview p {
  margin: 8px 0 10px;
  color: rgba(255, 235, 225, 0.26);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 800;
}

.sidebar-nav a {
  padding: 14px 16px;
  border-radius: 14px;
}

.sidebar-nav a.active {
  color: #fff;
  background: rgba(255, 67, 26, 0.16);
  border-left: 3px solid var(--fire);
}

.attendee-preview {
  display: grid;
  gap: 12px;
}

.mini-fleet-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.mini-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-vip {
  background: var(--gold);
}

.status-performer {
  background: var(--purple);
}

.status-room {
  background: var(--fire);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.dashboard-main {
  padding-bottom: 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 48px 20px;
  background: #fff;
  border-bottom: 1px solid #ece4e2;
}

.dashboard-header h1 {
  font-size: 3rem;
  color: #1f1313;
}

.dashboard-header p {
  margin: 6px 0 0;
  color: #a9a0a0;
}

.dashboard-actions {
  gap: 14px;
}

.kpi-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
  padding: 26px 48px 0;
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card,
.panel {
  background: #fff;
  border: 1px solid #ece4e2;
}

.kpi-card {
  padding: 24px 22px;
}

.kpi-card span,
.kpi-card small,
.payments-panel a,
.panel-toggle,
.legend {
  color: #857977;
}

.kpi-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 3rem;
  line-height: 0.95;
}

.payment-panel,
.map-panel {
  margin: 18px 48px 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.legend {
  gap: 22px;
}

.health-track {
  margin-top: 18px;
  height: 14px;
  border-radius: 999px;
  background: #e9e5e5;
  overflow: hidden;
}

.health-track-filled {
  display: flex;
}

.health-segment {
  height: 100%;
}

.health-segment-green {
  background: var(--green);
}

.health-segment-gold {
  background: var(--gold);
}

.health-segment-red {
  background: var(--red);
}

.dashboard-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.pipeline-list {
  gap: 22px;
  margin-top: 18px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 170px 1fr 44px;
  gap: 16px;
  align-items: center;
}

.pipeline-row span {
  color: #706664;
}

.pipeline-bar {
  height: 12px;
  border-radius: 999px;
  background: #e9e5e5;
  overflow: hidden;
}

.pipeline-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-purple {
  background: var(--purple);
}

.bar-blue {
  background: var(--blue);
}

.bar-green {
  background: var(--green);
}

.bar-gold {
  background: var(--gold);
}

.bar-orange {
  background: var(--fire);
}

.guest-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.guest-row {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #faf7f6;
}

.guest-row strong {
  display: block;
  margin-bottom: 4px;
}

.guest-tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 800;
}

.guest-tag-green {
  background: rgba(38, 166, 111, 0.12);
  color: var(--green);
}

.guest-tag-gold {
  background: rgba(216, 161, 60, 0.14);
  color: var(--gold);
}

.guest-tag-red {
  background: rgba(216, 69, 69, 0.12);
  color: var(--red);
}

.panel-toggle {
  border: 0;
  background: transparent;
}

.tab-row {
  gap: 14px;
  flex-wrap: wrap;
  padding: 32px 48px 0;
}

.tab {
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid #ece4e2;
  background: #fff;
  color: #776d6b;
}

.tab.active {
  background: linear-gradient(135deg, var(--fire), #f16224);
  color: #fff;
  border-color: transparent;
}

.fab {
  position: fixed;
  right: 34px;
  bottom: 30px;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire), #f16224);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 20px 40px rgba(255, 67, 26, 0.25);
}

@media (max-width: 1180px) {
  .event-hero,
  .content-grid,
  .two-column-band,
  .crm-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar {
    grid-template-rows: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .flyer-tilt-card:hover {
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
  }

  .flyer-tilt-card:hover .flyer-tilt-inner {
    filter: saturate(1.08) brightness(1.04);
  }

  .flyer-hero-3d:hover .flyer-depth-backdrop {
    opacity: 0.92;
  }

  .flyer-hero-3d:hover .flyer-shadow-plane {
    transform: translateY(22px) scaleX(1.02);
    opacity: 0.88;
  }

  .archive-card-tilt:hover .archive-tilt-inner {
    filter: saturate(1.03) brightness(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flyer-tilt-inner,
  .flyer-tilt-card::after {
    transition: none;
  }
}

@media (max-width: 760px) {
  .event-topbar,
  .event-nav,
  .event-actions,
  .dashboard-header,
  .dashboard-actions,
  .legend {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-band,
  .expect-grid,
  .archive-grid,
  .form-row,
  .kpi-grid,
  .sidebar-stats {
    grid-template-columns: 1fr;
  }

  .event-shell,
  .reserve-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-header,
  .kpi-grid,
  .dashboard-grid,
  .payment-panel,
  .map-panel,
  .tab-row {
    padding-left: 18px;
    padding-right: 18px;
  }

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