:root {
  --pink: #e4007f;
  --pink-deep: #98005a;
  --green: #229647;
  --green-deep: #12662d;
  --gold: #b88934;
  --ink: #17171f;
  --body: #4c5260;
  --muted: #747a87;
  --line: #ece4dc;
  --paper: #fffaf4;
  --blush: #fff2f8;
  --mint: #eefaf2;
  --white: #ffffff;
  --shadow: 0 22px 64px rgba(23, 23, 31, 0.11);
}

/* 2026-09-07 branded invoice workflow release. */
body.admin-shell-body .invoice-defaults-panel {
  background: linear-gradient(135deg, #fff4df 0%, #f5e8f1 56%, #e9f4eb 100%) !important;
  border: 1px solid #d7b76e !important;
  box-shadow: 0 16px 38px rgba(108, 70, 13, 0.11) !important;
}

body.admin-shell-body .invoice-defaults-panel > summary > span:last-child {
  background: #7a4d00;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
}

body.admin-shell-body .invoice-customer-filter {
  align-items: end;
  grid-template-columns: minmax(260px, 2fr) minmax(135px, 0.72fr) minmax(115px, 0.56fr) 88px auto !important;
}

body.admin-shell-body .invoice-customer-filter .button {
  min-height: 44px;
  padding-inline: 18px;
}

body.admin-shell-body .invoice-history-section {
  background: linear-gradient(145deg, #fffefe 0%, #fff7fb 100%);
}

body.admin-shell-body .invoice-history-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

body.admin-shell-body .invoice-history-card {
  background: linear-gradient(135deg, #ead6e2 0%, #e4eaf7 100%);
  border: 1px solid #c8a2b8;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(67, 30, 53, 0.1);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1.58fr);
  overflow: hidden;
  padding: 14px;
}

body.admin-shell-body .invoice-history-summary {
  background: linear-gradient(145deg, #40203a, #64264d);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

body.admin-shell-body .invoice-history-summary h3 {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  margin: 10px 0 12px;
}

body.admin-shell-body .invoice-history-summary dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

body.admin-shell-body .invoice-history-summary dl > div {
  display: grid;
  gap: 2px;
}

body.admin-shell-body .invoice-history-summary dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.admin-shell-body .invoice-history-summary dd {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

body.admin-shell-body .invoice-history-summary .document-status {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #4a1735 !important;
}

body.admin-shell-body .invoice-history-actions {
  align-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 23, 53, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
}

body.admin-shell-body .invoice-view-actions,
body.admin-shell-body .invoice-draft-actions {
  justify-content: flex-start;
}

body.admin-shell-body .invoice-delivery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

body.admin-shell-body .invoice-delivery-grid .document-channel-form {
  align-content: center;
  align-items: end;
  grid-template-columns: minmax(210px, 1fr) auto;
  min-width: 0;
}

body.admin-shell-body .invoice-email-channel {
  background: #e4edff !important;
  border-color: #7892c5 !important;
  box-shadow: inset 4px 0 0 #315c9b;
}

body.admin-shell-body .invoice-email-channel .email-button {
  background: #315c9b !important;
  border-color: #315c9b !important;
  color: #ffffff !important;
}

body.admin-shell-body .invoice-whatsapp-channel {
  background: #ccebd5 !important;
  border-color: #4f9b69 !important;
  box-shadow: inset 4px 0 0 #08783a;
}

body.admin-shell-body .invoice-entry-title {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2px 4px 16px;
  text-align: left;
}

body.admin-shell-body .invoice-entry-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

body.admin-shell-body .invoice-entry-brand img {
  height: 62px;
  object-fit: contain;
  width: 62px;
}

body.admin-shell-body .invoice-entry-brand strong {
  color: #8d0050;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

body.admin-shell-body .invoice-entry-type {
  display: grid;
  gap: 3px;
  text-align: right;
}

body.admin-shell-body .invoice-entry-type span {
  color: #303346;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 900;
}

body.admin-shell-body .invoice-entry-type small {
  color: #686d78;
  font-size: 0.72rem;
  font-weight: 700;
}

body.admin-shell-body .invoice-service-labels,
body.admin-shell-body .invoice-service-fields {
  grid-template-columns: minmax(260px, 1.65fr) minmax(140px, 0.75fr) minmax(90px, 0.45fr) minmax(180px, 0.8fr) !important;
}

body.admin-shell-body .invoice-service-fields small {
  color: #686d78;
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 1260px) {
  body.admin-shell-body .invoice-customer-filter {
    grid-template-columns: minmax(230px, 1.5fr) minmax(125px, 0.7fr) minmax(105px, 0.55fr) 82px auto !important;
  }

  body.admin-shell-body .invoice-delivery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.admin-shell-body .invoice-history-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.admin-shell-body .invoice-customer-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.admin-shell-body .invoice-customer-filter .filter-query {
    grid-column: 1 / -1;
  }

  body.admin-shell-body .invoice-customer-filter .button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body.admin-shell-body .invoice-entry-title,
  body.admin-shell-body .invoice-delivery-grid .document-channel-form,
  body.admin-shell-body .invoice-customer-filter {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.admin-shell-body .invoice-entry-type {
    border-top: 1px solid #d2d3d9;
    padding-top: 12px;
    text-align: left;
  }

  body.admin-shell-body .invoice-customer-filter .filter-query {
    grid-column: auto;
  }
}

/* Razorpay payment workflow and correction controls. */
.razorpay-payment-card,
.dashboard-payment-helper {
  align-items: center;
  display: flex;
  gap: 18px;
}

.razorpay-payment-card {
  align-self: stretch;
  background: linear-gradient(145deg, #f0f5ff, #ffffff);
  border: 1px solid #cad8f4;
  border-radius: 22px;
  flex-direction: column;
  justify-content: center;
  min-width: min(100%, 270px);
  padding: 24px;
  text-align: center;
}

.razorpay-trust-mark {
  align-items: center;
  background: linear-gradient(145deg, #2563eb, #0f3a9b);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
  color: #fff;
  display: inline-flex;
  flex: 0 0 56px;
  font-size: 28px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.dashboard-payment-helper > div:last-child {
  min-width: 0;
}

.dashboard-payment-helper strong,
.razorpay-payment-card strong {
  color: #132b66;
  font-size: 18px;
}

.payment-confirm-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
}

.payment-confirm-card {
  background: #fff;
  border: 1px solid rgba(152, 0, 90, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(23, 23, 31, 0.12);
  display: grid;
  gap: 18px;
  max-width: 680px;
  padding: clamp(24px, 5vw, 48px);
  width: 100%;
}

.payment-confirm-card h1,
.payment-confirm-card h2,
.payment-confirm-card p {
  margin: 0;
}

.payment-confirm-plan {
  background: linear-gradient(135deg, #fff2f8, #fffaf0);
  border: 1px solid rgba(228, 0, 127, 0.18);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.payment-confirm-plan > strong {
  color: var(--pink-deep);
  font-size: clamp(24px, 4vw, 34px);
}

.payment-confirm-card .button {
  justify-content: center;
  width: 100%;
}

.danger-button {
  background: #9f1239 !important;
  border-color: #9f1239 !important;
  color: #fff !important;
}

.danger-action {
  color: #9f1239 !important;
}

.invoice-cancel-form {
  justify-content: flex-end;
  margin-top: 10px;
}

.payment-admin-main {
  min-width: 0;
}

.payment-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-month-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 18px;
}

.payment-month-strip a {
  background: #fff9fc;
  border: 1px solid #eadde5;
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.payment-month-strip a:hover,
.payment-month-strip a:focus-visible {
  border-color: var(--pink);
}

.payment-month-strip small {
  color: var(--muted);
}

.payment-filter-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 2fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr) 90px auto auto;
  margin-bottom: 18px;
}

.payment-filter-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.payment-filter-form input,
.payment-filter-form select {
  min-width: 0;
  width: 100%;
}

.payment-review-card.razorpay-payment-record {
  border-left: 5px solid #2563eb;
}

.payment-review-card.manual-payment-record {
  border-left: 5px solid var(--pink);
}

.payment-record-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.payment-record-facts div {
  display: grid;
  gap: 2px;
}

.payment-record-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-record-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-amount {
  color: var(--pink-deep);
  display: inline-block;
  font-size: 22px;
  margin-top: 8px;
}

.payment-lock-note {
  align-self: center;
  background: #f3f7ff;
  border: 1px solid #cad8f4;
  border-radius: 16px;
  color: #21407f;
  margin: 0;
  padding: 16px;
}

@media (max-width: 1220px) {
  .payment-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .razorpay-payment-card,
  .dashboard-payment-helper {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-filter-form,
  .payment-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-filter-form .button {
    width: 100%;
  }
}

/* Agreements and invoices - isolated document workflow styles */
.document-review-shell {
  width: min(100% - 32px, 980px);
  margin: 38px auto 72px;
}

.document-review-header,
.document-status-card,
.legal-document-card,
.signature-form {
  background: #fff;
  border: 1px solid #eadde5;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(83, 20, 56, 0.08);
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 38px);
}

.document-review-header h1,
.signature-form h2,
.legal-document-section h2 {
  color: #65003c;
}

.document-review-header p:last-child,
.legal-document-meta,
.signature-pad-wrap p,
.field-help,
.document-date {
  color: #686d78;
}

.document-status-card.accepted {
  border-color: #9ed9b3;
  background: #f2fff6;
}

.document-status-card.warning {
  border-color: #ebc479;
  background: #fffaf0;
}

.legal-document-meta {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #eadde5;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.legal-document-meta strong {
  color: #8d0050;
  font-size: 1.25rem;
}

.document-intro {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
}

.legal-document-section {
  padding-top: 12px;
}

.legal-document-section h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.legal-document-section p {
  color: #3f4350;
  line-height: 1.72;
}

.consent-check {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  font-weight: 700;
  line-height: 1.55;
  margin: 20px 0;
}

.consent-check input {
  flex: 0 0 auto;
  height: 22px;
  margin-top: 2px;
  width: 22px;
}

.signature-pad-wrap {
  margin-bottom: 22px;
}

.signature-pad-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.signature-pad-wrap canvas {
  background-color: #fff !important;
  border: 2px solid #c8a5b9;
  border-radius: 14px;
  color-scheme: light;
  display: block;
  height: clamp(230px, 34vw, 320px);
  max-width: 100%;
  touch-action: none;
  width: 100%;
}

.document-admin-main {
  min-width: 0;
}

.document-filter-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 18px;
}

.document-filter-form label,
.agreement-send-form label,
.document-channel-form label,
.invoice-whatsapp-action label {
  display: grid;
  gap: 7px;
}

.document-filter-form label > span,
.agreement-send-form label > span,
.document-channel-form label > span,
.invoice-whatsapp-action label > span {
  color: #565b67;
  font-size: 0.84rem;
  font-weight: 700;
}

.document-filter-form input,
.agreement-send-form input,
.document-channel-form input,
.invoice-whatsapp-action input {
  border: 1px solid #d8c9d2;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
}

.document-tabs {
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

.document-admin-card {
  align-items: center;
  background: #fffafc;
  border: 1px solid #eadde5;
  border-radius: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 0.65fr) minmax(300px, 1.35fr);
  padding: 18px;
}

.document-admin-summary h3,
.document-admin-summary p {
  margin: 6px 0;
}

.document-admin-actions,
.agreement-send-form {
  align-items: end;
  display: grid;
  gap: 10px;
}

.agreement-send-form {
  grid-template-columns: 0.75fr 1fr auto;
}

.document-status {
  background: #f0e8ed;
  border-radius: 999px;
  color: #5f4a56;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.document-status.accepted,
.document-status.sent {
  background: #e2f7e9;
  color: #146b36;
}

.document-status.failed,
.document-status.expired,
.document-status.revoked,
.document-status.cancelled {
  background: #fff0ed;
  color: #9b2f21;
}

.document-status.viewed,
.document-status.finalized {
  background: #fff4d6;
  color: #765100;
}

.document-pagination,
.invoice-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.invoice-defaults-panel {
  margin-bottom: 18px;
}

.invoice-settings-form {
  align-items: end;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
}

.verified-payment-strip,
.recipient-search-list {
  display: grid;
  gap: 10px;
}

.verified-payment-strip article,
.recipient-search-list a {
  align-items: center;
  background: #fffafc;
  border: 1px solid #eadde5;
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto;
  padding: 14px 16px;
  text-decoration: none;
}

.recipient-search-list a {
  grid-template-columns: 0.7fr 1.3fr;
}

.invoice-table form {
  margin: 0;
}

.invoice-table .table-actions-stack {
  align-items: flex-start;
}

.invoice-form-section {
  border-bottom: 1px solid #eadde5;
  padding-top: 12px;
}

.invoice-form-section h2 {
  margin-top: 3px;
}

.invoice-calculation-preview {
  align-items: center;
  background: #fff7fb;
  border: 1px solid #e4c7d8;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 16px;
}

.invoice-calculation-preview strong {
  color: #8d0050;
}

@media (max-width: 900px) {
  .document-admin-card,
  .invoice-settings-form {
    grid-template-columns: 1fr;
  }

  .agreement-send-form {
    grid-template-columns: 1fr 1fr;
  }

  .agreement-send-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .document-review-shell {
    width: min(100% - 20px, 980px);
    margin-top: 18px;
  }

  .document-review-header,
  .document-status-card,
  .legal-document-card,
  .signature-form {
    border-radius: 16px;
    padding: 20px;
  }

  .document-filter-form,
  .agreement-send-form,
  .verified-payment-strip article,
  .recipient-search-list a {
    grid-template-columns: 1fr;
  }

  .document-filter-form .button,
  .agreement-send-form .button {
    width: 100%;
  }

  .signature-pad-wrap canvas {
    height: 250px;
  }

  .document-pagination,
  .invoice-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .document-pagination .button,
  .invoice-form-actions .button {
    width: 100%;
  }
}

/* 2026-09-07 reference invoice and admin document clarity release. */
body.admin-shell-body .agreement-customer-card {
  background: linear-gradient(135deg, #ecd4e2 0%, #e5d6ea 100%) !important;
  border: 1px solid #c89bb5 !important;
  box-shadow: 0 14px 30px rgba(74, 22, 54, 0.12) !important;
  overflow: hidden;
}

body.admin-shell-body .agreement-customer-card .document-admin-summary {
  align-self: stretch;
  background: linear-gradient(145deg, #4a1735, #6a2450);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  text-align: center;
}

body.admin-shell-body .agreement-customer-card .document-admin-summary h3,
body.admin-shell-body .agreement-customer-card .document-admin-summary p,
body.admin-shell-body .agreement-customer-card .document-admin-summary small {
  color: #ffffff !important;
}

body.admin-shell-body .agreement-customer-card .document-status {
  align-self: center;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #4a1735 !important;
}

body.admin-shell-body .agreement-profile-icon {
  align-items: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(28, 4, 20, 0.25);
  color: #5c1b43;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  line-height: 1;
  width: 54px;
}

body.admin-shell-body .agreement-profile-icon.female {
  color: #b00067;
}

body.admin-shell-body .agreement-profile-icon.male {
  color: #245b9b;
}

body.admin-shell-body .agreement-profile-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

body.admin-shell-body .agreement-profile-facts > div {
  display: grid;
  gap: 2px;
}

body.admin-shell-body .agreement-profile-facts dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.admin-shell-body .agreement-profile-facts dd {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

body.admin-shell-body .agreement-customer-card .document-admin-actions {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(90, 31, 66, 0.16);
  border-radius: 14px;
  padding: 12px;
}

body.admin-shell-body .agreement-customer-card .document-preview-row {
  align-items: center;
  background: #f8edcf;
  border: 1px solid #d6b86e;
  border-radius: 12px;
  padding: 9px 11px;
}

body.admin-shell-body .agreement-customer-card .agreement-preview-button {
  background: #9c6200 !important;
  border-color: #9c6200 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(156, 98, 0, 0.2) !important;
}

body.admin-shell-body .agreement-customer-card .email-channel {
  align-content: center;
  align-items: end;
  background: #e3ebfb !important;
  border-color: #7892c5 !important;
  box-shadow: inset 4px 0 0 #4267a9;
  min-height: 100%;
}

body.admin-shell-body .agreement-customer-card .email-channel .button {
  background: #315c9b !important;
  border-color: #315c9b !important;
  color: #ffffff !important;
}

body.admin-shell-body .agreement-customer-card .whatsapp-channel {
  background: #ccebd5 !important;
  border-color: #4f9b69 !important;
  box-shadow: inset 4px 0 0 #08783a;
}

body.admin-shell-body .agreement-customer-card .whatsapp-channel .whatsapp-button {
  background: #08783a !important;
  border-color: #08783a !important;
}

body.admin-shell-body .invoice-entry-sheet {
  background: #ffffff;
  border: 1px solid #aeb0ba;
  box-shadow: 0 18px 44px rgba(23, 23, 31, 0.1);
  display: grid !important;
  font-size: 15px !important;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(18px, 2.4vw, 30px);
}

body.admin-shell-body .invoice-entry-title {
  border-bottom: 2px solid #3f4350;
  padding-bottom: 14px;
  text-align: center;
}

body.admin-shell-body .invoice-entry-title h2 {
  color: #303346;
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
  line-height: 1.1;
  margin: 2px 0 6px;
}

body.admin-shell-body .invoice-entry-title > p:last-child {
  color: #656a78;
  font-size: 0.88rem;
  margin: 0 auto;
  max-width: 680px;
}

body.admin-shell-body .invoice-entry-block {
  border: 1px solid #3f4350;
  border-radius: 0;
  min-width: 0;
  overflow: hidden;
}

body.admin-shell-body .invoice-entry-block h3 {
  background: #f1f1f4;
  border-bottom: 1px solid #3f4350;
  color: #303346;
  font-size: 0.83rem !important;
  letter-spacing: 0.035em;
  margin: 0;
  padding: 8px 10px;
  text-transform: uppercase;
}

body.admin-shell-body .invoice-billing-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

body.admin-shell-body .invoice-entry-column + .invoice-entry-column {
  border-left: 1px solid #3f4350;
}

body.admin-shell-body .invoice-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

body.admin-shell-body .invoice-field-grid.compact-grid {
  border-top: 1px solid #d2d3d9;
}

body.admin-shell-body .invoice-entry-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
}

body.admin-shell-body .invoice-entry-meta > div {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: 115px minmax(0, 1fr);
}

body.admin-shell-body .invoice-entry-meta dt {
  color: #666b78;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.admin-shell-body .invoice-entry-meta dd {
  color: #20222d;
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

body.admin-shell-body .invoice-field-wide {
  grid-column: 1 / -1;
}

body.admin-shell-body .invoice-entry-sheet label {
  color: #303346;
  display: grid !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

body.admin-shell-body .invoice-entry-sheet input,
body.admin-shell-body .invoice-entry-sheet select,
body.admin-shell-body .invoice-entry-sheet textarea {
  background: #ffffff !important;
  border: 1px solid #bfc1ca !important;
  border-radius: 8px !important;
  color: #17171f !important;
  font-size: 0.9rem !important;
  min-height: 44px !important;
  min-width: 0 !important;
  padding: 10px 11px !important;
  width: 100% !important;
}

body.admin-shell-body .invoice-entry-sheet textarea {
  min-height: 78px !important;
  resize: vertical;
}

body.admin-shell-body .invoice-service-labels,
body.admin-shell-body .invoice-service-fields {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(145px, 1fr) minmax(145px, 1fr) minmax(90px, 0.65fr) minmax(130px, 0.85fr);
}

body.admin-shell-body .invoice-service-labels {
  background: #f1f1f4;
  border-bottom: 1px solid #3f4350;
}

body.admin-shell-body .invoice-service-labels span {
  border-right: 1px solid #b9bbc4;
  color: #303346;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 8px 10px;
  text-transform: uppercase;
}

body.admin-shell-body .invoice-service-fields label {
  border-right: 1px solid #d2d3d9;
  padding: 12px 10px;
}

body.admin-shell-body .invoice-service-fields label > span {
  display: none;
}

body.admin-shell-body .invoice-custom-plan-field {
  align-items: end;
  background: #f8f3f7;
  border-top: 1px solid #d2d3d9;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.85fr);
  padding: 14px;
}

body.admin-shell-body .invoice-custom-plan-field[hidden] {
  display: none !important;
}

body.admin-shell-body .invoice-custom-plan-field p {
  color: #686d78;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 0 10px;
}

body.admin-shell-body .invoice-tax-fields {
  align-items: end;
  border-top: 1px solid #3f4350;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, 0.35fr) minmax(210px, 0.55fr) minmax(300px, 1.1fr);
  padding: 14px;
}

body.admin-shell-body .invoice-entry-sheet .invoice-calculation-preview {
  margin: 0;
  min-height: 68px;
}

body.admin-shell-body .invoice-payment-block .invoice-field-grid {
  grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 1fr);
}

body.admin-shell-body .invoice-entry-sheet .invoice-form-actions {
  margin-top: 0;
}

body.admin-shell-body .admin-table-wrap {
  max-width: 100%;
  overflow-x: auto !important;
}

body.admin-shell-body .admin-overview-table {
  min-width: 760px;
  table-layout: auto !important;
  width: 100%;
}

body.admin-shell-body .admin-overview-table th.admin-action-heading,
body.admin-shell-body .admin-overview-table td.admin-overview-action {
  min-width: 132px !important;
  text-align: right;
  width: 132px !important;
}

body.admin-shell-body .dashboard-main .admin-overview-table td.admin-overview-action .table-action {
  display: inline-flex !important;
  font-size: 0.78rem !important;
  height: auto !important;
  justify-content: center;
  max-width: none !important;
  min-height: 38px !important;
  min-width: 102px !important;
  overflow: visible !important;
  padding: 8px 15px !important;
  white-space: nowrap !important;
  width: auto !important;
}

body.admin-shell-body .dashboard-main,
body.admin-shell-body .dashboard-section,
body.admin-shell-body .section-heading {
  min-width: 0;
}

@media (max-width: 1180px) {
  body.admin-shell-body .invoice-service-labels {
    display: none;
  }

  body.admin-shell-body .invoice-service-fields {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  body.admin-shell-body .invoice-service-fields label {
    border: 0;
    padding: 0;
  }

  body.admin-shell-body .invoice-service-fields label > span {
    display: inline;
  }
}

@media (max-width: 760px) {
  body.admin-shell-body .agreement-customer-card .document-admin-summary,
  body.admin-shell-body .agreement-customer-card .document-admin-actions {
    padding: 13px;
  }

  body.admin-shell-body .invoice-entry-sheet {
    gap: 12px;
    padding: 14px;
  }

  body.admin-shell-body .invoice-billing-block,
  body.admin-shell-body .invoice-field-grid,
  body.admin-shell-body .invoice-service-fields,
  body.admin-shell-body .invoice-tax-fields,
  body.admin-shell-body .invoice-payment-block .invoice-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.admin-shell-body .invoice-entry-column + .invoice-entry-column {
    border-left: 0;
    border-top: 1px solid #3f4350;
  }

  body.admin-shell-body .invoice-field-wide {
    grid-column: auto;
  }

  body.admin-shell-body .invoice-entry-meta > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Compact, high-volume customer document registers. */
.document-admin-main .dashboard-section {
  padding: clamp(18px, 2.4vw, 28px);
}

.document-admin-main .section-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

.document-admin-main .section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 6px 0 0;
}

.document-admin-main .document-directory-filter {
  grid-template-columns: minmax(260px, 2fr) minmax(130px, 0.75fr) minmax(90px, 0.35fr) auto;
}

.document-admin-main .document-history-filter {
  grid-template-columns: minmax(280px, 1fr) minmax(90px, 120px) auto;
}

.document-admin-main .document-filter-form select,
.document-admin-main .agreement-send-form select {
  background: #fff;
  border: 1px solid #d8c9d2;
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 34px 9px 11px;
}

.document-admin-main .document-tabs {
  gap: 7px;
}

.document-admin-main .document-tabs a {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  padding: 8px 13px;
}

.document-admin-main .document-tabs a span {
  background: rgba(23, 23, 31, 0.08);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  padding: 4px 6px;
}

.document-admin-main .document-tabs a.active span {
  background: rgba(255, 255, 255, 0.2);
}

.document-admin-main .document-admin-card {
  gap: 14px;
  grid-template-columns: minmax(180px, 0.48fr) minmax(460px, 1.52fr);
  padding: 14px 16px;
}

.document-admin-main .document-admin-summary h3 {
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 5px 0;
}

.document-admin-main .document-admin-summary p,
.document-admin-main .document-admin-summary small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.document-admin-main .agreement-send-form {
  grid-template-columns: minmax(150px, 0.7fr) minmax(210px, 1fr) minmax(230px, auto);
}

.document-preview-row {
  justify-content: space-between;
}

.document-preview-row > span,
.document-delivery-note,
.document-channel-form > p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

.document-delivery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
}

.document-channel-form {
  align-items: end;
  background: #ffffff;
  border: 1px solid #eadde5;
  border-radius: 14px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(130px, 0.7fr) minmax(190px, 1fr) auto;
  margin: 0;
  padding: 11px;
}

.document-channel-form.whatsapp-channel {
  background: #f4fff7;
  border-color: #bfe3ca;
  grid-template-columns: minmax(170px, 1fr) auto;
}

.document-channel-form.whatsapp-channel > p {
  grid-column: 1 / -1;
}

.whatsapp-button,
.whatsapp-action {
  background: #168a45 !important;
  border-color: #168a45 !important;
  color: #ffffff !important;
}

.document-delivery-note {
  background: #f4fff7;
  border: 1px solid #cce9d4;
  border-radius: 10px;
  margin: 0 0 12px;
  padding: 9px 11px;
}

.document-table-actions {
  margin-bottom: 6px;
}

.invoice-email-action,
.invoice-whatsapp-action {
  margin: 6px 0 0;
}

.invoice-whatsapp-action {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.invoice-whatsapp-action input {
  font-size: 0.75rem;
  min-height: 36px;
  padding: 7px 9px;
}

.document-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-action-row .button,
.document-admin-main .compact-button {
  font-size: 0.78rem;
  min-height: 40px;
  padding: 9px 14px;
}

.document-inline-form {
  margin: 0;
}

.invoice-defaults-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.invoice-defaults-panel > summary::-webkit-details-marker {
  display: none;
}

.invoice-defaults-panel > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.invoice-defaults-panel > summary strong {
  font-size: 1.2rem;
}

.invoice-defaults-panel > summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.invoice-defaults-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.document-admin-main .document-customer-table {
  min-width: 820px;
}

.document-admin-main .document-customer-table td,
.document-admin-main .document-customer-table th,
.document-admin-main .invoice-table td,
.document-admin-main .invoice-table th {
  font-size: 0.78rem;
  padding: 10px 12px;
}

.document-admin-main .document-customer-table td span,
.document-admin-main .invoice-table td span {
  display: block;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .document-admin-main .document-directory-filter {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(110px, 0.45fr)) auto;
  }

  .document-admin-main .document-admin-card,
  .document-admin-main .agreement-send-form,
  .document-delivery-grid,
  .document-channel-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .document-admin-main .document-directory-filter,
  .document-admin-main .document-history-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-admin-main .document-tabs {
    flex-wrap: nowrap;
    margin-inline: -2px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .document-admin-main .document-tabs a {
    flex: 0 0 auto;
  }

  .document-admin-main .document-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .document-admin-main .document-action-row .button {
    width: 100%;
  }

  .document-delivery-grid,
  .document-channel-form,
  .document-channel-form.whatsapp-channel {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-channel-form .button,
  .invoice-whatsapp-action .table-action {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(228, 0, 127, 0.1), transparent 24%),
    radial-gradient(circle at 90% 8%, rgba(34, 150, 71, 0.1), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 236px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(23, 23, 31, 0.08);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.15;
}

.brand small {
  max-width: 220px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #343844;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 4px;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--pink-deep);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.nav-cta,
.button.primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(228, 0, 127, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
  min-height: 660px;
  padding: 52px 0;
}

.hero-content h1,
.page-hero h1,
.section-heading h2,
.split h2,
.contact-band h2,
.image-band h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-content h1 {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 88px);
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--pink-deep);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.18;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid rgba(184, 137, 52, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #7c581d;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.wedding-video-intro {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  min-height: clamp(320px, 46vh, 520px);
  margin: 18px 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(152, 0, 90, 0.82), rgba(18, 102, 45, 0.72)),
    url("/assets/img/public/wedding-intro-poster.webp") center / cover no-repeat;
  box-shadow: 0 30px 84px rgba(23, 23, 31, 0.18);
  isolation: isolate;
}

.wedding-video-intro::before,
.wedding-video-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wedding-video-intro::before {
  background:
    linear-gradient(90deg, rgba(23, 23, 31, 0.72), rgba(23, 23, 31, 0.26) 48%, rgba(23, 23, 31, 0.76)),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(228, 0, 127, 0.26), rgba(34, 150, 71, 0.23));
}

.wedding-video-intro::after {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  box-shadow: inset 0 0 80px rgba(23, 23, 31, 0.26);
}

.intro-video {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.04) blur(0.4px);
  transform: scale(1.01);
}

.intro-video-copy {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 48px));
  color: var(--white);
  text-align: center;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.44);
}

.intro-video-copy p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 16px;
  color: #ffe7f5;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-video-copy p::before,
.intro-video-copy p::after {
  content: "";
  width: clamp(34px, 7vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88));
}

.intro-video-copy p::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), transparent);
}

.intro-video-copy h2 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.intro-video-copy span {
  display: block;
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-photo-card {
  min-height: 590px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 360px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}

.logo-orbit {
  display: block;
  width: min(190px, 42%);
  margin: 16px auto;
  filter: drop-shadow(0 22px 36px rgba(23, 23, 31, 0.14));
  animation: brandPulse 5s ease-in-out infinite;
}

.floating-logo {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 82px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

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

.trust-grid span,
.feature-grid article,
.service-grid article,
.soft-panel,
.package-card,
.status-card,
.profile-card,
.story-grid article,
.story-list article,
.contact-panel,
.policy-copy,
.faq-list details,
.enquiry-form,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.trust-grid strong {
  display: block;
  color: var(--pink-deep);
  font-size: 22px;
  line-height: 1;
}

.section,
.page-hero {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 10px 34px rgba(23, 23, 31, 0.05);
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(38px, 5vw, 66px);
}

.page-hero p {
  max-width: 780px;
  color: var(--body);
  font-size: 18px;
}

.rich-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 28px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading h2,
.split h2,
.contact-band h2,
.image-band h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.feature-grid,
.service-grid,
.package-grid,
.profile-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid h3,
.service-grid h3,
.package-card h2,
.profile-card h3,
.story-grid h3,
.story-list h3,
.timeline h3 {
  margin: 0 0 8px;
  line-height: 1.15;
}

.feature-grid p,
.service-grid p,
.soft-panel,
.package-card p,
.package-card li,
.site-footer,
.contact-band p,
.profile-card,
.story-grid p,
.story-list p,
.timeline p,
.policy-copy p,
.faq-list p,
.form-note {
  color: var(--body);
}

.split,
.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.process-mini {
  display: grid;
  gap: 12px;
}

.process-mini div,
.timeline article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.process-mini span,
.timeline span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--green));
  color: var(--white);
  font-weight: 900;
}

.process-mini p {
  margin: 4px 0 0;
}

.image-band {
  display: grid;
  min-height: 430px;
  margin: 26px 0;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 23, 31, 0.72), rgba(23, 23, 31, 0.28)),
    var(--band-image) center/cover;
  color: var(--white);
  padding: clamp(28px, 5vw, 56px);
  align-items: end;
}

.image-band div {
  max-width: 680px;
}

.image-band .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff4d7;
}

.image-band p {
  color: rgba(255, 255, 255, 0.86);
}

.media-frame {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 23, 31, 0.08);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.payment-assist-panel,
.dashboard-payment-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(229, 0, 126, 0.08), rgba(25, 145, 57, 0.08)),
    var(--white);
  box-shadow: 0 18px 42px rgba(36, 26, 33, 0.08);
}

.payment-assist-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.payment-assist-panel p,
.dashboard-payment-helper p {
  color: var(--body);
}

.upi-qr-card {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(25, 145, 57, 0.22);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}

.upi-qr-card img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.upi-qr-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-payment-helper {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
}

.compact-qr img {
  max-width: 180px;
}

.razorpay-business-qr {
  align-self: stretch;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
}

.razorpay-business-qr > a:first-child {
  display: block;
  width: min(100%, 290px);
}

.razorpay-business-qr img {
  border: 1px solid rgba(155, 0, 87, 0.16);
  max-width: 290px;
}

.razorpay-business-qr figcaption strong {
  color: var(--pink-deep);
  font-size: 15px;
}

.razorpay-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.razorpay-qr-actions .button {
  min-height: 42px;
}

.package-group {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  color: var(--pink-deep);
  font-size: 30px;
  font-weight: 900;
}

.duration {
  font-weight: 850;
}

.package-card ul {
  padding-left: 20px;
}

.package-action {
  margin-top: auto;
  align-self: flex-start;
}

.profile-card {
  position: relative;
}

.profile-tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.profile-card dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.profile-card dt {
  color: var(--muted);
  font-weight: 800;
}

.profile-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
}

