:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  font-synthesis: none;
  --green: #15803d;
  --green-hover: #166534;
  --green-dark: #14532d;
  --muted: #334155;
  --text-muted: #475569;
  --line: #cbd5e1;
}

* { box-sizing: border-box; }
body { margin: 0; color: #0f172a; background: #f8fafc; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

/* Public Navigation */
.nav {
  height: 96px;
  max-width: 1280px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #0f172a;
  line-height: 1;
}
.brand span {
  font-size: 15px;
  color: #2563eb;
  margin-left: 4px;
}
.nav nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.nav nav a:hover {
  color: var(--green);
}
.nav-admin {
  border: 2px solid #0f172a;
  padding: 12px 22px;
  border-radius: 10px;
  color: #0f172a;
  transition: all 0.15s ease-in-out;
}
.nav-admin:hover {
  background: #0f172a;
  color: #ffffff;
}

.devbar {
  background: #fef3c7;
  color: #78350f;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  border-bottom: 1.5px solid #fde68a;
  letter-spacing: 0.5px;
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 0 48px;
}

/* Home Hero Section */
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 520px;
  padding: 60px 0;
  gap: 48px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 22px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
}
h1 {
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 0 0 24px;
  font-weight: 850;
  color: #0f172a;
}
h1 em {
  font-style: normal;
  color: var(--green);
}
h2 {
  font-size: 34px;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
  font-weight: 800;
  color: #0f172a;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.4px;
  font-weight: 800;
  color: #0f172a;
}
.hero-copy {
  color: #334155;
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Buttons */
.button {
  background: var(--green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 750;
  border: 0;
  cursor: pointer;
  min-height: 52px;
  box-shadow: 0 2px 8px rgba(21,128,61,0.25);
  transition: all 0.15s ease-in-out;
}
.button:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 12px rgba(21,128,61,0.35);
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hero Art Visuals */
.hero-art {
  height: 400px;
  border-radius: 50% 50% 16px 16px;
  position: relative;
  background: #e2e8f0;
  border: 1.5px solid var(--line);
  overflow: hidden;
}
.orbit {
  position: absolute;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  width: 440px;
  height: 440px;
  left: 30px;
  top: 30px;
}
.o2 {
  left: 110px;
  top: 90px;
}
.art-ticket {
  background: #ffffff;
  width: 260px;
  height: 310px;
  position: absolute;
  top: 44px;
  left: 90px;
  transform: rotate(-11deg);
  padding: 26px;
  box-shadow: 8px 15px 0 #94a3b8;
  border: 2px solid #0f172a;
  border-radius: 12px;
}
.art-ticket > span {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #475569;
}
.art-ticket strong {
  display: block;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 850;
  margin: 22px 0 18px;
  color: #0f172a;
}
.ticket-dash {
  border-top: 2px dashed #cbd5e1;
  margin: 15px -26px;
}
.art-ticket b {
  font-size: 30px;
  letter-spacing: -2px;
  color: #0f172a;
}
.art-ticket i {
  float: right;
  color: #2563eb;
}
.star {
  font-size: 110px;
  position: absolute;
  right: 10px;
  top: 0;
  color: #3b82f6;
}
.hero-art > small {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #475569;
}

/* Events Section */
.events-section {
  padding: 48px 0 80px;
  border-top: 1.5px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.section-head .eyebrow {
  margin: 0 0 10px;
}
.pill {
  font-size: 14px;
  background: #dcfce7;
  color: #14532d;
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-block;
  font-weight: 750;
  border: 1px solid #86efac;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.event-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #94a3b8;
}
.event-cover {
  height: 200px;
  position: relative;
  padding: 20px;
  background: #e2e8f0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.cover-1 { background: #dbeafe; }
.cover-2 { background: #fef3c7; }
.cover-symbol {
  position: absolute;
  font-size: 170px;
  right: 14px;
  top: 0;
  color: #94a3b8;
  line-height: 1;
}
.cover-1 .cover-symbol { color: #93c5fd; }
.cover-label {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.card-body {
  padding: 24px;
}
.event-date {
  font-size: 15px;
  color: var(--green);
  font-weight: 750;
  line-height: 1.6;
}
.card-body h3 {
  margin: 12px 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.muted {
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}
.card-bottom {
  border-top: 1.5px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.card-bottom b {
  color: var(--green);
  font-size: 18px;
}

/* Footer */
footer {
  max-width: 1280px;
  margin: auto;
  border-top: 1.5px solid var(--line);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #334155;
  font-size: 16px;
  font-weight: 500;
}
footer .brand {
  font-size: 32px;
  color: #0f172a;
}
footer p {
  flex: 1;
  color: #334155;
}

/* Event Detail Page */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  font-size: 17px;
  font-weight: 700;
  color: #334155;
}
.back:hover {
  color: #0f172a;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: 56px;
  padding-bottom: 70px;
}
.detail-cover {
  height: 280px;
  border-radius: 14px;
  background: #e2e8f0;
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background-size: cover;
  background-position: center;
}
.detail-cover > span {
  position: absolute;
  right: 25px;
  top: -25px;
  font-size: 240px;
  color: #94a3b8;
}
.detail-cover > b {
  position: absolute;
  bottom: 28px;
  font-size: 26px;
  width: 240px;
  line-height: 1.3;
  color: #0f172a;
}
.detail-heading {
  padding: 28px 0;
}
.detail-heading h1 {
  font-size: 42px;
  margin: 18px 0;
  font-weight: 850;
  color: #0f172a;
}
.event-facts {
  font-size: 17px;
  font-weight: 650;
  color: #1e293b;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.description {
  line-height: 1.85;
  white-space: pre-wrap;
  color: #1e293b;
  font-size: 17px;
}
.info-box {
  padding: 20px;
  background: #ecfdf5;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.6;
  margin: 24px 0;
  color: #14532d;
}

/* Registration Form Card */
.registration-card {
  padding: 34px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  border-radius: 16px;
  align-self: start;
  box-shadow: 0 10px 35px rgba(0,0,0,0.07);
}
.form-heading {
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.form-heading .eyebrow {
  margin: 0 0 10px;
}
.form-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
  color: #0f172a;
}
.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 8px;
  color: #0f172a;
}
.form-field small {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  display: block;
  margin-top: 4px;
}
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: #0f172a;
  min-height: 50px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(21,128,61,0.2);
}
input::placeholder {
  color: #64748b;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #1e293b;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
.check a {
  text-decoration: underline;
  color: var(--green);
  font-weight: 700;
}
.consent {
  margin: 24px 0;
}
.wide {
  width: 100%;
  justify-content: center;
}
.form-note {
  text-align: center;
  font-size: 15px;
  color: #334155;
  margin-top: 22px;
}
.form-note a {
  color: var(--green);
  font-weight: 750;
}
.error-box {
  padding: 16px 20px;
  border: 1.5px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  margin-bottom: 24px;
}
fieldset {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
  padding: 18px 20px;
}
legend {
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
  padding: 0 8px;
}

/* Ticket Display Page */
.ticket-wrap {
  text-align: center;
  padding: 50px 0 70px;
}
.ticket-wrap h1 {
  font-size: 42px;
  margin-bottom: 14px;
  font-weight: 850;
  color: #0f172a;
}
.real-ticket {
  max-width: 460px;
  margin: 32px auto;
  border: 2px solid #0f172a;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.ticket-top {
  background: var(--green-dark);
  color: #ffffff;
  text-align: left;
  padding: 30px;
}
.ticket-top .brand {
  font-size: 32px;
  color: #ffffff;
}
.ticket-top > .pill {
  float: right;
  background: #ffffff;
  color: var(--green-dark);
  border: 0;
}
.ticket-top h2 {
  font-size: 28px;
  font-weight: 850;
  margin: 24px 0 14px;
  color: #ffffff;
}
.ticket-top p {
  font-size: 15px;
  line-height: 1.6;
  color: #f1f5f9;
}
.ticket-content {
  padding: 24px 32px 28px;
  border-bottom: 2px dashed var(--line);
}
.qr-plate {
  display: inline-block;
  padding: 16px;
  background: #ffffff;
  border: 2.5px solid #0f172a;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 6px #f1f5f9;
  margin: 10px auto 14px;
  text-align: center;
}
.qr-plate .qr,
.qr {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}
.ticket-code {
  font: 24px monospace;
  font-weight: 850;
  letter-spacing: 2px;
  color: #0f172a;
  margin-top: 14px;
}
.ticket-content h3 {
  margin: 24px 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.ticket-content p {
  font-size: 16px;
  color: #334155;
}
.ticket-footer {
  font-size: 14px;
  padding: 22px;
  color: #475569;
  font-weight: 600;
}

.recover {
  max-width: 520px;
  margin: 70px auto;
}
.recover h1 {
  font-size: 40px;
  font-weight: 850;
  color: #0f172a;
}
.recover > .registration-card {
  margin-top: 30px;
}
.legal {
  max-width: 780px;
  margin: 60px auto;
  line-height: 1.85;
}
.legal h1 {
  font-size: 42px;
  font-weight: 850;
  color: #0f172a;
}
.legal h2 {
  margin-top: 32px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}
.empty {
  padding: 40px;
  grid-column: 1 / -1;
  border: 2px dashed var(--line);
  border-radius: 14px;
  color: #475569;
  font-size: 17px;
  text-align: center;
}

/* Rich Description & Media */
.rich-description {
  line-height: 1.85;
  color: #1e293b;
  font-size: 17px;
  margin-top: 18px;
}
.desc-h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 32px 0 16px;
  color: #0f172a;
  letter-spacing: -0.4px;
}
.desc-h3 {
  font-size: 21px;
  font-weight: 750;
  margin: 24px 0 12px;
  color: #0f172a;
}
.desc-p {
  margin: 0 0 18px;
  line-height: 1.85;
  color: #1e293b;
}
.desc-list {
  margin: 0 0 20px 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1e293b;
}
.desc-list li {
  line-height: 1.65;
  font-size: 17px;
}
.desc-image-wrap {
  margin: 28px 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #f8fafc;
}
.desc-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.desc-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.video-embed-wrap,
div[data-youtube-video] {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin: 28px 0;
  background: #020617;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.video-embed-wrap iframe,
div[data-youtube-video] iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.event-cover[style*="background-image"] {
  position: relative;
}
.event-cover[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.event-cover[style*="background-image"] .pill {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 800px) {
  .nav { height: 80px; padding: 0 24px; }
  .nav nav { gap: 18px; font-size: 15px; }
  .nav-admin { display: none; }
  .brand { font-size: 34px; }
  main { padding: 0 24px; }
  .home-hero { grid-template-columns: 1fr; padding: 40px 0; gap: 32px; }
  h1 { font-size: 42px; }
  .hero-art { height: 320px; max-width: 440px; width: 100%; margin: auto; }
  .art-ticket { top: 30px; left: 80px; height: 260px; }
  .art-ticket strong { font-size: 40px; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-layout { grid-template-columns: 1fr; gap: 36px; }
  .registration-card { padding: 26px; }
  .detail-cover { height: 230px; }
  footer { margin: 0 24px; flex-wrap: wrap; }
  footer p { min-width: 60%; }
}

@media (max-width: 500px) {
  .event-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; gap: 16px; }
  .section-head h2 { font-size: 28px; }
  .nav nav > a:first-child { display: none; }
  h1 { font-size: 36px; letter-spacing: -1.3px; }
  .hero-art { height: 290px; }
  .art-ticket { left: 50px; }
  .hero-copy { font-size: 17px; }
  .detail-heading h1 { font-size: 34px; }
  .event-layout { padding-bottom: 40px; }
  .ticket-wrap h1 { font-size: 32px; }
  .recover h1 { font-size: 34px; }
  .devbar { font-size: 12px; }
  .ticket-top { padding: 24px; }
}
