* {
  box-sizing: border-box;
}

:root {
  --bg: #160b28;
  --bg-deep: #2a1241;
  --surface: rgba(247, 227, 255, 0.08);
  --surface-strong: rgba(255, 243, 251, 0.14);
  --surface-card: rgba(255, 250, 255, 0.92);
  --line: rgba(233, 194, 255, 0.2);
  --line-strong: rgba(217, 137, 236, 0.38);
  --text: #f9f2ff;
  --text-dark: #2a153f;
  --muted: #d4bfdc;
  --primary: #a57cff;
  --primary-dark: #7a4dd6;
  --primary-soft: #eed5ff;
  --accent: #ff91c5;
  --accent-deep: #e96ea9;
  --accent-soft: rgba(255, 145, 197, 0.22);
  --shadow-soft: 0 24px 60px rgba(15, 7, 28, 0.34);
  --shadow-float: 0 32px 90px rgba(7, 2, 18, 0.42);
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 22px
    ),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(255, 145, 197, 0.24), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(165, 124, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #1f0f33 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.45;
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite;
}

body::before {
  top: -14rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(255, 145, 197, 0.3), transparent 66%);
}

body::after {
  bottom: -16rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(165, 124, 255, 0.28), transparent 66%);
  animation-delay: -7s;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 42px;
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0 14px;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(230, 205, 255, 0.5) 15%, rgba(255, 175, 211, 0.28) 82%, transparent 100%);
}

.site-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex: 1 1 620px;
  min-width: 0;
}

.brand-lockup {
  max-width: 760px;
}

.brand-logo {
  width: clamp(84px, 11vw, 124px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(10, 4, 22, 0.3);
  border: 1px solid rgba(233, 194, 255, 0.18);
  flex: 0 0 auto;
}

header h1,
.hero-copy h2,
.panel-heading h2,
.admin-heading h2,
.modal-card h2,
.compact-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

header h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--text);
  max-width: 30ch;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.76rem;
  color: #c28fdc;
  font-weight: 800;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
  font-size: 0.98rem;
  opacity: 0.94;
}

.brand-note {
  margin: 14px 0 0;
  color: #6d5582;
  line-height: 1.6;
  max-width: 62ch;
  font-size: 0.95rem;
}

.brand-tags {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #b06fcf;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
}

.partner-branding {
  margin: 18px 0 8px;
}

.club-socials {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.club-socials a {
  color: #a55bbd;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.club-socials a:hover {
  color: #6f3f8d;
}

.site-footer {
  margin-top: 16px;
  padding-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(215, 185, 255, 0.16);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.footer-socials {
  margin-top: 0;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(155, 92, 255, 0.1);
  color: var(--primary-soft);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(155, 92, 255, 0.18);
}

.footer-socials a:hover {
  background: rgba(155, 92, 255, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
  position: relative;
}

.menu-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(233, 194, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(8, 3, 19, 0.24);
  backdrop-filter: blur(10px);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: #fff;
}

.header-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(22, 11, 40, 0.96);
  border: 1px solid rgba(233, 194, 255, 0.16);
  box-shadow: var(--shadow-float);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.header-menu a {
  color: rgba(249, 242, 255, 0.96);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-menu a:hover {
  background: rgba(165, 124, 255, 0.16);
  transform: translateX(2px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.danger-btn:focus-visible,
.modal-close:focus-visible,
.menu-toggle:focus-visible,
.header-menu a:focus-visible,
.footer-socials a:focus-visible,
.founder-meta a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 42px clamp(24px, 4vw, 56px) 46px;
  margin: 14px 0 54px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(165, 124, 255, 0.18), rgba(255, 145, 197, 0.14) 42%, rgba(233, 110, 169, 0.1) 100%);
  border: 1px solid rgba(204, 146, 214, 0.18);
  box-shadow: var(--shadow-float), inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -110px -70px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.64), transparent 28%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -50px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 145, 197, 0.2), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 145, 197, 0.08) 58%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  animation: pulseOrb 8s ease-in-out infinite;
}

.hero-copy h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  color: #5e3a7d;
  max-width: 14ch;
}

.hero-text,
.panel-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 60ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.site-nav .nav-secondary {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 16px 34px rgba(165, 124, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.secondary-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 232, 255, 0.9));
  color: var(--text-dark);
  box-shadow: inset 0 0 0 1px rgba(165, 124, 255, 0.12), 0 12px 24px rgba(22, 7, 40, 0.08);
}

.danger-btn {
  background: linear-gradient(135deg, #f06ab0, #c53d86);
  color: #fff;
}

.registration-success-btn:disabled {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.22);
  cursor: default;
  opacity: 1;
}