.story-list {
  display: grid;
  gap: 12px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq-list p {
  margin-bottom: 0;
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-map {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(23, 23, 31, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enquiry-form div:nth-child(4),
.enquiry-form .form-note {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 850;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 14px;
}

.policy-copy {
  max-width: 980px;
  display: grid;
  gap: 22px;
}

.policy-copy p:last-child {
  margin-bottom: 0;
}

.legal-identity {
  border: 1px solid rgba(184, 137, 52, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 238, 0.96), rgba(255, 255, 255, 0.96));
  padding: 20px;
}

.legal-identity h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.legal-identity dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.legal-identity dl div {
  min-width: 0;
}

.legal-identity dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-identity dd {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.legal-identity a,
.check-row a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  border: 1px solid rgba(184, 137, 52, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 14px;
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 820;
}

.policy-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.policy-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.18;
}

.policy-section p {
  margin: 0 0 12px;
  line-height: 1.82;
}

.status-card {
  position: relative;
  padding-left: 48px;
}

.status-dot {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(34, 150, 71, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--body);
  font-weight: 760;
}

.footer-contact {
  display: grid;
  gap: 4px;
  text-align: right;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(18, 102, 45, 0.25);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-form {
  margin: 0;
}

.nav-link-button,
.inline-form button {
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 12px 14px;
  font-weight: 760;
}

.flash.success {
  border-color: rgba(34, 150, 71, 0.24);
  color: var(--green-deep);
}

.flash.warning {
  border-color: rgba(184, 137, 52, 0.34);
  color: #7c581d;
}

.flash.error,
.form-errors {
  border-color: rgba(228, 0, 127, 0.24);
  color: var(--pink-deep);
}

.auth-shell,
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 24px;
  padding: 34px 0 64px;
}

.auth-shell.compact,
.dashboard-shell.compact {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.auth-panel,
.auth-aside,
.dashboard-sidebar,
.dashboard-section,
.status-card,
.mini-package,
.payment-panel,
.form-errors {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(23, 23, 31, 0.08);
}

.auth-panel {
  padding: 30px;
}

.auth-panel h1,
.dashboard-sidebar h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.dashboard-sidebar h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 3vw, 46px);
}

.auth-panel p,
.auth-aside p,
.dashboard-sidebar p,
.locked-note,
.empty-state {
  color: var(--body);
}

.auth-aside {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255, 242, 248, 0.94), rgba(238, 250, 242, 0.92));
}

