/* RentPass design system – blue + orange on white, light theme only. Mobile-first. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --background: #FFFFFF;
  --surface: #F6F8FB;
  --surface-tint: #F1F5F9;
  --input: #FFFFFF;
  --foreground: #0F172A;
  --muted: #475569;
  --primary: #2563EB;
  --primary-foreground: #FFFFFF;
  --primary-soft: #EFF6FF;
  --accent: #EA580C;
  --accent-strong: #C2410C;
  --accent-foreground: #FFFFFF;
  --success: #16A34A;
  --success-text: #15803D;
  --success-soft: #F0FDF4;
  --warning: #D97706;
  --warning-text: #B45309;
  --warning-soft: #FFFBEB;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --star: #F59E0B;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: 180ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; outline: none; }
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--primary); text-underline-offset: 0.18em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, .h2, .h3, .h4 { line-height: 1.15; margin: 0 0 0.75rem; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.0625rem; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.5rem; }
}
h1 .icon, h2 .icon, .h2 .icon, .h3 .icon, .h4 .icon { margin-right: 0.4rem; vertical-align: -0.1em; color: var(--primary); }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 65ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--primary); color: var(--primary-foreground); padding: 0.5rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.narrow { max-width: 46rem; }
.prose { max-width: 46rem; }
.prose p { max-width: 65ch; }
.prose h2 { margin-top: 2rem; }
.section { padding-block: 4rem; }
.section-tight { padding-block: 2rem 4rem; }
.section-tint { background: var(--surface-tint); border-block: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding-block: 6rem; } .section-tight { padding-block: 3rem 5rem; } }
.page-head { padding-bottom: 1rem; }
.stack { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Header & nav */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 800; font-size: 1.125rem; color: var(--foreground); text-decoration: none; margin-right: auto; }
.brand-mark { color: var(--primary); }
.public-nav { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .public-nav { gap: 1.25rem; } }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; color: var(--foreground); border: 1px solid var(--border); min-width: 44px; min-height: 44px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover { color: var(--primary); background: var(--primary-soft); }
.mobile-menu[open] summary { color: var(--primary); border-color: var(--primary); }
.mobile-menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 40; width: min(18rem, calc(100vw - 2rem)); display: grid; padding: 0.5rem; background: var(--input); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px -16px rgb(15 23 42 / 0.3); }
.mobile-menu-panel a { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--foreground) !important; text-decoration: none; font-weight: 600; }
.mobile-menu-panel a:hover { background: var(--primary-soft); }
.mobile-menu-panel .icon { color: var(--primary); }
@media (min-width: 768px) { .mobile-menu { display: none; } }
.public-nav a:not(.btn) { color: var(--foreground); text-decoration: none; font-weight: 500; }
.public-nav a:not(.btn):hover { color: var(--primary); }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.lang-switch { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--border); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; transition: border-color var(--ease), color var(--ease); }
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.app-nav-top { display: none; gap: 0.25rem; }
.app-nav-top a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; transition: background var(--ease), color var(--ease); }
.app-nav-top a:hover { color: var(--foreground); background: var(--surface-tint); }
.app-nav-top a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.logout-form span { display: none; }
@media (min-width: 900px) {
  .app-nav-top { display: flex; }
  .logout-form span { display: inline; }
}

.app-nav-bottom { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--input); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.app-nav-bottom a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.55rem 0.25rem; min-height: 3.5rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.app-nav-bottom a[aria-current="page"] { color: var(--primary); }
body.in-app { padding-bottom: 4.5rem; }
@media (min-width: 900px) { .app-nav-bottom { display: none; } body.in-app { padding-bottom: 0; } }

