:root {
  --green: #173f35;
  --green-2: #285d4e;
  --gold: #b18a3d;
  --gold-light: #d8bc72;
  --ivory: #f8f3e9;
  --cream: #fffdf8;
  --charcoal: #26352f;
  --muted: #707973;
  --line: #e6ddcd;
  --danger: #a94747;
  --success: #287056;
  --shadow: 0 24px 70px rgba(18, 43, 36, .16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

/*
|--------------------------------------------------------------------------
| General
|--------------------------------------------------------------------------
*/

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.page-title {
  margin: 0;
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: .95;
  font-weight: 600;
  color: var(--green);
}

.page-sub {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 14px 0 30px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;

  padding: 11px 19px;

  border-radius: 999px;

  border: 1px solid var(--green);

  background: var(--green);

  color: #fff;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(23, 63, 53, .16);
}

.btn:active {
  transform: translateY(0);
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--green);
}

.btn.glass {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn.dark-text {
  color: var(--green);
  background: transparent;
  border-color: var(--line);
}

.btn.danger {
  color: var(--danger);
  border-color: #e3bebe;
  background: #fff8f8;
}

.btn.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 11px;
}

.btn.full {
  width: 100%;
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

label {
  display: block;
  margin: 0 0 7px;
  color: #4e5954;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;

  margin-bottom: 17px;

  border: 1px solid var(--line);
  border-radius: 12px;

  outline: none;

  background: #fffdfa;

  color: var(--charcoal);

  transition:
    border-color .18s,
    box-shadow .18s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(177,138,61,.10);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 220px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  margin-bottom: 18px;
}

.check-label input {
  width: auto;
  margin: 0;
}

/*
|--------------------------------------------------------------------------
| Admin topbar
|--------------------------------------------------------------------------
*/

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;

  display: flex;
  align-items: center;
  gap: 24px;

  padding: 14px 25px;

  background: rgba(255,253,248,.92);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 26px;
  font-weight: 600;

  color: var(--green);
}

.brand-heart {
  color: var(--gold);
}

.nav-pills {
  display: flex;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.nav-pills button {
  border: 0;
  background: transparent;

  color: var(--muted);

  padding: 9px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.nav-pills button.active {
  background: var(--green);
  color: #fff;
}

.topbar-actions {
  display: flex;
  gap: 7px;
}

/*
|--------------------------------------------------------------------------
| Panels
|--------------------------------------------------------------------------
*/

.card-panel {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(28, 47, 41, .055);
  margin-bottom: 24px;
}

.card-panel h2 {
  margin: 0 0 8px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 27px;
  color: var(--green);
}

.hero-admin,
.checkin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 35px;

  padding: 34px;

  border-radius: 28px;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(216,188,114,.18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #fffdfa,
      #f0e8d8
    );

  border: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

/*
|--------------------------------------------------------------------------
| Stats
|--------------------------------------------------------------------------
*/

.stats {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;

  margin-bottom: 16px;
}

.stat {
  position: relative;

  overflow: hidden;

  background: #fff;

  border:
    1px solid var(--line);

  border-radius: 19px;

  padding: 23px;

  text-align: center;
}

.stat::after {
  content: "";

  position: absolute;

  width: 100px;
  height: 100px;

  right: -35px;
  top: -40px;

  border-radius: 50%;

  background:
    rgba(177,138,61,.07);
}

.stat-icon {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 5px;
}

.stat .n {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 43px;
  font-weight: 600;

  color: var(--green);
}

.stat .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  margin-bottom: 30px;

  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.mini-stats > div {
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.mini-stats > div:last-child {
  border-right: 0;
}

.mini-stats strong {
  display: block;
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;
  font-size: 28px;
  color: var(--green);
}

.mini-stats span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

/*
|--------------------------------------------------------------------------
| Theme selector
|--------------------------------------------------------------------------
*/

.theme-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 9px 13px;

  border-radius: 999px;

  border: 1px solid var(--line);
  background: #fff;

  color: var(--charcoal);

  font-size: 11px;
  font-weight: 700;
}

.theme-option span {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--gold)
    );
}

.theme-option:nth-child(2) span {
  background:
    linear-gradient(
      135deg,
      #6d3d48,
      #d79a9d
    );
}

.theme-option.selected {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px
    rgba(177,138,61,.11);
}

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/

.table-panel {
  padding: 0;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 25px 28px 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 28px 25px;
}

table {
  width: 100%;
  min-width: 820px;

  border-collapse: collapse;

  font-size: 13px;
}

th {
  padding: 11px 10px;

  border-bottom: 1px solid var(--line);

  text-align: left;

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;

  color: var(--muted);
}

td {
  padding: 15px 10px;

  border-bottom: 1px solid #eee8dc;

  vertical-align: middle;
}

td strong {
  display: block;
}

td small {
  display: block;
  margin-top: 3px;
  color: #9a9f9b;
  font-size: 10px;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .05em;
}

.pill.pending {
  color: #806b28;
  background: #f5eed9;
}

.pill.attending {
  color: #22634d;
  background: #e1eee8;
}

.pill.declined {
  color: #994848;
  background: #f5e3e3;
}

.mail-sent {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.mail-not-sent {
  color: var(--muted);
  font-size: 11px;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty .big {
  margin-bottom: 5px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--green);
  font-size: 25px;
}

/*
|--------------------------------------------------------------------------
| Check-in dashboard
|--------------------------------------------------------------------------
*/

.checkin-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  gap: 14px;

  margin-bottom: 24px;
}

.checkin-card {
  padding: 22px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #fff,
      #f2ece0
    );

  border: 1px solid var(--line);
}

