@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

:root {
  /* Updated palette — matching the reference screenshot */
  --spring-yellow:     #E8C800;
  --earth-navy:        #1A2340;
  --earth-forest:      #2A3D2A;
  --earth-olive:       #7A7030;
  --earth-cream:       #EDE3D4;
  --earth-rust:        #8B3020;
  --white:             #FDFAF6;
  --text-dark:         #1A1814;
  --line:              rgba(0,0,0,0.08);

  /* Legacy aliases used in components — remapped to new palette */
  --spring-pink:       #8B3020;
  --spring-blush:      #EDE3D4;
  --spring-orange:     #E8C800;
  --spring-chartreuse: #2A3D2A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#petal-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(253,250,246,0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300;
  color: var(--earth-navy); letter-spacing: 0.05em;
}
.nav-logo em { font-style: italic; color: var(--earth-rust); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.6rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--earth-olive);
  text-decoration: none; font-weight: 300; transition: color 0.3s;
}
.nav-links a:hover { color: var(--earth-rust); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; background: var(--white);
}

.hero-bg-circle {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-bg-circle.c1 {
  width: 700px; height: 700px;
  background: var(--earth-navy); opacity: 0.04;
  top: -200px; right: -150px;
  animation: floatA 14s ease-in-out infinite;
}
.hero-bg-circle.c2 {
  width: 500px; height: 500px;
  background: var(--earth-forest); opacity: 0.04;
  bottom: -150px; left: -100px;
  animation: floatB 17s ease-in-out infinite;
}
.hero-bg-circle.c3 {
  width: 300px; height: 300px;
  background: var(--spring-yellow); opacity: 0.04;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: floatC 11s ease-in-out infinite;
}
@keyframes floatA { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-28px,28px)} }
@keyframes floatB { 0%,100%{transform:translate(0,0)} 50%{transform:translate(22px,-22px)} }
@keyframes floatC { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.18)} }

.hero-tag {
  font-weight: 200; font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--earth-rust); margin-bottom: 2rem;
  position: relative; z-index: 2;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.88; text-align: center; color: var(--earth-navy);
  position: relative; z-index: 2; letter-spacing: -0.02em;
  opacity: 0; animation: fadeUp 1.3s 0.5s forwards;
}
.hero-names .amp {
  font-style: italic; color: var(--earth-rust); font-size: 0.8em;
}
.hero-divider {
  width: 130px; height: 1px; margin: 2.8rem auto;
  background: linear-gradient(90deg, transparent, var(--earth-olive), transparent);
  position: relative; z-index: 2;
  opacity: 0; animation: fadeUp 1s 0.8s forwards;
}
.hero-date {
  font-weight: 200; font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--earth-olive); position: relative; z-index: 2;
  text-align: center;
  opacity: 0; animation: fadeUp 1s 1s forwards;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  margin: 0 auto; z-index: 2; width: fit-content;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeScroll 1s 1.5s forwards;
}
@keyframes fadeScroll {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll span {
  font-size: 0.58rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--earth-olive); font-weight: 200;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--earth-rust), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100%{opacity:0.35; transform:scaleY(1)}
  50%{opacity:1; transform:scaleY(1.08)}
}
@keyframes fadeUp {
  from{opacity:0; transform:translateY(18px)}
  to{opacity:1; transform:translateY(0)}
}

.countdown-section {
  background: var(--earth-navy); padding: 5.5rem 2rem;
  position: relative; overflow: hidden; z-index: 1;
}
.countdown-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--earth-rust), var(--spring-yellow), var(--earth-forest), var(--earth-olive));
}
.countdown-label {
  text-align: center; font-size: 0.62rem;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--earth-cream); opacity: 0.4; margin-bottom: 3rem; font-weight: 200;
}
.countdown-grid {
  display: flex; justify-content: center;
  gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap;
}
.cd-item { text-align: center; position: relative; }
.cd-item::after {
  content: ':'; position: absolute;
  right: clamp(-1.5rem, -3vw, -3.5rem); top: 50%;
  transform: translateY(-65%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--earth-olive); opacity: 0.5;
}
.cd-item:last-child::after { display: none; }
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--white); line-height: 1; letter-spacing: -0.02em;
}
.cd-unit {
  font-size: 0.58rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--earth-cream);
  margin-top: 0.6rem; font-weight: 200; opacity: 0.5;
}

