@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #15192b;
  --ink-soft: #5d6172;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: #e7e7df;
  --coral: #ff5b3d;
  --coral-dark: #e94427;
  --lime: #d9ff64;
  --purple: #7047eb;
  --success: #16a36a;
  --warning: #e98b19;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.035em;
}

a,
button,
input,
select,
textarea {
  transition: all 180ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(112, 71, 235, 0.24);
  outline-offset: 2px;
}

.container-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-glass {
  background: rgba(247, 247, 242, 0.88);
  border-bottom: 1px solid rgba(21, 25, 43, 0.07);
  backdrop-filter: blur(18px);
}

.site-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-logo-header {
  width: 190px;
}

.site-logo-footer {
  width: 210px;
}

.site-logo-auth {
  width: 280px;
}

.site-logo-dashboard {
  width: 205px;
}

.logo-surface {
  width: fit-content;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.dashboard-logo {
  display: block;
  margin-inline: auto;
}

.btn-primary,
.btn-secondary,
.btn-dark,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.btn-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 10px 26px rgba(255, 91, 61, 0.22);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--ink);
  background: var(--lime);
}

.btn-secondary:hover {
  box-shadow: 0 10px 26px rgba(186, 222, 74, 0.24);
  transform: translateY(-2px);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-dark:hover {
  background: #292e45;
  transform: translateY(-2px);
}

.btn-ghost {
  min-height: 42px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #cfcec4;
}

.hero-mesh {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 50vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 10%, rgba(217, 255, 100, 0.62), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 163, 144, 0.42), transparent 28%),
    linear-gradient(135deg, #f8f6ed 0%, #f4f1ff 62%, #fbf2ec 100%);
}

.hero-content {
  padding-block: clamp(2.5rem, 5vh, 3.5rem);
}

.hero-mesh::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0.16;
  background-image: radial-gradient(#15192b 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 22px 52px rgba(40, 38, 62, 0.12);
}

.field-shell {
  position: relative;
}

.field-shell > svg,
.field-shell > i {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  color: #858797;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.input-control,
.select-control {
  height: 48px;
  padding: 0 14px;
}

.field-shell .input-control,
.field-shell .select-control {
  padding-left: 44px;
}

.textarea-control {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(112, 71, 235, 0.08);
  outline: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--ink-soft);
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.category-pill:hover,
.category-pill.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.event-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(21, 25, 43, 0.07);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(35, 36, 55, 0.06);
}

.event-card:hover {
  box-shadow: 0 22px 50px rgba(35, 36, 55, 0.12);
  transform: translateY(-5px);
}

.event-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.event-card:hover .event-card-media img {
  transform: scale(1.045);
}

.event-card-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-card-favorite:hover,
.event-card-favorite.is-active {
  color: #fff;
  background: var(--coral);
  transform: scale(1.05);
}

.event-date-tile {
  flex: 0 0 auto;
  width: 54px;
  padding: 9px 4px;
  color: var(--coral);
  text-align: center;
  background: #fff4f1;
  border-radius: 14px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 26px;
  height: 2px;
  content: '';
  background: currentColor;
}

.soft-card {
  background: #fff;
  border: 1px solid rgba(21, 25, 43, 0.07);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(34, 35, 51, 0.055);
}

.glass-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 54px rgba(38, 35, 59, 0.11);
  backdrop-filter: blur(16px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f3ee;
  border-radius: 999px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
}

.status-badge::before {
  width: 7px;
  height: 7px;
  content: '';
  background: currentColor;
  border-radius: 50%;
}

.status-paid,
.status-published,
.status-active,
.status-approved {
  color: #087849;
  background: #e8f9f1;
}

.status-pending,
.status-review,
.status-processing {
  color: #a55c00;
  background: #fff4dd;
}

.status-cancelled,
.status-rejected,
.status-refunded,
.status-suspended {
  color: #c13a27;
  background: #fff0ed;
}

.dashboard-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 270px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: #171a2b;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.67);
  font-weight: 600;
  text-decoration: none;
  border-radius: 13px;
}

.sidebar-link svg {
  width: 19px;
  height: 19px;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-link.is-active {
  box-shadow: inset 3px 0 0 var(--lime);
}

.dashboard-main {
  min-width: 0;
  padding: 28px 34px 50px;
  background: #f5f5f0;
}

.admin-dashboard .dashboard-main {
  font-size: 0.875rem;
}

.admin-dashboard .dashboard-main .text-4xl {
  font-size: 1.75rem;
  line-height: 2.1rem;
}

.admin-dashboard .dashboard-main .text-3xl {
  font-size: 1.5rem;
  line-height: 1.9rem;
}

.admin-dashboard .dashboard-main .text-2xl {
  font-size: 1.25rem;
  line-height: 1.65rem;
}

.admin-dashboard .dashboard-main .text-xl {
  font-size: 1.05rem;
  line-height: 1.45rem;
}

.admin-dashboard .dashboard-main .text-lg {
  font-size: 0.95rem;
  line-height: 1.35rem;
}

.admin-dashboard .data-table {
  font-size: 0.8125rem;
}

.admin-dashboard .input-control,
.admin-dashboard .select-control,
.admin-dashboard .textarea-control,
.admin-dashboard .sidebar-link {
  font-size: 0.875rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(21, 25, 43, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(33, 34, 51, 0.045);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--purple);
  background: #f0ecff;
  border-radius: 13px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 13px 16px;
  color: #7b7e8b;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f8f8f4;
}

.data-table td {
  padding: 15px 16px;
  border-top: 1px solid #ededE7;
}

.data-table tbody tr:hover {
  background: #fcfcfa;
}

.mobile-dashboard-nav {
  display: none;
}

.dashboard-view {
  display: none;
}

.dashboard-view.is-active {
  display: block;
  animation: view-in 220ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(13, 15, 27, 0.62);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(6px);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(11, 12, 22, 0.28);
  transform: translateY(12px) scale(0.98);
}

.modal-backdrop.is-open .modal-panel {
  transform: none;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  display: flex;
  width: min(360px, calc(100vw - 40px));
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(16, 18, 31, 0.24);
  animation: toast-in 240ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.ticket-stub {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(25, 25, 42, 0.14);
}

.ticket-stub::before,
.ticket-stub::after {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  content: '';
  background: var(--paper);
  border-radius: 50%;
}

.ticket-stub::before {
  top: 57%;
  left: -15px;
}

.ticket-stub::after {
  top: 57%;
  right: -15px;
}

.shimmer {
  overflow: hidden;
  background: #ecece6;
}

.shimmer::after {
  display: block;
  width: 100%;
  height: 100%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: shimmer 1.3s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1024px) {
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dashboard-sidebar .sidebar-label,
  .dashboard-sidebar .sidebar-copy,
  .dashboard-sidebar .brand-copy {
    display: none;
  }

  .dashboard-logo {
    display: none;
  }

  .dashboard-sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  .sidebar-link {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .container-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-mesh {
    min-height: auto;
  }

  .hero-content {
    padding-block: 3rem;
  }

  .site-logo-header,
  .site-logo-auth {
    width: 165px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .dashboard-layout {
    display: block;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 18px 14px 94px;
  }

  .mobile-dashboard-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background: rgba(23, 26, 43, 0.96);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(16, 18, 31, 0.28);
    backdrop-filter: blur(14px);
  }

  .mobile-dashboard-nav .sidebar-link {
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .data-table {
    min-width: 720px;
  }
}