.checkin-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.checkin-card strong {
  display: block;
  margin-top: 7px;

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 39px;
}

.checkin-card.rejected strong {
  color: var(--danger);
}

.scan-number {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4eddf;
  color: #705922;
  font-size: 11px;
  font-weight: 700;
}

.scan-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.scan-status.accepted {
  color: #1d654d;
  background: #e0eee8;
}

.scan-status.rejected {
  color: #9b4141;
  background: #f4dfdf;
}

.scan-rejected td {
  background: rgba(169,71,71,.025);
}

/*
|--------------------------------------------------------------------------
| Banners
|--------------------------------------------------------------------------
*/

.banner {
  margin-bottom: 20px;
  padding: 14px 17px;

  border-radius: 13px;

  font-size: 13px;
  line-height: 1.55;
}

.banner.warn {
  color: #765918;
  background: #f8eed9;
  border: 1px solid #ead7ab;
}

.banner.error {
  color: #8c3333;
  background: #fae2e2;
  border: 1px solid #ebc3c3;
}

.banner.ok {
  color: #205c47;
  background: #e2efe9;
  border: 1px solid #c2dbd0;
}

/*
|--------------------------------------------------------------------------
| Gate
|--------------------------------------------------------------------------
*/

.gate {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 25px;
}

.luxury-bg {
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(177,138,61,.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 85%,
      rgba(40,93,78,.18),
      transparent 35%
    ),
    var(--green);
}

.gate-card {
  width: min(100%, 430px);
  text-align: center;
  margin: 0;
}

.gate-mark {
  width: 65px;
  height: 65px;

  display: grid;
  place-items: center;

  margin: 0 auto 17px;

  border-radius: 50%;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--gold)
    );

  font-size: 24px;
}

/*
|--------------------------------------------------------------------------
| Guest invitation
|--------------------------------------------------------------------------
*/

.invite-stage {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 55px 17px 70px;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(216,188,114,.17),
      transparent 27%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(40,93,78,.20),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #102f28,
      #173f35 55%,
      #0d2923
    );
}

.invite-stage.blush {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(216,154,157,.22),
      transparent 27%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(177,138,61,.16),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #442b32,
      #6d3d48,
      #3a252b
    );
}

.invite-container {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);
}

.floating-particles {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.floating-particles span {
  position: absolute;

  color: rgba(255,255,255,.34);

  font-size: 16px;

  animation:
    floatParticle
    8s
    ease-in-out
    infinite;
}

.floating-particles span:nth-child(1) {
  left: 12%;
  top: 15%;
}

.floating-particles span:nth-child(2) {
  left: 75%;
  top: 19%;
  animation-delay: 1s;
}

.floating-particles span:nth-child(3) {
  left: 86%;
  top: 66%;
  animation-delay: 2s;
}

.floating-particles span:nth-child(4) {
  left: 17%;
  top: 75%;
  animation-delay: 3s;
}

.floating-particles span:nth-child(5) {
  left: 45%;
  top: 7%;
  animation-delay: 4s;
}

.floating-particles span:nth-child(6) {
  left: 63%;
  top: 88%;
  animation-delay: 5s;
}

@keyframes floatParticle {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0);
    opacity: .25;
  }

  50% {
    transform:
      translateY(-22px)
      rotate(18deg);
    opacity: .8;
  }
}

/*
|--------------------------------------------------------------------------
| Riziki Send-Off Invitation Card Styles
| Exact match to reference photo
|--------------------------------------------------------------------------
*/