.auth-aside img {
  width: 92px;
  animation: brandPulse 4.2s ease-in-out infinite;
}

.auth-aside h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

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

.form-grid label,
.payment-panel form {
  display: grid;
  gap: 7px;
}

.form-grid label span:first-child {
  color: #343844;
  font-size: 13px;
  font-weight: 850;
}

.form-grid input,
.form-grid select,
.payment-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

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

.check-row {
  align-items: start;
  grid-template-columns: auto 1fr;
  color: var(--body);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 7px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-deep);
  cursor: pointer;
  font-weight: 850;
  padding: 0 11px;
}

.form-errors {
  display: grid;
  gap: 5px;
  margin: 20px 0 0;
  padding: 14px;
  background: rgba(255, 242, 248, 0.88);
  box-shadow: none;
}

.form-errors p,
.auth-switch {
  margin: 0;
}

.auth-switch {
  margin-top: 18px;
  color: var(--body);
  font-weight: 720;
}

.auth-switch a,
.inline-form button {
  color: var(--pink-deep);
}

.inline-form {
  margin-top: 14px;
}

.dashboard-shell {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-sidebar nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 10px 13px;
  font-weight: 850;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

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

.dashboard-shell .status-card {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.status-card span,
.profile-summary span,
.bank-details span,
.mini-package span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 24px;
}

.dashboard-section {
  padding: 22px;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.profile-summary,
.bank-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bank-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-summary div,
.bank-details div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 14px;
}

.profile-summary strong,
.bank-details strong {
  display: block;
  margin-top: 3px;
}

.mini-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-package {
  display: grid;
  gap: 8px;
  padding: 16px;
  box-shadow: none;
}

.mini-package h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.mini-package p {
  margin: 0;
  color: var(--body);
}

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

.package-actions form {
  margin: 0;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 12px;
  padding: 16px;
  box-shadow: none;
}

.form-subsection {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 20px;
}

.form-subsection h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.table-action {
  display: inline-flex;
  border: 1px solid rgba(228, 0, 127, 0.22);
  border-radius: 999px;
  background: var(--blush);
  color: var(--pink-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 7px 11px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--body);
  font-weight: 850;
  padding: 8px 13px;
}

.filter-tabs a.active {
  border-color: rgba(228, 0, 127, 0.34);
  background: var(--pink);
  color: var(--white);
}

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

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 13px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-action-form {
  margin-top: 0;
}

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

.photo-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 10px;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  object-fit: cover;
}

