:root {
  --pine: #1f3b2c;
  --pine-deep: #152a20;
  --linen: #f3ecdd;
  --paper: #faf6ed;
  --brass: #1b1b16;
  --brass-light: #d4a85e;
  --rust: #a2472f;
  --ink: #1b1b16;
  --sage: #6e8a73;
  --line: rgba(27, 27, 22, 0.14);
  --shadow: 0 8px 24px rgba(21, 42, 32, 0.12);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  background: var(--linen);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.display {
  font-family: "Fraunces", serif;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
}

/* subtle paper texture */
body {
  background-image:
    radial-gradient(
      circle at 20% 10%,
      rgba(184, 134, 59, 0.06),
      transparent 40%
    ),
    radial-gradient(circle at 90% 80%, rgba(31, 59, 44, 0.05), transparent 45%);
}

a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== HEADER / LEDGER TABS ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  color: var(--linen);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
/* .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--pine-deep);
  font-size: 16px;
  flex-shrink: 0;
} */
.brand-text {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}
.brand-text b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

nav.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  color: var(--linen);
  padding: 10px 18px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  opacity: 0.72;
  transition:
    opacity 0.15s,
    background 0.15s;
}
.tab-btn:hover {
  opacity: 0.95;
}
.tab-btn.active {
  background: var(--paper);
  color: var(--pine-deep);
  opacity: 1;
  font-weight: 600;
  border-color: var(--paper);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
section.panel {
  display: none;
  padding-top: 44px;
}
section.panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== SCROLL REVEAL ANIMATIONS (replay every time an element enters view) ===== */
.reveal {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal[data-anim="fade-up"] {
  transform: translateY(46px);
}
.reveal[data-anim="fade-down"] {
  transform: translateY(-46px);
}
.reveal[data-anim="bounce"] {
  transform: translateY(34px) scale(0.92);
}
.reveal.in-view[data-anim="fade-up"],
.reveal.in-view[data-anim="fade-down"] {
  opacity: 1;
  transform: none;
}
.reveal.in-view[data-anim="bounce"] {
  opacity: 1;
  animation: bounceReveal 0.85s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}
@keyframes bounceReveal {
  0% {
    transform: translateY(34px) scale(0.92);
    opacity: 0;
  }
  45% {
    transform: translateY(-14px) scale(1.035);
    opacity: 1;
  }
  68% {
    transform: translateY(7px) scale(0.985);
  }
  85% {
    transform: translateY(-3px) scale(1.005);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.float-loop {
  animation: floaty 3.4s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view,
  .float-loop {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ===== HOME ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 36px;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.03;
  margin: 14px 0 18px;
  font-weight: 600;
  color: var(--pine-deep);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: clamp(30px, 9vw, 60px);
  }
}
.hero h1 em {
  font-style: italic;
  color: var(--rust);
}
.hero p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: #3c3c33;
  max-width: 46ch;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta div {
  border-left: 2px solid var(--brass);
  padding-left: 12px;
}
.hero-meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
}
.hero-meta .value {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin-top: 2px;
}

.hero-visual {
  position: relative;
}
.hero-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.hero-visual .ledger-card {
  position: absolute;
  bottom: 350px;
  left: -24px;
  width: 460px;
  padding: 25px 50px;
  margin: 0;
}
@media (max-width: 800px) {
  .hero-visual .ledger-card {
    position: static;
    width: auto;
    margin-top: 20px;
    padding:10px ;
  }
}

.ledger-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  position: relative;
}
.card-photo {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
  margin: -22px -22px 14px;
  width: calc(100% + 44px);
  display: block;
}
.card-photo-sm {
  width: 254px;
  height: 164px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.ledger-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--rust) 0 10px,
    transparent 10px 20px
  );
  border-radius: 4px 0 0 4px;
}
.ledger-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 14px;
  padding-left: 10px;
}
.countdown {
  display: flex;
  gap: 14px;
  padding-left: 10px;
}
.countdown .unit {
  text-align: center;
}
.countdown .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 45px;
  font-weight: 600;
  color: var(--pine-deep);
}
.countdown .lbl {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage);
}

.divider-stitch {
  height: 1px;
  margin: 40px 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 8px,
    transparent 8px 16px
  );
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 750px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}
.info-card .idx {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
}
.info-card h3 {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin: 8px 0 8px;
  font-weight: 600;
}
.info-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a4a3f;
  margin: 0;
}

