@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap');
/* Member portal — layered on top of admin.css. Member-facing, so it wears the club's
   brand (pool water + summer sun), not the admin tool's neutral look. */
:root {
  --fg: var(--ink, #1e293b);
  --pool-navy: #0a3d54; --pool: #0b6488; --aqua: #14a3c7; --aqua-soft: #e2f2f7;
  --sun: #ffcf4d; --sun-deep: #f0b21f;
  --brand: #0b6488; --brand-dark: #0a3d54;   /* portal accent = pool (matches the season pass) */
}
body { font-family: "Figtree", system-ui, sans-serif; }
.portal-main h1, .portal-main h2, .portal-main h3,
.pass-name, .pass-stat .n, .hh-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.01em; }

/* login screen */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 8px rgba(15,23,42,.06), 0 18px 44px rgba(15,23,42,.08); padding: 30px 28px; width: 100%; max-width: 400px; text-align: center; }
.login-card .wave { font-size: 40px; }
.login-card h1 { font-size: 22px; margin: 10px 0 4px; }
.login-card > p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.login-card input { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 11px; font-size: 16px; margin-bottom: 12px; text-align: center; }
.login-card input:focus { outline: none; border-color: var(--brand); }
.login-card .code-in { letter-spacing: 8px; font-size: 22px; font-weight: 700; }
.login-card button.go { width: 100%; padding: 13px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 650; cursor: pointer; }
.login-card button.go:disabled { opacity: .6; }
.login-card .link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; margin-top: 14px; }
.login-card .devcode { margin-top: 14px; padding: 10px; background: var(--amber-soft); color: var(--amber); border-radius: 9px; font-size: 13px; }

