:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #17202f;
  --muted: #667085;
  --line: #dde2ea;
  --sage: #597b67;
  --sage-dark: #31503e;
  --rose: #d9868a;
  --lemon: #f2d264;
  --blue: #465fe8;
  --blue-dark: #253cc5;
  --shadow: 0 18px 50px rgba(38, 54, 77, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.hero {
  min-height: 92vh;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.92), rgba(251, 250, 247, 0.78)),
    url("https://images.unsplash.com/photo-1519689680058-324335c77eba?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.hero-photo .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.92), rgba(251, 250, 247, 0.78)),
    url("https://images.unsplash.com/photo-1519689680058-324335c77eba?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
}

.hero-photo-boy .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.93), rgba(251, 250, 247, 0.62)),
    url("/assets/hero-photo-boy.png");
  background-position: center;
  background-size: cover;
}

.hero-custom .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.93), rgba(251, 250, 247, 0.62)),
    var(--custom-hero);
  background-position: center;
  background-size: cover;
}

.theme-girl {
  --sage-dark: #74465f;
  --sage: #a66b83;
  --bg: #fff8fa;
  --lemon: #f7d7df;
}

.theme-boy {
  --sage-dark: #244f68;
  --sage: #4f7f95;
  --bg: #f5fbff;
  --lemon: #d4ecff;
}

.theme-elegant {
  --sage-dark: #232323;
  --sage: #585858;
  --bg: #fbfaf7;
  --lemon: #e8d7a8;
}

.theme-floral {
  --sage-dark: #6c3f56;
  --sage: #8d6477;
  --bg: #fff9f5;
  --lemon: #f3d9b8;
}

.theme-safari {
  --sage-dark: #4f5a32;
  --sage: #77834b;
  --bg: #fbfaf0;
  --lemon: #e4c15e;
}

.theme-minimal {
  --sage-dark: #1f2933;
  --sage: #52606d;
  --bg: #ffffff;
  --lemon: #e5e7eb;
}

.hero-girl .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.72)),
    url("/assets/hero-girl.svg");
  background-position: center;
  background-size: cover;
}

.hero-boy .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.72)),
    url("/assets/hero-boy.svg");
  background-position: center;
  background-size: cover;
}

.hero-neutral .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.72)),
    url("/assets/hero-neutral.svg");
  background-position: center;
  background-size: cover;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: clamp(230px, 31vw, 340px);
  height: auto;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-weight: 650;
}

