/* Landlord Referral Rewards: everything is scoped to .lr so it won't clash with your theme */
.lr {
  --lr-ink: #18242f; --lr-muted: #566672; --lr-paper: #f3f6f8; --lr-surface: #fff; --lr-line: #dce3e9;
  --lr-slate: #1e3a4c; --lr-slate-dark: #152a37; --lr-brass: #c99a2e; --lr-brass-soft: #f6ebd0;
  --lr-green-soft: #ddf0e6; --lr-green-ink: #1d5a3f; --lr-red-soft: #f7e1dc; --lr-red-ink: #8a2f21;
  color: var(--lr-ink); line-height: 1.55; font-size: 16px;
}
.lr *, .lr *::before, .lr *::after { box-sizing: border-box; }
.lr a { color: var(--lr-slate); }
.lr :focus-visible { outline: 3px solid var(--lr-brass); outline-offset: 2px; }
.lr p { margin: 0 0 12px; }
.lr .lr-muted { color: var(--lr-muted); }
.lr .lr-small { font-size: .9rem; }
.lr .lr-h { font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.lr .lr-h4 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.lr .lr-section { margin-top: 36px; }
.lr .lr-panel { background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 10px; padding: 24px; }
.lr code { background: var(--lr-paper); padding: 2px 6px; border-radius: 4px; }

/* Layout that adapts to whatever width your theme gives the page */
.lr .lr-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.lr .lr-split-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.lr .lr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }

/* Buttons */
.lr .lr-btn {
  display: inline-block; background: var(--lr-slate); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 20px; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.lr .lr-btn:hover { background: var(--lr-slate-dark); color: #fff; }
.lr .lr-btn-ghost { background: transparent; color: var(--lr-slate); box-shadow: inset 0 0 0 2px var(--lr-slate); }
.lr .lr-btn-ghost:hover { background: var(--lr-slate); color: #fff; }
.lr .lr-btn-block { width: 100%; }
.lr .lr-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Forms */
.lr .lr-field { margin: 0 0 16px; }
.lr label { display: block; font-weight: 600; margin: 0 0 6px; }
.lr input[type=text], .lr input[type=email], .lr input[type=tel], .lr input[type=password], .lr select, .lr textarea {
  display: block; width: 100%; max-width: none; margin: 0; font: inherit; color: var(--lr-ink); background: #fff;
  padding: 11px 12px; border: 1px solid #bfcad3; border-radius: 8px; box-shadow: none; height: auto;
}
.lr input:focus, .lr select:focus, .lr textarea:focus { border-color: var(--lr-slate); }
.lr textarea { min-height: 96px; resize: vertical; }
.lr .lr-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.lr .lr-check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--lr-slate); }
.lr .lr-hint { display: block; font-size: .9rem; color: var(--lr-muted); margin-top: 4px; }
.lr .lr-hint-tight { margin: -6px 0 16px; }
.lr .lr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Messages */
.lr .lr-flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; font-weight: 600; }
.lr .lr-flash ul { margin: 0; padding-left: 18px; }
.lr .lr-flash-ok { background: var(--lr-green-soft); color: var(--lr-green-ink); }
.lr .lr-flash-error { background: var(--lr-red-soft); color: var(--lr-red-ink); }

/* Star card */
.lr .lr-card { background: var(--lr-slate); color: #fff; border-radius: 18px; padding: 24px; }
.lr .lr-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; color: rgba(255,255,255,.78); font-size: .95rem; }
.lr .lr-card-head strong { color: #fff; font-size: 1.12rem; }
.lr .lr-stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 420px; }
.lr .lr-stamp {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.28); color: rgba(255,255,255,.16); font-size: clamp(1rem, 3vw, 1.6rem); line-height: 1;
}
.lr .lr-stamp.is-filled { border: 2px solid var(--lr-brass); background: var(--lr-brass); color: var(--lr-slate); }
.lr .lr-stamp.is-latest { animation: lr-stamp-in .55s cubic-bezier(.2,1.4,.4,1) .25s both; }
@keyframes lr-stamp-in { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lr .lr-card-foot { margin: 16px 0 0; color: rgba(255,255,255,.85); }

/* Public view */
.lr .lr-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.lr .lr-hero-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.lr .lr-lead { font-size: 1.1rem; color: var(--lr-muted); }
.lr .lr-ladder { list-style: none; margin: 0; padding: 0; counter-reset: lrstep; border-top: 1px solid var(--lr-line); }
.lr .lr-ladder li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--lr-line); }
.lr .lr-ladder li::before {
  counter-increment: lrstep; content: counter(lrstep); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--lr-slate); font-weight: 800; color: var(--lr-slate);
}
.lr .lr-ladder strong { display: block; }
.lr .lr-ladder span { color: var(--lr-muted); font-size: .95rem; }
.lr .lr-ladder b { font-weight: 800; font-size: 1.1rem; color: var(--lr-slate); white-space: nowrap; }
.lr .lr-note { margin-top: 18px; padding: 14px 18px; background: var(--lr-brass-soft); border-radius: 8px; font-weight: 600; }

/* Dashboard */
.lr .lr-topline { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.lr .lr-hello { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; margin: 0; }
.lr .lr-balance { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 4px 0 12px; }
.lr .lr-list, .lr .lr-activity { list-style: none; margin: 0; padding: 0; }
.lr .lr-list li { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--lr-line); }
.lr .lr-list li:last-child { border-bottom: 0; }
.lr .lr-activity li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--lr-line); }
.lr .lr-table-wrap { overflow-x: auto; border: 1px solid var(--lr-line); border-radius: 10px; background: var(--lr-surface); }
.lr .lr-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; border: 0; }
.lr .lr-table th, .lr .lr-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--lr-line); }
.lr .lr-table th { background: #edf1f4; font-weight: 700; white-space: nowrap; }
.lr .lr-table tbody tr:last-child td { border-bottom: 0; }
.lr .lr-stars { color: var(--lr-brass); letter-spacing: 2px; white-space: nowrap; }
.lr .lr-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.lr .lr-pill-wait { background: #e6ecf0; color: #3c4c58; }
.lr .lr-pill-progress { background: var(--lr-brass-soft); color: #74550f; }
.lr .lr-pill-win { background: var(--lr-green-soft); color: var(--lr-green-ink); }
.lr .lr-pill-no { background: var(--lr-red-soft); color: var(--lr-red-ink); }

@media (max-width: 560px) {
  .lr .lr-panel, .lr .lr-card { padding: 18px; }
  .lr .lr-ladder li { grid-template-columns: 36px 1fr; }
  .lr .lr-ladder b { grid-column: 2; }
  .lr .lr-activity li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .lr .lr-stamp.is-latest { animation: none; } }

/* Weekly statement settings and unsubscribe page */
.lr .lr-pref-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lr .lr-pref-form .lr-check { margin: 0; }
.lr .lr-btn-sm { padding: 8px 16px; font-size: .92rem; }
.lr .lr-narrow { max-width: 520px; margin: 0 auto; }
