* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Prompt", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.82), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255,255,255,.35), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.25), transparent 16%),
    var(--bg);
  color: var(--text);
  line-height: 1.78;
  letter-spacing: .01em;
  min-height: 100vh;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}
body::before {
  width: 340px;
  height: 340px;
  top: 70px;
  right: -120px;
  background: radial-gradient(circle, rgba(255,255,255,.36), rgba(255,255,255,0));
  filter: blur(12px);
}
body::after {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: -100px;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0));
  filter: blur(18px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

:root,
body.theme-elegant {
  --bg: #f6efe4;
  --surface: rgba(255,255,255,.70);
  --surface-strong: rgba(255, 252, 247, .94);
  --surface-dark: #21180f;
  --border: rgba(124, 91, 40, .14);
  --text: #2c2217;
  --muted: #746554;
  --accent: #b98a43;
  --accent-strong: #876024;
  --accent-soft: rgba(232, 209, 166, .56);
  --accent-glow: rgba(196, 154, 87, .28);
  --shadow: 0 18px 50px rgba(99, 67, 27, .11);
  --shadow-strong: 0 24px 65px rgba(99, 67, 27, .15);
  --gradient: linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,235,212,.68));
  --hero-gradient: linear-gradient(135deg, rgba(255,255,255,.72), rgba(247,232,204,.42));
}
body.theme-warm {
  --bg: #fdf2ee;
  --surface: rgba(255,255,255,.74);
  --surface-strong: rgba(255,253,252,.96);
  --surface-dark: #3a2721;
  --border: rgba(164, 103, 93, .15);
  --text: #3a2924;
  --muted: #7e665f;
  --accent: #cb8379;
  --accent-strong: #a95d53;
  --accent-soft: rgba(244, 212, 204, .56);
  --accent-glow: rgba(203, 131, 121, .24);
  --shadow: 0 18px 50px rgba(125, 68, 57, .11);
  --shadow-strong: 0 24px 65px rgba(125, 68, 57, .15);
  --gradient: linear-gradient(180deg, rgba(255,255,255,.90), rgba(249,224,218,.72));
  --hero-gradient: linear-gradient(135deg, rgba(255,255,255,.80), rgba(249,219,214,.45));
}
body.theme-minimal {
  --bg: #eef2f7;
  --surface: rgba(255,255,255,.80);
  --surface-strong: rgba(255,255,255,.98);
  --surface-dark: #131821;
  --border: rgba(40, 59, 96, .12);
  --text: #182131;
  --muted: #5f6c7e;
  --accent: #355eeb;
  --accent-strong: #1635a6;
  --accent-soft: rgba(219, 229, 255, .72);
  --accent-glow: rgba(77, 114, 244, .20);
  --shadow: 0 18px 50px rgba(22, 34, 56, .10);
  --shadow-strong: 0 24px 65px rgba(22, 34, 56, .15);
  --gradient: linear-gradient(180deg, rgba(255,255,255,.95), rgba(233,240,248,.78));
  --hero-gradient: linear-gradient(135deg, rgba(255,255,255,.88), rgba(222,232,248,.58));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,.03);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand strong {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: .22s ease;
}
.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 18px rgba(0,0,0,.04);
}

.hero {
  padding: 76px 0 40px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.82), transparent 42%),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 45%);
}
.hero-grid,
.grid-2,
.admin-grid-2 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-card { min-height: 100%; }
.side-stack { display: grid; gap: 24px; }

.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 24%);
  pointer-events: none;
  z-index: -1;
}
.hero-card {
  padding: 42px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.62), transparent 23%),
    radial-gradient(circle at 18% 110%, var(--accent-glow), transparent 36%),
    var(--hero-gradient);
  box-shadow: var(--shadow-strong);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.46);
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,0));
  opacity: .85;
}
.hero-card h1,
.section-header h2,
.section-header h1,
.admin-topbar h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 600;
}
.section-header h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.7vw, 36px);
}
.section-header.center { text-align: center; }
.section-header p,
.hero-subtitle,
.muted,
.info-row span,
.schedule-item p,
.story-item p,
.guestbook-item p,
.faq-item p,
.gallery-item figcaption,
.site-footer p,
small {
  color: var(--muted);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent-strong);
  margin-bottom: 12px;
  font-weight: 600;
}
.couple-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  margin: 16px 0 18px;
}
.couple-name span {
  color: var(--accent-strong);
  font-size: .8em;
}
.hero-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
}
.luxury-divider {
  width: min(240px, 42%);
  height: 1px;
  margin: 24px 0 20px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: relative;
}
.luxury-divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--accent-strong);
  padding: 0 10px;
  background: var(--surface-strong);
}
.hero-meta,
.inline-badges,
.actions.wrap,
.theme-switcher,
.color-palette,
.actions,
.hero-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta { margin-bottom: 20px; }
.hero-signature {
  margin-top: 20px;
  margin-bottom: 20px;
}
.hero-signature span,
.meta-pill,
.badge,
.theme-chip,
.color-chip {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.58);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 13px;
}
.hero-signature span {
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.theme-chip {
  transition: .2s ease;
}
.theme-chip:hover {
  transform: translateY(-1px);
}
.theme-chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.badge.link-badge { cursor: pointer; }
.color-chip { min-width: 110px; text-align: center; }

.countdown-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}
.countdown-item {
  text-align: center;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  padding: 22px 12px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
}
.countdown-item strong {
  display:block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 7px;
}
.countdown-item span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.qr-mini-grid,
.qr-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qr-mini-grid div,
.qr-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.60);
  text-align:center;
}
.qr-mini-grid img,
.qr-item img {
  margin: 0 auto 10px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.06));
}