.registration-inline-note {
  margin: 0;
  color: #166534;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.site-nav .nav-secondary:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.42);
  filter: brightness(1.03);
}

.secondary-btn:hover,
.site-nav .nav-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 238, 255, 0.95));
}

.danger-btn:hover {
  filter: brightness(1.05) saturate(1.08);
}

.panel {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.panel::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 92, 255, 0.65), transparent);
}

.panel-heading,
.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.panel-heading h2,
.admin-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  color: #fff;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.panel-heading h2::after,
.admin-heading h2::after,
.compact-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-soft), var(--accent));
  box-shadow: 0 0 20px rgba(255, 119, 187, 0.34);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-select {
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(155, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: #2d1a42;
  font: inherit;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.gallery-feed.card-grid {
  display: block;
  columns: 3 290px;
  column-gap: 24px;
}

.event-card,
.product-card,
.partner-card,
.gallery-card,
.order-card,
.registration-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 236, 255, 0.92));
  border: 1px solid rgba(233, 194, 255, 0.1);
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.event-card--registered {
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 28px 72px rgba(8, 28, 16, 0.24);
}

.event-card--archived {
  border-color: rgba(120, 96, 154, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 232, 247, 0.84));
}

.event-card--flash {
  animation: registrationFlash 1.8s ease-out 1;
}

.event-card:hover,
.product-card:hover,
.partner-card:hover,
.gallery-card:hover,
.order-card:hover,
.registration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 194, 255, 0.22);
  box-shadow: 0 30px 80px rgba(8, 3, 19, 0.45);
}

.gallery-feed .gallery-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
}

.event-card::before,
.product-card::before,
.partner-card::before,
.gallery-card::before,
.order-card::before,
.registration-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(142, 99, 255, 0.92), rgba(255, 119, 187, 0.8), rgba(233, 194, 255, 0.6));
}

.event-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(22, 8, 36, 0.16);
}

.event-badge--archived {
  color: #4d3d63;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(120, 96, 154, 0.2);
}

.event-card img,
.event-image,
.product-card img,
.product-image,
.partner-card img,
.partner-logo {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  object-fit: contain;
  background: linear-gradient(180deg, #ffffff, #f7efff);
  padding: 10px;
  display: block;
}

.gallery-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-feature-button {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-feature-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(180deg, #ffffff, #f7efff);
  display: block;
}

.gallery-thumb-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  gap: 8px;
}

.gallery-thumb-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-thumb-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(180deg, #ffffff, #f7efff);
  display: block;
  border: 1px solid rgba(233, 194, 255, 0.16);
}

.event-image,
.product-image,
.partner-logo,
.previewable-image {
  cursor: zoom-in;
}

.event-card h3,
.product-card h4,
.partner-card h4,
.gallery-card h3,
.order-title,
.registration-card h3 {
  margin: 0;
  color: var(--text-dark);
}

.event-card h3,
.registration-card h3,
.product-card h4,
.partner-card h4,
.gallery-card h3 {
  font-size: 1.2rem;
}

.event-description,
.product-description,
.partner-description,
.gallery-description,
.event-meta,
.registration-title,
.registration-details,
.order-card p,
.registration-status,
.product-price,
.partner-price,
.order-meta {
  margin: 0;
  color: #5b4a71;
  line-height: 1.6;
}

.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.founder-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(142, 99, 255, 0.1);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(142, 99, 255, 0.18);
}

.founder-meta a:hover {
  background: rgba(255, 119, 187, 0.14);
}

.founder-meta p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 119, 187, 0.12);
  border: 1px solid rgba(255, 119, 187, 0.2);
  color: #8d2d72;
  font-weight: 700;
}