.hero-grid {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 56px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 900px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.intro {
  max-width: 660px;
  color: #344054;
  font-size: 1.15rem;
  border-left: 4px solid var(--lemon);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(38, 54, 77, 0.08);
  padding: 14px 16px;
}

.hero-actions,
.filters,
.amount-row,
.nav-actions {
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.hero-actions .button {
  min-height: 58px;
  padding: 16px 26px;
  font-size: 1.06rem;
  box-shadow: 0 14px 30px rgba(38, 54, 77, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(38, 54, 77, 0.2);
}

.hero-actions .button.primary {
  min-width: 150px;
}

.hero-actions .button.secondary {
  min-width: 150px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(70, 95, 232, 0.22),
    0 14px 30px rgba(38, 54, 77, 0.14);
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.primary:disabled,
.button.primary:disabled:hover {
  background: #98a2b3;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.danger-button {
  color: #8a1f2d;
  box-shadow: inset 0 0 0 1px rgba(138, 31, 45, 0.28);
}

.small-button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.event-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.event-panel > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.event-panel > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.map-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-status {
  width: fit-content;
  margin: 8px 0 0;
  border-radius: 999px;
  background: #fff3bd;
  color: #604a00;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 850;
}

.map-actions a,
.map-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.panel-label,
.payment-box span,
.payment-detail span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

main {
  background: var(--bg);
}

.trust-strip {
  width: min(1120px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip article {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(38, 54, 77, 0.1);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.trust-strip span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lemon);
  display: grid;
  place-items: center;
  color: #574500;
  font-weight: 900;
}

.trust-strip strong {
  font-size: 1.02rem;
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.compact {
  padding: 44px 0 26px;
}

.section.alt {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: #eef4ef;
}

.site-footer {
  background: #31503e;
  color: #fff;
}

.footer-assurance {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-assurance article {
  display: grid;
  gap: 4px;
}

.footer-assurance p,
.footer-links a,
.footer-links span,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.footer-assurance p {
  margin: 0;
}

.footer-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.3fr);
  gap: 56px;
}

.footer-logo {
  width: 250px;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.footer-newsletter h2 {
  max-width: 420px;
  margin: 22px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 480px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  font-weight: 650;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-note {
  max-width: 420px;
  color: var(--muted);
  margin-bottom: 0;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guest-section {
  padding-top: 34px;
}

.guest-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guest-card {
  min-height: 86px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.guest-card strong {
  font-size: 1.02rem;
}

.guest-card span {
  color: var(--muted);
  font-weight: 750;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(70, 95, 232, 0.24);
  outline-offset: 2px;
}

.filters,
.amount-row {
  display: flex;
  gap: 8px;
}

.chip,
.amount-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
}

.chip.active,
.amount-row button:hover {
  background: var(--lemon);
  border-color: var(--lemon);
  color: #241d00;
}

.category-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px 0 24px;
}

.category-rail span,
.gift-tags span {
  border-radius: 999px;
  background: #eef4ef;
  color: var(--sage-dark);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.item-grid,
.fund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gift-card,
.fund-card {
  position: relative;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.priority-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: var(--lemon);
  color: #574500;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.open-fund-note {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-weight: 750;
}

.gift-image {
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 123, 103, 0.22), rgba(217, 134, 138, 0.26)),
    var(--paper);
  display: grid;
  place-items: center;
  color: var(--sage-dark);
  font-size: 2.6rem;
  font-weight: 900;
}

.gift-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
}

.gift-image.has-photo {
  background: linear-gradient(135deg, #f8faf8, #fff7f4);
}

.fund-image {
  aspect-ratio: 3 / 1.55;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8faf8, #fff7f4);
}

.fund-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.store-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-link {
  background: var(--lemon);
  border: 1px solid rgba(23, 32, 47, 0.08);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(169, 128, 18, 0.16);
}

.store-link:hover {
  background: #f6dc78;
  border-color: rgba(23, 32, 47, 0.16);
}

.gift-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  border-radius: 999px;
  background: #edf0f5;
  color: #475467;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status.available {
  background: #eaf5ee;
  color: var(--sage-dark);
}

.status.complete {
  background: #edf0f5;
  color: #475467;
}

.fund-card.complete {
  background: #f8fafc;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7e2;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress);
  background: var(--rose);
}

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

.modal {
  width: min(480px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(23, 32, 47, 0.48);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.payment-box {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f5;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-method {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 10px;
  font-weight: 850;
}

.payment-method.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px rgba(70, 95, 232, 0.18);
}

.payment-logo {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.mbway-logo {
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f4;
  padding: 4px;
}

.revolut-logo {
  width: 78px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f4;
  padding: 4px;
}

.iban-logo {
  gap: 3px;
  background: #eef4ef;
  border: 1px solid rgba(49, 80, 62, 0.18);
}

.bank-roof {
  width: 30px;
  height: 0;
  border-right: 16px solid transparent;
  border-bottom: 9px solid var(--sage-dark);
  border-left: 16px solid transparent;
}

.bank-columns {
  width: 34px;
  height: 15px;
  background:
    linear-gradient(90deg, var(--sage-dark) 0 18%, transparent 18% 41%, var(--sage-dark) 41% 59%, transparent 59% 82%, var(--sage-dark) 82% 100%);
}

.bank-base {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--sage-dark);
}

.payment-detail {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7f5;
}

.payment-detail strong {
  word-break: break-word;
}

.payment-detail p {
  margin: 0;
  color: var(--muted);
}

.payment-warning {
  padding: 10px 12px;
  border-left: 4px solid var(--lemon);
  border-radius: 8px;
  background: #fff9de;
}

.payment-warning strong {
  color: #574500;
}

.payment-reference {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 340px;
  transform: translateY(120%);
  transition: transform 180ms ease;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 750;
}

.toast.show {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.admin-body {
  background: #f4f7f5;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.login-panel,
.admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(38, 54, 77, 0.08);
  padding: 22px;
}

.login-panel {
  width: min(520px, 100%);
  margin: 13vh auto 0;
}

.login-panel h1,
.admin-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.admin-actions,
.admin-tabs,
.admin-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.online-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.online-status::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.online-status.online {
  border-color: #b9dfc7;
  background: #effaf2;
  color: #125f31;
}

.online-status.checking {
  border-color: #f2df9a;
  background: #fff8d9;
  color: #725a00;
}

.online-status.offline {
  border-color: #f1b8b8;
  background: #fff1f1;
  color: #8a1f1f;
}

.admin-tabs {
  margin-bottom: 16px;
}

.admin-app {
  display: grid;
  gap: 16px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-form.single,
.admin-form.nested {
  grid-template-columns: 1fr;
}

.admin-form .wide {
  grid-column: 1 / -1;
}

textarea {
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.editor-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.editor-card-head h3 {
  margin: 0;
}

.editor-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #eef4ef;
  color: var(--sage-dark);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.reservation-alert {
  display: inline-grid;
  gap: 2px;
  margin: 0 0 14px;
  border: 1px solid rgba(70, 95, 232, 0.22);
  border-radius: 8px;
  background: #f0f5ff;
  padding: 10px 12px;
}

.reservation-alert span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-alert strong {
  color: var(--ink);
}

.reservation-chip {
  width: fit-content;
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf0f5;
  color: #475467;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.reservation-chip.reserved {
  background: #dff3e6;
  color: var(--sage-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-grid article,
.records-grid article {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.summary-grid span,
.record-list span,
.record-list small {
  display: block;
  color: var(--muted);
}

.summary-grid strong {
  display: block;
  font-size: 1.7rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-grid > article,
.nested-panel {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.nested-panel {
  box-shadow: none;
}

.fund-breakdown,
.quick-actions,
.contribution-list-wide {
  display: grid;
  gap: 10px;
}

.fund-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fund-row:last-child {
  border-bottom: 0;
}

.fund-row span,
.fund-row small {
  color: var(--muted);
  font-weight: 750;
}

.template-actions,
.quick-shop-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-gift-filters {
  margin: 0 0 16px;
}

.empty-admin-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.quick-shop-links {
  margin-bottom: 0;
}

.quick-shop-links button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--sage-dark);
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 850;
}

.admin-image-preview {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ef;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.check-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.internal-note {
  margin-top: 10px;
  font-size: 0.82rem;
}

.internal-note input {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.78);
}

.records-chart {
  margin-bottom: 18px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.chart-head,
.chart-values {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.chart-head span,
.chart-values {
  color: var(--muted);
}

.chart-head strong {
  display: block;
  font-size: 1.7rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.pending-dot,
.pending-bar {
  background: #f2d264;
}

.confirmed-dot,
.confirmed-bar {
  background: var(--sage);
}

.stacked-chart {
  height: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f5;
  margin: 14px 0 10px;
}

.stacked-chart span {
  display: block;
  min-width: 0;
}

.records-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 14px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-list p {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.record-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.approval-section {
  display: grid;
  gap: 10px;
}

.approval-section + .approval-section {
  margin-top: 18px;
}

.approval-section h4 {
  margin: 0;
  color: var(--ink);
}

.contribution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contribution-card.pending {
  border-color: #f0d774;
  background: #fffbea;
}

.contribution-card.confirmed {
  border-color: #bdddc8;
  background: #f2faf5;
}

.contribution-card span,
.contribution-card small {
  display: block;
  color: var(--muted);
}

.contribution-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.approval-pill.pending {
  background: #fff3bd;
  color: #604a00;
}

.approval-pill.confirmed {
  background: #dff3e6;
  color: var(--sage-dark);
}

.danger-zone {
  border-style: dashed;
}

.file-input {
  display: inline-grid;
  gap: 8px;
  align-items: center;
}

.file-input input {
  padding: 9px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .topbar,
  .section-heading.split,
  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .trust-strip,
  .rsvp-form,
  .guest-list,
  .item-grid,
  .fund-grid,
  .dashboard-grid,
  .fund-row,
  .footer-assurance,
  .footer-main,
  .footer-links,
  .admin-form,
  .summary-grid,
  .records-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    padding-top: 28px;
    gap: 32px;
  }

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 520px) {
  .nav-actions {
    gap: 12px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .rsvp-form,
  .gift-card,
  .fund-card {
    padding: 14px;
  }

  .payment-box,
  .payment-methods,
  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
