/* ============================================================
 * Hostelova — partner portal (/become-a-partner)
 * ------------------------------------------------------------
 * A form-heavy page, so the design is about calm and legibility:
 * one column, one card per decision, and the owner app's own
 * "Step n of 6" header over a segmented bar so the web and the app
 * feel like the same form. Colours come only from the tokens in
 * styles.css, so the page follows the site's light/dark theme.
 * ========================================================== */

.pp-body { background: var(--bg); color: var(--ink); font-family: var(--font); min-height: 100vh; }
.pp-body [hidden] { display: none !important; }

/* ── The partner account slot in the site header ───────────── */
/* The page uses the site's shared header (site-chrome-core.js); only the
   right-hand button differs — sign in / sign out instead of "Book a hostel". */
.nav-account { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.nav-account button {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; transition: background .15s, transform .15s;
}
.nav-account button:hover { background: var(--primary); color: #fff; }
.pp-who { color: var(--muted); font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 880px) {
  .pp-who { display: none; }
  .nav-account button { padding: 8px 14px; }
}

/* ── Layout ────────────────────────────────────────────────── */
.pp-wrap { max-width: 820px; margin: 0 auto; padding: 24px 18px 120px; }
/* On the landing page every portal view is hidden; the empty wrapper must not push the footer down. */
.pp-app:not(:has(> [data-view]:not([hidden]))) { padding: 0; }
.pp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.pp-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--primary-100); border-top-color: var(--primary); animation: pp-spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* A toast pinned under the top bar, so a message is readable from the
   landing page's hero as well as from the middle of the listing form. */
.pp-status {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 950;
  width: min(760px, calc(100% - 32px)); display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45;
  background: var(--surface); color: var(--ink); border: 1px solid var(--primary-100);
  box-shadow: var(--shadow-md);
}
.pp-status.is-error { background: color-mix(in srgb, var(--surface) 90%, #e11d48); border-color: rgba(225, 29, 72, .45); }
.pp-status.is-ok { background: color-mix(in srgb, var(--surface) 90%, #16a34a); border-color: rgba(22, 163, 74, .45); }
.pp-status > span { flex: 1; }
.pp-status-close { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }

/* ── Type ──────────────────────────────────────────────────── */
.pp-eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pp-wrap h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; outline: none; }
.pp-lede { font-size: clamp(15.5px, 2.2vw, 18px); line-height: 1.6; color: var(--muted); margin: 0; max-width: 62ch; }
.pp-muted { color: var(--muted); }
.pp-hint { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.pp-note { font-size: 13.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0; line-height: 1.5; }
.pp-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; }
.pp-alert { background: rgba(225, 29, 72, .08); border: 1px solid rgba(225, 29, 72, .3); color: var(--ink); border-radius: 12px; padding: 10px 12px; }

/* ── Who sees what, before the controller runs ─────────────── */
/* partner-session.js marks a signed-in visitor before first paint; they get
   a loader, not a flash of the landing page, until the portal decides. */
html[data-partner-session] .pp-body [data-view="start"] { display: none !important; }
html[data-partner-session] .pp-body [data-view="loading"] { display: flex !important; }

/* ══════════════════════════════════════════════════════════════
 * LANDING
 * Full-bleed sections with real photography under a dark scrim, so
 * text stays legible over any part of the image and in both themes.
 * ══════════════════════════════════════════════════════════════ */
.pp-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pp-section { padding: 88px 0; }
.pp-section-alt { background: var(--bg-2); }
.pp-landing h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; color: var(--ink); }
.pp-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.pp-head p:not(.pp-eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }
.pp-head-left { text-align: left; margin: 0 0 28px; }
.pp-landing a:not(.pp-btn) { color: var(--primary); }

/* Hero */
.pp-hero { position: relative; color: #fff; overflow: hidden; background-color: #0b1020; isolation: isolate; }
.pp-hero-bg, .pp-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-hero-bg { z-index: -2; }
.pp-hero-bg img { object-fit: cover; object-position: center 40%; }
/* The scrim keeps white text legible over any part of the photo. */
.pp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 10, 22, .94) 0%, rgba(6, 10, 22, .82) 42%, rgba(6, 10, 22, .38) 100%); }
.pp-hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 96px 24px 104px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.pp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.pp-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.pp-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; color: #fff; text-wrap: balance; }
.pp-hero-lede { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .84); max-width: 54ch; margin: 0 0 28px; }
.pp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 30px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.pp-hero-facts b { color: #fff; font-size: 17px; margin-right: 4px; }

.pp-signin {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); scroll-margin-top: 90px;
}
.pp-signin h2 { font-size: 22px; margin: 0 0 6px; color: #fff; letter-spacing: -.01em; }
.pp-signin > p { color: rgba(255, 255, 255, .76); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.pp-signin .pp-field > span:first-child { color: rgba(255, 255, 255, .9); }
.pp-signin .pp-field input { background: rgba(255, 255, 255, .94); color: #0e1726; border-color: transparent; }
.pp-signin .pp-btn { width: 100%; margin-top: 4px; }
.pp-signin .pp-hint { color: rgba(255, 255, 255, .7); }

/* Benefits */
.pp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pp-benefit { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pp-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.pp-benefit-ico, .pp-six-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 16px; }
.pp-benefit h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.pp-benefit p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Split with photo */
.pp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pp-split-media { margin: 0; position: relative; }
.pp-split-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; }
.pp-split-media::after { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; border: 2px solid var(--primary-100); z-index: -1; }
.pp-split-copy > p:not(.pp-eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 18px; }

.pp-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pp-ticks li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.pp-ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--primary); }
.pp-ticks li::after { content: ''; position: absolute; left: 7.5px; top: 6.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Journey */
.pp-journey { list-style: none; counter-reset: j; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.pp-journey::before { content: ''; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--primary-100), var(--primary), var(--primary-100)); }
.pp-journey li { counter-increment: j; position: relative; text-align: center; padding: 0 8px; }
.pp-journey li::before { content: counter(j); position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 0 0 8px var(--bg); }
.pp-journey strong { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.pp-journey span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Six steps + ready list */
.pp-six-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pp-six { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-six-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.pp-six-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.pp-six-num { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.pp-six-step h3 { font-size: 17px; margin: 0 0 6px; }
.pp-six-step p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.pp-ready { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--primary-100); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-md); }
.pp-ready h3 { font-size: 20px; margin: 0 0 16px; }
.pp-ready .pp-ticks li { font-size: 14.5px; }
.pp-ready-note { display: flex; gap: 10px; margin: 20px 0 0; padding: 14px; border-radius: 14px; background: var(--primary-50); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.pp-ready-note svg { flex: none; color: var(--primary); margin-top: 1px; }

/* Pricing */
.pp-pricing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.pp-pricing-copy > p:not(.pp-eyebrow) { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.pp-price-card { position: relative; border-radius: 26px; padding: 30px; color: #fff; background: linear-gradient(150deg, #2f5fe3 0%, #1d3a99 100%); box-shadow: 0 34px 70px -28px rgba(47, 95, 227, .6); overflow: hidden; }
.pp-price-card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.pp-price-label { position: relative; margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.pp-price { position: relative; margin: 0 0 20px; font-size: 18px; color: rgba(255, 255, 255, .8); }
.pp-price span { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; margin-right: 6px; }
.pp-price-rows { position: relative; list-style: none; padding: 0; margin: 0 0 22px; }
.pp-price-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 15px; }
.pp-price-rows span { color: rgba(255, 255, 255, .8); }
.pp-price-card .pp-btn { position: relative; }
.pp-price-card .pp-btn-primary { background: #fff; color: #1d3a99; box-shadow: none; }
.pp-price-card .pp-btn-primary:hover:not(:disabled) { background: #eaf0ff; }
.pp-price-note { position: relative; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.pp-landing .pp-price-note a { color: #fff; }

/* Claim */
.pp-claim { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.pp-claim h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.pp-claim p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 64ch; }

/* FAQ */
.pp-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.pp-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.pp-faq details:first-child { border-top: 1px solid var(--line); }
.pp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 18px; line-height: 1; }
.pp-faq details[open] summary::after { content: '\2212'; }
.pp-faq details p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 10px 44px 0 0; }

/* Final CTA over a room photo */
.pp-final {
  color: #fff; text-align: center;
  background:
    linear-gradient(135deg, rgba(29, 58, 153, .93), rgba(47, 95, 227, .82)),
    url('assets/partner/single-room.jpg') center / cover no-repeat;
  background-color: #1d3a99;
}
.pp-final-inner { padding: 96px 24px; }
.pp-final h2 { color: #fff !important; }
.pp-final p { color: rgba(255, 255, 255, .85); font-size: 18px; margin: 0 0 28px; }
.pp-final .pp-hero-actions { justify-content: center; }

/* The landing's last band sits flush against the site footer. */
.pp-body .pp-landing + .footer, .pp-body main + .footer { margin-top: 0; }

/* Landing buttons */
.pp-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.pp-btn-block { width: 100%; }
.pp-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.pp-btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.pp-btn-white { background: #fff; color: #1d3a99; }
.pp-btn-white:hover:not(:disabled) { background: #eaf0ff; }

@media (max-width: 1000px) {
  .pp-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 72px 24px 80px; }
  .pp-signin { max-width: 520px; }
  .pp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-split, .pp-pricing, .pp-faq-wrap, .pp-six-wrap { grid-template-columns: 1fr; gap: 36px; }
  .pp-ready { position: static; }
  .pp-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .pp-journey::before { display: none; }
}

@media (max-width: 760px) {
  .pp-hero::before { background: linear-gradient(180deg, rgba(6, 10, 22, .74) 0%, rgba(6, 10, 22, .9) 60%, rgba(6, 10, 22, .96) 100%); }
  .pp-hero-bg img { object-position: center top; }
  .pp-hero-inner { padding: 52px 18px 60px; }
  .pp-section { padding: 60px 0; }
  .pp-container { padding: 0 18px; }
  .pp-benefits, .pp-six, .pp-journey { grid-template-columns: 1fr; }
  .pp-journey li { text-align: left; padding-left: 64px; min-height: 48px; }
  .pp-journey li::before { position: absolute; left: 0; top: 0; margin: 0; box-shadow: none; }
  .pp-claim { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pp-hero-actions .pp-btn { flex: 1 1 100%; }
  .pp-split-media::after { display: none; }
  .pp-faq details p { margin-right: 0; }
  .pp-final-inner { padding: 64px 18px; }
  .pp-signin { padding: 20px; }
}

/* ── Cards & fields ────────────────────────────────────────── */
.pp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0 0 14px; }
.pp-card-title { font-size: 17px; margin: 4px 0 4px; }
.pp-card-title small, .pp-field small { font-weight: 500; color: var(--muted-2); }
.pp-card-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.pp-field { display: block; margin: 0 0 12px; }
.pp-field > span:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.pp-field input, .pp-field textarea, .pp-field select, .pp-prefix-input {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pp-field textarea { resize: vertical; min-height: 64px; }
.pp-field input:focus, .pp-field textarea:focus, .pp-field select:focus, .pp-prefix-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.pp-field .is-invalid, .pp-prefix-input.is-invalid, .pp-doc.is-invalid .pp-doc-drop { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(225, 29, 72, .15); }
.pp-prefix-input { display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; }
.pp-prefix-input b { color: var(--muted); font-weight: 700; }
.pp-prefix-input input { border: 0; background: transparent; box-shadow: none !important; padding-left: 4px; }
.pp-field-narrow { max-width: 220px; }
.pp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.pp-otp { letter-spacing: .5em; font-size: 22px !important; text-align: center; font-weight: 700; }

.pp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; }
.pp-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.pp-check a { color: var(--primary); }

.pp-switch { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.pp-switch input { appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin-top: 1px; }
.pp-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.pp-switch input:checked { background: var(--primary); }
.pp-switch input:checked::after { transform: translateX(18px); }
.pp-switch input:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.pp-switch b { display: block; font-size: 14.5px; }
.pp-switch small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* Chips are real buttons with aria-pressed. */
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pp-chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pp-chip:hover { border-color: var(--primary); }
.pp-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pp-chip:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.pp-chips-static li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pp-chips-static li.is-done { color: var(--ink); border-color: rgba(22, 163, 74, .45); }
.pp-chips-static li.is-done::before { content: '✓ '; color: var(--success); font-weight: 800; }

/* ── Buttons ───────────────────────────────────────────────── */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px 20px; min-height: 46px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.pp-btn:disabled { opacity: .6; cursor: progress; }
.pp-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px var(--primary-glow); }
.pp-btn-primary:hover:not(:disabled) { background: var(--primary-600); }
.pp-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.pp-btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pp-btn-small { min-height: 36px; padding: 7px 12px; font-size: 13.5px; }
.pp-btn-danger { color: var(--danger); }
.pp-btn:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.pp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); font-weight: 700; cursor: pointer; }
.pp-link:disabled { color: var(--muted-2); cursor: default; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 4px; }
.pp-inline-actions { margin: 4px 0 6px; }

.pp-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.pp-footer .pp-btn-primary { min-width: 140px; margin-left: auto; }
.pp-footer-note { font-size: 12.5px; color: var(--muted-2); text-align: center; flex: 1; }
.pp-footer-sticky { position: sticky; bottom: 0; z-index: 700; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }

/* ── Wizard header: the app's "Step n of 6" over a segmented bar ── */
.pp-wizard-head { margin: 0 0 16px; }
.pp-step-of { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.pp-wizard-head h1 { font-size: clamp(24px, 4.2vw, 32px); margin-bottom: 12px; }
.pp-bar { display: flex; gap: 6px; }
.pp-bar span, .pp-bar button { flex: 1; height: 6px; border-radius: 4px; background: var(--primary-100); border: 0; padding: 0; }
.pp-bar .on { background: var(--primary); }
.pp-bar button { cursor: pointer; }
.pp-bar button:disabled { cursor: default; }

/* ── Documents & photos ────────────────────────────────────── */
.pp-doc { margin: 0 0 12px; }
.pp-doc-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pp-doc-hint { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.pp-doc-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; overflow: hidden; }
.pp-doc-drop:hover, .pp-doc-drop:focus-within { border-color: var(--primary); }
.pp-doc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp-doc-drop img { width: 100%; height: 100%; object-fit: cover; }
.pp-doc.is-on-file .pp-doc-drop { border-style: solid; border-color: rgba(22, 163, 74, .45); }

.pp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.pp-photo { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-photo button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(14, 23, 38, .72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pp-photo-add { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; text-align: center; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; background: var(--surface-2); padding: 4px; }
.pp-photo-add:hover, .pp-photo-add:focus-within { border-color: var(--primary); }
.pp-photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp-photo-count { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.pp-preview-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pp-preview-strip img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; }
.pp-preview-strip p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ── Rooms & floors ────────────────────────────────────────── */
.pp-room { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: var(--surface-2); }
.pp-room.is-on { border-color: var(--primary-100); background: var(--surface); }
.pp-room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-room-head h3 { margin: 0; font-size: 16px; }
.pp-room-off { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.pp-room-body { margin-top: 12px; }
.pp-room .pp-switch { padding: 4px 0; }
.pp-floor { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.pp-floor-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pp-floor-head b { color: var(--primary); }
.pp-floor-head span { font-size: 12.5px; color: var(--muted); }

/* ── Location picker ───────────────────────────────────────── */
.pp-loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.pp-map { height: 260px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); z-index: 1; }
.pp-loc-text { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.pp-loc-text.is-set { color: var(--ink-2); }
.pp-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--primary); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); display: block; }
.leaflet-container { font-family: var(--font); }

/* ── Verification & dashboard ──────────────────────────────── */
.pp-verify { text-align: center; padding: 28px 20px; }
.pp-verify h1 { font-size: clamp(24px, 4vw, 30px); }
.pp-verify p { color: var(--muted); line-height: 1.6; max-width: 56ch; margin: 0 auto 10px; }
.pp-verify .pp-chips { justify-content: center; margin: 12px 0; }
.pp-verify-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--primary-50); color: var(--primary); }
.pp-verify-icon.is-error { background: rgba(225, 29, 72, .1); color: var(--danger); }
.pp-verify-ok { background: rgba(22, 163, 74, .12); color: var(--success); font-weight: 800; }

.pp-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.pp-dash-head h1 { margin: 0; }
.pp-listing { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 0 0 10px; }
.pp-listing img, .pp-listing .pp-listing-noimg { width: 104px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.pp-listing-main { flex: 1; min-width: 0; }
.pp-listing-main h3 { margin: 0 0 3px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-listing-main p { margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pp-badge-pending { background: rgba(245, 158, 11, .14); color: #b45309; }
.pp-badge-live { background: rgba(22, 163, 74, .13); color: var(--success); }
.pp-badge-rejected { background: rgba(225, 29, 72, .1); color: var(--danger); }
.pp-badge-hidden { background: var(--surface-2); color: var(--muted); }
[data-theme="dark"] .pp-badge-pending { color: #fbbf24; }
.pp-empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.pp-app-note p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }

/* ── Small screens ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .pp-wrap { padding: 16px 16px 120px; }
  .pp-grid2 { grid-template-columns: 1fr; }
  .pp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-card { padding: 16px 14px; }
  .pp-footer-note { display: none; }
  .pp-footer .pp-btn { flex: 1; }
  .pp-footer .pp-btn-primary { min-width: 0; }
  .pp-listing { flex-wrap: wrap; }
  .pp-listing img, .pp-listing .pp-listing-noimg { width: 88px; }
  .pp-status { top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-spinner { animation-duration: 2s; }
  .pp-btn, .pp-chip, .pp-switch input, .pp-switch input::after, .pp-benefit { transition: none; }
  .pp-benefit:hover { transform: none; }
}