.founder-meta p strong {
  color: #5a1a78;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 239, 255, 0.92));
  border: 1px solid rgba(233, 194, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  border: 1px solid rgba(233, 194, 255, 0.12);
  background: linear-gradient(180deg, #fff, #f7ecff);
}

.founder-copy h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.founder-bio {
  margin: 14px 0 18px;
  color: #5a496f;
  line-height: 1.7;
}

.admin-access-panel {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.admin-login-panel {
  width: min(100%, 560px);
}

.admin-access-panel #adminAccessMessage {
  width: min(100%, 560px);
  margin-bottom: 0;
}

.event-meta,
.registration-status,
.order-meta {
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(215, 185, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(142, 99, 255, 0.18);
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 1rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.98);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(255, 119, 187, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 119, 187, 0.14);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form-hint {
  margin: -4px 0 0;
  color: #cdbde0;
  line-height: 1.6;
  font-size: 0.92rem;
}

.full-width {
  grid-column: 1 / -1;
}

.status-message {
  font-size: 1rem;
  padding: 18px 0;
  color: rgba(247, 236, 255, 0.82);
}

.status-message.error {
  color: #ffb6d5;
}

.status-loading,
.status-empty,
.status-error {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  margin: 0;
  border: 1px solid rgba(215, 185, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(155, 92, 255, 0.08));
  backdrop-filter: blur(10px);
}

.status-loading::before,
.status-empty::before,
.status-error::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-loading::before {
  background: var(--primary-soft);
  box-shadow: 0 0 14px rgba(215, 185, 255, 0.8);
  animation: pulseDot 1.3s ease-in-out infinite;
}

.status-empty::before {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(209, 110, 255, 0.45);
}

.status-error {
  border-color: rgba(255, 182, 213, 0.2);
  background: linear-gradient(135deg, rgba(255, 230, 241, 0.76), rgba(240, 217, 255, 0.7));
}

.status-error::before {
  background: #ffb6d5;
  box-shadow: 0 0 14px rgba(255, 182, 213, 0.55);
}

.message {
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(8, 3, 19, 0.16);
}

.message.success {
  background: rgba(236, 253, 245, 0.95);
  color: #166534;
  border: 1px solid #4ade80;
}

.message.error {
  background: rgba(254, 226, 226, 0.95);
  color: #9f1239;
  border: 1px solid #fb7185;
}

.registration-status {
  font-size: 0.9rem;
}

.registrations-table-shell {
  width: 100%;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(155, 92, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.registrations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.registrations-table thead th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5687;
  background: rgba(155, 92, 255, 0.08);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(155, 92, 255, 0.1);
}

.registrations-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(155, 92, 255, 0.08);
  vertical-align: top;
  color: #2d1a42;
}

.registrations-table tbody tr:hover {
  background: rgba(155, 92, 255, 0.04);
}

.registration-main {
  display: grid;
  gap: 4px;
}

.registration-main strong {
  font-size: 0.98rem;
}

.registration-main span,
.registrations-table tbody td {
  font-size: 0.92rem;
}

.registrations-table tbody td strong {
  color: #4a256f;
}

.registration-summary-row td {
  background: rgba(255, 255, 255, 0.55);
}

.registration-details-row td {
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(155, 92, 255, 0.08);
  background: rgba(248, 242, 255, 0.96);
}

.registration-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 239, 255, 0.96));
  border: 1px solid rgba(155, 92, 255, 0.1);
}

.registration-detail-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(155, 92, 255, 0.06);
  border: 1px solid rgba(155, 92, 255, 0.1);
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b5b9e;
  font-weight: 800;
}

.detail-value {
  color: #2d1a42;
  line-height: 1.5;
  word-break: break-word;
}

.registration-detail-card-actions {
  grid-column: 1 / -1;
}

.registration-toggle-btn {
  width: 116px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.compact-notes {
  padding: 0;
  border: 0;
  background: transparent;
}

.notes-preview {
  color: #6a1fb5;
}

.notes-cell {
  max-width: 260px;
}

.notes-toggle {
  display: grid;
  gap: 8px;
}

.notes-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #6a1fb5;
  font-weight: 800;
  line-height: 1.4;
}

.notes-summary::-webkit-details-marker {
  display: none;
}

.notes-summary::before {
  content: "View notes";
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d5ccf;
  background: rgba(155, 92, 255, 0.1);
  border: 1px solid rgba(155, 92, 255, 0.15);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.notes-toggle[open] .notes-summary::before {
  content: "Hide notes";
}

.notes-content {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(155, 92, 255, 0.06);
  border: 1px solid rgba(155, 92, 255, 0.12);
  color: #4a256f;
}

.notes-content p {
  margin: 0;
  line-height: 1.5;
}

.status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill-success {
  color: #166534;
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.2);
}

.status-pill-warn {
  color: #9f1239;
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.18);
}

.status-pill-info {
  color: #4338ca;
  background: rgba(129, 140, 248, 0.16);
  border-color: rgba(129, 140, 248, 0.2);
}

.status-pill-muted {
  color: #5b4a71;
  background: rgba(155, 92, 255, 0.08);
  border-color: rgba(155, 92, 255, 0.12);
}

.table-actions {
  white-space: nowrap;
}

.button-row-tight {
  margin-top: 0;
  gap: 8px;
  align-items: stretch;
}

.registration-action-btn {
  width: 128px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
}

.table-actions-col {
  width: 1%;
}

.registration-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 243, 255, 0.96));
  color: #221036;
}

