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

:root {
  --blue:   #2196F3;
  --green:  #43A047;
  --white:  #FFFFFF;
  --red:    #FF5722;
  --gold:   #FFC107;
  --blue-d: #1976D2;
  --green-d:#388E3C;
  --red-d:  #E64A19;
  --gold-d: #FFA000;
  --text:   #333333;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  text-align: center;
  padding: 24px 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-logo {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: 1px;
}

.site-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
}

.site-details {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 500;
  color: #666;
  margin-top: 6px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.italian-stripe {
  display: flex;
  height: 9px;
  margin-top: 2px;
}
.stripe-green { background: var(--green); flex: 1; }
.stripe-white { background: var(--white); flex: 1; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.stripe-red   { background: var(--red);   flex: 1; }

/* ─── SCROLLING PHOTO BAR ─── */
.photo-bar-outer {
  overflow: hidden;
  background: #111;
  height: 200px;
  position: relative;
}

.photo-strip {
  display: flex;
  height: 200px;
  width: max-content;
}

.photo-strip.loaded {
  animation: scrollPhotos 60s linear infinite;
}

.photo-strip-item {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 4px;
  background: #111;
  position: relative;
}

.photo-strip-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 20px 10px 8px;
  text-align: center;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.photo-strip-item img {
  display: inline-block;
  height: 200px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scrollPhotos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── STICKY NAV ─── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-spacer {
  flex: 1;
}

.nav-main {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .sticky-nav { flex-wrap: wrap; justify-content: center; }
  .nav-spacer  { display: none; }
  .nav-main    { flex: 1 0 100%; }
  .nav-right   { flex: 1 0 100%; justify-content: center; }
  .nav-btn-recipes { font-size: 0.78rem; padding: 9px 14px; }
}

.nav-btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.nav-btn.active {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.nav-btn-home     { background: var(--blue);  color: var(--white); }
.nav-btn-rsvp     { background: var(--red);   color: var(--white); }
.nav-btn-recipes  { background: var(--green);  color: var(--white); }
.nav-btn-feedback { background: var(--gold);  color: #333; }

/* ─── MAIN CONTENT ─── */
.page-content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 32px auto;
  padding: 0 16px;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

.card-header-bar {
  padding: 14px 20px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  color: var(--white);
}
.card-header-bar.blue  { background: var(--blue); }
.card-header-bar.green { background: var(--green); }
.card-header-bar.red   { background: var(--red); }
.card-header-bar.gold  { background: var(--gold); color: #333; }

.card-body { padding: 20px; }

/* ─── EVENT HERO ─── */
.event-hero {
  position: relative;
  background: linear-gradient(145deg, #e3f2fd 0%, #fff9e6 55%, #e8f5e9 100%);
  border-radius: 16px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.event-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--blue) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--green) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 90px 90px, 45px 45px;
  background-position: 0 0, 30px 30px, 15px 45px;
  opacity: 0.06;
  pointer-events: none;
}

.event-eyebrow {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.event-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 14px;
}

.event-hero-where {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.where-pin {
  color: var(--red);
  font-size: 0.7rem;
}

.event-date-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 10px 28px;
  border-radius: 50px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

.event-time-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.time-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  min-width: 110px;
}

.chip-gold  { background: #fff8e1; border: 2px solid var(--gold); }
.chip-green { background: #e8f5e9; border: 2px solid var(--green); }
.chip-blue  { background: #e3f2fd; border: 2px solid var(--blue); }

.chip-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.chip-gold  .chip-label { color: #b8860b; }
.chip-green .chip-label { color: var(--green); }
.chip-blue  .chip-label { color: var(--blue); }

.event-dinner-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.dinner-badge {
  background: var(--white);
  border: 2px solid #e0e0e0;
  color: #444;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 8px;
}

.dinner-badge-alt {
  border-color: var(--gold);
  color: #7a6000;
  background: #fffde7;
}

.event-hero-note {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #555;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ─── EVENT INFO CARD ─── */
.event-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.event-detail-row:last-child { border-bottom: none; }

.detail-accent {
  width: 5px;
  height: 20px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.accent-blue  { background: var(--blue); }
.accent-green { background: var(--green); }
.accent-red   { background: var(--red); }
.accent-gold  { background: var(--gold); }

.detail-label {
  font-weight: 700;
  color: var(--green);
  min-width: 120px;
  font-size: 0.9rem;
}
.detail-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.info-paragraph {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f0f7ff;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
}

/* ─── RSVP CALLOUT BOX ─── */
.rsvp-callout {
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.rsvp-callout h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.rsvp-callout .contact-info {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  opacity: 0.93;
}

.rsvp-callout .contact-email {
  font-size: 1rem;
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.btn-rsvp-now {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 13px 38px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}
.btn-rsvp-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ─── TWO-COLUMN SECTIONS ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: center;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ─── RAFFLE TICKET CSS ART ─── */
.raffle-ticket {
  display: flex;
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.12);
  max-width: 380px;
  margin: 0 auto;
  font-family: 'Raleway', sans-serif;
  transform: rotate(-1deg);
  position: relative;
}

.ticket-stub {
  background: #f5f0e8;
  color: #444;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border: 2px solid #bbb;
  border-right: none;
  border-radius: 6px 0 0 6px;
  flex-shrink: 0;
  position: relative;
}

/* Perforation holes along the right edge of the stub */
.ticket-stub::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 0;
  border-right: 3px dashed #bbb;
}

.stub-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #777;
}

.stub-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.ticket-body {
  background: #fdf8f0;
  color: #222;
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #bbb;
  border-left: none;
  border-radius: 0 6px 6px 0;
  position: relative;
}

/* Decorative inner border */
.ticket-body::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #d4c9b0;
  border-radius: 3px;
  pointer-events: none;
}

.ticket-stars {
  font-size: 0.85rem;
  letter-spacing: 5px;
  color: #c8a850;
  margin-bottom: 4px;
}

.ticket-banner {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.ticket-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1;
  color: #1a1a1a;
}

.ticket-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: #777;
  margin-top: 5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ticket-tagline {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c8a850;
  letter-spacing: 1px;
  border-top: 1px solid #d4c9b0;
  padding-top: 8px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
}

/* ─── AUCTION CARD ─── */
.auction-card-body {
  overflow: hidden;
}

.auction-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.auction-ticket-float {
  float: right;
  margin: 0 0 16px 28px;
  background: #f5f2ec;
  border-radius: 10px;
  padding: 20px 20px 20px 16px;
}

.auction-highlight {
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  margin-top: 12px;
  clear: both;
}

@media (max-width: 560px) {
  .auction-ticket-float {
    float: none;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
  }
}

/* ─── DESSERT SECTION ─── */
.dessert-panel {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dessert-panel p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.dessert-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.dessert-photo-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.dessert-placeholder {
  width: 100%;
  height: 280px;
  border: 3px dashed #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fafafa;
}

/* ─── SHARE NOTE ─── */
.share-note {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  border: 3px solid var(--gold);
}

/* ─── SUCCESS / ERROR BANNERS ─── */
.banner {
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  display: none;
  text-align: center;
}
.banner.show { display: block; }
.banner-success { background: #e8f5e9; color: #2e7d32; border: 2px solid #43A047; }
.banner-error   { background: #fbe9e7; color: #b71c1c; border: 2px solid #FF5722; }

/* ─── SUCCESS TOAST ─── */
.success-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
}
.success-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── RSVP MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  position: relative;
}

.modal-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--red); }

/* ─── FORMS ─── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.btn-submit:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit.blue  { background: var(--blue);  }
.btn-submit.green { background: var(--green); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--white);
  border-top: 4px solid var(--blue);
  padding: 24px 16px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-share {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}

.admin-link {
  font-size: 0.75rem;
  color: #bbb;
  text-decoration: none;
  font-weight: 500;
}
.admin-link:hover { color: #888; }

/* ─── FEEDBACK PAGE ─── */
.feedback-page .card-body { max-width: 560px; margin: 0 auto; }

/* ─── ADMIN PAGE ─── */
.admin-login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  text-align: center;
}

.admin-login-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}

.admin-login-box p {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 24px;
}

.admin-panel { display: none; }
.admin-panel.show { display: block; }

.admin-welcome {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-welcome span {
  font-weight: 700;
  color: var(--blue);
}

.btn-logout {
  background: none;
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* ─── ADMIN TABS ─── */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #777;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.tab-btn:hover { background: #f5f5f5; color: var(--text); }
.tab-btn.active {
  background: var(--blue);
  color: var(--white);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── STAT CARDS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.stat-card.green { border-color: var(--green); }
.stat-card.red   { border-color: var(--red);   }
.stat-card.gold  { border-color: var(--gold);  }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.visits-breakdown {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.visits-breakdown h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.visit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.visit-row:last-child { border-bottom: none; }
.visit-page { font-weight: 600; color: #555; }
.visit-count {
  font-weight: 800;
  color: var(--blue);
  background: #e3f2fd;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* ─── ADMIN DATA TABLE ─── */
.data-table-wrap {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--blue);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.data-table tbody tr:hover { background: #f0f7ff; }
.data-table tbody tr:last-child td { border-bottom: none; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ─── ADMIN DETAIL MODAL ─── */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.detail-modal-overlay.open { display: flex; }

.detail-modal-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  position: relative;
}

.detail-modal-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 18px;
  padding-right: 32px;
}

.detail-field {
  margin-bottom: 12px;
}
.detail-field .field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.detail-field .field-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}

.btn-delete {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #fbe9e7;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-delete:hover { background: var(--red); color: var(--white); }

/* ─── ADMIN EDIT SITE ─── */
.edit-section {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.edit-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.edit-subheading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 10px;
}

.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .edit-grid { grid-template-columns: 1fr; } }

.btn-add-photo {
  background: var(--blue);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn-add-photo:hover { filter: brightness(0.9); transform: translateY(-2px); }

.btn-save {
  background: var(--green);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn-save:hover { filter: brightness(0.9); transform: translateY(-2px); }

.save-status {
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 12px;
  display: inline-block;
}
.save-status.ok  { color: var(--green); }
.save-status.err { color: var(--red); }

/* ─── PHOTO SLOTS (admin) ─── */
.photo-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.photo-slot {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
}

.photo-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f0;
  padding-right: 6px;
}

.photo-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  padding: 5px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slot-action-btns {
  display: flex;
  gap: 3px;
}

.slot-btn-up,
.slot-btn-down,
.slot-btn-del {
  background: none;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
  color: #666;
  font-family: 'Raleway', sans-serif;
  transition: all 0.12s;
}
.slot-btn-up:hover,
.slot-btn-down:hover { border-color: var(--blue); color: var(--blue); background: #e3f2fd; }
.slot-btn-del:hover  { border-color: var(--red);  color: var(--red);  background: #fbe9e7; }

/* Crop preview */
.crop-preview {
  width: 100%;
  height: 160px;
  overflow: hidden;
  cursor: grab;
  position: relative;
  background: #ddd;
  user-select: none;
  -webkit-user-select: none;
}
.crop-preview:active { cursor: grabbing; }

.crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.crop-preview-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.82rem;
  font-weight: 600;
}

.crop-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Zoom slider row */
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
}
.crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
}
.zoom-display {
  min-width: 32px;
  text-align: right;
  color: var(--blue);
  font-weight: 800;
}

/* URL / file inputs */
.photo-slot-controls {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-slot-controls input[type="text"] {
  font-size: 0.75rem;
  padding: 6px 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  width: 100%;
}
.photo-slot-controls input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
}
.photo-slot-controls input[type="file"] {
  font-size: 0.72rem;
  width: 100%;
}

@media (max-width: 600px) {
  .photo-slots-grid { grid-template-columns: 1fr; }
}

/* ─── DESSERT PHOTO (admin edit) ─── */
.dessert-photo-edit {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 14px;
}

.dessert-photo-preview {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  display: block;
}

.dessert-photo-preview-empty {
  width: 150px;
  height: 100px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fafafa;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .page-content { margin: 20px auto; }
  .card-body { padding: 16px; }
  .rsvp-callout { padding: 22px 18px; }
  .modal-box { padding: 24px 18px; }
  .admin-tabs { gap: 2px; }
  .tab-btn { padding: 9px 10px; font-size: 0.8rem; min-width: 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 9px 10px; }
}

@media (max-width: 480px) {
  .site-logo { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .edit-grid { grid-template-columns: 1fr; }
  .photo-slots-grid { grid-template-columns: repeat(2, 1fr); }
}