.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--surface-tint); }
.footer-inner { display: grid; gap: 1rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-inner nav a { color: var(--foreground); }
.footer-inner .icon { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.625rem 1.25rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--foreground)); }
.btn-cta { background: var(--accent-strong); color: var(--accent-foreground); }
.btn-cta:hover { background: color-mix(in srgb, var(--accent-strong) 88%, var(--foreground)); }
.btn-secondary { background: var(--input); color: var(--primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-destructive { background: var(--danger); color: #fff; }
.btn-destructive:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 52px; padding: 0.8rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; min-height: 44px; }
.text-link .icon { width: 18px; height: 18px; }
.back { margin-bottom: 1rem; text-decoration: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 1.5rem; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.callout p { margin: 0; }
.empty { text-align: center; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
.danger-card { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* Hero */
.hero { position: relative; padding-block: 3rem 4.5rem; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) { .hero { padding-block: 6rem 7rem; } .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { max-width: 15ch; }
.hero .actions { margin-top: 2rem; }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 1.5rem 0.5rem; }
.passport { position: relative; width: 100%; max-width: 24rem; display: grid; gap: 0.9rem; background: var(--input); box-shadow: 0 24px 48px -16px rgb(37 99 235 / 0.28), 0 2px 6px rgb(15 23 42 / 0.06); }
.passport-head { display: flex; align-items: center; gap: 0.75rem; }
.passport-head .badge { margin-left: auto; }
.passport-foot { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 600; color: var(--success-text); }

.avatar { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-weight: 800; flex-shrink: 0; }
.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.375rem; }

/* Steps */
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step .icon { color: var(--primary); width: 28px; height: 28px; margin-bottom: 0.75rem; }
.step-num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; margin-bottom: 0.9rem; flex-shrink: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; }
.timeline li { display: flex; gap: 1rem; }
.timeline h2 { margin-top: 0.25rem; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.check-list .icon { color: var(--primary); flex-shrink: 0; margin-top: 0.1rem; }

.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq-item { background: var(--input); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; min-height: 44px; list-style-position: outside; }
.faq-item p { padding-bottom: 1rem; color: var(--muted); }

.note { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--primary-soft); margin-block: 1rem; }
.note .icon { flex-shrink: 0; color: var(--primary); }
.note-info { background: var(--primary-soft); }
.note-success { background: var(--success-soft); }
.note-success .icon { color: var(--success-text); }
.note-warning { background: var(--warning-soft); color: var(--warning-text); font-weight: 600; }

/* Badges, chips, status */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.badge-success { background: var(--success-soft); color: var(--success-text); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.chip { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--surface-tint); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; }
.chip-good { background: var(--success-soft); border-color: transparent; color: var(--success-text); }
.chip-warn { background: var(--warning-soft); border-color: transparent; color: var(--warning-text); }
.status { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--surface-tint); color: var(--muted); white-space: nowrap; }
.status-pending { background: var(--warning-soft); color: var(--warning-text); }
.status-visible, .status-active { background: var(--success-soft); color: var(--success-text); }
.status-hidden { background: var(--primary-soft); color: var(--primary); }

.stars { display: inline-flex; gap: 0.1rem; font-size: 1.125rem; line-height: 1; }
.star { color: var(--border-strong); }
.star.on { color: var(--star); }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9375rem; }

/* Reference card */
.reference-card { display: grid; gap: 1rem; }
.ref-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ref-name { font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.ref-name .icon { color: var(--primary); }
.ref-head .muted { margin: 0; }
.ref-answers { margin: 0; display: grid; gap: 0.75rem; }
.ref-answers > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; padding-bottom: 0.75rem; border-bottom: 1px dashed var(--border); }
.ref-answers > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ref-answers dt { font-size: 0.9375rem; color: var(--muted); }
.ref-answers dd { margin: 0; }
.ref-comment { margin: 0; padding: 1rem; background: var(--surface-tint); border-radius: var(--radius-sm); }
.ref-comment p:first-child, .ref-reply p:first-child { margin-bottom: 0.25rem; }
.ref-reply { margin-left: 1rem; padding: 0.75rem 1rem; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.history-card { display: grid; gap: 1rem; }
.history-summary { margin: 0; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; }
.history-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.history-list li:last-child { border-bottom: 0; }
.history-place { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; flex-wrap: wrap; }
.history-place .icon { color: var(--primary); }
.status .icon { width: 14px; height: 14px; stroke-width: 2.5; vertical-align: -2px; margin-right: 0.2rem; }
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.profile-head h1 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 0.15rem; padding: 1.1rem 1.25rem; }
.stat strong { font-size: 1.5rem; line-height: 1.2; }
.stat-grid .stat:only-child, .profile-card + h2 + .stat-grid { grid-template-columns: 1fr; }
.profile-card ~ .stat-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .profile-card ~ .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.profile-card ~ .stat-grid strong { font-size: 1rem; }

.list { list-style: none; padding: 0; margin: 0; display: grid; }
.list li a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; min-height: 44px; border-bottom: 1px solid var(--border); color: var(--foreground); text-decoration: none; font-weight: 600; }
.list li:last-child a { border-bottom: 0; }
.list.plain li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.list.plain li:last-child { border-bottom: 0; }