.section-eyebrow {
  font-size: 0.6rem; letter-spacing: 0.48em;
  text-transform: uppercase; color: var(--earth-rust);
  font-weight: 300; margin-bottom: 1rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s, transform 0.7s;
}
.section-eyebrow.visible { opacity: 1; transform: none; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--earth-navy); line-height: 1.08; margin-bottom: 4rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s 0.1s, transform 0.9s 0.1s;
}
.section-title.visible { opacity: 1; transform: none; }
.section-title em { font-style: italic; color: var(--earth-rust); }

.details-section {
  padding: clamp(5rem, 10vw, 9rem) 2rem;
  max-width: 1120px; margin: 0 auto;
  position: relative; z-index: 1;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
}
.detail-card {
  background: var(--earth-cream); padding: 2.5rem;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s, transform 0.7s, background 0.3s;
}
.detail-card.visible { opacity: 1; transform: none; }
.detail-card:nth-child(2){transition-delay:0.08s}
.detail-card:nth-child(3){transition-delay:0.16s}
.detail-card:nth-child(4){transition-delay:0.24s}

.detail-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--earth-rust);
  transition: height 0.55s 0.35s;
}
.detail-card.visible::before { height: 100%; }
.detail-card:hover { background: var(--white); }

.detail-icon {
  font-size: 1.15rem; color: var(--earth-navy); opacity: 0.5;
  margin-bottom: 1.1rem;
}
.detail-label {
  font-size: 0.58rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--earth-olive);
  font-weight: 300; margin-bottom: 0.7rem;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400;
  color: var(--earth-navy); line-height: 1.3;
}
.detail-sub {
  font-size: 0.72rem; color: var(--earth-olive);
  margin-top: 0.45rem; font-weight: 200; line-height: 1.7;
}

.gallery-section {
  padding: clamp(4rem, 8vw, 8rem) 2rem;
  position: relative; z-index: 1;
}
.gallery-inner { max-width: 1120px; margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px; margin-top: 3rem;
}
.gallery-item {
  overflow: hidden; position: relative;
  background: var(--earth-cream);
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.7s, transform 0.7s;
}
.gallery-item.visible { opacity: 1; transform: scale(1); }
.gallery-item:nth-child(2){transition-delay:0.07s}
.gallery-item:nth-child(3){transition-delay:0.14s}
.gallery-item:nth-child(4){transition-delay:0.21s}
.gallery-item:nth-child(5){transition-delay:0.28s}

.gallery-item:nth-child(1){ grid-column: span 7; aspect-ratio: 4/3; }
.gallery-item:nth-child(2){ grid-column: span 5; aspect-ratio: 3/4; }
.gallery-item:nth-child(3){ grid-column: span 4; aspect-ratio: 1; }
.gallery-item:nth-child(4){ grid-column: span 4; aspect-ratio: 1; }
.gallery-item:nth-child(5){ grid-column: span 4; aspect-ratio: 1; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94), filter 0.4s;
  filter: saturate(0.9);
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.1); }

.gallery-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--earth-cream);
  transition: background 0.3s;
}
.gallery-item:hover .gallery-placeholder { background: #e0d4c3; }
.gallery-placeholder i { font-size: 1.8rem; color: var(--earth-olive); opacity: 0.3; }
.gallery-placeholder span {
  font-size: 0.55rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--earth-olive);
  opacity: 0.5; font-weight: 300;
}

.story-section {
  padding: clamp(5rem, 10vw, 10rem) 2rem;
  background: var(--earth-navy); position: relative; z-index: 1; overflow: hidden;
}
.story-section::after {
  content: '2027'; position: absolute;
  right: -1rem; bottom: -2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10rem, 22vw, 20rem);
  font-weight: 300; color: white; opacity: 0.025;
  pointer-events: none; line-height: 1;
}
.story-inner { max-width: 820px; margin: 0 auto; position: relative; }
.story-inner .section-eyebrow { color: var(--earth-cream); opacity: 0.6; }
.story-inner .section-title { color: var(--white); }
.story-inner .section-title em { color: var(--spring-yellow); }