.photo-card span {
  color: var(--muted);
  font-size: 13px;
}

.photo-status-form {
  display: grid;
  gap: 8px;
}

.photo-primary-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 0;
}

.photo-primary-check input {
  width: 18px;
  min-height: 18px;
}

.payment-review-grid {
  display: grid;
  gap: 14px;
}

.payment-review-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 18px;
}

.payment-review-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.inline-admin-form {
  margin: 0;
}

.timeline-list,
.match-summary-list,
.shared-match-grid,
.match-admin-grid {
  display: grid;
  gap: 14px;
}

.timeline-list {
  margin-top: 18px;
}

.timeline-list article,
.match-summary-list article,
.shared-match-card,
.match-admin-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 16px;
}

.timeline-list span,
.match-summary-list span,
.shared-match-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.timeline-list p {
  margin: 8px 0;
}

.match-table-space {
  margin-top: 18px;
}

.shared-match-card,
.match-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: 18px;
}

.shared-match-card h3,
.match-admin-card h2 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.shared-match-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.shared-match-card dl div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.shared-match-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shared-match-card dd {
  margin: 0;
  font-weight: 760;
}

.shared-match-card aside {
  align-self: start;
  border: 1px solid rgba(34, 150, 71, 0.2);
  border-radius: 16px;
  background: var(--mint);
  padding: 14px;
}