.page-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-title-row p { margin: 0; }
.tenancy-row, .link-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; }
.tenancy-row { color: var(--foreground); text-decoration: none; transition: border-color var(--ease); }
.tenancy-row:hover { border-color: var(--primary); }
.tenancy-row p, .link-row p { margin: 0.15rem 0; }
.link-row .icon { width: 16px; height: 16px; color: var(--muted); }

.meta-list { display: grid; gap: 0.5rem; margin: 0 0 1.5rem; }
.meta-list > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meta-list dt { color: var(--muted); min-width: 8rem; }
.meta-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Forms */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 600; }
legend { padding: 0; margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="month"], input[type="number"], input[type="date"], input[type="tel"], input:not([type]), textarea, select {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: inherit; color: var(--foreground); background: var(--input);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
[aria-invalid="true"] input, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input:disabled { opacity: 0.55; }
.help { font-size: 0.875rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.875rem; font-weight: 600; color: var(--danger); margin: 0; }
.counter { font-size: 0.8125rem; color: var(--muted); text-align: right; margin: 0; }
.counter.over { color: var(--danger); font-weight: 700; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; cursor: pointer; min-height: 44px; padding-block: 0.6rem; }
.check input { margin-top: 0.15rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--primary); flex-shrink: 0; }
.check-sm { font-size: 0.9375rem; margin-top: 0.4rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.radio-cards { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .radio-cards { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.radio-cards-2 { grid-template-columns: 1fr 1fr; }
.radio-cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 430px) { .radio-cards-3 { grid-template-columns: 1fr; } }
.radio-card { position: relative; display: flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.7rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input); font-weight: 600; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.radio-card input { accent-color: var(--primary); width: 1.1rem; height: 1.1rem; margin: 0; flex-shrink: 0; }
.radio-card:hover { border-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.star-input { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; max-width: 22rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input); font-size: 1.125rem; font-weight: 700; cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.star-input label:hover { border-color: var(--primary); }
.star-input input:checked + label { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.star-scale { display: flex; justify-content: space-between; max-width: 22rem; }

.notice { padding: 1.25rem; border-radius: var(--radius-sm); background: var(--surface-tint); border: 1px solid var(--border); display: grid; gap: 0.75rem; }
.notice p { margin: 0; }

.copy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.copy-row input { flex: 1 1 14rem; font-size: 0.9375rem; }
.new-link { border-color: var(--success); margin-block: 1.5rem; }
.new-link h2 .icon { color: var(--success-text); }

.danger-zone { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; }
.danger-zone summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--danger); min-height: 44px; }
.danger-zone[open] { padding-bottom: 1.25rem; }

.auth-box { max-width: 30rem; }
.icon-bubble { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.icon-bubble .icon { width: 26px; height: 26px; }
.icon-bubble-success { background: var(--success-soft); color: var(--success-text); }

.flash-stack { display: grid; gap: 0.5rem; padding-top: 1rem; }
.flash { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--foreground); font-weight: 600; margin: 0 0 1rem; }
.flash p { margin: 0; }
.flash .icon { color: var(--success-text); flex-shrink: 0; }
.flash-error { background: var(--danger-soft); }
.flash-error .icon { color: var(--danger); }
.flash-info { background: var(--primary-soft); }
.flash-info .icon { color: var(--primary); }

/* ---------- Motion & landing extras ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-tilt { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.12); } 66% { transform: translate(-30px, 20px) scale(0.92); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes star-in { from { color: var(--border-strong); transform: scale(0.5); } 60% { transform: scale(1.3); } to { color: var(--star); transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(234 88 12 / 0.55); } 100% { box-shadow: 0 0 0 10px rgb(234 88 12 / 0); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes gradient-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.24s; }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: blob 18s ease-in-out infinite; }
.blob-1 { width: 26rem; height: 26rem; background: #BFDBFE; top: -8rem; right: -6rem; }
.blob-2 { width: 20rem; height: 20rem; background: #FED7AA; bottom: -6rem; left: -6rem; animation-delay: -6s; opacity: 0.45; }
.blob-3 { width: 16rem; height: 16rem; background: #DDD6FE; top: 40%; right: 30%; animation-delay: -12s; opacity: 0.35; }

.gradient-text { background: linear-gradient(90deg, var(--primary), #7C3AED, var(--accent), var(--primary)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-pan 8s ease-in-out infinite; }

.pulse-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); margin-right: 0.5rem; vertical-align: 0.1em; animation: pulse 1.8s ease-out infinite; }

.card-stack { position: relative; width: 100%; max-width: 24rem; animation: float 6s ease-in-out infinite; }
.passport-back { position: absolute; inset: 0; border-radius: var(--radius); border: 1px solid var(--border); }
.passport-back-1 { background: #DBEAFE; transform: rotate(5deg) translate(14px, 8px); }
.passport-back-2 { background: #FFEDD5; transform: rotate(10deg) translate(28px, 18px); }
.badge-pop { animation: pop 0.5s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1.4) both; }
.passport .stars .star.on { animation: star-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1.4) both; }
.passport .rating-row:nth-of-type(1) .star:nth-child(1) { animation-delay: 1.0s; }
.passport .rating-row:nth-of-type(1) .star:nth-child(2) { animation-delay: 1.1s; }
.passport .rating-row:nth-of-type(1) .star:nth-child(3) { animation-delay: 1.2s; }
.passport .rating-row:nth-of-type(1) .star:nth-child(4) { animation-delay: 1.3s; }
.passport .rating-row:nth-of-type(1) .star:nth-child(5) { animation-delay: 1.4s; }
.passport .rating-row:nth-of-type(2) .star:nth-child(1) { animation-delay: 1.5s; }
.passport .rating-row:nth-of-type(2) .star:nth-child(2) { animation-delay: 1.6s; }
.passport .rating-row:nth-of-type(2) .star:nth-child(3) { animation-delay: 1.7s; }
.passport .rating-row:nth-of-type(2) .star:nth-child(4) { animation-delay: 1.8s; }
.passport .chip { animation: chip-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.passport .chip:nth-child(1) { animation-delay: 0.5s; }
.passport .chip:nth-child(2) { animation-delay: 0.65s; }

.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.45rem; border-radius: 999px; background: var(--input); border: 1px solid var(--border); box-shadow: 0 10px 24px -8px rgb(15 23 42 / 0.18); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; z-index: 2; }
.float-ico { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.float-ico .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.float-ico-blue { background: var(--primary-soft); color: var(--primary); }
.float-ico-green { background: var(--success-soft); color: var(--success-text); }
.float-ico-orange { background: #FFF7ED; color: var(--accent-strong); }
.float-chip-a { top: 0; left: 0; animation: chip-in 0.6s 1.6s both, float 5s 2.2s ease-in-out infinite; }
.float-chip-b { bottom: 0; right: 0; animation: chip-in 0.6s 2.1s both, float 5.5s 2.7s ease-in-out infinite; }
.float-chip-c { display: none; }
@media (min-width: 1100px) {
  .float-chip-a { left: -1.5rem; }
  .float-chip-c { display: inline-flex; top: 45%; right: -2.5rem; animation: chip-in 0.6s 2.6s both, float 6s 3.2s ease-in-out infinite; }
}

.btn-cta { box-shadow: 0 8px 20px -8px rgb(194 65 12 / 0.6); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgb(194 65 12 / 0.7); }
.btn-cta .icon { transition: transform var(--ease); }
.btn-cta:hover .icon { transform: translateX(3px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent); animation: shine 3.5s 2.5s ease-in-out infinite; pointer-events: none; }

.trust-strip { border-block: 1px solid var(--border); background: var(--surface); }
.trust-list { list-style: none; margin-block: 0; padding-block: 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; font-weight: 600; font-size: 0.9375rem; }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-list li { display: flex; align-items: center; gap: 0.6rem; }
.trust-ico { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }

.section-head { max-width: 40rem; margin-inline: auto; }
.section-head h2 { margin-bottom: 0; }
.steps-flow { position: relative; margin-top: 3rem; }
.step-lift { position: relative; z-index: 1; background: var(--input); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.step-lift:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: 0 20px 40px -20px rgb(37 99 235 / 0.35); }
.step-icon { position: relative; display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: linear-gradient(135deg, var(--primary), #7C3AED); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 10px 20px -10px rgb(37 99 235 / 0.7); transition: transform var(--ease); }
.step-lift:hover .step-icon { transform: rotate(-6deg) scale(1.06); }
.step-icon .icon { width: 26px; height: 26px; color: #fff; margin: 0; }
.step-badge { position: absolute; top: -0.5rem; right: -0.5rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 0.75rem; font-weight: 800; border: 2px solid var(--input); }
.flow-line { display: none; }
@media (min-width: 768px) {
  .flow-line { display: block; position: absolute; top: 3.25rem; left: 12%; right: 12%; height: 4px; z-index: 0; list-style: none; }
  .flow-line svg { width: 100%; height: 4px; overflow: visible; }
  .flow-line line { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; opacity: 0.5; }
}

.feature-card { background: var(--input); transition: transform var(--ease), box-shadow var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgb(15 23 42 / 0.3); }
.feature-ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.9rem; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.feature-ico .icon { width: 24px; height: 24px; }
.feature-ico-green { background: var(--success-soft); color: var(--success-text); }

.faq-item { transition: border-color var(--ease), box-shadow var(--ease); }
.faq-item:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq-item[open] { box-shadow: 0 10px 24px -18px rgb(37 99 235 / 0.5); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; font-weight: 600; flex-shrink: 0; transition: transform var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] p { animation: rise 0.35s ease-out both; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; padding: 3.5rem 1.5rem; border-radius: 1.5rem; background: linear-gradient(120deg, #1D4ED8, #2563EB 45%, #7C3AED); background-size: 200% 200%; animation: gradient-pan 12s ease-in-out infinite; }
@media (min-width: 768px) { .cta-band { padding: 5rem 3rem; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.85); font-size: 1.125rem; margin-bottom: 1.75rem; }
.cta-ring { position: absolute; z-index: -1; border-radius: 50%; border: 2px dashed rgb(255 255 255 / 0.25); animation: spin-slow 40s linear infinite; }
.cta-ring-1 { width: 22rem; height: 22rem; top: -9rem; left: -7rem; }
.cta-ring-2 { width: 28rem; height: 28rem; bottom: -14rem; right: -8rem; animation-direction: reverse; }

/* Scroll reveal – only hidden once JS is running, so content never disappears without it. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .steps-flow > [data-reveal]:nth-child(2), .js .trust-list > [data-reveal]:nth-child(2), .js .two-col > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js .steps-flow > [data-reveal]:nth-child(3), .js .trust-list > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.js .trust-list > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

.site-header { transition: box-shadow var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(15 23 42 / 0.25); }

/* Admin */
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--input); }
.segmented a { padding: 0.4rem 0.9rem; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.875rem; }
.segmented a[aria-current="page"] { background: var(--primary); color: var(--primary-foreground); }
.chart-card { overflow: hidden; }
.bar-chart { width: 100%; height: auto; display: block; }
.bar-chart .grid { stroke: var(--border); stroke-width: 1; }
.bar-chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.bar-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.bar-chart .bar { fill: var(--primary); }
.bar-chart .hit { fill: transparent; }
.bar-chart .bar-slot:hover .bar { fill: #1D4ED8; }
.bar-chart .bar-slot:hover .hit { fill: var(--primary-soft); }
.visits-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .visits-grid { grid-template-columns: 1fr 1fr; } }
.toplist-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.toplist-table th { text-align: left; font-size: 0.75rem; color: var(--muted); font-weight: 700; padding: 0 0 0.4rem; }
.toplist-table td { padding: 0.45rem 0; border-top: 1px solid var(--border); vertical-align: top; }
.toplist-table .num { text-align: right; padding-left: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toplist-label { display: block; overflow-wrap: anywhere; }
.toplist-bar { display: block; width: 100%; height: 6px; margin-top: 0.3rem; }
.toplist-bar rect { fill: var(--primary); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.funnel li { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr 3rem; gap: 0.75rem; align-items: center; font-size: 0.9375rem; }
.funnel .toplist-bar { margin: 0; }
.funnel .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-stats .stat strong { font-size: 1.75rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0 1rem; }
.admin-body { background: var(--surface-tint); }
.admin-header { background: #0F172A; color: #fff; }
.admin-header .header-inner { gap: 1rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand-admin { color: #fff; }
.brand-admin .icon { color: #93C5FD; }
.admin-who { color: #CBD5E1; overflow-wrap: anywhere; }
.admin-logout { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
.admin-logout:hover { border-color: #fff; }
.admin-body .card { background: var(--input); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.admin-nav a { padding: 0.5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--foreground); background: var(--input); }
.admin-nav a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.admin-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.search-row input { flex: 1 1 16rem; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 0.8125rem; color: var(--muted); font-weight: 700; background: var(--surface-tint); }
.table tr:last-child td { border-bottom: 0; }

/* Marketplace */
.market-cta { display: grid; gap: 0.75rem; align-content: start; background: var(--input); }
.market-cta p { margin: 0; }
.market-cta .btn { justify-self: start; }
.card.market-cta { margin-block: 1.5rem; }
.two-col .card.market-cta { margin-block: 0; }
.market-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 900px) { .market-grid { grid-template-columns: 18rem 1fr; } }
.filters { gap: 1rem; background: var(--input); }
.market-side { display: grid; gap: 1rem; align-content: start; }
.market-toggle { min-width: 0; }
.market-toggle[open] > .filters-summary { margin-bottom: 1rem; }
.filters-summary { list-style: none; display: inline-flex; }
.filters-summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .filters-summary { display: none; } }
@media (min-width: 900px) { .market-toggle { position: sticky; top: 5rem; } .market-toggle[open] > .filters-summary { margin: 0; } }
.saved-searches { display: grid; gap: 0.75rem; background: var(--input); }
.saved-searches .h4 .icon { color: var(--primary); }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; }
.saved-list a { overflow-wrap: anywhere; }
.icon-btn { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; cursor: pointer; }
.icon-btn:hover { color: var(--danger); background: var(--danger-soft); }
.filters .h4 .icon { color: var(--primary); }
.results-count { margin: 0 0 0.75rem; }
.renter-card { display: grid; gap: 0.9rem; background: var(--input); transition: border-color var(--ease), box-shadow var(--ease); }
.renter-card-link:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: 0 12px 28px -18px rgb(37 99 235 / 0.45); }
.renter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.renter-head h2, .renter-head h1 { margin: 0; }
.renter-head h2 a { color: var(--foreground); text-decoration: none; }
.renter-head h2 a:hover { color: var(--primary); text-decoration: underline; }
.renter-head p { margin: 0.2rem 0 0; }
.renter-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-weight: 600; font-size: 0.9375rem; }
.renter-facts li { display: inline-flex; align-items: center; gap: 0.35rem; }
.renter-facts .icon, .chips .chip .icon { width: 16px; height: 16px; color: var(--primary); }
.chips .chip .icon { vertical-align: -3px; margin-right: 0.2rem; }
.renter-history { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--success-text); font-weight: 600; }
.chip-neutral { background: transparent; border-style: dashed; }
.badge-demo { background: var(--warning-soft); color: var(--warning-text); }
.check-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-chip { position: relative; display: inline-flex; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--input); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.check-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.check-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.status-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.status-card p { margin: 0; }
.status-card-on { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.status-card-on .icon { color: var(--success-text); }
.request-card { display: grid; gap: 0.75rem; }
.request-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.request-card p { margin: 0; }
.report summary { cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); min-height: 44px; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary .icon { width: 16px; height: 16px; }
.report[open] summary { color: var(--danger); }
.rules-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .app-nav-bottom { display: none; }
}

/* Admin mailbox (/admin/posta) */
.mail-boxes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.mail-box p { margin: 0 0 0.75rem; }
.mail-unseen { color: var(--primary); }
.mail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.mail-head p { margin: 0; }
.mail-folders { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.mail-folders a { padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--foreground); background: var(--input); font-size: 0.9375rem; }
.mail-folders a[aria-current="page"] { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-list li + li { border-top: 1px solid var(--border); }
.mail-list a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.8rem 1rem; min-height: 44px; text-decoration: none; color: var(--foreground); }
.mail-list a:hover { background: var(--surface-tint); }
.mail-list .mail-from, .mail-list .mail-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-new .mail-from, .mail-new .mail-subject { font-weight: 700; }
.mail-new .mail-from::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 0.45rem; vertical-align: 0.1em; }
.mail-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0 0 1rem; }
.mail-meta dt { color: var(--muted); font-weight: 600; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 0.9375rem; line-height: 1.6; background: var(--surface-tint); border-radius: var(--radius-sm); padding: 1rem; margin: 0 0 1rem; max-height: 70vh; overflow-y: auto; }
.mail-attachments { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.mail-attachments a { display: inline-flex; align-items: center; gap: 0.4rem; }
.mail-delete summary { list-style: none; cursor: pointer; }
.mail-delete summary::-webkit-details-marker { display: none; }
.mail-delete[open] form { margin-top: 0.75rem; }
.mail-delete p { margin: 0 0 0.5rem; }
textarea#body { font-family: inherit; }
@media (max-width: 640px) {
  .mail-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .mail-list .mail-subject { grid-column: 1 / -1; grid-row: 2; }
}