.cta-row {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--rust);
  color: var(--linen);
}
.btn-primary:hover {
  background: #8c3b26;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--pine);
  color: var(--pine-deep);
}
.btn-outline:hover {
  background: rgba(31, 59, 44, 0.06);
}

/* ===== SECTION HEADERS ===== */
.section-head {
  margin-bottom: 30px;
  text-align: center;
}
.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  margin: 6px 0 8px;
  color: var(--pine-deep);
}
.section-head p {
  color: #4a4a3f;
  font-size: 15px;
  /* max-width: 60ch; */
  line-height: 1.55;
  text-align: center;
}

/* ===== ROOMS ===== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 750px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}
.room-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.room-card h3 {
  font-family: "Fraunces", serif;
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}
.room-price {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--rust);
  font-size: 17px;
  white-space: nowrap;
}
.room-price small {
  font-size: 11px;
  color: #8a8a7a;
  font-weight: 400;
}
.room-meta {
  font-size: 12.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.room-desc {
  font-size: 14px;
  color: #4a4a3f;
  line-height: 1.5;
  flex-grow: 1;
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.qty-label {
  font-size: 12.5px;
  color: #5a5a4d;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--pine);
  background: transparent;
  color: var(--pine-deep);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--pine);
  color: var(--linen);
}
.qty-val {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.stay-dates {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
}
.stay-dates #occupancy {
  min-width: 260px;
}
@media (max-width: 420px) {
  .stay-dates #occupancy {
    min-width: 0;
    width: 100%;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  font-weight: 600;
}
input,
select,
textarea {
  font-family: "Work Sans", sans-serif;
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

/* ===== MENU ===== */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.menu-option:hover {
  border-color: var(--brass);
}
.menu-option.selected {
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust) inset;
}
.menu-option input {
  margin-top: 3px;
  accent-color: var(--rust);
  width: 16px;
  height: 16px;
}
.menu-option-body {
  flex-grow: 1;
}
.menu-option-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.menu-option h4 {
  font-family: "Fraunces", serif;
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}
.menu-price {
  font-family: "IBM Plex Mono", monospace;
  color: var(--rust);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.menu-option p {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: #5a5a4d;
  line-height: 1.5;
}
.tag {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sage);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
  margin-right: 6px;
  font-weight: 600;
}