.match-response-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.match-response-form label {
  display: grid;
  gap: 6px;
}

.match-response-form select,
.match-response-form textarea {
  min-width: 0;
}

.report-card-grid,
.report-grid,
.report-count-list {
  display: grid;
  gap: 14px;
}

.report-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-card-grid article,
.report-grid article,
.report-count-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 16px;
}

.report-card-grid span,
.report-count-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-card-grid strong,
.report-count-list strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.compact-card {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.25fr);
}

.create-link {
  margin-left: auto;
}

.print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0;
}

.profile-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 14px;
}

.profile-filter-form label {
  display: grid;
  gap: 6px;
}

.profile-filter-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.profile-print-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-print-panel h2,
.profile-print-panel p {
  margin: 0;
}

.admin-table td:last-child {
  white-space: nowrap;
}

.admin-table .table-action + .table-action {
  margin-left: 8px;
}

.biodata-print-sheet {
  max-width: 980px;
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.biodata-letterhead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(228, 0, 127, 0.09), rgba(34, 150, 71, 0.1));
  padding: 22px;
}

.biodata-letterhead > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.biodata-letterhead img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.biodata-letterhead strong,
.biodata-letterhead span {
  display: block;
}

.biodata-letterhead strong {
  font-size: 21px;
  line-height: 1.15;
}

.biodata-letterhead span,
.biodata-disclaimer p {
  color: var(--body);
  font-size: 13px;
}

.biodata-letterhead aside {
  text-align: right;
}

.biodata-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.biodata-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.biodata-hero p {
  color: var(--body);
  font-weight: 800;
}

.biodata-hero figure {
  display: grid;
  place-items: center;
  width: 168px;
  height: 210px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.biodata-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biodata-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.biodata-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  break-inside: avoid;
}

.biodata-section h2 {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-size: 17px;
}

.biodata-section dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.biodata-section dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(236, 228, 220, 0.78);
  padding-bottom: 7px;
}

.biodata-section dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.biodata-section dd {
  margin: 0;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.biodata-disclaimer {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  background: var(--paper);
}

.biodata-disclaimer p {
  margin: 6px 0 0;
}

@keyframes brandPulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(1.5deg) scale(1.025);
  }
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 920px) {
  .hero,
  .rich-hero,
  .split,
  .contact-band,
  .site-footer,
  .auth-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .feature-grid,
  .feature-grid.two-col,
  .service-grid,
  .package-grid,
  .profile-grid,
  .story-grid,
  .trust-grid,
  .enquiry-form,
  .status-grid,
  .profile-summary,
  .bank-details,
  .mini-package-grid,
  .payment-panel,
  .payment-assist-panel,
  .dashboard-payment-helper,
  .detail-grid,
    .photo-grid,
    .payment-review-card,
    .report-card-grid,
    .report-grid,
    .biodata-letterhead,
    .biodata-hero,
    .biodata-section-grid,
    .profile-filter-form,
    .profile-print-panel,
    .shared-match-card,
    .match-admin-card,
    .shared-match-card dl {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .enquiry-form div:nth-child(4),
  .enquiry-form .form-note {
    grid-column: auto;
  }

  .hero-photo-card {
    min-height: auto;
  }

  .hero-photo {
    height: 300px;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand small {
    max-width: none;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    grid-auto-columns: minmax(0, 1fr);
    justify-items: stretch;
    width: 100%;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
  }

  .site-nav > * {
    grid-column: auto !important;
  }

  .site-nav a,
  .nav-link-button,
  .nav-form {
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .site-nav a,
  .nav-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px;
  }

  .site-nav .nav-cta {
    width: calc(100% - 24px);
    justify-self: center;
    min-height: 38px;
    padding: 0 10px;
  }

  .whatsapp-float {
    right: 12px;
    left: auto;
    width: max-content;
    max-width: calc(100vw - 24px);
  }

  .auth-panel,
  .auth-aside,
  .hero-card,
  .section,
  .page-hero,
  .dashboard-section,
  .dashboard-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy,
  .auth-panel h1,
  .auth-panel p,
  .page-hero p,
  .section p,
  .dashboard-section h2,
  .dashboard-section p {
    overflow-wrap: anywhere;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-tagline {
    font-size: 24px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-photo {
    height: 260px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .section,
  .page-hero {
    border-radius: 20px;
    padding: 22px;
  }

  .profile-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .legal-identity dl {
    grid-template-columns: 1fr;
  }

  .contact-map {
    border-radius: 20px;
  }

  .contact-map iframe {
    min-height: 380px;
  }

  .auth-panel,
  .auth-aside,
  .dashboard-sidebar,
  .dashboard-section {
    border-radius: 18px;
    padding: 18px;
  }

  .section-heading.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-band {
    min-height: 320px;
  }
}

/* Premium visual polish layer */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 35;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(23, 23, 31, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav a:not(.nav-cta),
.nav-link-button {
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:not(.nav-cta):hover,
.nav-link-button:hover {
  background: var(--blush);
  transform: translateY(-1px);
}

.button,
.nav-cta,
.table-action {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.nav-cta:hover,
.table-action:hover {
  transform: translateY(-2px);
}

.button.primary,
.nav-cta {
  background: linear-gradient(135deg, var(--pink), #b40070);
  box-shadow: 0 16px 36px rgba(228, 0, 127, 0.24);
}

.button.primary:hover,
.nav-cta:hover {
  box-shadow: 0 22px 46px rgba(228, 0, 127, 0.32);
}

.premium-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
}

.hero-showcase {
  display: grid;
  gap: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 32px 76px rgba(23, 23, 31, 0.2);
  isolation: isolate;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel::before {
  background:
    linear-gradient(180deg, rgba(23, 23, 31, 0.02), rgba(23, 23, 31, 0.42)),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.45), transparent 24%);
}

.hero-carousel::after {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: heroSlide 20s infinite;
}

.hero-slide.slide-2 {
  animation-delay: 5s;
}

.hero-slide.slide-3 {
  animation-delay: 10s;
}

.hero-slide.slide-4 {
  animation-delay: 15s;
}

.hero-glass-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(23, 23, 31, 0.16);
  backdrop-filter: blur(16px);
}

.hero-glass-card img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  padding: 6px;
  animation: brandPulse 4.8s ease-in-out infinite;
}

.hero-proof-row,
.showcase-tabs,
.signature-strip,
.profile-promise-row,
.footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof-row {
  margin-top: 30px;
}

.hero-proof-row span,
.showcase-tabs span,
.signature-strip span,
.profile-promise-row span,
.footer-trust-row span {
  border: 1px solid rgba(184, 137, 52, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 9px 12px;
  color: var(--body);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 23, 31, 0.05);
}

.hero-proof-row strong {
  color: var(--pink-deep);
}

.showcase-tabs {
  justify-content: center;
}

.showcase-tabs span {
  background: rgba(18, 102, 45, 0.08);
  color: var(--green-deep);
}

.signature-strip {
  justify-content: center;
  margin: 0 0 26px;
}

.premium-section,
.premium-page-hero,
.journey-section,
.cinematic-band,
.package-comparison-intro,
.profile-search-promise,
.service-depth,
.trust-mosaic {
  position: relative;
  overflow: hidden;
}

.premium-section::before,
.premium-page-hero::before,
.journey-section::before,
.package-comparison-intro::before,
.profile-search-promise::before,
.service-depth::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(228, 0, 127, 0.1), transparent 66%);
  pointer-events: none;
}

.premium-feature-grid article,
.premium-service-grid article,
.premium-package-card,
.premium-profile-card,
.premium-story-grid article,
.trust-mosaic article,
.depth-grid article {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(23, 23, 31, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.premium-feature-grid article::before,
.premium-service-grid article::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--green));
  color: var(--white);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(228, 0, 127, 0.22);
}

.premium-feature-grid article:hover,
.premium-service-grid article:hover,
.premium-package-card:hover,
.premium-profile-card:hover,
.premium-story-grid article:hover,
.trust-mosaic article:hover,
.depth-grid article:hover {
  border-color: rgba(228, 0, 127, 0.24);
  box-shadow: 0 28px 64px rgba(23, 23, 31, 0.13);
  transform: translateY(-6px);
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.54fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.process-page {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.journey-copy p:not(.eyebrow) {
  color: var(--body);
}

.journey-visual {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(23, 23, 31, 0.14);
}

.journey-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  animation: slowFloat 6s ease-in-out infinite;
}

.journey-steps {
  display: grid;
  gap: 12px;
}

.journey-steps.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-steps article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 15px;
  box-shadow: 0 14px 36px rgba(23, 23, 31, 0.06);
}

.journey-steps span,
.trust-mosaic span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--green));
  color: var(--white);
  font-weight: 950;
}