.story-timeline { display: flex; flex-direction: column; position: relative; }
.story-timeline::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--earth-rust), var(--spring-yellow), var(--earth-forest));
  opacity: 0.3;
}
.story-item {
  padding: 2.5rem 2.5rem 2.5rem 3rem; position: relative;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.7s, transform 0.7s;
}
.story-item.visible { opacity: 1; transform: none; }
.story-item:nth-child(2){transition-delay:0.15s}
.story-item:nth-child(3){transition-delay:0.3s}
.story-item::before {
  content: ''; position: absolute;
  left: -5px; top: 3rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--earth-rust); border: 2px solid var(--earth-navy);
}
.story-item:nth-child(2)::before { background: var(--spring-yellow); }
.story-item:nth-child(3)::before { background: var(--earth-forest); }

.story-year {
  font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--earth-cream); opacity: 0.5; margin-bottom: 0.5rem; font-weight: 200;
}
.story-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 300;
  color: var(--white); margin-bottom: 0.8rem;
}
.story-item p {
  font-size: 0.8rem; font-weight: 200;
  line-height: 1.95; color: rgba(255,255,255,0.48);
  font-style: italic;
}

.palette-section {
  background: var(--earth-cream);
  padding: clamp(4rem, 8vw, 8rem) 2rem;
  position: relative; z-index: 1;
}
.palette-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.palette-dots {
  display: flex; justify-content: center;
  gap: 1.4rem; margin-top: 3rem; flex-wrap: wrap;
}
.palette-dot {
  width: 72px; height: 72px; border-radius: 50%;
  transition: transform 0.4s cubic-bezier(.23,1,.32,1);
  opacity: 0; animation: dotIn 0.5s forwards;
  cursor: pointer; position: relative;
}
.palette-dot::after {
  content: attr(data-name);
  position: absolute; bottom: -1.8rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.52rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--earth-olive);
  white-space: nowrap; opacity: 0; transition: opacity 0.3s;
}
.palette-dot:hover { transform: scale(1.2) translateY(-6px); }
.palette-dot:hover::after { opacity: 1; }
@keyframes dotIn {
  from{opacity:0; transform:scale(0.5)}
  to{opacity:1; transform:scale(1)}
}
/* 6 palette dots — matching the screenshot colors */
.palette-dot:nth-child(1){background:var(--spring-yellow);animation-delay:0.05s}
.palette-dot:nth-child(2){background:var(--earth-navy);animation-delay:0.1s}
.palette-dot:nth-child(3){background:var(--earth-forest);animation-delay:0.15s}
.palette-dot:nth-child(4){background:var(--earth-olive);animation-delay:0.2s}
.palette-dot:nth-child(5){background:var(--earth-cream);animation-delay:0.25s;border:1px solid rgba(0,0,0,0.1)}
.palette-dot:nth-child(6){background:var(--earth-rust);animation-delay:0.3s}

.guestlist-section {
  background: var(--white); padding: clamp(5rem, 10vw, 9rem) 2rem;
  position: relative; z-index: 1; border-top: 1px solid var(--line);
}
.guestlist-inner { max-width: 780px; margin: 0 auto; }

.gl-search-wrap {
  display: flex; gap: 0; margin-top: 3rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s; background: var(--white);
}
.gl-search-wrap:focus-within { border-color: var(--earth-rust); }

.gl-search-input {
  flex: 1; border: none; outline: none; padding: 1.1rem 1.5rem;
  font-family: 'Jost', sans-serif; font-size: 0.88rem;
  font-weight: 300; color: var(--text-dark); background: transparent;
}
.gl-search-input::placeholder { color: rgba(0,0,0,0.3); }
.gl-search-btn {
  padding: 1rem 1.5rem; background: var(--earth-navy); border: none;
  color: white; cursor: pointer; transition: background 0.3s;
  font-size: 1rem; display: flex; align-items: center;
}
.gl-search-btn:hover { background: var(--earth-rust); }

