﻿:root {
      --bg: #f7f1eb;
      --panel: #fffdfb;
      --ink: #2a231f;
      --muted: #7a6d64;
      --accent: #9a7b66;
      --line: #d6c9be;
      --warm: #ead7c8;
    }

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

    body {
      font-family: "Manrope", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 5% 10%, #fce9d9 0, transparent 38%),
        radial-gradient(circle at 92% 80%, #f1e3d6 0, transparent 40%),
        var(--bg);
      line-height: 1.5;
      overflow-x: hidden;
    }

    .hidden { display: none !important; }

    .view {
      min-height: 100vh;
      width: 100%;
    }

    .container {
      width: min(1120px, calc(100% - 2rem));
      margin: 0 auto;
    }

    h1, h2, h3 {
      font-family: "Cormorant Garamond", serif;
      font-weight: 600;
      line-height: 0.95;
      letter-spacing: -0.02em;
    }

    .gate {
      display: grid;
      grid-template-columns: 49% 51%;
      min-height: 100vh;
      background: #efefef;
    }

    .gate-visual {
      position: relative;
      background: #141312;
      padding: 1.8rem;
      display: flex;
    }

    .gate-frame {
      width: 100%;
      border-radius: 1.55rem;
      border: 1px solid rgba(227, 214, 201, 0.35);
      overflow: hidden;
      position: relative;
      background:
        radial-gradient(circle at 86% 18%, rgba(107, 75, 58, 0.12), transparent 40%),
        linear-gradient(90deg, #171513 0%, #1f1b19 42%, #1c1715 100%);
    }

    .gate-frame::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(105deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.18));
      z-index: 1;
    }

    .gate-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.38;
      filter: grayscale(0.1) brightness(1.08) contrast(1.03);
      animation: pulseZoom 20s ease-in-out infinite alternate;
    }

    .gate-copy {
      position: absolute;
      z-index: 2;
      bottom: 2.2rem;
      left: 2rem;
      right: 2rem;
      color: #f6f0ea;
    }

    .eyebrow {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 0.33em;
      opacity: 0.86;
      margin-bottom: 1.2rem;
      font-weight: 500;
    }

    .gate-kicker {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      color: #d4cac2;
      margin-bottom: 1.25rem;
    }

    .gate-kicker::before {
      content: "";
      width: 1.9rem;
      height: 1px;
      background: rgba(214, 201, 192, 0.55);
    }

    .gate-title {
      font-size: clamp(3.1rem, 8.2vw, 4.9rem);
      text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      line-height: 0.9;
    }

    .gate-date {
      margin-top: 1.35rem;
      display: inline-flex;
      align-items: center;
      gap: 0.95rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 999px;
      padding: 0.38rem 0.7rem;
      font-size: 0.64rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-weight: 600;
    }

    .gate-form-wrap {
      background: #efefef;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 2.9rem 1.9rem;
    }

    .gate-form {
      width: min(500px, 100%);
    }

    .gate-form h2 {
      font-size: clamp(3.2rem, 6vw, 4rem);
      margin-bottom: 0.95rem;
      line-height: 0.9;
      color: #2d2723;
      font-weight: 500;
    }

    .subtext {
      color: #938881;
      margin-bottom: 1.9rem;
      max-width: 31ch;
      font-size: 1.05rem;
      font-family: "Manrope", sans-serif;
      line-height: 1.45;
    }

    .form-grid {
      display: grid;
      gap: 1.6rem;
      margin-top: 1.4rem;
    }

    label {
      display: block;
      font-size: 0.58rem;
      text-transform: uppercase;
      letter-spacing: 0.3em;
      color: #b3aaa5;
      margin-bottom: 0.65rem;
      font-weight: 600;
    }

input, select {
      width: 100%;
      border: 0;
      border-bottom: 1px solid #d7d2ce;
      background: transparent;
      padding: 0.56rem 0;
      font-size: 2.1rem;
      border-radius: 0;
      font-family: "Cormorant Garamond", serif;
      color: #827770;
      outline: none;
      transition: border-color 0.2s ease, color 0.2s ease;
      appearance: none;
      -webkit-appearance: none;
}

textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d7d2ce;
  background: transparent;
  padding: 0.56rem 0;
  font-size: 1.1rem;
  font-family: "Manrope", sans-serif;
  color: #6d6159;
  resize: vertical;
  min-height: 64px;
  outline: none;
}