.journey-steps strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.journey-steps p {
  margin: 5px 0 0;
  color: var(--body);
  font-size: 14px;
}

.cinematic-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.76fr);
  gap: 28px;
  align-items: center;
  margin: 26px 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(23, 23, 31, 0.9), rgba(80, 24, 58, 0.82)),
    var(--ink);
  color: var(--white);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 28px 70px rgba(23, 23, 31, 0.18);
}

.compact-cinematic {
  min-height: 380px;
}

.cinematic-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.motion-frame {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.motion-frame img {
  display: block;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.motion-frame figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 850;
}

.premium-profile-card::before,
.premium-package-card::before,
.premium-story-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--green));
}

.premium-profile-card {
  padding-top: 24px;
}

.premium-profile-card h3 {
  font-size: 21px;
}

.text-link {
  color: var(--pink-deep);
  font-weight: 900;
}

.featured-plan,
.premium-package-card {
  background:
    linear-gradient(180deg, rgba(255, 242, 248, 0.8), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.premium-package-card .price {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 18px;
  background: var(--blush);
  padding: 8px 12px;
}

.package-comparison-intro,
.profile-search-promise,
.service-depth {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.depth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.depth-grid article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 18px;
}

.depth-grid strong,
.depth-grid span {
  display: block;
}

.depth-grid span {
  margin-top: 6px;
  color: var(--body);
}

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

.trust-mosaic article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
}

.premium-media {
  position: relative;
  border-radius: 28px;
  box-shadow: 0 24px 66px rgba(23, 23, 31, 0.13);
}

.premium-media img {
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.premium-page-hero:hover .premium-media img,
.success-split:hover .premium-media img {
  transform: scale(1.05);
}

.auth-logo,
.contact-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
  animation: brandPulse 5s ease-in-out infinite;
}

.login-shell {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.visual-aside {
  position: relative;
  overflow: hidden;
  align-content: end;
  min-height: 520px;
  padding: 0;
}

.auth-visual-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 12s ease-in-out infinite alternate;
}

.login-couple-img {
  object-position: center top;
}

.visual-aside > div {
  position: relative;
  z-index: 2;
  margin: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  padding: 20px;
  backdrop-filter: blur(14px);
}

.register-visual-aside {
  min-height: auto;
}

.auth-floating-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.auth-check-list {
  display: grid;
  gap: 8px;
}

.auth-check-list span {
  border: 1px solid rgba(34, 150, 71, 0.18);
  border-radius: 999px;
  background: rgba(238, 250, 242, 0.92);
  color: var(--green-deep);
  padding: 8px 12px;
  font-weight: 850;
}

.premium-contact-panel {
  background:
    linear-gradient(135deg, rgba(255, 242, 248, 0.9), rgba(238, 250, 242, 0.88)),
    var(--white);
  box-shadow: 0 24px 60px rgba(23, 23, 31, 0.1);
}

.premium-contact-band {
  background:
    linear-gradient(135deg, rgba(228, 0, 127, 0.1), rgba(34, 150, 71, 0.1)),
    var(--white);
}

.site-footer {
  position: relative;
  display: block;
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 31, 0.84), rgba(23, 23, 31, 0.94)),
    url("/assets/img/client-media/client-21.webp") center/cover;
  color: rgba(255, 255, 255, 0.82);
  padding: 34px;
  overflow: hidden;
  box-shadow: 0 -18px 60px rgba(23, 23, 31, 0.12);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 22px;
}

.footer-brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.footer-logo-wrap img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  animation: brandPulse 5s ease-in-out infinite;
}

.footer-brand-card strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 1.1;
}

.footer-brand-card p {
  margin: 5px 0 0;
}

.footer-trust-row span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  gap: 24px;
  padding-top: 26px;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 9px;
  text-align: left;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 5px;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-attribution {
  margin: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.footer-attribution a {
  color: rgba(255, 214, 237, 0.96);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-attribution a:hover,
.footer-attribution a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-attribution a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .footer-attribution {
    margin-top: 22px;
    font-size: 12px;
  }
}

.whatsapp-float {
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  min-height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #25d366;
  padding: 0;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
  animation: whatsappPulse 1.8s ease-in-out infinite;
}

.call-float {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 41;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(135deg, #0f74d1, #19b7d9);
  color: var(--white);
  padding: 0;
  box-shadow: 0 18px 38px rgba(15, 116, 209, 0.3);
  animation: callPulse 2s ease-in-out infinite;
}

.call-float::before,
.call-float::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(25, 183, 217, 0.48);
  animation: callRing 2s ease-out infinite;
}

.call-float::after {
  animation-delay: 0.75s;
}

.call-float svg {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.52);
  animation: whatsappRing 1.8s ease-out infinite;
}

.whatsapp-float::after {
  animation-delay: 0.7s;
}