.gl-results { margin-top: 2rem; }
.gl-result-card {
  border: 1px solid var(--line); padding: 1.8rem 2rem;
  margin-bottom: 1rem; display: flex; align-items: center;
  gap: 1.5rem; animation: slideInResult 0.35s ease;
  background: var(--white);
  transition: border-color 0.3s;
}
.gl-result-card:hover { border-color: var(--earth-rust); }
@keyframes slideInResult {
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}
.gl-result-badge {
  min-width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.badge-guest     { background: rgba(139,48,32,0.1);  color: var(--earth-rust); }
.badge-family    { background: rgba(42,61,42,0.12);  color: var(--earth-forest); }
.badge-bridesmaid{ background: rgba(232,200,0,0.12); color: var(--earth-olive); }
.badge-groomsmen { background: rgba(26,35,64,0.1);   color: var(--earth-navy); }

.gl-result-info { flex: 1; }
.gl-result-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--earth-navy);
}
.gl-result-role {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--earth-olive);
  margin-top: 0.2rem; font-weight: 300;
}
.gl-result-check { font-size: 1.1rem; color: var(--earth-forest); }
.gl-empty {
  text-align: center; padding: 2.5rem;
  font-size: 0.8rem; font-weight: 200;
  color: rgba(0,0,0,0.35); font-style: italic;
}

.gl-summary {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.gl-chip {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border: 1px solid var(--line);
  color: var(--earth-olive); font-weight: 300;
}

footer {
  background: var(--earth-navy); padding: 4.5rem 2rem;
  text-align: center; position: relative; z-index: 1; overflow: hidden;
}
footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--earth-rust), var(--spring-yellow), var(--earth-forest), var(--earth-olive));
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300;
  color: var(--white); margin-bottom: 0.6rem;
}
.footer-names em { font-style: italic; color: var(--spring-yellow); }
.footer-date {
  font-size: 0.62rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 200; margin-bottom: 2rem;
}
.footer-hash {
  font-size: 0.7rem; font-weight: 200;
  color: rgba(255,255,255,0.2); letter-spacing: 0.12em;
}
.footer-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem;
}
.footer-dot {
  width: 6px; height: 6px; border-radius: 50%;
}

@media (max-width: 768px) {
  nav { padding: 1.1rem 1.4rem; }
  .nav-links { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 1; aspect-ratio: 1; }
  .gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
}

.admin-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,18,28,0.82);
  backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.admin-overlay.open { display: flex; }

.admin-modal {
  background: #0f1220;
  border: 1px solid rgba(255,255,255,0.07);
  width: min(96vw, 900px);
  max-height: 90vh;
  display: flex; flex-direction: column;
  position: relative;
  animation: adminIn 0.3s cubic-bezier(.23,1,.32,1);
}
@keyframes adminIn {
  from { opacity:0; transform: scale(0.97) translateY(12px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.admin-topbar-title {
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 300;
  display: flex; align-items: center; gap: 0.7rem;
}
.admin-topbar-title .admin-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--earth-rust); animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100%{opacity:1} 50%{opacity:0.3}
}
.admin-close-btn {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.3); font-size: 1.1rem;
  transition: color 0.2s; padding: 0.2rem;
}
.admin-close-btn:hover { color: var(--earth-rust); }

.admin-passcode-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 2rem; flex: 1;
}
.admin-passcode-screen h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: white; margin-bottom: 0.4rem;
}
.admin-passcode-screen p {
  font-size: 0.68rem; font-weight: 200; color: rgba(255,255,255,0.3);
  letter-spacing: 0.2em; margin-bottom: 2.5rem;
}
.passcode-dots {
  display: flex; gap: 0.75rem; margin-bottom: 2rem;
}
.passcode-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s, border-color 0.2s;
}
.passcode-dot.filled {
  background: var(--earth-rust); border-color: var(--earth-rust);
}

.passcode-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  width: 220px;
}
.passcode-key {
  aspect-ratio: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07); color: white;
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.passcode-key:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }
.passcode-key:active { background: rgba(139,48,32,0.2); border-color: var(--earth-rust); }
.passcode-key.del { font-family: 'Jost', sans-serif; font-size: 0.9rem; }

.passcode-error {
  margin-top: 1rem; font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--earth-rust); opacity: 0; transition: opacity 0.3s;
  text-transform: uppercase;
}
.passcode-error.show { opacity: 1; }

.admin-panel {
  display: none; flex-direction: column; flex: 1; overflow: hidden;
}
.admin-panel.open { display: flex; }