/* Google Sign-in Button & Login Divider */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60,64,67,.08);
  transition: all .15s ease;
  box-sizing: border-box;
}
.btn-google:hover {
  background: #f8fafc;
  border-color: #c2c7d0;
  box-shadow: 0 2px 8px rgba(60,64,67,.15);
  color: #202124;
}
.btn-google:active {
  background: #f1f3f4;
  transform: scale(0.99);
}
.btn-google .google-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}
.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.login-divider span {
  padding: 0 12px;
}
.login-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
}
.login-alert strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}
.login-alert p {
  margin: 0;
  color: #881337;
}
.login-alert a {
  color: #0284c7;
  text-decoration: underline;
}
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(120deg, var(--pool-navy), var(--pool) 70%, var(--aqua)); color: #fff; padding: 14px 20px; }
.portal-top .brand { display: flex; align-items: center; gap: 10px; }
.portal-top .brand .wave { font-size: 26px; }
.portal-top h1 { margin: 0; font-size: 18px; }
.portal-top .sub { margin: 0; font-size: 12.5px; opacity: .85; }
.portal-top .who { font-size: 13.5px; opacity: .9; }
.portal-top .logout { background: rgba(255,255,255,.15); border: 0; color: #fff; padding: 7px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13.5px; transition: background .15s; }
.portal-top .logout:hover { background: rgba(255,255,255,.25); }

.portal-main { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ptabs button { border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .15s ease; }
.ptabs button:hover { color: var(--fg); border-color: #cbd5e1; background: #fff; }
.ptabs button.active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 2px 8px rgba(2,132,199,0.25); }
.ptab-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,0.06); }
.ptabs button.active .ptab-badge { background: rgba(255,255,255,0.25); color: #fff; }
.ptab-badge.danger { background: #ef4444 !important; color: #fff !important; }

/* Status Hero Banner */
.billing-hero {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 6px 24px rgba(4, 120, 87, 0.22), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.billing-hero.paid {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 6px 24px rgba(4, 120, 87, 0.25);
}
.billing-hero.alert {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 6px 24px rgba(185, 28, 28, 0.25);
}
.billing-hero-title {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.hero-check {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #047857;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.billing-hero-sub {
  font-size: 14px;
  color: #d1fae5;
  margin: 5px 0 0;
  line-height: 1.45;
}
.billing-hero.alert .billing-hero-sub {
  color: #fee2e2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: 0.2px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.hero-badge.badge-good {
  background: rgba(255, 255, 255, 0.22);
}
.hero-badge.badge-due {
  background: rgba(255, 255, 255, 0.22);
}

/* Summary Cards */
.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.mini-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.mini-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.mini-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.mini-icon.blue {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.mini-icon.green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.mini-icon.red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.mini-val {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.3px;
}
.mini-val.text-green {
  color: #059669 !important;
}
.mini-val.text-red {
  color: #dc2626 !important;
}
.mini-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-top: 5px;
}

/* Invoices & Lists */
.invoice-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; transition: all .15s ease; }
.invoice-card:hover { border-color: #cbd5e1; box-shadow: 0 3px 10px rgba(0,0,0,0.04); }
.invoice-info { display: flex; align-items: center; gap: 14px; }
.invoice-icon { width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.invoice-title { font-weight: 750; font-size: 15px; color: var(--fg); }
.invoice-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.invoice-actions { display: flex; align-items: center; gap: 10px; }

.badge-paid { background: #dcfce7; color: #15803d; font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.badge-unpaid { background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.btn-receipt { border: 1px solid var(--line); background: #fff; color: var(--fg); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background .15s; }
.btn-receipt:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Payment history items */
.pay-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Itemized Receipt Modal */
.receipt-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.receipt-table th { text-align: left; padding: 8px 6px; border-bottom: 2px solid #e2e8f0; font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.receipt-table td { padding: 10px 6px; border-bottom: 1px solid #f1f5f9; }
.receipt-table tfoot td { padding-top: 14px; font-weight: 800; font-size: 16px; border-bottom: 0; }

/* Quick Action Shortcuts */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.qa-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all .15s ease; font-weight: 600; font-size: 13.5px; }
.qa-card:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 4px 12px rgba(2,132,199,0.1); }

/* Store & Cart styles */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.prod-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s, box-shadow .15s; }
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.prod-icon { font-size: 28px; margin-bottom: 8px; }
.prod-title { font-weight: 650; font-size: 15px; margin-bottom: 4px; color: var(--fg); }
.prod-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; font-weight: 600; }
.prod-price { font-size: 18px; font-weight: 750; color: var(--brand-dark); margin: 8px 0 12px; }
.prod-btn { width: 100%; border: 0; background: var(--brand); color: #fff; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.prod-btn:hover { filter: brightness(1.08); }

.cart-float { position: fixed; bottom: 24px; right: 24px; background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 14.5px; z-index: 99; transition: transform .2s; }
.cart-float:hover { transform: scale(1.04); }
.cart-badge { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item-title { font-weight: 600; font-size: 14px; }
.cart-item-price { font-size: 13px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; font-weight: 700; cursor: pointer; display: grid; place-items: center; font-size: 16px; touch-action: manipulation; }
.qty-val { font-weight: 650; min-width: 22px; text-align: center; font-size: 14.5px; }

@media (max-width: 600px) {
  .cart-float {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal {
    max-width: 100% !important;
    width: 100% !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  .mbody {
    overflow-y: auto;
    max-height: 60vh;
  }
  .prod-btn {
    padding: 12px 14px;
    font-size: 15px;
  }
}


/* ===== Overview: 2026 Season Pass hero ===== */
.pass { position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 22px;
  background: linear-gradient(140deg, #082d3f 0%, #0a3d54 45%, #0b6488 100%); color: #eaf6fb;
  box-shadow: 0 10px 30px rgba(10,44,58,.28); }
.pass-rope { height: 8px; background: repeating-linear-gradient(90deg, var(--aqua) 0 22px, #fff 22px 26px, var(--sun) 26px 48px, #fff 48px 52px); }
.pass-wm { position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; opacity: .10; pointer-events: none; }
.pass-body { padding: 22px 26px; position: relative; z-index: 1; }
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pass-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sun); }
.pass-name { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; color: #fff; margin: 6px 0 4px; line-height: 1.02; }
.pass-sub { font-size: 13.5px; color: #b9dcea; }
.pass-stamp { flex: none; border: 2px solid rgba(255,255,255,.5); color: #fff; border-radius: 12px; padding: 8px 14px;
  text-align: center; transform: rotate(4deg); background: rgba(255,255,255,.06); }
.pass-stamp .s1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.pass-stamp .s2 { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #cfe8f1; margin-top: 1px; }
.pass-stamp.due { border-color: var(--sun); background: rgba(255,207,77,.14); }
.pass-stamp.due .s1 { color: var(--sun); }
.pass-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16); }
.pass-stat { padding: 14px 8px 2px; text-align: left; border-right: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.pass-stat:last-child { border-right: 0; }
.pass-stat:hover .n { color: var(--sun); }
.pass-stat .n { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.pass-stat .l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #a9cfdd; margin-top: 6px; }
.pass-stat .n.due { color: var(--sun); }

/* ===== Overview: quick actions ===== */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.qa-card { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 15px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fg);
  transition: transform .12s ease, border-color .12s, box-shadow .12s; }
.qa-card:hover { transform: translateY(-2px); border-color: var(--aqua); box-shadow: 0 6px 16px rgba(20,163,199,.14); }
.qa-card span:first-child { font-size: 19px; }

/* ===== Overview: household avatar chips ===== */
.hh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hh-chip { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.hh-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; font-family: "Bricolage Grotesque", sans-serif; }
.hh-av.adult { background: var(--aqua); } .hh-av.child { background: var(--sun-deep); } .hh-av.other { background: #64748b; }
.hh-title { font-weight: 700; font-size: 15px; }
.hh-role { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

@media (max-width: 640px) {
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .pass-stats { grid-template-columns: 1fr 1fr; }
  .pass-stat:nth-child(2) { border-right: 0; }
  .pass-stat:nth-child(1), .pass-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ===== My Family page ===== */
.hh-list { display: flex; flex-direction: column; gap: 10px; }
.hh-list .hh-chip { padding: 14px 16px; }
.hh-acts { display: flex; gap: 8px; flex: none; }
.hh-btn { border: 1px solid var(--line); background: #fff; color: var(--fg); border-radius: 8px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.hh-btn:hover { background: #f4fafc; border-color: var(--aqua); }
.hh-btn.danger { color: var(--red); border-color: #f0cccc; }
.hh-btn.danger:hover { background: #fdf0f0; border-color: var(--red); }

/* ===== Pay button (primary money action) ===== */
.paybtn { border: 0; background: var(--sun); color: #3a2c00; font-weight: 750; font-size: 13.5px;
  padding: 9px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(240,178,31,.35); transition: transform .12s ease, box-shadow .12s, filter .12s; }
.paybtn:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 4px 12px rgba(240,178,31,.45); }
.paybtn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.invoice-actions .btn-receipt { font-weight: 600; }

/* ===== Print: isolate the receipt, drop the app chrome ===== */
@media print {
  body > #app, body > #toast, .cart-float, .portal-top, .ptabs { display: none !important; }
  .modal-overlay { position: static !important; inset: auto !important; background: #fff !important; display: block !important; padding: 0 !important; }
  .modal { position: static !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; max-width: 100% !important; width: 100% !important; max-height: none !important; }
  .modal .mhead { border: 0 !important; padding: 0 0 8px !important; }
  .modal .mhead .x, .modal .mfoot { display: none !important; }
  .modal .mbody { padding: 0 !important; overflow: visible !important; max-height: none !important; }
  .receipt-table { font-size: 12.5px; }
  @page { margin: 16mm; }
}