.whatsapp-float svg {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  fill: var(--white);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  6%,
  25% {
    opacity: 1;
    transform: scale(1);
  }
  31%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes slowFloat {
  0%,
  100% {
    transform: translateY(0) scale(1.01);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes whatsappRing {
  from {
    opacity: 0.8;
    transform: scale(0.82);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes callPulse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-2px) rotate(-6deg) scale(1.03);
  }
  40% {
    transform: translateY(-2px) rotate(6deg) scale(1.04);
  }
  55% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes callRing {
  from {
    opacity: 0.75;
    transform: scale(0.82);
  }
  to {
    opacity: 0;
    transform: scale(1.44);
  }
}

@media (max-width: 1040px) {
  .premium-hero,
  .journey-section,
  .cinematic-band,
  .package-comparison-intro,
  .profile-search-promise,
  .service-depth,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid,
  .trust-mosaic,
  .depth-grid,
  .journey-steps.full {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 0;
    width: calc(100% - 20px);
    border-radius: 0 0 22px 22px;
    margin-top: 0;
  }

  .wedding-video-intro {
    min-height: 330px;
    margin: 10px 0 24px;
    border-radius: 26px;
  }

  .wedding-video-intro::after {
    inset: 12px;
    border-radius: 18px;
  }

  .intro-video {
    opacity: 0.5;
  }

  .intro-video-copy {
    width: min(100% - 30px, 620px);
  }

  .intro-video-copy p {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.13em;
  }

  .intro-video-copy p::before,
  .intro-video-copy p::after {
    width: 24px;
    flex: 0 1 24px;
  }

  .intro-video-copy h2 {
    max-width: 286px;
    font-size: clamp(27px, 7.8vw, 31px);
    line-height: 1.1;
  }

  .intro-video-copy span {
    max-width: 286px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-carousel {
    min-height: 380px;
    border-radius: 24px;
  }

  .hero-glass-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }

  .hero-proof-row,
  .signature-strip,
  .profile-promise-row,
  .footer-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof-row span,
  .signature-strip span,
  .profile-promise-row span {
    text-align: center;
  }

  .trust-mosaic,
  .depth-grid,
  .journey-steps.full,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cinematic-band {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .motion-frame img {
    min-height: 230px;
  }

  .visual-aside {
    min-height: 430px;
  }

  .site-footer {
    border-radius: 24px 24px 0 0;
    padding: 24px;
  }

  .footer-brand-card {
    align-items: flex-start;
  }

  .footer-trust-row {
    width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    min-height: 58px;
    max-width: none;
  }

  .call-float {
    right: 14px;
    bottom: 86px;
    width: 54px;
    height: 54px;
    min-height: 54px;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header,
  .site-footer,
  .call-float,
  .whatsapp-float,
  .flash-stack,
  .no-print {
    display: none !important;
  }

  main {
    width: 100%;
  }

  .biodata-print-sheet {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .biodata-letterhead,
  .biodata-disclaimer {
    background: #ffffff;
  }

  .biodata-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biodata-section,
  .biodata-hero figure {
    border-color: #cccccc;
  }
}

/* Workflow refinement layer */
.profile-preview-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-photo-card {
  padding: 0;
  overflow: hidden;
}

.profile-photo-card::before {
  z-index: 2;
}

.profile-thumb {
  position: relative;
  margin: 0;
  min-height: 210px;
  background: linear-gradient(135deg, rgba(228, 0, 127, 0.08), rgba(34, 150, 71, 0.08));
  overflow: hidden;
}

.profile-thumb img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.profile-photo-card:hover .profile-thumb img {
  transform: scale(1.06);
}

.profile-thumb .profile-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  background: rgba(238, 250, 242, 0.94);
  box-shadow: 0 12px 28px rgba(23, 23, 31, 0.12);
}

.profile-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.profile-card-body h3 {
  margin-bottom: 0;
}

.profile-code-line {
  margin: 0;
  color: var(--muted);
  font-weight: 820;
}

.premium-empty-state {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(228, 0, 127, 0.11), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 150, 71, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 58px rgba(23, 23, 31, 0.08);
}

.premium-empty-state .eyebrow {
  justify-self: center;
}

.premium-empty-state h2 {
  margin: 0;
}

.premium-empty-state p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--body);
}

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 70;
  width: min(520px, calc(100% - 30px));
  border: 1px solid rgba(228, 0, 127, 0.24);
  border-radius: 18px;
  background: rgba(23, 23, 31, 0.94);
  color: var(--white);
  padding: 14px 16px;
  text-align: center;
  font-weight: 860;
  box-shadow: 0 22px 50px rgba(23, 23, 31, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.register-visual-aside {
  background:
    linear-gradient(145deg, rgba(255, 242, 248, 0.9), rgba(238, 250, 242, 0.92)),
    var(--white);
}

.register-visual-aside .auth-visual-img {
  object-fit: contain;
  object-position: center top;
  padding: 18px 18px 170px;
  animation: slowFloat 7s ease-in-out infinite;
}

.footer-logo-wrap {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.footer-logo-wrap img {
  width: 70px;
  height: 70px;
}

.admin-workflow-strip,
.profile-ops-grid {
  display: grid;
  gap: 12px;
}

.admin-workflow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.profile-ops-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-workflow-strip article,
.profile-upload-panel,
.completion-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 15px;
}

.admin-workflow-strip strong,
.completion-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.admin-workflow-strip span,
.completion-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.completion-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(228, 0, 127, 0.08);
  overflow: hidden;
}

.completion-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--green));
}

.admin-table .completion-cell {
  min-width: 140px;
}

.photo-upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.photo-upload-form input[type="file"] {
  padding: 10px;
}

.dashboard-sidebar nav a.active {
  border-color: rgba(228, 0, 127, 0.32);
  background: var(--pink);
  color: var(--white);
}

@media (max-width: 1040px) {
  .profile-preview-gallery,
  .admin-workflow-strip,
  .profile-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .profile-preview-gallery,
  .admin-workflow-strip,
  .profile-ops-grid {
    grid-template-columns: 1fr;
  }

  .profile-thumb img {
    height: 220px;
  }

  .section-cta-row {
    display: grid;
  }

  .section-cta-row .button {
    width: 100%;
  }

  .register-visual-aside .auth-visual-img {
    padding: 14px 14px 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-video {
    display: none;
  }
}

/* Optional analytics consent */
.footer-cookie-settings {
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: var(--pink-deep);
}

.footer-cookie-settings:focus-visible,
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible {
  outline: 3px solid rgba(228, 0, 127, 0.32);
  outline-offset: 3px;
}

.analytics-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid rgba(152, 0, 90, 0.18);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.98);
  padding: 18px 20px;
  box-shadow: 0 24px 70px rgba(23, 23, 31, 0.22);
  backdrop-filter: blur(14px);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-copy {
  max-width: 680px;
}

.analytics-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.analytics-consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.analytics-consent-copy a {
  color: var(--pink-deep);
  font-weight: 800;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.analytics-consent-actions .button {
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    border-radius: 18px;
    padding: 16px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .analytics-consent-actions .button {
    width: 100%;
  }
}

/* Admin workflow polish */
.dashboard-status-link {
  display: grid;
  gap: 6px;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-status-link:hover {
  border-color: rgba(228, 0, 127, 0.32);
  box-shadow: 0 22px 56px rgba(228, 0, 127, 0.12);
  transform: translateY(-2px);
}

.status-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.admin-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(184, 137, 52, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 242, 248, 0.72), rgba(238, 250, 242, 0.76));
  padding: 16px;
}

.admin-source-panel span,
.profile-picture-field small,
.dashboard-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.admin-source-panel strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.admin-source-panel p {
  margin: 7px 0 0;
  color: var(--body);
}

.admin-create-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.64fr);
  gap: 18px;
  align-items: start;
}

.admin-create-top.is-focused {
  border-color: rgba(228, 0, 127, 0.32);
  box-shadow: 0 22px 58px rgba(228, 0, 127, 0.11);
}

.create-meta-panel,
.create-photo-panel,
.biodata-entry-section {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.create-meta-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.completion-mini,
.registered-profile-queue {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(184, 137, 52, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.completion-mini span,
.registered-profile-queue span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.completion-mini strong,
.registered-profile-queue strong {
  color: var(--ink);
}

.completion-mini small,
.registered-profile-queue small {
  color: var(--body);
}

.registered-profile-queue {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.biodata-entry-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sibling-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(34, 150, 71, 0.16);
  border-radius: 18px;
  background: rgba(238, 250, 242, 0.55);
  padding: 14px;
}

.profile-picture-preview,
.gallery-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 720 / 860;
  border: 1px dashed rgba(228, 0, 127, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 242, 248, 0.9), rgba(238, 250, 242, 0.94)),
    var(--white);
  color: var(--muted);
  overflow: hidden;
  text-align: center;
  font-weight: 850;
}

.profile-picture-preview img,
.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-preview span,
.gallery-preview span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 12px;
}

.gallery-preview-shell {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.gallery-preview-shell[hidden] {
  display: none;
}

.gallery-preview-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.profile-filter-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-filter-panel,
.profile-filter-results {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.profile-filter-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
}

.profile-filter-panel h2 {
  margin: 0;
  line-height: 1.1;
}

.profile-filter-panel p {
  margin: 8px 0 0;
  color: var(--body);
}

.vertical-tabs {
  display: grid;
  gap: 8px;
}

.vertical-tabs a {
  justify-content: flex-start;
}

.match-share-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.match-share-stats article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.match-share-stats strong,
.match-share-stats span {
  display: block;
}

.match-share-stats span,
.match-share-stats p {
  color: var(--body);
}

.profile-picture-field input[type="file"] {
  padding: 11px;
}

.admin-filter-heading {
  align-items: start;
  margin-bottom: 16px;
}

.profile-filter-form {
  align-items: end;
}

.profile-filter-form .filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.staff-actions-cell {
  min-width: 260px;
}

.staff-edit-panel {
  margin-bottom: 8px;
}

.staff-edit-panel summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.staff-edit-form {
  display: grid;
  gap: 10px;
  min-width: min(360px, 74vw);
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
}

.report-card-grid,
.report-grid {
  align-items: stretch;
}

.report-grid article,
.report-card-grid article {
  min-width: 0;
}

.profile-list-print {
  background: var(--white);
  color: #111111;
}

.admin-control-card {
  align-items: start;
}

.completion-ring-wrap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(184, 137, 52, 0.22);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.completion-ring {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 57%, transparent 59%),
    conic-gradient(var(--pink) calc(var(--completion, 0) * 1%), rgba(228, 0, 127, 0.12) 0);
  box-shadow: 0 10px 24px rgba(228, 0, 127, 0.12);
}