.admin-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0; padding: 0 1.8rem;
}
.admin-tab {
  background: transparent; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.58rem;
  letter-spacing: 0.35em; text-transform: uppercase; font-weight: 300;
  color: rgba(255,255,255,0.3); padding: 1rem 1.2rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.admin-tab:hover { color: rgba(255,255,255,0.6); }
.admin-tab.active { color: var(--earth-rust); border-bottom-color: var(--earth-rust); }

.admin-pane {
  display: none; padding: 1.8rem; overflow-y: auto; flex: 1;
}
.admin-pane.active { display: block; }

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 1px;
  margin-bottom: 2rem;
}
.admin-stat {
  background: rgba(255,255,255,0.03); padding: 1.4rem 1.2rem; text-align: center;
}
.admin-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300; color: white; line-height: 1;
}
.admin-stat-label {
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 0.4rem; font-weight: 200;
}

.admin-table-wrap { overflow-x: auto; }
.admin-search-row {
  display: flex; gap: 0.75rem; margin-bottom: 1.2rem; align-items: center;
}
.admin-search-input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 0.65rem 1rem; font-family: 'Jost', sans-serif; font-size: 0.8rem;
  font-weight: 300; color: white; outline: none; transition: border-color 0.2s;
}
.admin-search-input::placeholder { color: rgba(255,255,255,0.2); }
.admin-search-input:focus { border-color: var(--earth-rust); }

.admin-filter-select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 0.65rem 1rem; font-family: 'Jost', sans-serif; font-size: 0.75rem;
  font-weight: 300; color: rgba(255,255,255,0.6); outline: none;
  cursor: pointer; -webkit-appearance: none;
}
.admin-filter-select option { background: #1a1e2e; }

.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem;
}
.admin-table th {
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); font-weight: 300; text-align: left;
  padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.85rem 1rem; color: rgba(255,255,255,0.7); font-weight: 300;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-table .role-badge {
  display: inline-block; font-size: 0.55rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; font-weight: 300;
}
.role-guest      { background: rgba(139,48,32,0.15); color: #d4826e; }
.role-family     { background: rgba(42,61,42,0.2);   color: #7aaa7a; }
.role-bridesmaid { background: rgba(232,200,0,0.12); color: #c9aa00; }
.role-groomsmen  { background: rgba(200,215,255,0.1);color: #a8beff; }

.admin-table-empty {
  text-align: center; padding: 3rem;
  color: rgba(255,255,255,0.2); font-size: 0.78rem; font-weight: 200;
  font-style: italic;
}

.admin-import-zone {
  border: 1.5px dashed rgba(255,255,255,0.1); padding: 3rem 2rem;
  text-align: center; transition: border-color 0.3s, background 0.3s;
  cursor: pointer; position: relative; margin-bottom: 1.5rem;
}
.admin-import-zone:hover, .admin-import-zone.drag-over {
  border-color: var(--earth-rust); background: rgba(139,48,32,0.04);
}
.admin-import-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.admin-import-zone i { font-size: 2.2rem; color: rgba(255,255,255,0.2); margin-bottom: 1rem; display: block; }
.admin-import-zone p { font-size: 0.75rem; font-weight: 200; color: rgba(255,255,255,0.4); line-height: 1.8; }
.admin-import-zone strong { color: var(--earth-rust); font-weight: 400; }

.admin-import-status {
  text-align: center; font-size: 0.72rem; font-weight: 300; min-height: 1.4rem;
  color: rgba(255,255,255,0.3); letter-spacing: 0.1em;
}
.admin-import-status.success { color: var(--earth-forest); }
.admin-import-status.error   { color: var(--earth-rust); }

.admin-danger-zone {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-danger-label {
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-bottom: 1rem; font-weight: 300;
}
.btn-danger {
  background: transparent; border: 1px solid rgba(139,48,32,0.4);
  color: rgba(220,100,80,0.7); font-family: 'Jost', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; cursor: pointer; transition: all 0.3s;
  font-weight: 300; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-danger:hover { background: rgba(139,48,32,0.2); border-color: var(--earth-rust); color: #ff8070; }

.admin-logout-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25); font-family: 'Jost', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.5rem 1rem; cursor: pointer; transition: all 0.3s; font-weight: 300;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.admin-logout-btn:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }

.admin-hint {
  position: fixed; bottom: 1.5rem; right: 1.8rem; z-index: 8999;
  font-size: 0.52rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(0,0,0,0.15); font-weight: 300; pointer-events: none;
  transition: opacity 0.3s;
}