textarea:focus {
  border-color: #98897f;
}

textarea::placeholder {
  color: #b9b1ab;
}

.family-toggle {
  margin-top: -0.15rem;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: #6d6159;
  margin-bottom: 0.4rem;
}

.checkline input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: 1px solid #b9aea6;
  border-radius: 0.2rem;
  background: #fff;
  accent-color: #2e2926;
  flex: 0 0 auto;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  border-bottom: 1px solid #b9aea6 !important;
  cursor: pointer;
}

.checkline span {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

.companions-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.companion-row input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d7d2ce;
  background: transparent;
  padding: 0.56rem 0;
  font-size: 1.15rem;
  border-radius: 0;
  font-family: "Cormorant Garamond", serif;
  color: #827770;
  outline: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.companion-row input:focus {
  border-color: #98897f;
  color: #645952;
}

    select {
      font-size: 1.98rem;
      background-image:
        linear-gradient(45deg, transparent 50%, #aaa09a 50%),
        linear-gradient(135deg, #aaa09a 50%, transparent 50%);
      background-position:
        calc(100% - 12px) calc(50% + 3px),
        calc(100% - 6px) calc(50% + 3px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 1.6rem;
    }

    input::placeholder,
    select:invalid {
      color: #c2bcb7;
    }

    input:focus, select:focus {
      border-color: #98897f;
      color: #645952;
      box-shadow: none;
    }

    .form-note {
      margin-top: 0.55rem;
      color: #a29790;
      font-size: 0.74rem;
    }

    .button {
      width: 100%;
      margin-top: 1.35rem;
      border: 0;
      border-radius: 0;
      background: #2e2926;
      color: #fff7f2;
      font-size: 0.64rem;
      text-transform: uppercase;
      letter-spacing: 0.3em;
      padding: 0.98rem 1rem;
      cursor: pointer;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .button:hover { transform: translateY(-1px); }
    .button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

    .field-error {
      min-height: 1rem;
      margin-top: 0.35rem;
      font-size: 0.78rem;
      color: #9b6a57;
    }

    .admin-hotspot {
      position: fixed;
      top: 0.65rem;
      left: 0.65rem;
      width: 3rem;
      height: 3rem;
      border: 0;
      background: transparent;
      opacity: 0;
      cursor: default;
      z-index: 120;
      -webkit-tap-highlight-color: transparent;
      outline: none;
    }

    .admin-modal {
      position: fixed;
      inset: 0;
      z-index: 140;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .admin-modal.hidden { display: none !important; }

    .admin-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(18, 15, 14, 0.6);
      backdrop-filter: blur(14px);
    }

    .admin-panel {
      position: relative;
      z-index: 1;
      width: min(1120px, 100%);
      max-height: min(90vh, 920px);
      overflow: hidden;
      border-radius: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.6);
      background: linear-gradient(180deg, #fdf8f3, #f5eee7);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
      display: grid;
      grid-template-rows: auto 1fr;
    }

    .admin-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.25rem;
      border-bottom: 1px solid rgba(99, 79, 67, 0.14);
      background: rgba(255, 255, 255, 0.45);
    }

    .admin-brand {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .admin-brand strong {
      font-family: "Cormorant Garamond", serif;
      font-size: 1.7rem;
      font-weight: 600;
      color: #261f1b;
      line-height: 0.9;
    }

    .admin-brand span,
    .admin-status {
      font-size: 0.68rem;
      letter-spacing: 0.26em;
      text-transform: uppercase;
      color: #8c7f77;
    }

    .admin-close {
      border: 1px solid rgba(99, 79, 67, 0.16);
      background: #fff;
      color: #342b26;
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 999px;
      cursor: pointer;
      font-size: 1.2rem;
      line-height: 1;
    }

    .admin-shell {
      display: grid;
      grid-template-columns: 300px 1fr;
      min-height: 0;
    }

    .admin-side {
      padding: 1.35rem;
      background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 35%),
        linear-gradient(165deg, #201916, #141110);
      color: #f5eee7;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .admin-side h3 {
      font-size: 2rem;
      margin: 0.9rem 0 0.65rem;
    }

    .admin-side p {
      color: rgba(245, 238, 231, 0.74);
      font-size: 0.95rem;
    }

    .admin-side .chip {
      background: rgba(255, 255, 255, 0.04);
      color: #f7efe8;
      border-color: rgba(255, 255, 255, 0.12);
      margin-top: 1rem;
    }

    .admin-content {
      min-height: 0;
      overflow: auto;
      padding: 1.25rem;
    }

    .admin-card {
      max-width: 420px;
      margin: 3rem auto 0;
      padding: 1.5rem;
      border-radius: 1.2rem;
      border: 1px solid rgba(99, 79, 67, 0.14);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: 0 16px 35px rgba(35, 27, 22, 0.06);
    }

    .admin-card h4 {
      font-family: "Cormorant Garamond", serif;
      font-size: 2rem;
      margin-bottom: 0.55rem;
      color: #261f1b;
    }

    .admin-field {
      margin-top: 1rem;
    }

    .admin-field label {
      color: #9d9188;
      letter-spacing: 0.22em;
    }

.admin-field input {
      font-size: 1rem;
      font-family: "Manrope", sans-serif;
      color: #2a231f;
      border-bottom-color: #cfc4bb;
      padding: 0.75rem 0;
}

.pin-display {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid #cfc4bb;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1.22rem;
  letter-spacing: 0.22em;
  color: #2a231f;
  font-family: "Manrope", sans-serif;
  text-align: center;
}

#pinPad.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
  margin-top: 0.9rem;
}

#pinPad .pin-key {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(99, 79, 67, 0.16);
  background: linear-gradient(180deg, #ffffff, #f8f3ee);
  border-radius: 0.75rem;
  padding: 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #312923;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43, 35, 30, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

#pinPad .pin-key:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 79, 67, 0.26);
}

#pinPad .pin-key:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(43, 35, 30, 0.08);
}

#pinPad .pin-key-fn {
  background: #f6efe8;
  font-weight: 700;
}

    .admin-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: 1.15rem;
      flex-wrap: wrap;
    }

    .admin-actions .button {
      width: auto;
      margin-top: 0;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .button-soft {
      border: 1px solid rgba(99, 79, 67, 0.16);
      background: #fff;
      color: #342b26;
    }

    .admin-table-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .admin-stats {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .admin-stat {
      padding: 0.65rem 0.85rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(99, 79, 67, 0.12);
      font-size: 0.74rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #7c6f67;
    }

    .admin-table-wrap {
      border-radius: 1rem;
      overflow: auto;
      border: 1px solid rgba(99, 79, 67, 0.14);
      background: rgba(255, 255, 255, 0.88);
      max-height: calc(90vh - 130px);
    }

    .admin-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    .admin-table th,
.admin-table td {
      padding: 0.95rem 1rem;
      border-bottom: 1px solid rgba(99, 79, 67, 0.08);
      text-align: left;
      vertical-align: top;
}

.admin-table td[data-editing="true"] {
  background: #fffaf5;
}

.admin-table-input {
  width: 100%;
  border: 1px solid rgba(99, 79, 67, 0.2);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.95rem;
  font-family: "Manrope", sans-serif;
  color: #332b25;
  background: #fff;
}

.admin-table-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-mini-btn {
  border: 1px solid rgba(99, 79, 67, 0.2);
  background: #fff;
  color: #3a312b;
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.admin-mini-btn.danger {
  border-color: rgba(173, 77, 61, 0.3);
  color: #9b4d3d;
}

.admin-total {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b6f67;
}

    .admin-table th {
      position: sticky;
      top: 0;
      background: #f7f1eb;
      z-index: 1;
      font-size: 0.68rem;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: #8c7f77;
    }

    .admin-table tbody tr:nth-child(even) {
      background: #fbf7f3;
    }

    .admin-empty {
      padding: 2rem;
      text-align: center;
      color: #8d8179;
    }

    .invite-hero {
      min-height: 95vh;
      position: relative;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 2rem 1rem;
      overflow: hidden;
    }

    .invite-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(to bottom, rgba(249, 241, 233, 0.55), rgba(249, 241, 233, 0.96)), url("photo_2026-04-26_15-58-56 (6).jpg");
      background-size: cover;
      background-position: center;
      filter: saturate(0.85);
      transform: scale(1.05);
      animation: heroPan 24s ease-in-out infinite alternate;
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .hero-content .eyebrow { color: #65584f; margin-bottom: 1.4rem; }

    .hero-title {
      font-size: clamp(3.7rem, 11vw, 8.4rem);
      color: #261f1b;
    }

    .hero-date {
      margin-top: 1.45rem;
      display: inline-flex;
      align-items: center;
      gap: 0.62rem;
      border-bottom: 1px solid #8f7f73;
      padding-bottom: 0.32rem;
      font-size: 0.83rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
    }

    .section {
      padding: 4.6rem 0;
    }

    .split {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 2rem;
      align-items: center;
    }

    .story h2,
    .agenda h2,
    .dress h2,
    .location h2 {
      font-size: clamp(2.2rem, 6vw, 4.5rem);
      margin-bottom: 1rem;
    }

    .muted { color: var(--muted); }

    .portrait-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .portrait {
      position: relative;
      border-radius: 1.1rem;
      overflow: hidden;
      min-height: 300px;
      box-shadow: 0 12px 28px rgba(53, 38, 27, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.45);
      animation: floatCard 7s ease-in-out infinite;
    }

    .portrait:nth-child(2n) { animation-delay: 1s; }

    .portrait img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(0.9);
      transition: transform 0.7s ease;
    }

    .portrait:hover img { transform: scale(1.06); }

    .agenda-card {
      background: linear-gradient(145deg, #faf4ee, #fffdfb);
      border: 1px solid var(--line);
      border-radius: 1rem;
      padding: 1rem 1.1rem;
      margin-bottom: 0.8rem;
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 0.8rem;
      align-items: start;
    }

    .agenda-time {
      font-family: "Cormorant Garamond", serif;
      font-size: 1.55rem;
      color: #5f4c40;
    }

    .agenda-card h3 {
      font-size: 1.6rem;
      margin-bottom: 0.12rem;
    }

    .dress-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 1.2rem;
    }

    .chip {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0.35rem 0.8rem;
      display: inline-flex;
      font-size: 0.77rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #4d4037;
      background: #fff;
      margin-right: 0.6rem;
      margin-bottom: 0.5rem;
    }

    .location {
      text-align: center;
      padding-top: 5rem;
      padding-bottom: 5.5rem;
      border-top: 1px solid var(--line);
    }

    .location p { margin-bottom: 0.35rem; }

    .button-link {
      display: inline-block;
      margin-top: 1rem;
      text-decoration: none;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--ink);
      padding: 0.8rem 1rem;
      border-radius: 0.5rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-size: 0.73rem;
    }

    .decline {
      display: grid;
      place-items: center;
      text-align: center;
      padding: 1.6rem;
      min-height: 100vh;
      background: linear-gradient(165deg, #f9f3ee, #f4ece4);
    }

    .decline-card {
      border: 1px solid var(--line);
      border-radius: 1rem;
      background: #fff;
      padding: 2rem;
      width: min(600px, 100%);
      box-shadow: 0 12px 28px rgba(39, 30, 23, 0.08);
    }

    .decline h2 { font-size: clamp(2rem, 8vw, 4.3rem); margin-bottom: 1rem; }

    @keyframes pulseZoom {
      from { transform: scale(1.04); }
      to { transform: scale(1.13); }
    }

    @keyframes heroPan {
      from { transform: scale(1.02) translateY(-1%); }
      to { transform: scale(1.08) translateY(1.5%); }
    }

    @keyframes floatCard {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    @media (max-width: 900px) {
      .gate { grid-template-columns: 1fr; }
      .gate-visual {
        min-height: 45vh;
        padding: 1.1rem;
      }
      .gate-title { font-size: clamp(2.8rem, 13vw, 4.2rem); }
      .gate-form h2 { font-size: clamp(2.6rem, 12vw, 3.2rem); }
      .subtext {
        font-size: 1rem;
        max-width: 32ch;
      }
      input, select {
        font-size: 1.75rem;
      }
      select { font-size: 1.65rem; }
      .split { grid-template-columns: 1fr; }
      .portrait-grid { grid-template-columns: 1fr 1fr; }
      .dress-wrap { grid-template-columns: 1fr; }
      .admin-shell { grid-template-columns: 1fr; }
      .admin-side { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    }

    @media (max-width: 620px) {
      .container { width: min(1120px, calc(100% - 1.2rem)); }
      .gate-copy { bottom: 1.4rem; left: 1.25rem; right: 1.25rem; }
      .gate-form-wrap { padding: 2rem 1.1rem; }
      .subtext { font-size: 0.95rem; }
      .gate-form .eyebrow { margin-bottom: 0.95rem; }
      .portrait-grid { grid-template-columns: 1fr; }
      .agenda-card { grid-template-columns: 70px 1fr; }
      .hero-date { letter-spacing: 0.2em; }
    }
