@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --midnight: #101420;
  --navy: #1a2233;
  --ink: #0c0f16;
  --sand: #f4efe6;
  --stone: #d7cbb8;
  --gold: #c9a54a;
  --rust: #b46a4b;
  --mist: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(12, 15, 22, 0.2);
}

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

body {
  font-family: "Space Grotesk", "Gill Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f7f1e8 0%, #f1e6d8 40%, #ede1d0 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 7vw;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 20, 32, 0.1);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(16, 20, 32, 0.15);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--midnight);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rust);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.nav-links .button {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--midnight);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  color: var(--midnight);
  border: 1px solid rgba(16, 20, 32, 0.4);
}

.button-small {
  padding: 10px 18px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 7vw 60px;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--rust);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-highlights {
  display: grid;
  gap: 16px;
}

.hero-highlights div {
  padding: 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.7);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: var(--midnight);
  color: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel-card ul {
  margin-top: 16px;
  padding-left: 20px;
  line-height: 1.6;
}

.panel-card.alt {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(16, 20, 32, 0.12);
}

.panel-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.panel-amount {
  font-size: 2.2rem;
  font-weight: 700;
}

.section {
  padding: 70px 7vw;
}

.section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 20px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.bullet-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.callout {
  padding: 28px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
}

.callout-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 20, 32, 0.1);
  box-shadow: 0 10px 20px rgba(16, 20, 32, 0.06);
}

.report-line {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--rust);
  background: rgba(255, 255, 255, 0.7);
}

.routine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  background: linear-gradient(140deg, rgba(26, 34, 51, 0.06), rgba(201, 165, 74, 0.12));
}

.timeline {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.timeline li {
  padding-left: 18px;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

.routine-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 20, 32, 0.1);
}

.promise {
  background: var(--midnight);
  color: #fff;
}

.promise-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.promise-grid div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.registration {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  background: #f9f4ec;
}

.registration-form {
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 20, 32, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
}

.checkbox-group {
  display: grid;
  gap: 6px;
}

.field.checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.form-status,
.payment-result {
  font-size: 0.95rem;
  color: var(--rust);
}

.trust-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(16, 20, 32, 0.2);
  background: rgba(255, 255, 255, 0.6);
  margin-top: 18px;
}

.site-footer {
  padding: 50px 7vw;
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(16, 20, 32, 0.12);
}

.payment-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.payment-login {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.payment-login .login-card {
  max-width: 520px;
}

.is-hidden {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 34, 51, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  gap: 12px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(12, 15, 22, 0.65);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 20px;
}

.filters input,
.filters select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 20, 32, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 32, 0.08);
  box-shadow: 0 12px 24px rgba(16, 20, 32, 0.08);
}

.pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-info {
  font-weight: 600;
  color: rgba(12, 15, 22, 0.75);
}

.pagination .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.payments-table th,
.payments-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(16, 20, 32, 0.08);
  font-size: 0.95rem;
}

.payments-table th {
  background: rgba(244, 239, 230, 0.8);
  font-weight: 600;
}

.payments-table tr:last-child td {
  border-bottom: none;
}

.payments-table .empty {
  text-align: center;
  color: rgba(12, 15, 22, 0.6);
  padding: 32px 16px;
}

.receipt-section {
  margin-top: 24px;
}

.receipt-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(16, 20, 32, 0.1);
  box-shadow: 0 16px 32px rgba(16, 20, 32, 0.12);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

.receipt-brand img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.receipt-meta {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(244, 239, 230, 0.6);
  border: 1px solid rgba(16, 20, 32, 0.08);
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.receipt-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: center;
}

.receipt-summary {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(244, 239, 230, 0.6);
  border: 1px solid rgba(16, 20, 32, 0.08);
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.receipt-fees {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 32, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.receipt-fees h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 0.95rem;
}

.fees-grid p {
  margin: 0 0 6px;
}

.outstanding-table {
  min-width: 0;
}

.outstanding-section {
  display: grid;
  gap: 12px;
}

.outstanding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.outstanding-header h3 {
  margin: 0;
  font-size: 1rem;
}

.outstanding-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(140px, 200px) auto;
  gap: 10px;
  align-items: center;
}

.outstanding-controls input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 20, 32, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.breakdown-section {
  display: grid;
  gap: 12px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.breakdown-header h3 {
  margin: 0;
  font-size: 1rem;
}

.breakdown-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 180px) auto;
  gap: 10px;
  align-items: center;
}

.breakdown-controls input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 20, 32, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.breakdown-table {
  min-width: 0;
}

.receipt-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.signature-block {
  border-left: 2px dashed rgba(16, 20, 32, 0.18);
  padding-left: 16px;
  display: grid;
  gap: 8px;
}

.signature-line {
  height: 2px;
  background: rgba(16, 20, 32, 0.5);
  width: 140px;
}

.signature-image {
  width: 180px;
  height: 60px;
  object-fit: contain;
}

.signature-name {
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill.success {
  background: rgba(34, 139, 85, 0.15);
  color: #1d7a4a;
}

.status-pill.pending {
  background: rgba(201, 165, 74, 0.2);
  color: #8a6722;
}

.status-pill.failed {
  background: rgba(180, 106, 75, 0.2);
  color: #8f3d24;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px 6vw;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-actions,
  .hero-highlights,
  .cards,
  .section.split,
  .routine,
  .registration {
    gap: 16px;
  }

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

  .panel-card,
  .registration-form {
    border-radius: 18px;
  }

  .section {
    padding: 50px 6vw;
  }

  .lead {
    font-size: 1rem;
  }

  .timeline li {
    padding-left: 14px;
  }

  .timeline li::before {
    top: 6px;
  }

  .site-footer {
    padding: 40px 6vw;
  }

  .gallery img {
    height: 220px;
  }

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

  .payments-table th,
  .payments-table td {
    padding: 12px;
    font-size: 0.85rem;
  }

  .payments-table {
    min-width: 520px;
  }

  .receipt-card {
    padding: 22px;
  }

  .receipt-actions {
    width: 100%;
  }

  .signature-block {
    border-left: none;
    border-top: 2px dashed rgba(16, 20, 32, 0.18);
    padding-left: 0;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .section {
    animation: floatIn 0.9s ease both;
  }

  .section {
    animation-delay: 0.1s;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  .grain,
  .site-header,
  .payment-hero,
  #payment-records,
  .site-footer,
  .receipt-actions,
  .receipt-grid .field label,
  .receipt-grid .field input,
  .receipt-grid .field select,
  .receipt-grid .field button,
  .outstanding-controls,
  .breakdown-controls,
  .receipt-fees {
    display: none !important;
  }

  .receipt-section {
    display: block !important;
    padding: 0;
  }

  .receipt-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}