/* ===== ACTIVITIES ===== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 750px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}
.activity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}
.activity-card:hover {
  border-color: var(--brass);
}
.activity-card.selected {
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust) inset;
}
.activity-card input {
  margin-top: 3px;
  accent-color: var(--rust);
  width: 16px;
  height: 16px;
}
.activity-card h4 {
  font-family: "Fraunces", serif;
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 600;
}
.activity-card p {
  margin: 0;
  font-size: 13px;
  color: #5a5a4d;
  line-height: 1.45;
}
.activity-fee {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--rust);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}
.activity-fee.free {
  color: var(--sage);
}

/* ===== FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.single {
  grid-template-columns: 1fr;
}
@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
}
.form-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
.form-section h3 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 600;
}
.form-section .sub {
  font-size: 13px;
  color: #6a6a5d;
  margin: 0 0 18px;
}
.error-msg {
  color: var(--rust);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  font-weight: 600;
}
.field.invalid input {
  border-color: var(--rust);
}
.field.invalid .error-msg {
  display: block;
}

.summary-box {
  background: var(--pine);
  color: var(--linen);
  border-radius: 4px;
  padding: 22px 24px;
  position: sticky;
  top: 120px;
}
.summary-box h3 {
  font-family: "Fraunces", serif;
  font-size: 17px;
  margin: 0 0 14px;
  font-weight: 600;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.summary-line .amt {
  font-family: "IBM Plex Mono", monospace;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 19px;
  font-weight: 600;
}
.summary-total .amt {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brass-light);
}
.summary-empty {
  font-size: 13px;
  opacity: 0.7;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .summary-box {
    position: static;
  }
}

.security-note {
  font-size: 12px;
  color: var(--sage);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  line-height: 1.5;
}

.pay-box {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 560px) {
  .pay-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
.pay-qr-wrap {
  text-align: center;
}
.pay-qr {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  display: block;
}
.pay-qr-caption {
  font-size: 11px;
  color: var(--sage);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.pay-details {
  width: 100%;
}
.pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.pay-label {
  color: var(--sage);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  min-width: 120px;
}
.pay-value {
  font-weight: 600;
  color: var(--ink);
}
.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--pine);
  color: var(--pine-deep);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
}
.copy-btn:hover {
  background: var(--pine);
  color: var(--linen);
}

.lookup-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  margin-top: 16px;
}
.lookup-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.lookup-row:last-child {
  border-bottom: none;
}
.balance-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.balance-pill.paid {
  background: var(--sage);
  color: #fff;
}
.balance-pill.due {
  background: var(--rust);
  color: #fff;
}
.verify-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
}
.verify-pill.yes {
  background: var(--sage);
  color: #fff;
}
.verify-pill.no {
  background: #c9a24a;
  color: #2a1f08;
}
.payment-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.payment-entry:last-child {
  border-bottom: none;
}
.proof-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.verify-btn {
  background: var(--sage);
  color: #fff;
  border: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-left: auto;
}
.verify-btn:disabled {
  background: #ccc;
  cursor: default;
}
.review-toggle {
  background: none;
  border: 1px solid var(--pine);
  color: var(--pine-deep);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
}
.review-row {
  display: none;
  background: var(--linen);
}
.review-row.open {
  display: table-row;
}

.confirm-box {
  display: none;
  background: var(--pine);
  color: var(--linen);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  margin-top: 20px;
}
.confirm-box.show {
  display: block;
}
.confirm-box .mono {
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 8px 18px;
  border-radius: 3px;
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ===== ADMIN ===== */
.gate {
  max-width: 380px;
  margin: 60px auto;
  text-align: center;
}
.gate input {
  width: 100%;
  text-align: center;
  letter-spacing: 0.2em;
  margin-top: 14px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 900px) {
  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-card {
  background: var(--pine);
  color: var(--linen);
  border-radius: 4px;
  padding: 18px;
}
.stat-card .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  font-weight: 600;
  color: var(--brass-light);
}
.stat-card .lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: 2px;
}
table.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
#admin-table-wrap,
#guest-login-list-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
#admin-table-wrap table.ledger,
#guest-login-list-wrap table.ledger {
  min-width: 620px;
}
@media (max-width: 650px) {
  #admin-table-wrap table.ledger,
  #guest-login-list-wrap table.ledger {
    min-width: 560px;
  }
}
table.ledger th {
  background: var(--pine);
  color: var(--linen);
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.ledger td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.ledger tr:last-child td {
  border-bottom: none;
}
.del-btn {
  background: none;
  border: 1px solid var(--rust);
  color: var(--rust);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 3px;
}
.del-btn:hover {
  background: var(--rust);
  color: #fff;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7a7a6d;
}

footer {
  text-align: center;
  padding: 30px 24px 50px;
  font-size: 12.5px;
  color: #8a8a7a;
}
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1000px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* ================= INSTALLMENTS ================= */
.inst-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.inst-step {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  background: var(--paper);
}
.inst-step .inst-step-num {
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-bottom: 3px;
}
.inst-step.active {
  border-color: var(--pine);
  background: #fff;
  box-shadow: 0 0 0 2px var(--pine) inset;
}
.inst-step.done {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.inst-step.locked {
  opacity: 0.45;
}
.inst-active-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--paper);
  margin-bottom: 16px;
}
.inst-active-box .inst-amount-due {
  font-size: 20px;
  font-weight: 700;
  color: var(--pine-deep);
}
.inst-locked-note {
  font-size: 12.5px;
  color: var(--sage);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}
.inst-all-done {
  font-size: 13.5px;
  color: #fff;
  background: var(--sage);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
}
#upi-qr-canvas {
  display: inline-block;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
#upi-qr-canvas img, #upi-qr-canvas canvas {
  display: block;
  width: 150px;
  height: 150px;
}
.inst-admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 10px;
  table-layout: fixed;
}
.inst-admin-table th, .inst-admin-table td {
  border: 1px solid var(--line);
  padding: 5px 8px;
  text-align: left;
}
.inst-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.inst-status-pill.paid { background: var(--sage); color: #fff; }
.inst-status-pill.active { background: var(--pine); color: #fff; }
.inst-status-pill.pending { background: var(--rust); color: #fff; }
.inst-status-pill.locked { background: #ccc; color: #444; }
