.portal-body { min-height: 100vh; background: #f3f5ef; }
.btn-full { width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #c6e47b; }
.portal-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(246, 247, 242, .96); backdrop-filter: blur(14px); }
.portal-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-nav { display: flex; align-items: center; gap: 15px; font-size: .88rem; }
.portal-nav a:hover { color: #648237; }
.portal-nav a[aria-current="page"] { color: #4f702f; font-weight: 700; }
.portal-main { min-height: calc(100vh - 150px); }
.portal-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-align: center; }
.portal-footer a { text-decoration: underline; text-underline-offset: 3px; }

.auth-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: min(520px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 12px; font-size: clamp(2rem, 7vw, 3rem); }
.auth-card form { margin-top: 24px; }
.passwordless-note { display: grid; gap: 2px; margin-top: 20px; padding: 13px 15px; border: 1px solid #c7d8a6; border-radius: 12px; background: #f6faed; }
.passwordless-note strong { color: #385c2c; font-size: .82rem; }
.passwordless-note span { color: var(--muted); font-size: .73rem; }
.auth-alt { margin: 22px 0 0; color: var(--muted); font-size: .84rem; text-align: center; }
.auth-alt a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.centered { text-align: center; }
.result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #f7d9d9; color: #8b2929; font-size: 1.7rem; font-weight: 800; }
.form-message { min-height: 25px; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.form-message.error { color: var(--danger); }
.form-message.success { color: #34652d; }

.portal-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 55px 30px; }
.portal-hero h1, .request-heading h1 { margin-bottom: 6px; font-size: clamp(2rem, 5vw, 3.5rem); }
.portal-section { padding-bottom: 70px; }
.dashboard-offer-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; margin-bottom: 20px; padding: 18px 22px; border: 1px solid #bad17f; border-radius: 18px; background: linear-gradient(135deg, #f4f9e6, #fff); }
.dashboard-offer-strip > div { min-width: 125px; padding-inline-end: 22px; border-inline-end: 1px solid #d0ddb7; }
.dashboard-offer-strip span, .dashboard-offer-strip strong { display: block; }
.dashboard-offer-strip span { color: #607d38; font-size: .72rem; font-weight: 700; }
.dashboard-offer-strip strong { font-size: 1.45rem; line-height: 1.3; }
.dashboard-offer-strip p { margin: 0; color: #53635b; font-size: .8rem; }
.team-offer-strip { border-color: #aac4d6; background: linear-gradient(135deg, #edf5fa, #fff); }
.request-list { display: grid; gap: 12px; }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s, border-color .2s; }
.request-row:hover { transform: translateY(-2px); border-color: #8caa6c; }
.request-row h2 { margin: 3px 0; font-size: 1.15rem; }
.request-row p { margin: 0; color: var(--muted); font-size: .78rem; }
.reference { color: #65853f; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.status-pill { display: inline-flex; align-items: center; min-height: 31px; padding: 4px 11px; border-radius: 100px; background: #edf1e8; color: #53604c; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.status-received, .status-under_review { background: #e4eef8; color: #315b80; }
.status-awaiting_customer { background: #fff0ce; color: #7c5a0b; }
.status-in_progress, .status-preview_ready { background: #e7f2d7; color: #42672d; }
.status-approved, .status-launched { background: #d9f1df; color: #245f36; }
.status-cancelled { background: #f4dddd; color: #843b3b; }
.empty-panel { padding: 45px; border: 1px dashed #bec8b8; border-radius: 20px; color: var(--muted); text-align: center; }
.empty-panel h2 { color: var(--ink); }
.empty-panel.compact { margin-top: 12px; padding: 24px; }
.empty-panel.compact p { margin: 0; }
.team-chat-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.team-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 7px; }
.team-section-heading h2 { margin: 0; }
.team-section-heading .card-kicker { margin-bottom: 2px; }
.team-chat-list { display: grid; gap: 12px; margin-top: 18px; }
.chat-row h3 { margin: 3px 0; font-size: 1rem; }
.chat-row p { max-width: 740px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-meta { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.public-chat-review-card { max-width: 850px; margin-inline: auto; }
.public-chat-review-log { max-height: 620px; overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf6; }

.filter-bar { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 12px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.filter-bar .field { margin: 0; }
.request-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-block: 45px 25px; }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--muted); font-size: .82rem; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); align-items: start; gap: 20px; padding-bottom: 70px; }
.dashboard-main, .dashboard-side { display: grid; gap: 20px; }
.dashboard-side { position: sticky; top: 96px; }
.portal-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.portal-card h2 { margin-bottom: 8px; }
.card-kicker { margin-bottom: 7px; color: #68873e; font-size: .75rem; font-weight: 700; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.preview-summary { background: linear-gradient(135deg, #fff 0%, #f0f7e5 100%); }
.preview-editor-card { border-color: #bdd299; background: linear-gradient(145deg, #fff 0%, #f7faef 100%); }
.preview-version-badge { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 6px; padding: 4px 9px; border-radius: 100px; background: #e5f0d2; color: #3f622d; font-size: .72rem; vertical-align: middle; white-space: nowrap; }
.preview-editor-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dce6cc; }
.preview-editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.preview-locked-note { margin-top: 18px; padding: 14px 16px; border: 1px solid #e0cb8d; border-radius: 12px; background: #fff8df; color: #614d17; }
.preview-locked-note p { margin: 4px 0 0; font-size: .78rem; }
.portal-offer-card { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 24px; border-color: #bad17f; background: linear-gradient(135deg, #f5fae9, #fff); }
.portal-offer-card h2 { margin: 2px 0 5px; font-size: clamp(2rem, 5vw, 3rem); }
.portal-offer-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.portal-offer-card ul { align-self: center; margin: 0; padding: 0; list-style: none; color: #43544e; font-size: .8rem; }
.portal-offer-card li { margin-block: 7px; }
.portal-offer-card li::before { content: "✓"; margin-inline-end: 8px; color: #668e3d; font-weight: 800; }
.payment-card { border-color: #c9c2ee; background: linear-gradient(145deg, #fff 0%, #f8f6ff 100%); }
.payment-card.is-paid { border-color: #99c8a3; background: linear-gradient(145deg, #fff 0%, #f0f9f2 100%); }
.payment-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.payment-card-main p { max-width: 650px; margin: 0; color: var(--muted); font-size: .82rem; }
.payment-amount { min-width: 145px; padding: 13px 15px; border: 1px solid #d9d3f1; border-radius: 14px; background: #fff; text-align: center; }
.payment-amount strong, .payment-amount span { display: block; }
.payment-amount strong { color: #393267; font-size: 1.3rem; }
.payment-amount span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.payment-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid #e2def3; }
.payment-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border-radius: 999px; background: #eeeaf9; color: #544b86; font-size: .72rem; font-weight: 800; }
.payment-status-paid { background: #dff2e3; color: #28623a; }
.payment-status-failed, .payment-status-cancelled { background: #f7dddd; color: #883a3a; }
.payment-status-expired, .payment-status-refunded { background: #f8edcf; color: #775b16; }
.payment-checkout-button { min-width: 220px; }
.payment-note { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
.payment-note.success { color: #2d653d; }
.payment-note.warning { padding: 10px 12px; border-radius: 9px; background: #fff4d9; color: #765818; }
.payment-detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 20px 0 0; padding-top: 17px; border-top: 1px solid #e2def3; font-size: .78rem; }
.payment-detail-list dt { color: var(--muted); }
.payment-detail-list dd { margin: 0; overflow-wrap: anywhere; text-align: end; }
.payment-detail-list code { color: #4e4772; font-size: .7rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.readiness-card { border-color: #cbd9b8; background: linear-gradient(145deg, #fff 0%, #fafcf6 100%); }
.readiness-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; padding: 0; border: 0; }
.readiness-checks-two { grid-template-columns: repeat(2, 1fr); }
.readiness-option { display: flex; align-items: flex-start; gap: 9px; min-height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.readiness-option:has(input:checked) { border-color: #7fa154; background: #f0f7e8; }
.readiness-option input { width: 18px; height: 18px; margin-top: 4px; accent-color: #4f7738; flex: 0 0 auto; }
.readiness-option span, .readiness-option strong, .readiness-option small { display: block; }
.readiness-option strong { font-size: .8rem; }
.readiness-option small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.readiness-payment-readonly { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f7f4; }
.readiness-payment-readonly > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e6e7e2; color: #687466; font-size: .72rem; font-weight: 800; }
.readiness-payment-readonly strong, .readiness-payment-readonly small { display: block; }
.readiness-payment-readonly strong { font-size: .8rem; }
.readiness-payment-readonly small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.readiness-payment-readonly em { margin-inline-start: auto; padding: 3px 8px; border-radius: 999px; background: #eceaf5; color: #5c537f; font-size: .65rem; font-style: normal; font-weight: 700; }
.readiness-payment-readonly.is-complete { border-color: #9aba72; background: #f3f8ed; }
.readiness-payment-readonly.is-complete > span { background: #5f8a3e; color: #fff; }
.readiness-milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.readiness-milestones li { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.readiness-milestones li > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #edf0e9; color: #687466; font-size: .72rem; font-weight: 800; }
.readiness-milestones li.is-complete { border-color: #9aba72; background: #f3f8ed; }
.readiness-milestones li.is-complete > span { background: #5f8a3e; color: #fff; }
.readiness-milestones strong, .readiness-milestones small { display: block; }
.readiness-milestones strong { font-size: .78rem; }
.readiness-milestones small { margin-top: 2px; color: var(--muted); font-size: .67rem; }
.readiness-hint { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: #f1f4ec; color: #5f6d59; font-size: .78rem; }
.sla-deadline { display: grid; gap: 3px; margin: 16px 0; padding: 13px 15px; border: 1px solid #a9c67e; border-radius: 11px; background: #edf6e2; }
.sla-deadline span { color: #5c6b55; font-size: .72rem; }
.sla-deadline strong { color: #35552b; font-size: .86rem; }
.sla-deadline.is-overdue { border-color: #dcaaaa; background: #fff0f0; }
.sla-deadline.is-overdue strong { color: #8b3030; }
.demo-warning { padding: 10px 12px; border-radius: 9px; background: #fff7d9; color: #675018; font-size: .75rem; }
.detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .82rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; text-align: end; }
.brief-text { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: #43544e; font-size: .84rem; white-space: pre-line; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.portal-social-links { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.portal-social-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; background: #f4f7ef; color: #3f5d35; font-size: .76rem; font-weight: 700; }
.portal-social-links a:hover { background: #eaf1df; }
.portal-empty-note { margin: 14px 0 0; }
.domain-check-link { margin-top: 17px; }
.timeline { position: relative; margin: 0; padding: 0 20px 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 3px; width: 1px; background: #ccd5c7; }
.timeline li { position: relative; display: grid; gap: 1px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; top: 7px; right: -21px; width: 8px; height: 8px; border-radius: 50%; background: #789b48; box-shadow: 0 0 0 4px #edf3e8; }
.timeline time { color: var(--muted); font-size: .7rem; }
.message-list { display: grid; gap: 10px; margin: 18px 0; }
.message { max-width: 84%; padding: 13px 15px; border-radius: 15px 15px 5px 15px; background: #edf3e7; }
.message-staff { margin-inline-start: auto; border-radius: 15px 15px 15px 5px; background: #e8f0f6; }
.message-internal { max-width: 100%; border: 1px dashed #aa9659; background: #fff7dc; }
.message > div { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .68rem; }
.message p { margin: 5px 0 0; font-size: .84rem; white-space: pre-line; }
.message-form, .status-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.assistant-card { border-color: #b9cf91; background: linear-gradient(145deg, #fff 0%, #f6faee 100%); }
.assistant-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #e1f1d3; color: #3f6b31; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.assistant-status i { width: 7px; height: 7px; border-radius: 50%; background: #5c923f; }
.assistant-intro { margin: 7px 0 15px; color: var(--muted); font-size: .82rem; }
.assistant-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.assistant-quick-actions button { padding: 7px 11px; border: 1px solid #bed29d; border-radius: 999px; background: #fff; color: #426334; font-size: .72rem; }
.assistant-quick-actions button:hover { border-color: #73934b; background: #f0f6e6; }
.assistant-log { max-height: 520px; overflow-y: auto; padding: 14px; border: 1px solid #d7e2c8; border-radius: 16px; background: rgba(255,255,255,.8); }
.message-bot { margin-inline-start: auto; border: 1px solid #c5d8e6; border-radius: 15px 15px 15px 5px; background: #eef6fb; }
.message-bot > div strong { color: #315b70; }
.message-assistant-question { border-color: #cbd8bb; }
.assistant-form { margin-top: 14px; }
.assistant-form .field { margin-bottom: 10px; }
.assistant-form textarea { min-height: 86px; }
.assistant-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.assistant-form-actions > span { max-width: 330px; color: var(--muted); font-size: .67rem; }
.human-message { margin-top: 18px; border-top: 1px solid var(--line); }
.human-message summary { padding-top: 16px; color: #476534; font-size: .78rem; font-weight: 700; cursor: pointer; }
.human-message .message-form { margin-top: 12px; }
.message-assistant-review { max-width: 100%; border: 1px solid #b9cf91; background: #f8faF3; }
.assistant-review-reply { display: block !important; margin-top: 11px; padding: 11px 13px; border-radius: 10px; background: #eaf3f8; color: var(--ink) !important; }
.assistant-review-reply strong { color: #315b70; font-size: .72rem; }
.assistant-review-reply p { margin-top: 3px; }
.review-hint { display: block; margin-top: 8px; color: #7a692e; font-size: .68rem; }

.legal-card { max-width: 820px; margin: 55px auto; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.legal-card h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.legal-card h2 { margin-top: 30px; }
.legal-card p { color: #556760; }

.preview-page { --demo-accent: #d4ef91; --demo-ink: #173b35; min-height: 100vh; padding-bottom: 65px; background: #fbfcf8; color: var(--demo-ink); }
.theme-blue { --demo-accent: #bedcf2; --demo-ink: #183b56; }
.theme-sand { --demo-accent: #eed0b4; --demo-ink: #573b2e; }
.demo-banner { padding: 8px 20px; background: #fff2c9; color: #634b0a; font-size: .75rem; text-align: center; }
.preview-nav { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; font-size: .8rem; }
.preview-nav strong { font-size: 1.15rem; }
.preview-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; padding-block: 55px 75px; }
.preview-hero h1 { max-width: 650px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.35; }
.preview-hero p { max-width: 580px; color: #66766f; }
.preview-eyebrow { color: var(--demo-ink) !important; font-size: .78rem; font-weight: 700; }
.preview-button { display: inline-block; margin-top: 10px; padding: 10px 17px; border-radius: 10px; background: var(--demo-accent); font-weight: 700; }
.preview-art { position: relative; min-height: 360px; overflow: hidden; border-radius: 45% 45% 18px 18px; background: var(--demo-accent); }
.preview-art::before { content: ""; position: absolute; width: 230px; height: 230px; top: 30px; left: -40px; border-radius: 50%; background: rgba(255,255,255,.65); }
.preview-art::after { content: ""; position: absolute; width: 200px; height: 300px; right: 25px; bottom: -85px; border-radius: 100px 100px 0 0; background: var(--demo-ink); transform: rotate(-18deg); }
.preview-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-services article { padding: 22px; border: 1px solid #dfe6db; border-radius: 16px; background: #fff; }
.preview-services span { color: #83917d; font-size: .72rem; }
.preview-services h2 { margin: 13px 0 6px; font-size: 1rem; }
.preview-services p { margin: 0; color: #65756f; font-size: .76rem; }
.preview-contact { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--demo-ink); color: #fff; }
.preview-contact > div { display: grid; gap: 3px; }
.preview-contact strong { font-size: 1.05rem; }
.preview-contact span { color: rgba(255,255,255,.72); font-size: .74rem; }
.preview-contact nav { display: flex; flex-wrap: wrap; gap: 9px; }
.preview-contact a { padding: 9px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #fff; color: var(--demo-ink); font-size: .75rem; font-weight: 800; }
.preview-contact a:hover { transform: translateY(-2px); }
.preview-contact .preview-contact-whatsapp { border-color: #8ee7ad; background: #dff9e8; }
.portal-subheading { margin: 20px 0 9px; font-size: .88rem; }
.public-contact-links { display: grid; gap: 8px; margin-top: 12px; }
.public-contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid #a9c783; border-radius: 12px; background: #f3fae9; color: var(--ink); font-size: .8rem; font-weight: 800; }
.public-contact-links a:hover { border-color: #70994b; background: #eaf5da; transform: translateY(-1px); }
.public-contact-links a span:first-child { display: grid; gap: 2px; min-width: 0; }
.public-contact-links small { overflow-wrap: anywhere; color: var(--muted); font-size: .68rem; font-weight: 500; }
.owner-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.owner-contact-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid #c9d7c3; border-radius: 11px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 800; text-align: center; }
.owner-contact-actions a:hover { border-color: #769b54; background: #f4f9ee; transform: translateY(-1px); }
.owner-contact-actions .owner-contact-whatsapp { grid-column: 1 / -1; border-color: #8bd7a2; background: #e6f8ec; }
.preview-socials { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-block: 18px; border-block: 1px solid #dfe6db; }
.preview-socials > span { font-size: .78rem; font-weight: 700; }
.preview-socials div { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-socials a { padding: 6px 11px; border: 1px solid #dfe6db; border-radius: 999px; background: #fff; font-size: .72rem; }
.preview-socials a:hover { border-color: var(--demo-ink); }
.preview-cta-block { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 45px; padding: 30px; border-radius: 20px; background: var(--demo-accent); }
.preview-cta-block h2 { margin-bottom: 4px; }
.preview-cta-block p { margin: 0; }

@media (max-width: 800px) {
  .portal-hero, .request-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side { position: static; }
  .filter-bar { grid-template-columns: 1fr; }
  .preview-hero { grid-template-columns: 1fr; padding-block: 35px; }
  .preview-art { min-height: 260px; }
  .preview-services { grid-template-columns: 1fr 1fr; }
  .preview-cta-block { align-items: flex-start; flex-direction: column; }
  .preview-contact { align-items: flex-start; flex-direction: column; }
  .preview-socials { align-items: flex-start; flex-direction: column; }
  .preview-editor-card .card-heading { align-items: flex-start; flex-direction: column; }
  .portal-offer-card { grid-template-columns: 1fr; }
  .readiness-checks, .readiness-milestones { grid-template-columns: 1fr; }
  .payment-card-main, .payment-status-row { align-items: stretch; flex-direction: column; }
  .payment-amount { min-width: 0; text-align: start; }
}
@media (max-width: 520px) {
  .portal-header-inner { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
  .portal-nav { width: 100%; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .portal-nav:empty { display: none; }
  .portal-nav a { display: inline-flex; min-height: 40px; align-items: center; }
  .portal-nav .btn { min-height: 40px; }
  .auth-card, .portal-card, .legal-card { padding: 22px; }
  .request-row { align-items: flex-start; flex-direction: column; }
  .preview-services { grid-template-columns: 1fr; }
  .preview-nav span { display: none; }
  .message { max-width: 95%; }
  .assistant-form-actions { align-items: stretch; flex-direction: column; }
  .preview-editor-row { grid-template-columns: 1fr; gap: 0; }
  .dashboard-offer-strip { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-offer-strip > div { padding: 0 0 10px; border-inline-end: 0; border-bottom: 1px solid #d0ddb7; }
}

/* Client sign-in and business dashboard refresh */
.auth-card.client-auth-card { width: min(1000px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr); gap: 0; padding: 0; overflow: hidden; }
.client-auth-card .auth-card-main { padding: 42px; }
.auth-benefits { position: relative; padding: 42px 34px; overflow: hidden; background: linear-gradient(145deg, #173b35, #176456 58%, #38528b); color: #fff; }
.auth-benefits::after { content: ""; position: absolute; width: 230px; height: 230px; inset: auto -95px -110px auto; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-benefits-label { display: inline-flex; padding: 5px 10px; border: 1px solid rgba(201,242,106,.35); border-radius: 999px; background: rgba(201,242,106,.1); color: #dbff8e; font-size: .65rem; font-weight: 800; }
.auth-benefits h2 { margin: 18px 0 23px; color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); }
.auth-benefits ul { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { position: relative; padding-inline-start: 31px; }
.auth-benefits li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #c9f26a; color: #173b35; font-size: .65rem; font-weight: 900; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { font-size: .82rem; }
.auth-benefits small { margin-top: 2px; color: #c5d9d2; font-size: .67rem; }
.auth-home-link { position: relative; z-index: 1; display: inline-block; margin-top: 30px; color: #dfff91; font-size: .75rem; font-weight: 800; }

.client-dashboard-hero { padding-bottom: 25px; }
.client-dashboard-hero > div:first-child { max-width: 620px; }
.client-dashboard-hero .heading-actions { justify-content: flex-end; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.dashboard-stats article { position: relative; min-height: 130px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.dashboard-stats article::after { content: ""; position: absolute; width: 80px; height: 80px; inset: auto auto -35px -25px; border-radius: 50%; background: #e8f2d8; }
.dashboard-stats article:nth-child(2)::after { background: #fff0c8; }
.dashboard-stats article:nth-child(3)::after { background: #dff2ec; }
.dashboard-stats article:nth-child(4)::after { background: #e5ecfa; }
.dashboard-stats span, .dashboard-stats strong, .dashboard-stats small { display: block; }
.dashboard-stats span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.dashboard-stats strong { margin-top: 4px; font-size: 2rem; line-height: 1.25; }
.dashboard-stats small { color: #78867f; font-size: .63rem; }
.dashboard-stats .needs-attention { border-color: #dbbc68; background: #fffbef; }

.client-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); align-items: start; gap: 20px; }
.client-dashboard-main, .client-dashboard-side { display: grid; gap: 20px; }
.client-dashboard-side { position: sticky; top: 96px; }
.dashboard-focus-card { border-color: #9bbd7b; background: linear-gradient(145deg, #fff, #f0f7e7 56%, #edf7f6); box-shadow: 0 18px 42px rgba(37,98,77,.08); }
.dashboard-focus-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dashboard-focus-heading h2 { margin: 1px 0 2px; }
.project-progress { height: 9px; margin: 23px 0 15px; overflow: hidden; border-radius: 999px; background: #dde6d8; }
.project-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8abd55, #28b699, #609de0); }
.next-action { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #4c5f57; font-size: .8rem; }
.next-action span { color: #488c4a; font-weight: 900; }
.dashboard-focus-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dashboard-empty > span { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 16px; background: var(--accent); color: var(--ink); font-size: 1.5rem; }
.dashboard-empty .btn { margin-top: 12px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 14px; }
.dashboard-section-heading h2 { margin: 0; }
.dashboard-section-heading > span, .dashboard-section-heading > a { color: var(--muted); font-size: .72rem; font-weight: 700; }
.dashboard-section-heading > a { color: #487634; }
.dashboard-request-row h3 { margin: 3px 0; font-size: 1.05rem; }
.request-row-copy { min-width: 0; }
.request-row-status { min-width: 140px; display: grid; justify-items: end; gap: 9px; }
.mini-progress { width: 100%; height: 5px; overflow: hidden; border-radius: 99px; background: #e7ebe4; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #82ad50, #28aa91); }

.quick-actions-card h2 { font-size: 1.25rem; }
.quick-actions-card nav { display: grid; gap: 8px; margin-top: 17px; }
.quick-actions-card nav a { display: grid; grid-template-columns: 35px 1fr; gap: 1px 10px; padding: 11px; border: 1px solid #dbe3d7; border-radius: 13px; background: #fafcf8; transition: transform .2s, border-color .2s, background .2s; }
.quick-actions-card nav a:hover { border-color: #8cac6a; background: #f2f8e9; transform: translateX(-3px); }
.quick-actions-card nav a > span { grid-row: span 2; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #e5f2d3; color: #4f742d; font-weight: 900; }
.quick-actions-card nav strong, .quick-actions-card nav small { display: block; }
.quick-actions-card nav strong { font-size: .76rem; }
.quick-actions-card nav small { color: var(--muted); font-size: .62rem; }
.dashboard-offer-compact { grid-template-columns: 1fr; margin: 0; }
.dashboard-offer-compact > div { display: flex; align-items: center; justify-content: space-between; padding: 0 0 10px; border: 0; border-bottom: 1px solid #d0ddb7; }
.dashboard-services { margin-top: 50px; padding-top: 10px; border-top: 1px solid var(--line); }
.dashboard-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dashboard-service-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.dashboard-service-card.is-featured { border-color: #67a894; background: linear-gradient(145deg, #f6fbe9, #eef9f7); }
.dashboard-service-card > span, .dashboard-service-card > strong { display: block; }
.dashboard-service-card > span { color: #47795d; font-size: .7rem; font-weight: 900; direction: ltr; text-align: start; }
.dashboard-service-card > strong { margin-top: 8px; font-size: 1.5rem; }
.dashboard-service-card > strong small { color: var(--muted); font-size: .62rem; font-weight: 500; }
.dashboard-service-card p { margin: 4px 0 14px; color: var(--muted); font-size: .7rem; }
.dashboard-service-card a { color: #477634; font-size: .68rem; font-weight: 800; }

@media (max-width: 900px) {
  .auth-card.client-auth-card { grid-template-columns: 1fr; }
  .auth-benefits { padding: 32px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .client-dashboard-grid { grid-template-columns: 1fr; }
  .client-dashboard-side { position: static; grid-template-columns: 1fr 1fr; }
  .dashboard-service-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-service-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .client-auth-card .auth-card-main, .auth-benefits { padding: 25px 21px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stats article { min-height: 115px; padding: 16px; }
  .client-dashboard-side, .dashboard-service-grid { grid-template-columns: 1fr; }
  .dashboard-service-card:last-child { grid-column: auto; }
  .dashboard-focus-heading, .dashboard-section-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-section-heading { gap: 6px; }
  .dashboard-request-row { align-items: stretch; }
  .request-row-status { width: 100%; justify-items: start; }
  .client-dashboard-hero .heading-actions { width: 100%; justify-content: stretch; }
  .client-dashboard-hero .heading-actions .btn { flex: 1 1 100%; }
}