.sendoff-card-wrapper {
  max-width: 530px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: 0 20px 60px rgba(18, 31, 56, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.sendoff-rendered-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(18, 31, 56, 0.15);
}

.sendoff-card {
  position: relative;
  max-width: 530px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: #FCF9F3;
  border: 1.5px solid #C49B45;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(18, 31, 56, 0.25);
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

/* 4 Corner Flower Ornaments */
.corner-flower {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}

.corner-flower.top-left {
  top: 0;
  left: 0;
}

.corner-flower.top-right {
  top: 0;
  right: 0;
}

.corner-flower.bottom-left {
  bottom: 0;
  left: 0;
}

.corner-flower.bottom-right {
  bottom: 0;
  right: 0;
}

.card-inner-frame {
  position: relative;
  border: 1px solid #D8C39D;
  background: #FCF9F3;
  text-align: center;
  box-sizing: border-box;
}

/* Top Navy Banner */
.top-navy-banner {
  background: #121F38;
  border-radius: 0 0 26px 26px;
  padding: 26px 16px 64px;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  box-sizing: border-box;
}

.banner-eyebrow {
  color: #C49B45;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.banner-title-1 {
  color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 4px 0 2px;
  text-transform: uppercase;
}

.banner-title-2 {
  color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.banner-subtitle {
  color: #F0EDE6;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Celebrant Avatar */
.celebrant-avatar-wrap {
  margin-top: -55px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 6;
}

.celebrant-avatar-border {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 4px solid #C49B45;
  box-shadow: 0 6px 18px rgba(18, 31, 56, 0.28);
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebrant-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Guest Info */
.guest-info-section {
  padding: 0 16px;
  text-align: center;
}

.invitation-for-label {
  color: #737B8B;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.invited-guest-name {
  color: #121F38;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.card-type-pill {
  display: inline-block;
  background: #C49B45;
  color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* 4-Column Details Grid */
.event-details-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #D8C39D;
  border-bottom: 1px solid #D8C39D;
  margin: 8px 14px 16px;
  padding: 14px 0;
  text-align: center;
  box-sizing: border-box;
}

.detail-col {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid #E8DAC2;
}

.detail-col:last-child {
  border-right: none;
}

.col-icon {
  margin-bottom: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-label {
  color: #C49B45;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.col-val-primary {
  color: #121F38;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.col-val-secondary {
  color: #121F38;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

.col-dress-code {
  color: #121F38;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* QR Code Section */
.qr-card-section {
  text-align: center;
  margin: 6px auto 12px;
}

.qr-frame-box {
  display: inline-block;
  background: #FFFFFF;
  border: 1.5px solid #C49B45;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(18, 31, 56, 0.08);
  margin: 0 auto;
  text-align: center;
}

.qr-frame-box svg,
.qr-frame-box canvas,
.qr-frame-box img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.qr-checkin-text {
  color: #6B7280;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Footer Contacts */
.card-contacts-footer {
  color: #121F38;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px 18px;
  text-align: center;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;

  flex-wrap: wrap;

  margin-top: 18px;
}

.download-note {
  min-height: 20px;

  margin-top: 10px;

  color: rgba(255,255,255,.65);

  text-align: center;

  font-size: 11px;
}

.guest-footer {
  margin-top: 18px;

  text-align: center;

  color: rgba(255,255,255,.45);

  font-size: 10px;
}

.guest-footer span {
  color: var(--gold-light);
  padding: 0 4px;
}

/*
|--------------------------------------------------------------------------
| RSVP
|--------------------------------------------------------------------------
*/

.rsvp-panel {
  margin-top: 23px;

  padding: 28px;

  border-radius: 21px;

  background: #fffdf8;

  text-align: center;

  box-shadow:
    0 20px 50px
    rgba(0,0,0,.13);
}

.rsvp-panel h2 {
  margin: 5px 0 5px;

  color: var(--green);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 29px;
}

.choice-group {
  display: flex;
  gap: 10px;

  margin: 19px 0;
}

.choice-btn {
  flex: 1;

  padding: 14px 10px;

  border-radius: 13px;

  border: 1px solid var(--line);

  background: #fff;

  color: var(--green);

  font-size: 11px;
  font-weight: 700;

  transition: .18s ease;
}

.choice-btn span {
  color: var(--gold);
  margin-right: 5px;
}

.choice-btn.selected {
  border-color: var(--gold);

  background:
    #fbf4e4;

  box-shadow:
    0 0 0 3px
    rgba(177,138,61,.08);
}

.extra-fields {
  text-align: left;
}

.extra-fields[hidden] {
  display: none;
}

.rsvp-confirmed {
  text-align: center;
}

.rsvp-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  margin: 0 auto 9px;

  border-radius: 50%;

  background: var(--green);

  color: #fff;

  font-size: 21px;
}

.rsvp-confirmed h2 {
  margin-top: 7px;
}

.rsvp-confirmed p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Error invitation
|--------------------------------------------------------------------------
*/

.error-invite {
  width: min(100%, 460px);

  padding: 45px 32px;

  border-radius: 25px;

  background: #fffdf8;

  text-align: center;

  box-shadow: var(--shadow);
}

.error-seal {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin: 0 auto 15px;

  border-radius: 50%;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--gold),
      var(--green)
    );
}

.error-invite h1 {
  margin: 0 0 9px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--green);

  font-size: 34px;
}

.error-invite p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/*
|--------------------------------------------------------------------------
| Scanner
|--------------------------------------------------------------------------
*/

.scanner-page {
  min-height: 100vh;

  padding: 30px 16px;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(216,188,114,.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(40,93,78,.18),
      transparent 30%
    ),
    var(--green);
}

.scanner-shell {
  width: min(100%, 620px);
  margin: 0 auto;
}

.scanner-header {
  color: #fff;
  text-align: center;
  margin-bottom: 22px;
}

.scanner-logo {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  margin: 0 auto 13px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--gold),
      #d6bd7c
    );

  font-size: 23px;

  box-shadow:
    0 12px 30px
    rgba(0,0,0,.18);
}

.scanner-header .eyebrow {
  color: #d9bd76;
}

.scanner-header h1 {
  margin: 3px 0;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 45px;
  font-weight: 600;
}

.scanner-header p {
  margin: 7px auto 0;

  max-width: 430px;

  color: rgba(255,255,255,.65);

  font-size: 13px;
  line-height: 1.6;
}

.scanner-box {
  padding: 18px;
}

.qr-reader {
  overflow: hidden;

  width: 100%;

  border-radius: 17px;

  background: #000;
}

.qr-reader video {
  border-radius: 17px;
}

.scanner-message {
  margin: 13px 0;

  padding: 12px;

  border-radius: 12px;

  color: var(--muted);

  background: #f7f3ea;

  text-align: center;

  font-size: 12px;
}

.scanner-message.success {
  color: var(--success);
  background: #e5f0ea;
}

.scanner-message.error {
  color: var(--danger);
  background: #f7e3e3;
}

.scan-result {
  margin-top: 18px;

  padding: 28px 22px;

  border-radius: 22px;

  text-align: center;

  box-shadow:
    0 24px 60px
    rgba(0,0,0,.22);

  animation: resultPop .24s ease-out;
}

@keyframes resultPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.scan-result.accepted {
  color: #174e3b;
  background: #f0f7f3;
  border: 2px solid #a3cfb8;
}

.scan-result.rejected {
  color: #7f3030;
  background: #fae8e8;
  border: 2px solid #e7b5b5;
}

.result-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  margin: 0 auto 12px;

  border-radius: 50%;

  color: #fff;

  font-size: 30px;
  font-weight: 700;

  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.result-icon.success {
  background: var(--success);
}

.result-icon.warning {
  background: var(--danger);
}

.result-title {
  margin-bottom: 8px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: .18em;

  text-transform: uppercase;
}

.scan-result .guest-name {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(32px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 12px;
  color: var(--green);
  word-break: break-word;
}

.scan-result.rejected .guest-name {
  color: #8c2e2e;
}

.scan-result .guest-meta-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.scan-result .guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(23, 63, 53, 0.09);
  color: var(--green);
  border: 1px solid rgba(23, 63, 53, 0.12);
}

.scan-result.rejected .guest-badge {
  background: rgba(169, 71, 71, 0.09);
  color: #8c2e2e;
  border-color: rgba(169, 71, 71, 0.15);
}

.scan-result .guest-note {
  margin: 10px auto 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 12px;
  color: #555;
  max-width: 400px;
  line-height: 1.4;
}

.scan-result strong,
.scan-result span {
  display: block;
}

.scan-result strong {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 29px;
}

.scan-result .result-detail {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-top: 8px;
}

.scan-result span {
  margin-top: 6px;

  font-size: 13px;
  line-height: 1.5;
}

.scan-result .btn-scan-ok {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 15px 24px;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 63, 53, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.scan-result.accepted .btn-scan-ok {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.scan-result.rejected .btn-scan-ok {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  box-shadow: 0 8px 24px rgba(169, 71, 71, 0.25);
}

.scan-result .btn-scan-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.scan-result .btn-scan-ok:active {
  transform: translateY(0);
}

.scanner-footer {
  padding: 20px;

  text-align: center;

  font-size: 11px;

  color: rgba(255,255,255,.45);
}

.scanner-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav-pills {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .stats,
  .checkin-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .mini-stats {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .mini-stats > div {
    border-bottom: 1px solid var(--line);
  }

  .mini-stats > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(
      100% - 24px,
      1180px
    );

    padding-top: 30px;
  }

  .topbar {
    padding: 11px 12px;
  }

  .brand {
    font-size: 23px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .topbar-actions .btn:first-child {
    display: none;
  }

  .hero-admin,
  .checkin-hero {
    align-items: flex-start;
    flex-direction: column;

    padding: 25px;
  }

  .stats,
  .checkin-grid {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 9px;
  }

  .stat {
    padding: 16px 9px;
  }

  .stat .n {
    font-size: 35px;
  }

  .mini-stats {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .card-panel {
    padding: 21px;
    border-radius: 18px;
  }

  .section-heading {
    padding: 21px 21px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .table-scroll {
    padding: 0 15px 20px;
  }

  .invite-stage {
    padding:
      25px 11px 45px;
  }

  .invite-card {
    padding: 5px;
  }

  .card-content {
    padding:
      39px 21px 28px;
  }

  .couple-names {
    font-size: 42px;
  }

  .invite-message {
    font-size: 17px;
  }

  .choice-group {
    flex-direction: column;
  }

  .scanner-header h1 {
    font-size: 39px;
  }
}

@media (max-width: 400px) {
  .topbar-actions .btn {
    padding-left: 9px;
    padding-right: 9px;
  }

  .nav-pills button {
    padding: 8px 10px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .card-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .couple-names {
    font-size: 38px;
  }
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
  button,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    min-height: 44px;
    font-size: 16px;
  }
  
  .card-panel {
    padding: 20px;
  }
}

/*
|--------------------------------------------------------------------------
| Mobile Responsive Styles for Send-Off Card
|--------------------------------------------------------------------------
*/
@media (max-width: 520px) {
  .sendoff-card {
    padding: 6px;
  }
  .banner-title-1 {
    font-size: 30px;
  }
  .banner-title-2 {
    font-size: 18px;
  }
  .invited-guest-name {
    font-size: 22px;
  }
  .event-details-4col {
    margin: 6px 4px 12px;
    padding: 10px 0;
  }
  .col-val-primary {
    font-size: 9.5px;
  }
  .col-val-secondary {
    font-size: 8.5px;
  }
  .col-dress-code {
    font-size: 8px;
  }
  .col-label {
    font-size: 9px;
  }
  .col-icon svg {
    width: 18px;
    height: 18px;
  }
  .card-contacts-footer {
    font-size: 9.5px;
    padding: 4px 6px 14px;
  }
}

/*
|--------------------------------------------------------------------------
| Print & Save as PDF Stylesheet
| Renders the wedding invitation in 100% crisp vector quality
| Suppresses browser header/footer margins (URL, Title, Date)
|--------------------------------------------------------------------------
*/
@media print {
  @page {
    size: auto;
    margin: 0mm !important; /* Removes browser print headers (URL, title) and footers (date, page number) */
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    text-shadow: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #121F38 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
  }

  /* Hide interactive web UI, forms, buttons, notes, and navigation */
  .top-banner,
  .card-actions,
  .download-note,
  .rsvp-panel,
  .guest-footer,
  .mobile-note,
  .guest-header,
  .guest-nav,
  .btn,
  #downloadCardBtn,
  #printCardBtn,
  #saveImageBtn {
    display: none !important;
    visibility: hidden !important;
  }

  .wrap,
  .guest-page,
  .invite-stage,
  .invite-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10mm 0 !important; /* Elegant margin padding inside page without browser header/footer clutter */
    background: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .sendoff-card {
    max-width: 520px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 8px !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    background: #FCF9F3 !important;
    border: 1.5px solid #C49B45 !important;
  }

  .top-navy-banner {
    background: #121F38 !important;
    color: #FFFFFF !important;
  }

  .banner-title-1,
  .banner-title-2 {
    color: #FFFFFF !important;
  }

  .banner-eyebrow,
  .col-label,
  .card-type-pill {
    color: #C49B45 !important;
  }

  .card-type-pill {
    background: #C49B45 !important;
    color: #FFFFFF !important;
  }

  .invited-guest-name,
  .col-val-primary,
  .col-val-secondary,
  .col-dress-code,
  .card-contacts-footer {
    color: #121F38 !important;
  }

  .qr-frame-box {
    box-shadow: none !important;
    border: 1.5px solid #C49B45 !important;
  }

  .qr-frame-box canvas,
  .qr-frame-box img {
    max-width: 120px !important;
    height: auto !important;
  }
}