.registration-card .registration-title,
.registration-card .registration-details,
.registration-card .registration-status,
.registration-card p {
  color: #2d1a42;
}

.registration-card strong {
  color: #13091f;
}

@media (max-width: 900px) {
  .registrations-table {
    min-width: 0;
  }

  .registrations-table thead {
    display: none;
  }

  .registrations-table,
  .registrations-table tbody,
  .registrations-table tr,
  .registrations-table td {
    display: block;
    width: 100%;
  }

  .registrations-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(155, 92, 255, 0.08);
  }

  .registrations-table tbody td {
    padding: 8px 0;
    border-bottom: 0;
  }

  .registrations-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b5687;
    font-weight: 800;
  }

  .table-actions {
    white-space: normal;
  }

  .button-row-tight {
    flex-direction: row;
  }

  .registration-action-btn {
    width: auto;
  }

  .registration-toggle-btn {
    width: auto;
  }

  .notes-cell {
    max-width: none;
  }

  .notes-summary {
    flex-wrap: wrap;
  }

  .notes-summary::before {
    width: fit-content;
  }

  .registration-details-row td {
    padding: 0 0 14px;
  }

  .registration-details-grid {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .modal {
    place-items: start center;
    padding: 12px;
  }

  .modal-card {
    width: min(100%, 560px);
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }

  .admin-select {
    min-width: 100%;
  }
}

.hidden {
  display: none !important;
}

.message.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(16, 6, 28, 0.68);
  backdrop-filter: blur(12px);
  padding: 20px;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 239, 255, 0.96));
  color: var(--text-dark);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(155, 92, 255, 0.12);
  box-shadow: var(--shadow-float);
}

.modal-card:focus {
  outline: none;
}

.modal-card h2 {
  color: var(--text-dark);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-dark);
  cursor: pointer;
}

.image-viewer-modal {
  z-index: 60;
}

.image-viewer-card {
  width: min(98vw, 1320px);
  min-height: min(92vh, 960px);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.image-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(209, 110, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 239, 255, 0.98));
  border: 1px solid rgba(155, 92, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.image-viewer-stage img {
  width: 100%;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  background: #fff;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 8, 34, 0.68);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(10, 4, 17, 0.24);
}

.image-viewer-nav:hover {
  background: rgba(20, 8, 34, 0.82);
}

.image-viewer-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.image-viewer-nav-prev {
  left: 12px;
}

.image-viewer-nav-next {
  right: 12px;
}

.image-viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.image-viewer-thumbs.hidden {
  display: none;
}

.image-viewer-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.image-viewer-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #fff;
}

.image-viewer-thumb.is-active {
  border-color: rgba(165, 124, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(165, 124, 255, 0.14);
}

.compact-panel {
  padding-top: 8px;
}

.archived-panel {
  margin-top: 28px;
}

.gallery-card {
  gap: 12px;
}

.gallery-card .button-row {
  margin-top: 4px;
}

.compact-panel h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 16px, 0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    opacity: 1;
  }
}

@keyframes registrationFlash {
  0% {
    box-shadow: var(--shadow-soft);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16), 0 32px 84px rgba(8, 28, 16, 0.24);
  }
  100% {
    box-shadow: 0 28px 72px rgba(8, 28, 16, 0.24);
  }
}

@media (max-width: 840px) {
  .page-shell {
    padding: 24px 18px 56px;
  }

  .site-header {
    padding-top: 18px;
  }

  .site-brand {
    flex-basis: 100%;
  }

  .brand-logo {
    width: 90px;
  }

  header h1 {
    max-width: 18ch;
  }

  .hero-panel {
    padding: 32px 22px 34px;
    border-radius: 28px;
  }

  .form-grid {
    padding: 20px;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  header h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    max-width: none;
  }

  .site-brand {
    align-items: flex-start;
    gap: 16px;
  }

  .admin-actions,
  .button-row,
  .form-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .header-menu {
    width: min(100%, 260px);
  }

  .panel-heading,
  .admin-heading {
    align-items: flex-start;
  }

  .gallery-feed.card-grid {
    columns: 1;
  }

  .gallery-card {
    padding: 18px;
  }

  .gallery-feature-image {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .gallery-thumb-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .founder-card {
    padding: 20px;
  }

  .image-viewer-card {
    width: 100%;
    min-height: 100vh;
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .image-viewer-stage {
    padding: 12px;
    border-radius: 20px;
  }

  .image-viewer-stage img {
    max-height: 64vh;
  }

  .image-viewer-nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .image-viewer-nav-prev {
    left: 8px;
  }

  .image-viewer-nav-next {
    right: 8px;
  }

  .image-viewer-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
