/* ============================================================
   Client portal preview — modern client app
   ============================================================ */
.pp-root { --pp-ink: #17161B; --pp-mute: #77716a; --pp-line: #ECE7DC; --pp-bg: #F7F5F0; }
.pp-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pp-toolbar label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #57534a; }
.pp-toolbar select { min-width: 230px; height: 40px; border-radius: 10px; border: 1px solid #E3DDCF; background: #fff; padding: 0 12px; font-size: 13.5px; }
.pp-seg { display: inline-flex; padding: 4px; background: #EDE9E0; border-radius: 12px; gap: 2px; }
.pp-seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #6b665d; cursor: pointer; transition: all .2s; }
.pp-seg button.on { background: #fff; color: var(--pp-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pp-tip { margin-left: auto; font-size: 12.5px; color: #8a8578; }

/* Frames */
.pp-frame { position: relative; margin: 0 auto; background: var(--pp-bg); transition: max-width .45s cubic-bezier(.2,.7,.2,1), border-radius .45s; overflow: hidden; }
.pp-frame.desktop { max-width: 1080px; border-radius: 18px; border: 1px solid #E3DDCF; box-shadow: 0 40px 90px -40px rgba(23,22,27,.45), 0 2px 6px rgba(0,0,0,.04); }
.pp-frame.phone { max-width: 390px; border-radius: 46px; border: 10px solid #121116; box-shadow: 0 50px 90px -40px rgba(23,22,27,.6); }
.pp-chrome { height: 38px; background: #EFECE4; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid #E5E0D4; }
.pp-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c4; }
.pp-chrome i:nth-child(1) { background: #F2766B; } .pp-chrome i:nth-child(2) { background: #F4C04F; } .pp-chrome i:nth-child(3) { background: #5DC46B; }
.pp-chrome span { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #77716a; background: #fff; padding: 4px 16px; border-radius: 7px; transform: translateX(-24px); }
.pp-notch { display: none; }
.pp-frame.phone .pp-chrome { display: none; }
.pp-frame.phone .pp-notch { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #121116; border-radius: 20px; z-index: 5; }
.pp-shell { min-height: 640px; }
.pp-frame.phone .pp-shell { height: 760px; overflow-y: auto; padding-top: 44px; padding-bottom: 76px; scrollbar-width: none; }
.pp-frame.phone .pp-shell::-webkit-scrollbar { display: none; }

/* Top bar + tabs */
.pp-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 18px; padding: 14px 26px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--pp-line); }
.pp-brand { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.pp-brand .dm-logo { width: 32px; height: 32px; font-size: 11.5px; border-radius: 9px; }
.pp-tabs { display: flex; gap: 4px; margin: 0 auto; }
.pp-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #6b665d; cursor: pointer; transition: background .2s, color .2s; }
.pp-tabs button:hover { background: #F3F0E8; color: var(--pp-ink); }
.pp-tabs button.on { background: var(--honey-wash); color: var(--honey-deep); font-weight: 600; }
.pp-tabs .pi { width: 17px; height: 17px; }
.pp-badge { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px #fff; }
.pp-frame.phone .pp-top { padding: 10px 18px; }
.pp-frame.phone .pp-tabs { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; padding: 8px 6px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--pp-line); z-index: 6; }
.pp-frame.phone .pp-top { position: sticky; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.pp-frame.phone .pp-tabs button { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10.5px; min-width: 58px; }
.pp-frame.phone .pp-tabs button.on { background: transparent; }
.pp-frame.phone .pp-tabs .pi { width: 21px; height: 21px; }
.pp-frame.phone .pp-badge { top: 4px; right: 14px; }
.pp-frame.phone .pp-top { justify-content: space-between; }
.pp-frame.phone .pp-tabs { position: fixed; }
.pp-frame { contain: layout; }

/* View */
.pp-view { padding: 26px; display: grid; gap: 18px; animation: ppIn .45s cubic-bezier(.2,.7,.2,1) both; }
.pp-frame.phone .pp-view { padding: 16px; gap: 14px; }
@keyframes ppIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pp-grid { display: grid; gap: 18px; }
.pp-grid.two { grid-template-columns: 1fr 1fr; }
.pp-grid.side { grid-template-columns: 1.6fr 1fr; align-items: start; }
.pp-col { display: grid; gap: 18px; }
.pp-frame.phone .pp-grid.two, .pp-frame.phone .pp-grid.side { grid-template-columns: 1fr; gap: 14px; }
.pp-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(23,22,27,.03); transition: box-shadow .25s, transform .25s; }
.pp-card:hover { box-shadow: 0 14px 34px -18px rgba(23,22,27,.18); }
.pp-card.flush { padding: 0; overflow: hidden; }
.pp-k { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a8578; font-weight: 600; margin-bottom: 14px; }
.pp-k .pi { width: 15px; height: 15px; color: var(--honey); }
.pp-k.pad { padding: 20px 22px 6px; margin: 0; }
.pp-h { font-size: 18px; font-weight: 600; color: var(--pp-ink); margin-bottom: 4px; letter-spacing: -.005em; }
.pp-mute { color: var(--pp-mute); font-size: 14px; line-height: 1.55; }
.pp-mute.sm { font-size: 12.5px; } .pp-mute.pad { padding: 10px 22px 22px; }
.pp-chip { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--honey-wash); color: var(--honey-deep); }
.pp-chip.warn { background: #FDECEA; color: #B4372A; }
.pi { width: 18px; height: 18px; flex-shrink: 0; } .pi.sm { width: 14px; height: 14px; }

/* Buttons */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid #E3DDCF; background: #fff; color: var(--pp-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, filter .2s; white-space: nowrap; }
.pp-btn:hover { border-color: #cfc8b8; box-shadow: 0 6px 16px -10px rgba(0,0,0,.3); }
.pp-btn:active { transform: scale(.97); }
.pp-btn.pri { background: var(--honey); border-color: var(--honey); color: #fff; box-shadow: 0 10px 22px -12px var(--honey); }
body[data-theme="gold"] .pp-btn.pri { color: #17161B; }
.pp-btn.pri:hover { filter: brightness(1.06); }
.pp-btn.pri:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.pp-btn.wide { width: 100%; } .pp-btn.lg { height: 50px; font-size: 15px; border-radius: 14px; }
.pp-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.pp-btn.glass { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.pp-btn.glass:hover { background: rgba(255,255,255,.28); }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pp-actions.center { justify-content: center; }
.pp-frame.phone .pp-actions .pp-btn { flex: 1; }

/* Hero */
.pp-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--honey) 70%, #fff) 0%, transparent 55%), linear-gradient(135deg, var(--honey-deep) 0%, var(--honey) 100%); box-shadow: 0 24px 50px -28px var(--honey-deep); }
.pp-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.pp-hi { font-size: 14px; opacity: .85; }
.pp-hero h2 { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; line-height: 1.05; margin: 2px 0 10px; }
.pp-hero p { max-width: 460px; font-size: 15px; line-height: 1.55; opacity: .95; }
.pp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.pp-ring { width: 128px; height: 128px; flex-shrink: 0; position: relative; z-index: 1; }
.pp-ring circle { fill: none; stroke-width: 9; }
.pp-ring .bg { stroke: rgba(255,255,255,.22); }
.pp-ring .fg { stroke: #fff; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); }
.pp-ring .n { fill: #fff; font-size: 22px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.pp-ring .l { fill: rgba(255,255,255,.8); font-size: 9.5px; font-family: 'Outfit', sans-serif; }
.pp-frame.phone .pp-hero { flex-direction: column-reverse; align-items: flex-start; padding: 22px; gap: 14px; }
.pp-frame.phone .pp-hero h2 { font-size: 34px; }
.pp-frame.phone .pp-ring { width: 92px; height: 92px; }
.pp-frame.phone .pp-hero-cta .pp-btn { flex: 1; }

/* Appointment + balance */
.pp-appt { display: flex; gap: 16px; align-items: center; }
.pp-date { width: 64px; flex-shrink: 0; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--pp-line); background: #fff; }
.pp-date small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 0; color: #8a8578; }
.pp-date small:first-child { background: var(--honey); color: #fff; font-weight: 700; }
body[data-theme="gold"] .pp-date small:first-child { color: #17161B; }
.pp-date b { display: block; font-size: 26px; line-height: 1.1; font-weight: 700; color: var(--pp-ink); }
.pp-appt .pp-mute { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pp-who { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13.5px; color: #57534a; }
.pp-who.big { margin: 0 0 16px; } .pp-who.big b { display: block; font-size: 15px; color: var(--pp-ink); } .pp-who.big small { font-size: 12.5px; color: #8a8578; }
.pp-amt { font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: var(--pp-ink); line-height: 1.1; }
.pp-card .pp-btn.wide { margin-top: 16px; }
.pp-secure { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #8a8578; }
.pp-secure.center { justify-content: center; }
.pp-paid { text-align: left; }
.pp-okay { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #E3F6EE; color: #13915F; margin-bottom: 10px; }
.pp-okay .pi { width: 22px; height: 22px; }

/* Update + photos */
.pp-upd { display: flex; gap: 12px; align-items: flex-start; }
.pp-upd p { margin-top: 3px; font-size: 14.5px; color: #3b3832; line-height: 1.55; }
.pp-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); gap: 10px; margin-top: 16px; }
.pp-frame.phone .pp-photos { grid-template-columns: repeat(3, 1fr); }
.pp-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; border: 0; cursor: pointer; overflow: hidden; display: flex; align-items: flex-end; padding: 8px; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .25s; }
.pp-photo:hover { transform: scale(1.02); }
.pp-photo.p0 { background: linear-gradient(160deg, #c9c2b2 0%, #8f8676 60%, #6b6253 100%); }
.pp-photo.p1 { background: linear-gradient(160deg, #e2d2b0 0%, color-mix(in srgb, var(--honey) 60%, #b98a3c) 70%, #7a5a26 100%); }
.pp-photo.p2 { background: linear-gradient(160deg, #f4efe5 0%, #d9cfbd 55%, #a99c86 100%); }
.pp-photo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 30%, rgba(255,255,255,.35), transparent 70%), linear-gradient(transparent 55%, rgba(0,0,0,.25)); }
.pp-photo span { position: relative; }
.pp-photo.big { aspect-ratio: 16 / 10; width: 100%; cursor: default; font-size: 13px; padding: 14px; }
.pp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-gallery .pp-photo { cursor: default; }

/* Review */
.pp-stars { display: flex; gap: 6px; margin-bottom: 10px; }
.pp-stars button { border: 0; background: transparent; padding: 2px; cursor: pointer; color: #DAD4C6; transition: transform .15s, color .15s; }
.pp-stars button .pi { width: 30px; height: 30px; }
.pp-stars button:hover { transform: scale(1.12); }
.pp-stars button.on { color: #F2B01E; }
.pp-stars button.on .pi { fill: #F2B01E; }
.pp-review .pp-btn { margin-top: 12px; }
.pp-fix textarea, .pp-ta { width: 100%; border: 1px solid #E3DDCF; border-radius: 12px; padding: 12px 14px; font-size: 14px; resize: vertical; min-height: 0 !important; height: auto !important; font-family: inherit; }
.pp-fix .pp-btn { margin-top: 10px; }
.pp-thanks { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #E3F6EE; color: #0E7A52; font-size: 13.5px; font-weight: 600; }

/* Project timeline */
.pp-steps { list-style: none; display: grid; }
.pp-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.pp-steps li:last-child { padding-bottom: 0; }
.pp-steps li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--pp-line); }
.pp-steps li:last-child::before { display: none; }
.pp-steps li.done::before { background: var(--honey); }
.pp-steps .dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 2px solid var(--pp-line); background: #fff; color: #fff; position: relative; z-index: 1; }
.pp-steps .dot .pi { width: 15px; height: 15px; }
.pp-steps li.done .dot { background: var(--honey); border-color: var(--honey); }
body[data-theme="gold"] .pp-steps li.done .dot { color: #17161B; }
.pp-steps li.now .dot { border-color: var(--honey); }
.pp-steps li.now .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.pp-steps li.now .dot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--honey); opacity: .5; animation: ppPulse 1.8s ease-out infinite; }
@keyframes ppPulse { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.pp-steps b { display: block; font-size: 15px; color: var(--pp-ink); padding-top: 3px; }
.pp-steps li.next b { color: #8a8578; font-weight: 500; }
.pp-steps small { font-size: 12.5px; color: #8a8578; }
.pp-steps li.now small { color: var(--honey-deep); font-weight: 600; }
.pp-empty { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 6px; }
.pp-empty > .pi { width: 36px; height: 36px; color: var(--honey); margin-bottom: 6px; }
.pp-empty .pp-btn { margin-top: 12px; }

/* Payments */
.pp-row { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid #F3EFE7; }
.pp-row .grow { flex: 1; min-width: 0; } .pp-row .grow b { display: block; font-size: 14px; } .pp-row .grow small { font-size: 12.5px; color: #8a8578; }
.pp-row .amt { font-size: 15px; }
.pp-ricon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #FBF3DC; color: var(--honey-deep); flex-shrink: 0; }
.pp-ricon.paid { background: #E3F6EE; color: #13915F; } .pp-ricon.overdue { background: #FDECEA; color: #B4372A; }
.pp-frame.phone .pp-row { padding: 12px 16px; flex-wrap: wrap; } .pp-frame.phone .pp-row .grow { min-width: 120px; }
.pp-cardvis { position: relative; border-radius: 14px; padding: 18px; color: #fff; background: linear-gradient(135deg, #1d1c22 0%, #3a3742 100%); display: grid; gap: 4px; margin-bottom: 16px; overflow: hidden; }
.pp-cardvis::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--honey) 45%, transparent); }
.pp-cardvis span { font-weight: 800; letter-spacing: .08em; font-style: italic; font-size: 15px; }
.pp-cardvis b { font-size: 17px; letter-spacing: .12em; margin-top: 14px; } .pp-cardvis small { opacity: .7; font-size: 12px; }
.pp-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pp-toggle .sw { width: 42px; height: 24px; border-radius: 999px; background: #DAD4C6; position: relative; flex-shrink: 0; transition: background .2s; margin-top: 2px; }
.pp-toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.pp-toggle input:checked + .sw { background: var(--honey); }
.pp-toggle input:checked + .sw::after { transform: translateX(18px); }
.pp-toggle input:focus-visible + .sw { outline: 2px solid var(--honey); outline-offset: 2px; }
.pp-toggle b { display: block; font-size: 14px; } .pp-toggle small { font-size: 12.5px; color: #8a8578; }

/* Files */
.pp-upl { margin-left: auto; text-transform: none; letter-spacing: 0; cursor: pointer; }
.pp-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-file { display: grid; gap: 4px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--pp-line); background: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.pp-file:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0,0,0,.25); border-color: #ddd5c4; }
.pp-fthumb { height: 82px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; background: #F6F1E6; color: var(--honey-deep); }
.pp-file.img .pp-fthumb { background: linear-gradient(160deg, #e2d2b0, color-mix(in srgb, var(--honey) 55%, #a7834a)); color: #fff; }
.pp-fthumb .pi { width: 26px; height: 26px; }
.pp-file b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp-file small { font-size: 12px; color: #8a8578; }
.pp-frame.phone .pp-files { grid-template-columns: 1fr 1fr; }
.pp-docprev { background: #F3F0E8; border-radius: 14px; padding: 22px; display: grid; place-items: center; }
.pp-doc-page { width: 70%; aspect-ratio: 8.5 / 11; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.3); padding: 22px; display: grid; align-content: start; gap: 10px; }
.pp-doc-page b { font-size: 12px; margin-bottom: 6px; } .pp-doc-page i { height: 7px; border-radius: 4px; background: #ECE7DC; } .pp-doc-page i.s { width: 60%; }

/* Messages */
.pp-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pp-chat-hd { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pp-line); }
.pp-chat-hd b { display: block; font-size: 15px; } .pp-chat-hd small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8a8578; }
.pp-online { width: 8px; height: 8px; border-radius: 50%; background: #2FBF8F; box-shadow: 0 0 0 3px #E3F6EE; }
.pp-thread { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 280px; max-height: 420px; overflow-y: auto; background: linear-gradient(#fff, #FBFAF7); }
.pp-frame.phone .pp-thread { min-height: 320px; max-height: none; }
.pp-hello { margin: auto; text-align: center; }
.pp-b { max-width: 78%; animation: ppIn .3s ease both; }
.pp-b p { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.pp-b small { display: block; font-size: 11px; color: #a39d90; margin-top: 4px; padding: 0 6px; }
.pp-b.them { align-self: flex-start; } .pp-b.them p { background: #F1EEE6; color: var(--pp-ink); border-bottom-left-radius: 6px; }
.pp-b.me { align-self: flex-end; text-align: right; } .pp-b.me p { background: var(--honey); color: #fff; border-bottom-right-radius: 6px; text-align: left; }
body[data-theme="gold"] .pp-b.me p { color: #17161B; }
.pp-typing p { display: flex; gap: 4px; padding: 14px 16px; }
.pp-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a39d90; animation: ppDot 1.2s infinite; }
.pp-typing i:nth-child(2) { animation-delay: .15s; } .pp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ppDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.pp-quick { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.pp-quick button { flex-shrink: 0; border: 1px solid #E3DDCF; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; color: #3b3832; transition: border-color .2s, background .2s; }
.pp-quick button:hover { border-color: var(--honey); background: var(--honey-wash); }
.pp-compose { display: flex; gap: 10px; padding: 12px 16px 16px; }
.pp-compose input { flex: 1; height: 46px !important; min-height: 0 !important; border: 1px solid #E3DDCF; border-radius: 999px; padding: 0 18px !important; font-size: 14px; outline: 0; }
.pp-compose input:focus { border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-wash); }
.pp-send { width: 46px !important; height: 46px; min-height: 0 !important; border-radius: 50%; border: 0; background: var(--honey); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; padding: 0 !important; transition: transform .15s; }
.pp-send:active { transform: scale(.92); }
body[data-theme="gold"] .pp-send { color: #17161B; }

/* Modals (pay / book / files) */
.modal-card.pp-modal { max-width: 460px; border-radius: 22px; }
.pp-pay-amt { text-align: center; padding: 6px 0 18px; }
.pp-pay-amt small { font-size: 12.5px; color: #8a8578; } .pp-pay-amt b { display: block; font-size: 42px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; } .pp-pay-amt span { font-size: 13px; color: #8a8578; }
.pp-applepay { width: 100%; height: 50px; border: 0; border-radius: 14px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.pp-applepay:active { transform: scale(.98); }
.pp-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; color: #a39d90; }
.pp-or::before, .pp-or::after { content: ''; flex: 1; height: 1px; background: var(--pp-line, #ECE7DC); }
.pp-methods { display: grid; gap: 10px; margin-bottom: 16px; }
.pp-methods label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #ECE7DC; cursor: pointer; transition: border-color .2s, background .2s; }
.pp-methods label.on { border-color: var(--honey); background: var(--honey-wash); }
.pp-methods b { display: block; font-size: 14px; } .pp-methods small { font-size: 12px; color: #8a8578; }
.pp-cardmini { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #1d1c22, #3a3742); color: #fff; font-size: 9.5px; font-weight: 800; font-style: italic; display: grid; place-items: center; letter-spacing: .06em; flex-shrink: 0; }
.pp-cardmini.bank { background: #E9E5DB; color: #57534a; font-style: normal; }
.pp-processing { display: grid; justify-items: center; gap: 16px; padding: 46px 0; }
.pp-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--honey-wash); border-top-color: var(--honey); animation: ppSpin .8s linear infinite; }
@keyframes ppSpin { to { transform: rotate(360deg); } }
.pp-success { text-align: center; padding: 14px 0 4px; }
.pp-success h3 { font-size: 22px; margin: 14px 0 6px; } .pp-success p { color: #77716a; font-size: 14px; }
.pp-check { width: 72px; height: 72px; }
.pp-check circle { fill: #E3F6EE; stroke: #2FBF8F; stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: ppDraw .6s ease forwards; }
.pp-check path { fill: none; stroke: #13915F; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ppDraw .4s .45s ease forwards; }
@keyframes ppDraw { to { stroke-dashoffset: 0; } }
.pp-lbl { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a8578; font-weight: 600; margin: 4px 0 10px; }
.pp-sel { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #E3DDCF; padding: 0 12px; margin-bottom: 14px; background: #fff; }
.pp-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.pp-days button { border: 1.5px solid #ECE7DC; background: #fff; border-radius: 14px; padding: 8px 0; cursor: pointer; transition: all .2s; min-height: 0 !important; }
.pp-days small { display: block; font-size: 11px; color: #8a8578; } .pp-days b { font-size: 18px; }
.pp-days button.on { border-color: var(--honey); background: var(--honey); color: #fff; } .pp-days button.on small { color: rgba(255,255,255,.85); }
body[data-theme="gold"] .pp-days button.on { color: #17161B; } body[data-theme="gold"] .pp-days button.on small { color: rgba(23,22,27,.7); }
.pp-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.pp-times button { height: 42px; border: 1.5px solid #ECE7DC; background: #fff; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s; min-height: 0 !important; }
.pp-times button:hover:not(:disabled) { border-color: var(--honey); }
.pp-times button.on { background: var(--honey-wash); border-color: var(--honey); color: var(--honey-deep); }
.pp-times button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Real phones viewing the demo: the portal fills the screen */
@media (max-width: 700px) {
  .pp-tip { display: none; }
  .pp-toolbar label { flex: 1 1 100%; } .pp-toolbar select { flex: 1; min-width: 0; }
  .pp-frame.desktop, .pp-frame.phone { max-width: none; border-radius: 20px; border: 1px solid #E3DDCF; }
  .pp-chrome, .pp-frame.phone .pp-notch { display: none; }
  .pp-frame .pp-shell, .pp-frame.phone .pp-shell { height: auto; padding: 0; overflow: visible; min-height: 0; }
  .pp-frame { contain: none; }
  .pp-top { padding: 10px 12px 0; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
  .pp-tabs, .pp-frame.phone .pp-tabs { position: static !important; order: 3; flex: 1 1 100%; margin: 0 -12px !important; padding: 0 8px 8px !important; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; background: transparent !important; border: 0 !important; backdrop-filter: none !important; }
  .pp-tabs::-webkit-scrollbar { display: none; }
  .pp-tabs button, .pp-frame.phone .pp-tabs button { flex: 0 0 auto; flex-direction: row; gap: 6px; padding: 8px 12px; font-size: 13px; min-width: 0; }
  .pp-frame.phone .pp-tabs button.on, .pp-tabs button.on { background: var(--honey-wash) !important; }
  .pp-tabs .pi { width: 16px !important; height: 16px !important; }
  .pp-badge, .pp-frame.phone .pp-badge { top: 5px !important; right: 5px !important; }
  .pp-frame .pp-shell, .pp-frame.phone .pp-shell { padding-bottom: 8px; }
  .pp-view { padding: 14px; gap: 14px; }
  .pp-grid.two, .pp-grid.side { grid-template-columns: 1fr; gap: 14px; }
  .pp-hero { flex-direction: column-reverse; align-items: flex-start; padding: 22px; gap: 14px; }
  .pp-hero h2 { font-size: 34px; } .pp-ring { width: 92px; height: 92px; }
  .pp-hero-cta .pp-btn, .pp-actions .pp-btn { flex: 1; }
  .pp-files { grid-template-columns: 1fr 1fr; }
  .pp-row { padding: 12px 16px; flex-wrap: wrap; }
  .pp-days { grid-template-columns: repeat(3, 1fr); }
  .pp-seg { display: none; }
}

/* ============ Dynamic layer ============ */
/* View transitions: direction-aware + staggered children */
.pp-view { animation: none; }
.pp-view > * { animation: ppRise .55s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--si, 0) * 70ms); }
.pp-view.fwd > * { --dx: 18px; } .pp-view.back > * { --dx: -18px; }
@keyframes ppRise { from { opacity: 0; transform: translate(var(--dx, 0), 14px) scale(.985); } to { opacity: 1; transform: none; } }
.pp-skel { display: grid; gap: 16px; }
.pp-skel i, .pp-skel .row i { display: block; border-radius: 18px; background: linear-gradient(90deg, #EFEBE2 0%, #F8F6F1 40%, #EFEBE2 80%); background-size: 200% 100%; animation: ppShim 1s linear infinite; }
.pp-skel .h { height: 150px; } .pp-skel .b { height: 120px; }
.pp-skel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .pp-skel .row i { height: 130px; }
@keyframes ppShim { to { background-position: -200% 0; } }

/* Hero with photo, Ken Burns, glow */
.pp-hero.has-img { background: #17161B; min-height: 280px; isolation: isolate; }
.pp-hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center; z-index: -2; animation: ppKen 22s ease-in-out infinite alternate; }
@keyframes ppKen { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
.pp-hero.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--honey-deep) 92%, #000) 0%, color-mix(in srgb, var(--honey-deep) 70%, transparent) 45%, rgba(20,18,14,.15) 100%); }
.pp-hero.has-img::after { display: none; }
.pp-hero-glow { position: absolute; width: 420px; height: 420px; right: 8%; top: -40%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 55%, transparent), transparent); mix-blend-mode: screen; animation: ppFloat 9s ease-in-out infinite alternate; }
@keyframes ppFloat { from { transform: translate(0, 0); } to { transform: translate(-60px, 50px); } }
.pp-hero-in { position: relative; z-index: 1; }
.pp-hero.has-img .pp-ring { filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); background: rgba(255,255,255,.08); border-radius: 50%; backdrop-filter: blur(6px); }
.pp-live-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.pp-live-chip b { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; }
.pp-live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #5DF2B0; box-shadow: 0 0 0 0 rgba(93,242,176,.7); animation: ppBeat 1.6s infinite; }
@keyframes ppBeat { 0% { box-shadow: 0 0 0 0 rgba(93,242,176,.6); } 100% { box-shadow: 0 0 0 10px rgba(93,242,176,0); } }

/* Stats strip */
.pp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pp-stat { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--pp-line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; transition: transform .25s, box-shadow .25s; }
.pp-stat[data-tab] { cursor: pointer; }
.pp-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(23,22,27,.35); }
.pp-stat .ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--honey-wash); color: var(--honey-deep); }
.pp-stat b { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--pp-ink); font-variant-numeric: tabular-nums; }
.pp-stat small { font-size: 12px; color: #8a8578; }
.pp-stat .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #F1EDE4; }
.pp-stat .bar > i { display: block; height: 100%; width: 0; background: var(--honey); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.pp-stat .bar > i.go { width: var(--w); }
.pp-frame.phone .pp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-frame.phone .pp-stat { padding: 12px; } .pp-frame.phone .pp-stat .ico { width: 32px; height: 32px; } .pp-frame.phone .pp-stat b { font-size: 19px; }

/* Before / after */
.pp-ba { position: relative; aspect-ratio: 16 / 7; max-height: 400px; width: 100%; border-radius: 14px; overflow: hidden; user-select: none; background: #ddd; }
.pp-ba > img, .pp-ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.pp-ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.pp-ba-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: var(--pp-ink); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.pp-ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); pointer-events: none; }
.pp-ba-tag.l { left: 12px; } .pp-ba-tag.r { right: 12px; background: color-mix(in srgb, var(--honey) 85%, transparent); }
.pp-ba-range { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; opacity: 0; cursor: ew-resize; margin: 0; padding: 0 !important; -webkit-appearance: none; appearance: none; }

/* Photo strip + grid */
.pp-pstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pp-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pp-pthumb { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #eee; animation: ppRise .5s both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.pp-pthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pp-pthumb:hover img { transform: scale(1.08); }
.pp-pthumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transform: translateY(4px); transition: all .25s; }
.pp-pthumb:hover span { opacity: 1; transform: none; }
.pp-pthumb.pop { animation: ppPop .7s cubic-bezier(.2,1.4,.4,1) both; box-shadow: 0 0 0 3px var(--honey); }
@keyframes ppPop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
.pp-pmore { aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px dashed #DAD4C6; background: #FBF9F4; cursor: pointer; display: grid; place-content: center; text-align: center; color: #57534a; }
.pp-pmore b { font-size: 20px; } .pp-pmore span { font-size: 11.5px; color: #8a8578; }
.pp-frame.phone .pp-pstrip { grid-template-columns: repeat(3, 1fr); } .pp-frame.phone .pp-pstrip > :nth-child(n+3):not(.pp-pmore) { display: none; }
.pp-chip.new { background: var(--honey); color: #fff; animation: ppBeatGold 1.6s 3; }
body[data-theme="gold"] .pp-chip.new { color: #17161B; }
@keyframes ppBeatGold { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--honey) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.pp-flash { animation: ppCardFlash 2.2s ease; }
@keyframes ppCardFlash { 0% { box-shadow: 0 0 0 3px var(--honey), 0 20px 40px -20px var(--honey); } 100% { box-shadow: 0 1px 2px rgba(23,22,27,.03); } }

/* In-portal push notification */
.pp-push { position: sticky; top: 74px; z-index: 4; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100% - 32px)); margin: 12px auto -62px; padding: 10px 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.6); text-align: left; cursor: pointer;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); box-shadow: 0 24px 50px -20px rgba(23,22,27,.45); opacity: 0; transform: translateY(-20px) scale(.96); transition: all .45s cubic-bezier(.2,.9,.2,1.2); }
.pp-push.in { opacity: 1; transform: none; }
.pp-push b { display: block; font-size: 13.5px; color: var(--pp-ink); } .pp-push small { font-size: 11.5px; color: #8a8578; }
.pp-push > span:not(.dm-av) { flex: 1; min-width: 0; }
.pp-push img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.pp-frame.phone .pp-push { top: 60px; }

/* Project: animated rail + photo per completed step */
.pp-steps li { animation: ppRise .5s both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.pp-steps li.done::before { transform-origin: top; animation: ppRail .6s both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes ppRail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pp-steps .grow { flex: 1; min-width: 0; }
.pp-stepimg { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; flex-shrink: 0; }
.pp-stepimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pp-stepimg:hover img { transform: scale(1.1); }

/* Lightbox */
.pp-lb { position: fixed; inset: 0; z-index: 500; background: rgba(10,9,12,.9); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: opacity .22s; }
.pp-lb.open { opacity: 1; }
.pp-lb figure { max-width: min(1000px, 90vw); text-align: center; }
.pp-lb img { max-width: 100%; max-height: 74vh; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); opacity: 0; transform: translateX(var(--dx, 0)) scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.pp-lb img.in { opacity: 1; transform: none; }
.pp-lb figcaption { margin-top: 14px; color: #fff; } .pp-lb figcaption b { display: block; font-size: 15px; } .pp-lb figcaption span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.pp-lb-x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.pp-lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; transition: background .2s; }
.pp-lb-nav:hover, .pp-lb-x:hover { background: rgba(255,255,255,.22); }
.pp-lb-nav.prev { left: 24px; } .pp-lb-nav.next { right: 24px; }
.pp-lb-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.pp-lb-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; }
.pp-lb-dots i.on { width: 22px; background: #fff; }
@media (max-width: 700px) {
  .pp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-stat { padding: 12px; } .pp-stat b { font-size: 19px; }
  .pp-pstrip { grid-template-columns: repeat(3, 1fr); } .pp-pstrip > :nth-child(n+3):not(.pp-pmore) { display: none; }
  .pp-lb-nav { display: none; }
  .pp-hero.has-img { min-height: 0; }
  .pp-push { top: 70px; }
  .pp-ba { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .pp-hero-bg, .pp-hero-glow, .pp-view > *, .pp-pthumb, .pp-steps li { animation: none !important; } }