.completion-ring strong {
  color: var(--ink);
  font-size: 15px;
}

.queue-panel,
.database-main-panel,
.database-filter-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.queue-panel {
  display: grid;
  gap: 12px;
}

.queue-panel h3 {
  margin: 2px 0 0;
  font-size: 24px;
}

.queue-panel details {
  border: 1px solid rgba(184, 137, 52, 0.24);
  border-radius: 16px;
  padding: 12px;
}

.queue-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
}

.queue-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.queue-list a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: inherit;
}

.queue-list span,
.queue-list p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.biodata-photo-zone {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 16px;
}

.biodata-photo-zone .create-photo-panel {
  min-width: 0;
}

.admin-check-row {
  align-self: end;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.sibling-row[hidden] {
  display: none;
}

.database-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.database-filter-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: end;
}

.database-filter-panel .vertical-tabs {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
}

.database-filter-panel .vertical-tabs a {
  min-width: 116px;
  justify-content: center;
  text-align: center;
}

.database-filter-panel h2,
.database-main-panel h2 {
  margin: 0;
  line-height: 1.08;
}

.database-filter-panel p {
  color: var(--body);
}

.database-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.database-filter-form label {
  min-width: 0;
}

.database-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.database-table {
  min-width: 1180px;
}

.database-table td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.table-actions-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 190px;
}

.table-actions-stack form {
  margin: 0;
}

.table-action.danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
}

.match-share-form input[list] {
  width: 100%;
}

.inline-status-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 360px;
}

.compact-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-report-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-create-form {
  align-items: end;
}

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

.staff-account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.staff-account-card strong,
.staff-account-card span {
  display: block;
}

.staff-account-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.protected-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(34, 150, 71, 0.22);
  border-radius: 999px;
  background: rgba(238, 250, 242, 0.9);
  color: var(--green);
  padding: 0 14px;
  font-weight: 900;
}

.print-filter-summary {
  display: grid;
  gap: 5px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  margin: 18px 0;
  padding: 12px;
}

.profile-print-table {
  font-size: 12px;
}

@media (max-width: 1040px) {
  .admin-source-panel {
    grid-template-columns: 1fr;
  }

  .admin-create-top,
  .profile-filter-workspace,
  .database-workspace,
  .database-filter-panel,
  .biodata-photo-zone {
    grid-template-columns: 1fr;
  }

  .profile-filter-panel,
  .database-filter-panel {
    position: static;
  }

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

  .database-filter-form,
  .compact-report-grid,
  .compact-report-panels,
  .staff-account-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .create-meta-panel,
  .match-share-stats,
  .registered-profile-queue,
  .sibling-entry-grid,
  .database-filter-form,
  .compact-report-grid,
  .compact-report-panels,
  .staff-account-card,
  .inline-status-form {
    grid-template-columns: 1fr;
  }
}

/* Profile media, packages and registration polish */
.wedding-video-intro {
  min-height: clamp(420px, 58vh, 660px);
  margin-top: 20px;
  margin-bottom: 42px;
}

.wedding-video-intro::before {
  background:
    linear-gradient(90deg, rgba(23, 23, 31, 0.74), rgba(23, 23, 31, 0.18) 50%, rgba(23, 23, 31, 0.72)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(228, 0, 127, 0.22), rgba(34, 150, 71, 0.2));
}

.intro-video {
  opacity: 0.72;
  filter: saturate(1.16) contrast(1.08) brightness(0.92);
}

.intro-video-copy {
  width: min(1060px, calc(100% - 56px));
}

.intro-video-copy h2 {
  max-width: 100%;
  font-size: clamp(36px, 4.4vw, 60px);
  white-space: nowrap;
}

.profile-preview-gallery {
  align-items: stretch;
}

.profile-photo-card {
  min-height: 100%;
  border-color: rgba(228, 0, 127, 0.14);
}

.profile-thumb {
  min-height: 260px;
}

.profile-thumb img {
  height: 285px;
  object-position: center top;
}

.profile-card-body {
  gap: 12px;
}

.profile-card-body h3 {
  font-size: 22px;
}

.profile-card dl {
  gap: 8px;
}

.profile-card dl div {
  grid-template-columns: 88px 1fr;
}

.profile-view-button {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(228, 0, 127, 0.22);
}

.package-group-stack {
  display: grid;
  gap: 34px;
}

.package-group-block {
  display: grid;
  gap: 18px;
}

.package-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(184, 137, 52, 0.22);
  padding-bottom: 14px;
}

.package-group-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.4vw, 42px);
}

.package-brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border: 1px solid rgba(228, 0, 127, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(23, 23, 31, 0.08);
}

.package-brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  animation: brandPulse 5s ease-in-out infinite;
}

.package-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
  text-align: center;
}

.premium-package-card {
  gap: 11px;
  border-color: rgba(228, 0, 127, 0.14);
  padding-top: 26px;
}

.premium-package-card .package-group,
.premium-package-card .duration {
  text-align: center;
}

.premium-package-card .price {
  align-self: center;
  font-size: 28px;
}

.premium-package-card .package-tax-note {
  align-self: center;
  margin: -5px 0 0;
  color: var(--accent-deep, #8d0050);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.premium-package-card ul {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.premium-package-card li {
  padding-left: 2px;
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#registration-form {
  scroll-margin-top: 120px;
}

.register-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  align-items: stretch;
}

.register-visual-aside {
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 242, 248, 0.92), rgba(238, 250, 242, 0.94)),
    var(--white);
}

.visual-aside > .register-brand-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-radius: 22px;
}

.register-brand-ribbon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.register-brand-ribbon span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.auth-visual-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(23, 23, 31, 0.14);
}

.visual-aside > .auth-floating-card,
.visual-aside > .auth-check-list {
  margin: 0;
}

.other-entry {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.other-entry[hidden] {
  display: none;
}

.form-grid label .other-entry > span:first-child {
  color: var(--pink-deep);
  font-size: 12px;
}

@media (max-width: 1040px) {
  .profile-preview-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .register-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .site-nav .nav-cta {
    width: auto;
    min-width: 112px;
    justify-self: center;
  }

  .wedding-video-intro {
    min-height: 390px;
  }

  .intro-video-copy h2 {
    max-width: 320px;
    white-space: normal;
    font-size: clamp(30px, 8vw, 36px);
  }

  .profile-preview-gallery {
    grid-template-columns: 1fr;
  }

  .profile-thumb img {
    height: 300px;
  }

  .package-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .package-actions {
    display: grid;
  }

  .register-visual-aside {
    padding: 14px;
  }

  #registration-form {
    scroll-margin-top: 320px;
  }
}

/* Final public-media polish */
.wedding-video-intro {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 720px;
  margin-top: 18px;
  border-radius: 32px;
}

.intro-video {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  opacity: 0.68;
}

.moments-gallery-section {
  overflow: hidden;
}

.moments-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 280px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
}

.moments-gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(228, 0, 127, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 50px rgba(23, 23, 31, 0.1);
  scroll-snap-align: start;
}

.moments-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(23, 23, 31, 0.32));
  pointer-events: none;
}

.moments-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.moments-gallery figure:hover img {
  transform: scale(1.05);
}

.register-video-stack {
  display: grid;
  gap: 14px;
}

.register-video-stack .auth-visual-video {
  aspect-ratio: 16 / 9;
  height: auto;
}

.profile-thumb .profile-tag {
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 24px), 360px);
    max-width: calc(100vw - 24px);
    margin-left: 12px;
    margin-right: auto;
  }

  main,
  .section,
  .page-hero,
  .hero,
  .premium-hero,
  .auth-shell {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .premium-hero,
  .hero {
    grid-template-columns: 1fr !important;
  }

  .hero-content,
  .hero-showcase,
  .hero-content > * {
    min-width: 0;
    max-width: 100%;
  }

  .site-nav {
    padding: 0;
    box-sizing: border-box;
  }

  .site-nav .nav-cta {
    width: min(100%, 132px);
    min-width: 0;
    max-width: 132px;
    justify-self: center;
  }

  .wedding-video-intro {
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin: 10px 0 24px;
    border-radius: 24px;
  }

  .intro-video-copy h2 {
    max-width: calc(100vw - 58px);
    white-space: normal;
    font-size: clamp(24px, 7vw, 34px);
  }

  .intro-video-copy span {
    max-width: min(270px, calc(100vw - 76px));
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-copy,
  .hero-tagline,
  .hero-content h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.55;
  }

  .auth-panel,
  .auth-aside,
  .form-grid,
  .form-grid label,
  .form-grid input,
  .form-grid select,
  .password-field {
    min-width: 0;
    max-width: 100%;
  }

  .hero-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .hero-proof-row span {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .button {
    min-width: 0;
    max-width: 100%;
  }

  .moments-gallery {
    grid-auto-columns: minmax(180px, 78vw);
  }
}