.section { padding: 24px 0 40px; }
.section-header { margin-bottom: 22px; }
.section-header h1 { margin-bottom: 10px; }
.info-list,
.feature-list,
.compact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.info-row {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.60);
}
.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 500;
}
.info-row strong {
  font-size: 18px;
  line-height: 1.4;
}

.schedule-list,
.story-list,
.guestbook-list,
.faq-list {
  display: grid;
  gap: 18px;
}
.schedule-item,
.story-item,
.guestbook-item,
.faq-item {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.60);
  padding: 20px;
}
.schedule-item,
.story-item {
  display: grid;
  gap: 16px;
  grid-template-columns: 122px minmax(0, 1fr);
}
.schedule-time,
.story-year {
  font-weight: 700;
  color: var(--accent-strong);
  padding: 16px 14px;
  border-radius: 18px;
  text-align:center;
  border: 1px dashed var(--border);
  background: rgba(255,255,255,.72);
}
.guestbook-item strong,
.schedule-item strong,
.story-item strong,
.faq-item summary {
  font-size: 18px;
}
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.64);
  box-shadow: 0 16px 34px rgba(0,0,0,.06);
}
.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 14px 16px 18px; }

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { display: grid; gap: 9px; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 14px;
  font-weight: 500;
}
input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  background: rgba(255,255,255,.84);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
}
textarea { resize: vertical; min-height: 120px; }
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, white);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  transition: .22s ease;
  font-weight: 500;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 15px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 28px rgba(0,0,0,.15);
}
.btn-secondary {
  background: rgba(255,255,255,.72);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-danger {
  background: #c94242;
  color: #fff;
}

.alert {
  border-radius: 20px;
  padding: 17px 18px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success {
  background: rgba(37, 167, 97, .12);
  border-color: rgba(37, 167, 97, .2);
  color: #15673c;
}
.alert-error {
  background: rgba(201, 66, 66, .12);
  border-color: rgba(201, 66, 66, .2);
  color: #8b1e1e;
}

.site-footer {
  margin-top: 20px;
  padding: 34px 0 96px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent);
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 20px;
}
.footer-inner strong { font-size: 20px; }

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 0;
}
.live-embed {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.66);
}

.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item[open] summary { margin-bottom: 10px; }

.music-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 8px;
  min-width: 260px;
  max-width: 310px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 40px rgba(0,0,0,.14);
}
.music-dock-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}
.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(0,0,0,.14);
}
.music-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 16px;
}
.music-toggle.is-playing .music-toggle-icon {
  animation: pulseBeat 1.4s ease-in-out infinite;
}
@keyframes pulseBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.admin-body,
.admin-login-body {
  background: #f2f5f9;
  color: #17202b;
}
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}
.admin-sidebar {
  background: #17202b;
  color: #fff;
  padding: 24px;
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}
.admin-brand small {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
.admin-brand strong {
  display:block;
  font-size: 20px;
  margin-top: 2px;
}
.admin-nav { display:grid; gap: 8px; }
.admin-nav a {
  color: rgba(255,255,255,.86);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.admin-nav a.is-active,
.admin-nav a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.admin-sidebar-footer {
  display:grid;
  gap: 12px;
  font-size: 14px;
}
.admin-content { padding: 28px; }
.admin-topbar {
  display:grid;
  gap: 14px;
  margin-bottom: 24px;
}
.admin-topbar h1 { font-size: 34px; }

.stats-grid {
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat-card strong {
  font-size: 34px;
  line-height: 1;
  display:block;
  margin-bottom: 10px;
}
.stat-card span { color: var(--muted); }

.table-wrap { overflow:auto; }
table {
  width:100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
th {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.compact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.login-card { max-width: 560px; margin: 0 auto; }

@media (max-width: 1080px) {
  .hero-grid,
  .grid-2,
  .admin-grid-2,
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { position: sticky; }
  .topbar-inner { min-height: 74px; }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items:center;
    justify-content:center;
  }
  .nav {
    position: absolute;
    top: 75px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .hero { padding-top: 48px; }
  .hero-grid,
  .grid-2,
  .admin-grid-2,
  .gallery-grid,
  .stats-grid,
  .countdown-grid,
  .qr-grid,
  .qr-mini-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-shell { display:block; }
  .admin-sidebar { position: static; }
  .schedule-item,
  .story-item,
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-inner,
  .topbar-inner { flex-wrap: wrap; }
  .hero-card,
  .card { padding: 26px; border-radius: 26px; }
  .music-dock {
    right: 16px;
    left: 16px;
    bottom: 14px;
    min-width: auto;
    max-width: none;
  }
}
