:root {
    --orange: #ff4b00;
    --orange-dark: #d93f00;
    --orange-soft: #fff1ea;
    --brand-grad: linear-gradient(135deg, #ff6a2b 0%, #ff4b00 55%, #e23c00 100%);
    --ink-grad: linear-gradient(160deg, #131a2b 0%, #0b1120 100%);
    --black: #05070d;
    --ink: #111827;
    --ink-2: #0b1120;
    --muted: #667085;
    --muted-2: #8a94a6;
    --line: #e7eaf0;
    --line-soft: #eef1f6;
    --soft: #f6f8fb;
    --soft-2: #f1f4f9;
    --white: #ffffff;
    --green: #0e9f6e;
    --blue: #2563eb;
    --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.05);
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.16);
    --shadow-brand: 0 16px 34px rgba(255, 75, 0, 0.28);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --font: 'Inter', 'Sora', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
}

::selection {
    background: rgba(255, 75, 0, 0.18);
}

/* Icon system */
.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -0.18em;
    stroke-width: 1.8;
}

/* ===================== Public header ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(231, 234, 240, 0.7);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-stuck {
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--black);
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand .logo-mobile {
    display: none;
}

.brand.vertical,
.brand.center {
    justify-content: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #344054;
    font-weight: 650;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #3a4355;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a .ico {
    color: var(--muted-2);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--orange);
    background: var(--orange-soft);
}

.site-nav a:hover .ico {
    color: var(--orange);
    transform: translateY(-1px);
}

.nav-cta {
    background: var(--ink-2) !important;
    color: #fff !important;
    padding: 11px 18px !important;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--orange) !important;
    color: #fff !important;
}

.icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.icon-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav.open ~ .icon-button span:nth-child(1),
.icon-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.icon-button.is-open span:nth-child(2) {
    opacity: 0;
}

.icon-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 52px;
    align-items: center;
    padding: clamp(52px, 8vw, 92px) clamp(20px, 5vw, 72px);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(255, 75, 0, 0.16), rgba(255, 75, 0, 0) 68%);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0) 70%);
    z-index: 0;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero h1,
.page-hero h1,
.proposal-hero h1 {
    margin: 0;
    color: var(--black);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.03;
    max-width: 920px;
    font-weight: 900;
}

.hero h1 .grad,
.grad-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--orange);
}

.lead,
.page-hero p,
.proposal-hero p {
    font-size: 19px;
    color: #475467;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--orange);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 6px 12px;
    background: var(--orange-soft);
    border-radius: 999px;
}

.eyebrow .ico {
    width: 15px;
    height: 15px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-row .ico {
    color: var(--green);
}

/* ===================== Buttons ===================== */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 13px 24px;
    font-weight: 750;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.2s ease, color 0.2s ease;
}

.button .ico {
    width: 18px;
    height: 18px;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--brand-grad);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.button.primary:hover {
    box-shadow: 0 22px 42px rgba(255, 75, 0, 0.36);
}

.button.primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transform: skewX(-18deg);
    transition: left 0.6s ease;
}

.button.primary:hover::after {
    left: 130%;
}

.button.ghost {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.button.ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.button.inverted {
    background: var(--white);
    color: var(--orange);
    box-shadow: none;
}

.button.inverted:hover {
    background: #fff;
    color: var(--orange-dark);
}

.button.dark {
    background: var(--ink-2);
    color: #fff;
}

.button.dark:hover {
    background: #000;
}

.button.small {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 14px;
}

.button.full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ===================== Hero visual ===================== */
.hero-visual {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--soft);
    transform: perspective(1200px) rotateY(-4deg);
}

.hero-visual img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

/* ===================== Sections ===================== */
.section,
.page-hero,
.proposal-hero,
.quote-shell,
.checkout-grid {
    padding: clamp(56px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.section.alt {
    background:
        radial-gradient(900px 300px at 100% 0%, rgba(255, 75, 0, 0.05), transparent 70%),
        var(--soft);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2,
.split h2,
.info-panel h2,
.panel h2 {
    margin: 0;
    color: var(--black);
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.14;
    font-weight: 850;
}

.section-heading p {
    max-width: 660px;
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero.compact {
    padding-top: 70px;
    padding-bottom: 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.page-hero.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 38px;
    align-items: center;
}

.proposal-hero {
    background: var(--ink-grad);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.proposal-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 75, 0, 0.28), transparent 68%);
}

.proposal-hero h1,
.proposal-hero p {
    color: var(--white);
    position: relative;
}

.proposal-hero .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #ffd9c7;
}

/* ===================== Grids & cards ===================== */
.niche-grid,
.service-grid,
.project-grid,
.testimonial-grid,
.process-grid,
.metrics-grid,
.list-grid,
.dashboard-grid,
.shortcut-grid {
    display: grid;
    gap: 20px;
}

.niche-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid,
.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.niche-card,
.service-card,
.project-card,
.testimonial,
.process-step,
.info-panel,
.diagnosis-panel,
.form-panel,
.payment-box,
.panel,
.list-card,
.metric-card,
.auth-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.niche-card,
.service-card,
.testimonial,
.process-step,
.info-panel,
.diagnosis-panel,
.form-panel,
.payment-box,
.panel,
.list-card,
.metric-card {
    padding: 26px;
}

.niche-card,
.service-card,
.project-card,
.process-step {
    position: relative;
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.niche-card:hover,
.service-card:hover,
.project-card:hover,
.process-step:hover {
    border-color: rgba(255, 75, 0, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.niche-card {
    display: block;
}

.niche-card .card-arrow {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 750;
    font-size: 14px;
}

.mini-icon,
.service-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--white);
    background: var(--accent, var(--brand-grad));
    font-weight: 900;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px rgba(255, 75, 0, 0.22);
}

.mini-icon .ico,
.service-icon .ico {
    width: 26px;
    height: 26px;
}

.service-card h2,
.service-card h3,
.niche-card h3,
.project-card h3,
.process-step h3,
.list-card h2 {
    margin: 0 0 8px;
    color: var(--black);
    line-height: 1.22;
    font-weight: 800;
    font-size: 19px;
}

.service-card p,
.niche-card p,
.project-card p,
.process-step p,
.info-panel p,
.list-card p,
.muted {
    color: var(--muted);
}

.service-card > a:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 750;
}

.service-card > a:last-child .ico {
    transition: transform 0.2s ease;
}

.service-card:hover > a:last-child .ico {
    transform: translateX(4px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 32px;
    align-items: start;
}

.diagnosis-panel {
    border-left: 5px solid var(--orange);
    background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.diagnosis-panel h3 {
    font-size: 23px;
    line-height: 1.28;
    margin: 14px 0;
    font-weight: 800;
}

.diagnosis-panel.large h2 {
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 14px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge .ico {
    width: 14px;
    height: 14px;
}

.check-list,
.number-list {
    padding-left: 0;
    list-style: none;
    color: #344054;
}

.check-list li,
.number-list li {
    position: relative;
    margin: 11px 0;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--orange-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff4b00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7'/></svg>") center / 12px no-repeat;
}

.number-list {
    counter-reset: step;
}

.number-list li {
    counter-increment: step;
}

.number-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink-2);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #344054;
    background: #ffffff;
    font-size: 14px;
}

.tag-list span .ico {
    width: 14px;
    height: 14px;
    color: var(--orange);
}

.tag-list.loose {
    margin: 18px 0 26px;
}

/* ===================== Project mockups ===================== */
.project-card {
    overflow: hidden;
    padding: 0;
}

.project-body {
    padding: 22px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.mockup-combo {
    position: relative;
    min-height: 250px;
    padding: 22px;
    background: linear-gradient(135deg, #eef2f8, #e3e9f3);
}

.desktop-frame {
    border: 8px solid #0b1120;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    min-height: 170px;
    box-shadow: 0 18px 38px rgba(11, 17, 32, 0.22);
}

.browser-bar {
    height: 26px;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 9px;
    background: #1f2937;
}

.browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffb020;
}

.browser-bar span:first-child {
    background: #ff4b00;
}

.browser-bar span:last-child {
    background: #0e9f6e;
}

.screen-placeholder {
    min-height: 145px;
    padding: 26px;
    color: var(--white);
    background: linear-gradient(135deg, #0b1120 0%, #ff4b00 130%);
}

.screen-placeholder strong {
    display: block;
    font-size: 22px;
    line-height: 1.12;
}

.screen-placeholder span {
    display: inline-flex;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.mobile-frame {
    position: absolute;
    right: 20px;
    bottom: 14px;
    width: 88px;
    height: 152px;
    border: 7px solid #0b1120;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(11, 17, 32, 0.3);
}

.mobile-placeholder {
    height: 100%;
    padding: 18px 10px;
    background: #ffffff;
}

.mobile-placeholder span {
    display: block;
    height: 18px;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #e5e7eb;
}

.mobile-placeholder span:first-child {
    height: 42px;
    background: var(--brand-grad);
}

/* ===================== Process ===================== */
.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--ink-2);
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
    font-size: 15px;
}

/* ===================== Testimonials ===================== */
.testimonial {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    right: 22px;
    font-size: 80px;
    line-height: 1;
    color: rgba(255, 75, 0, 0.14);
    font-family: Georgia, serif;
}

.testimonial p {
    font-size: 18px;
    color: var(--ink);
}

.testimonial .stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.testimonial cite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-style: normal;
    font-weight: 750;
    margin-top: 8px;
}

/* ===================== CTA band ===================== */
.cta-band {
    position: relative;
    margin: 0 clamp(20px, 5vw, 72px) clamp(56px, 7vw, 86px);
    padding: clamp(36px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: var(--radius-lg);
    background: var(--ink-grad);
    color: var(--white);
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 75, 0, 0.34), transparent 68%);
}

.cta-band h2 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.16;
    position: relative;
    font-weight: 850;
}

.cta-band .action-row {
    margin-top: 0;
    position: relative;
}

/* ===================== Quote wizard ===================== */
.quote-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
    gap: 30px;
    align-items: start;
}

.quote-form,
.quote-preview {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.quote-form {
    padding: 30px;
}

.quote-preview {
    padding: 28px;
    position: sticky;
    top: 96px;
    background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.quote-preview h2 {
    margin: 14px 0 8px;
    font-size: 22px;
}

.quote-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.quote-progress span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
    transition: all 0.25s ease;
}

.quote-progress span.active {
    background: var(--brand-grad);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(255, 75, 0, 0.3);
}

.quote-step {
    display: none;
    border: 0;
    margin: 0;
    padding: 0;
    animation: fade-in 0.4s ease;
}

.quote-step.active {
    display: block;
}

.quote-step legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 850;
    color: var(--black);
    margin-bottom: 22px;
}

.quote-step legend .ico {
    width: 30px;
    height: 30px;
    color: var(--orange);
}

.option-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
}

.choice span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-weight: 700;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice span::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--line);
    flex: none;
    transition: all 0.2s ease;
}

.choice input[type="radio"] + span::before {
    border-radius: 50%;
}

.choice:hover span {
    border-color: rgba(255, 75, 0, 0.4);
}

.choice input:checked + span {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange-dark);
    box-shadow: 0 8px 18px rgba(255, 75, 0, 0.12);
}

.choice input:checked + span::before {
    background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7'/></svg>") center / 12px no-repeat;
    border-color: var(--orange);
}

label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    min-height: 48px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 75, 0, 0.12);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.full {
    grid-column: 1 / -1;
}

.quote-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

/* ===================== Checkout ===================== */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.9fr) minmax(240px, 0.45fr);
    gap: 20px;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    margin-bottom: 18px;
    color: var(--black);
    font-weight: 900;
    background:
        linear-gradient(90deg, #0b1120 10px, transparent 10px) 0 0 / 30px 30px,
        linear-gradient(#0b1120 10px, transparent 10px) 0 0 / 30px 30px,
        #ffffff;
    border: 10px solid #ffffff;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
    border-radius: 12px;
}

/* ===================== Timeline ===================== */
.timeline {
    display: grid;
    gap: 18px;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
}

.timeline-item > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
}

.timeline-item.done > span,
.timeline-item.active > span {
    background: var(--brand-grad);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(255, 75, 0, 0.28);
}

.timeline-item h2,
.timeline-item h3,
.timeline-item p {
    margin: 0 0 5px;
}

.timeline-item h3 {
    font-weight: 800;
}

.timeline-item time {
    color: var(--muted);
    font-size: 14px;
}

.sticky {
    position: sticky;
    top: 96px;
}

/* ===================== Flash ===================== */
.flash-wrap {
    padding: 14px clamp(20px, 5vw, 72px) 0;
}

.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    background: #f0fdf4;
    color: #14532d;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.flash::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230e9f6e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8.5 12 2.4 2.4 4.6-4.8'/></svg>") center / contain no-repeat;
}

.flash.error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

.flash.error::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 8v4.5'/><path d='M12 16h.01'/></svg>") center / contain no-repeat;
}

/* ===================== Footer ===================== */
.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    padding: clamp(40px, 5vw, 60px) clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line);
    background: var(--ink-grad);
    color: #cbd5e1;
}

.site-footer .brand {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer strong {
    color: #fff;
}

.site-footer p {
    color: #94a3b8;
    max-width: 620px;
}

.site-footer .foot-contacts {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.site-footer .foot-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #cbd5e1;
    font-weight: 600;
}

.site-footer .foot-contacts a:hover {
    color: var(--orange);
}

.site-footer .foot-contacts .ico {
    color: var(--orange);
}

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 650;
}

.site-footer nav a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.site-footer nav a:hover {
    color: #fff;
}

/* ===================== Auth & installer ===================== */
.auth-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(700px 360px at 0% 0%, rgba(255, 75, 0, 0.12), transparent 70%),
        radial-gradient(700px 360px at 100% 100%, rgba(37, 99, 235, 0.1), transparent 70%),
        var(--soft);
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-soft);
}

.auth-card .brand {
    margin-bottom: 6px;
}

.auth-card h1 {
    margin: 18px 0 6px;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 850;
}

.auth-card p {
    color: var(--muted);
}

.auth-card form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    color: var(--orange);
    font-weight: 800;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
    justify-content: center;
    width: 100%;
}

.installer {
    width: min(100%, 860px);
}

.requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.requirements span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 12px;
}

.requirements span::before {
    content: "";
    width: 14px;
    height: 14px;
}

.requirements .ok {
    color: #166534;
    background: #dcfce7;
}

.requirements .ok::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7'/></svg>") center / contain no-repeat;
}

.requirements .fail {
    color: #991b1b;
    background: #fee2e2;
}

.requirements .fail::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6 6 18'/></svg>") center / contain no-repeat;
}

/* ===================== App shell (admin & client) ===================== */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    background: var(--soft);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 18px;
    background: #ffffff;
    border-right: 1px solid var(--line);
    overflow-y: auto;
}

.app-sidebar.admin {
    background: var(--ink-grad);
    border-right: 0;
}

.app-sidebar .brand {
    padding: 4px 8px 0;
    gap: 12px;
}

.app-sidebar.admin .brand {
    color: #fff;
}

.app-sidebar .brand img {
    width: 40px;
    height: 40px;
}

.nav-label {
    display: block;
    margin: 22px 12px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: var(--muted-2);
}

.app-sidebar.admin .nav-label {
    color: rgba(255, 255, 255, 0.4);
}

.app-sidebar nav {
    display: grid;
    gap: 4px;
    margin-top: 20px;
}

.app-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-weight: 650;
    font-size: 14.5px;
    color: #475467;
    transition: all 0.18s ease;
}

.app-sidebar a .ico {
    width: 19px;
    height: 19px;
    color: var(--muted-2);
    transition: color 0.18s ease;
}

.app-sidebar.admin a {
    color: #cbd5e1;
}

.app-sidebar.admin a .ico {
    color: #8a94a6;
}

.app-sidebar nav a:hover {
    background: var(--orange-soft);
    color: var(--orange);
}

.app-sidebar.admin nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.app-sidebar nav a:hover .ico {
    color: var(--orange);
}

.app-sidebar.admin nav a:hover .ico {
    color: #fff;
}

.app-sidebar nav a.active {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 75, 0, 0.28);
}

.app-sidebar nav a.active .ico {
    color: #fff;
}

.app-sidebar a.logout {
    margin-top: 8px;
    color: #ef4444;
}

.app-sidebar.admin a.logout {
    color: #fda4a4;
}

.app-main {
    padding: 32px clamp(20px, 3vw, 38px);
}

.app-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.app-heading h1 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.12;
    font-weight: 850;
}

.app-heading p {
    color: var(--muted);
    margin-bottom: 0;
    margin-top: 6px;
}

.metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.metric-card .metric-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange);
    margin-bottom: 14px;
}

.metric-card span {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}

.metric-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.panel {
    padding: 26px;
}

.panel.wide {
    margin-bottom: 20px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.panel-heading h2 {
    font-size: 20px;
}

.panel-heading a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    font-weight: 750;
    font-size: 14px;
}

.copy-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
}

.copy-box.large {
    margin: 0;
}

.list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.mini-row:last-child {
    border-bottom: 0;
}

.mini-row.with-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mini-row strong {
    color: var(--ink);
    font-weight: 800;
}

.mini-row span {
    color: var(--muted);
    font-size: 14px;
}

.table-like {
    display: grid;
}

.shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shortcut-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-weight: 750;
    background: #ffffff;
    transition: all 0.2s ease;
}

.shortcut-grid a .ico {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.shortcut-grid a:hover {
    border-color: var(--orange);
    background: var(--orange-soft);
    transform: translateY(-2px);
}

.app-form {
    max-width: 760px;
}

.form-panel {
    display: grid;
    gap: 16px;
}

/* Logo upload preview */
.logo-uploader {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.logo-field {
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--soft);
}

.logo-field .preview {
    height: 70px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.logo-field .preview.dark {
    background: var(--ink-2);
    border-radius: 8px;
    padding: 8px 12px;
}

.logo-field .preview img {
    max-height: 54px;
    max-width: 100%;
    object-fit: contain;
}

.field-hint {
    color: var(--muted-2);
    font-size: 12.5px;
    font-weight: 500;
}

/* ===================== Animations ===================== */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
    .hero,
    .page-hero.project-hero,
    .quote-shell,
    .checkout-grid,
    .split,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .niche-grid,
    .service-grid,
    .project-grid,
    .process-grid,
    .metrics-grid,
    .list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-preview,
    .sticky {
        position: static;
    }

    .hero-visual {
        transform: none;
    }
}

@media (max-width: 880px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
    }

    .app-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-label {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 18px;
    }

    .icon-button {
        display: flex;
    }

    .brand .logo-desktop {
        display: none;
    }

    .brand .logo-mobile {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 12px;
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open {
        display: flex;
        animation: fade-in 0.25s ease;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 4px;
    }

    .hero,
    .section,
    .page-hero,
    .proposal-hero,
    .quote-shell,
    .checkout-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        min-height: auto;
        padding-top: 44px;
    }

    .lead,
    .page-hero p,
    .proposal-hero p {
        font-size: 17px;
    }

    .section-heading,
    .cta-band,
    .site-footer {
        display: grid;
        align-items: start;
    }

    .niche-grid,
    .service-grid,
    .project-grid,
    .testimonial-grid,
    .process-grid,
    .metrics-grid,
    .list-grid,
    .option-grid,
    .form-grid,
    .shortcut-grid,
    .logo-uploader {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: auto;
    }

    .cta-band {
        text-align: center;
        justify-items: center;
    }

    .app-main {
        padding: 20px 16px;
    }

    .app-heading {
        display: grid;
    }

    .copy-box,
    .quote-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .mobile-frame {
        width: 78px;
        height: 134px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Premium CRUD refinements — cPanel safe */
.brand { gap: 0 !important; }
.brand img { object-fit: contain; }
.site-header .brand span,
.site-footer .brand span,
.app-sidebar .brand span,
.auth-card .brand span { display: none !important; }
.button, button.button, .card-actions .button, .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    text-align: center;
}
.button.small { min-height: 38px; padding: 10px 14px; }
.button.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; box-shadow: none; }
.button.danger:hover { background: #fecaca; }
.card-actions { flex-wrap: wrap; gap: 10px; }
.card-actions form { display: inline-flex; margin: 0; }
.premium-row { align-items: center; gap: 18px; }
.row-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar-thumb, .avatar-fallback { width: 48px; height: 48px; border-radius: 16px; flex: 0 0 auto; }
.avatar-thumb { object-fit: cover; border: 1px solid var(--line); background: #fff; }
.avatar-thumb.square { border-radius: 12px; }
.avatar-thumb.landscape { width: 86px; border-radius: 14px; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; font-weight: 900; font-size: 20px; }
.premium-form { position: relative; overflow: hidden; }
.premium-form::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: var(--brand-grad); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.switch-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 20px; }
.switch-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; }
.profile-header-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #fff, #f8fafc); }
.profile-header-mini img, .profile-header-mini span { width: 58px; height: 58px; border-radius: 18px; }
.profile-header-mini img { object-fit: cover; }
.profile-header-mini span { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; font-size: 24px; font-weight: 900; }
.profile-header-mini strong { display: block; font-size: 18px; }
.profile-header-mini small { color: var(--muted); }
.quote-admin-list { gap: 18px; }
.quote-row { display: grid; gap: 18px; }
.quote-row-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.quote-steps { border-top: 1px solid var(--line); padding-top: 16px; }
.quote-steps h3 { font-size: 18px; margin-bottom: 12px; }
.step-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.step-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); background: #fff7ed; color: #7c2d12; border-radius: 999px; font-size: 13px; font-weight: 700; }
.step-pill form { margin: 0; display: inline-flex; }
.step-pill button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #ffedd5; color: #9a3412; cursor: pointer; font-weight: 900; }
.inline-step-form { display: grid; grid-template-columns: 1.1fr 1fr .8fr .85fr 1.4fr auto; gap: 10px; align-items: end; }
.inline-step-form input, .inline-step-form select { min-height: 42px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; font-weight: 700; background: #fff; }
.banner-showcase { padding-top: 0; }
.banner-strip { display: grid; gap: 20px; }
.banner-card { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; border-radius: 30px; padding: 28px; background: radial-gradient(circle at top left, var(--orange-soft), transparent 38%), linear-gradient(135deg, #fff, #f8fafc); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.banner-card h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.03; margin: 8px 0 12px; color: var(--ink-2); }
.banner-card p { color: var(--muted); max-width: 720px; }
.banner-card img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.banner-illustration { min-height: 220px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: var(--ink-grad); color: #fff; }
.wide-auth { max-width: 780px; }
@media (max-width: 980px) {
    .form-grid.two, .form-grid.three, .inline-step-form, .banner-card { grid-template-columns: 1fr; }
    .quote-row-head, .premium-row { align-items: stretch; flex-direction: column; }
    .row-main { align-items: flex-start; }
}

/* Ajustes V6 — logo legível, checkboxes compactos e ilustrações públicas */
.site-header .brand img {
    width: clamp(150px, 15vw, 210px) !important;
    height: 64px !important;
    object-fit: contain !important;
    object-position: left center !important;
}
.app-sidebar .brand img {
    width: 178px !important;
    height: 70px !important;
    object-fit: contain !important;
    object-position: left center !important;
}
.site-footer .brand img,
.auth-card .brand img {
    width: 190px !important;
    height: 72px !important;
    object-fit: contain !important;
    object-position: left center !important;
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    height: 18px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    accent-color: var(--orange);
    box-shadow: none !important;
    flex: 0 0 auto;
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    line-height: 1.2;
    max-width: 100%;
}
.choice:has(input[type="checkbox"]),
.choice:has(input[type="radio"]) { display: block; }
.choice:has(input[type="checkbox"]) label,
.choice:has(input[type="radio"]) label { display: block; }
.choice input[type="checkbox"],
.choice input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}
.form-section-title {
    margin: 26px 0 8px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--black);
}
.compact-note { padding: 18px; margin-top: 8px; }
.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.visual-card {
    position: relative;
    min-height: 260px;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    background: radial-gradient(circle at 15% 0%, rgba(255, 75, 0, .12), transparent 42%), #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.visual-card h3 { margin: 18px 0 8px; font-size: 21px; line-height: 1.18; color: var(--black); }
.visual-card p { color: var(--muted); margin: 0; }
.visual-card .visual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.visual-illustration {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 150px;
    height: 150px;
    border-radius: 34px;
    background: var(--ink-grad);
    color: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    transform: rotate(-8deg);
}
.visual-illustration::before,
.visual-illustration::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}
.visual-illustration::before { width: 80px; height: 14px; top: 32px; left: 26px; }
.visual-illustration::after { width: 58px; height: 58px; right: 18px; bottom: 22px; }
.page-visual-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
    align-items: center;
    gap: 34px;
}
.device-hero-art {
    position: relative;
    min-height: 340px;
    border-radius: 34px;
    padding: 24px;
    background: radial-gradient(circle at 90% 5%, rgba(255, 75, 0, .22), transparent 38%), var(--ink-grad);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.device-hero-art .screen {
    width: 72%;
    min-height: 210px;
    border-radius: 24px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
}
.device-hero-art .screen span,
.device-hero-art .phone span {
    display: block;
    height: 13px;
    border-radius: 999px;
    background: #e5e7eb;
    margin: 12px 0;
}
.device-hero-art .screen strong {
    display: block;
    height: 46px;
    border-radius: 16px;
    background: var(--brand-grad);
    margin-bottom: 18px;
}
.device-hero-art .phone {
    position: absolute;
    right: 34px;
    bottom: 30px;
    width: 118px;
    min-height: 210px;
    border: 10px solid #05070d;
    border-radius: 30px;
    background: #fff;
    padding: 20px 12px;
    box-shadow: 0 24px 46px rgba(0,0,0,.35);
}
.device-hero-art .phone strong {
    display: block;
    height: 62px;
    border-radius: 18px;
    background: var(--brand-grad);
    margin-bottom: 14px;
}
@media (max-width: 980px) {
    .visual-grid,
    .page-visual-band { grid-template-columns: 1fr; }
    .site-header .brand img { width: 145px !important; height: 58px !important; }
    .app-sidebar .brand img { width: 160px !important; height: 62px !important; }
}
.choice:has(input[type="checkbox"]),
.choice:has(input[type="radio"]) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
    border-radius: 0 !important;
}

/* Ajustes V7 — ilustrações suaves, rodapé social, WhatsApp flutuante e toggles estáveis */
.visual-card {
    isolation: isolate;
    padding-bottom: 34px;
}
.visual-card h3,
.visual-card p,
.visual-card .visual-icon {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 88px);
}
.visual-illustration {
    right: 10px;
    bottom: 10px;
    width: 118px;
    height: 118px;
    border-radius: 28px;
    opacity: .94;
    background: linear-gradient(160deg, rgba(11, 17, 32, .96), rgba(11, 17, 32, .76));
    color: rgba(255,255,255,.78);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}
.visual-illustration .ico {
    width: 36px;
    height: 36px;
}
.visual-illustration::before { width: 52px; height: 10px; top: 24px; left: 18px; background: rgba(255,255,255,.12); }
.visual-illustration::after { width: 42px; height: 42px; right: 14px; bottom: 16px; background: rgba(255,255,255,.10); }
.toggle-row-wrap {
    display: grid;
    gap: 8px;
}
.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.toggle-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 16px !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    font-weight: 800;
    color: var(--ink);
}
.toggle-chip span { line-height: 1.2; }
.site-footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.site-footer .social-links a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.18);
}
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    color: #0b1120;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    border: 1px solid rgba(37, 211, 102, .28);
}
.whatsapp-float span { font-weight: 800; font-size: 14px; }
.whatsapp-float:hover { transform: translateY(-1px); }
.checkout-grid .payment-box:only-child {
    max-width: 100%;
}
@media (max-width: 980px) {
    .visual-card h3,
    .visual-card p,
    .visual-card .visual-icon { max-width: 100%; }
    .visual-card { min-height: 236px; }
    .visual-illustration {
        width: 98px;
        height: 98px;
        opacity: .88;
    }
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 11px 14px;
    }
    .whatsapp-float span { display: none; }
}

/* Ajustes V8 — seção Método mais premium e com copy personalizada */
.process-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.process-step-premium {
    min-height: 100%;
    padding: 28px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 75, 0, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(17, 24, 39, 0.06);
    overflow: hidden;
}
.process-step-premium::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-grad);
    opacity: .92;
}
.process-step-premium .step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.process-step-premium .step-meta span {
    margin-bottom: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--ink-grad);
    box-shadow: 0 12px 22px rgba(11, 17, 32, 0.14);
}
.process-step-premium .step-meta small {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.process-step-premium h3 {
    font-size: 24px;
    line-height: 1.16;
    margin-bottom: 12px;
}
.process-step-premium p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}
.process-step-premium .step-highlight {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 800;
}
@media (max-width: 1180px) {
    .process-grid-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .process-grid-premium {
        grid-template-columns: 1fr;
    }
    .process-step-premium h3 {
        font-size: 22px;
    }
}

/* Ajustes V10 — mockup real de desktop e mobile com molduras recortadas */
.mockup-combo-real {
    position: relative;
    min-height: 400px;
    padding: 14px 12px 8px;
    background: linear-gradient(180deg, #f3f6fb 0%, #e8edf5 100%);
    border-radius: 26px;
    overflow: hidden;
}
.desktop-device,
.mobile-device {
    position: relative;
}
.desktop-device {
    width: min(100%, 520px);
    margin: 0 auto;
    filter: drop-shadow(0 20px 36px rgba(11, 17, 32, 0.16));
}
.desktop-frame-art,
.mobile-frame-art {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}
.desktop-screen {
    position: absolute;
    left: 13.08%;
    top: 4.79%;
    width: 72.75%;
    height: 68.21%;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}
.desktop-screen > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.mobile-device {
    position: absolute;
    right: 26px;
    bottom: 14px;
    width: 160px;
    z-index: 4;
    filter: drop-shadow(0 18px 30px rgba(11, 17, 32, 0.24));
}
.mobile-screen {
    position: absolute;
    left: 3.21%;
    top: 1.64%;
    width: 93.12%;
    height: 96.72%;
    z-index: 1;
    overflow: hidden;
    border-radius: 42px;
    background: #ffffff;
}
.mobile-screen > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    background: #fff;
}
.desktop-screen .screen-placeholder {
    min-height: 100%;
    height: 100%;
    padding: 22px;
}
.mobile-screen .mobile-placeholder {
    height: 100%;
    padding: 22px 14px;
}
@media (max-width: 1200px) {
    .mockup-combo-real {
        min-height: 360px;
    }
    .desktop-device {
        width: min(100%, 470px);
    }
    .mobile-device {
        width: 162px;
        right: 10px;
        bottom: 8px;
    }
    .mobile-screen {
        border-radius: 36px;
    }
}
@media (max-width: 720px) {
    .mockup-combo-real {
        min-height: 300px;
        padding-top: 10px;
    }
    .desktop-device {
        width: min(100%, 360px);
    }
    .mobile-device {
        width: 124px;
        right: 6px;
        bottom: 6px;
    }
    .desktop-screen {
        border-radius: 6px;
    }
    .mobile-screen {
        border-radius: 28px;
    }
}


/* Ajustes V15 — formulário de cobranças organizado e recorrência condicional */
.billing-form-pro {
    display: grid;
    gap: 24px;
}

.billing-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.billing-mode-card {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.billing-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-mode-card .mode-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--ink-grad);
    color: #fff;
    box-shadow: 0 12px 24px rgba(11, 17, 32, 0.16);
}

.billing-mode-card strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
}

.billing-mode-card small {
    color: var(--muted);
    font-weight: 650;
    line-height: 1.45;
}

.billing-mode-card.active,
.billing-mode-card:has(input:checked) {
    border-color: rgba(255, 75, 0, .5);
    box-shadow: 0 18px 40px rgba(255, 75, 0, .14);
    transform: translateY(-2px);
}

.billing-mode-card.active .mode-icon,
.billing-mode-card:has(input:checked) .mode-icon {
    background: var(--brand-grad);
}

.billing-form-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: #fff;
}

.section-mini-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.section-mini-heading > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.section-mini-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.18;
}

.section-mini-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.info-card-soft {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 75, 0, .09), rgba(11, 17, 32, .04));
    border: 1px dashed rgba(255, 75, 0, .32);
}

.info-card-soft strong {
    display: block;
    color: var(--ink);
    margin-bottom: 6px;
}

.info-card-soft p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.billing-form-pro [data-recurring-fields][hidden],
.billing-form-pro [data-single-fields][hidden] {
    display: none !important;
}

.form-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
    .form-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .billing-mode-options,
    .form-grid.four {
        grid-template-columns: 1fr;
    }

    .billing-form-section {
        padding: 16px;
        border-radius: 18px;
    }
}

/* Ajuste V16 — botão copiar PIX no checkout */
.pix-copy-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}
.pix-copy-box label {
    margin: 0;
    font-weight: 800;
    color: var(--ink);
}
.pix-copy-box textarea {
    min-height: 118px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
    background: #f8fafc;
}
.pix-copy-button {
    justify-content: center;
}
.pix-copy-button.is-copied {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 14px 28px rgba(5, 150, 105, .22);
}

/* Ajustes V21 — gestão dinâmica de cotação, proposta, cobrança e aprovação */
.quote-flow-admin { overflow: visible; }
.quote-flow-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 22px;
}
.quote-flow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.quote-flow-header strong { display: block; font-size: 18px; color: var(--ink); }
.quote-flow-header span { color: var(--muted); }
.quote-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.quote-flow-box {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.quote-flow-box h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.compact-form { gap: 12px; }
.compact-form label { gap: 6px; }
.compact-form textarea { min-height: 96px; }
.quote-action-stack { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quote-action-stack form { margin: 0; }
.quote-flow-current {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: var(--orange-soft);
    color: var(--ink);
}
.quote-flow-current span { color: var(--muted); font-size: 14px; line-height: 1.5; }
button:disabled,
.button:disabled {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.35);
}
@media (max-width: 1180px) {
    .quote-flow-grid { grid-template-columns: 1fr; }
    .quote-flow-header { flex-direction: column; }
}

/* Ajustes V22 — cotações, painel do cliente e mobile real admin/cliente */
.app-mobile-topbar,
.app-backdrop {
    display: none;
}
.button.warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}
.notice.danger {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
    padding: 12px 14px;
    border-radius: 18px;
    margin: 12px 0 18px;
    font-weight: 800;
}
.quote-client-list,
.quote-admin-list {
    display: grid;
    gap: 22px;
}
.quote-client-card,
.quote-flow-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    padding: clamp(18px, 2.4vw, 28px);
    box-shadow: var(--shadow-sm);
}
.quote-client-card header,
.quote-flow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}
.quote-client-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
}
.quote-client-grid,
.quote-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.quote-client-grid {
    grid-template-columns: 1.2fr .8fr;
}
.quote-flow-box {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}
.quote-flow-box h3,
.quote-steps h3 {
    margin-top: 0;
}
.quote-action-stack {
    display: grid;
    gap: 10px;
}
.quote-action-stack form,
.card-actions form {
    margin: 0;
}
.quote-flow-current {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--soft);
    display: grid;
    gap: 8px;
}
.quote-steps.compact {
    margin-top: 18px;
}
.soft-row {
    background: var(--soft);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
}
@media (max-width: 1180px) {
    .quote-flow-grid,
    .quote-client-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .layout-admin .app-shell,
    .layout-client .app-shell {
        display: block;
        min-height: 100vh;
        padding-top: 76px;
    }
    .app-mobile-topbar {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        padding: 12px 16px;
        background: rgba(255,255,255,.96);
        border-bottom: 1px solid var(--line-soft);
        box-shadow: 0 12px 28px rgba(15,23,42,.08);
        backdrop-filter: blur(16px);
    }
    .app-mobile-topbar.admin {
        background: rgba(11,17,32,.96);
    }
    .app-mobile-topbar .brand img {
        width: 150px !important;
        height: 48px !important;
        object-fit: contain;
    }
    .app-menu-toggle {
        display: inline-flex !important;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
    }
    .app-mobile-topbar.admin .app-menu-toggle {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.16);
    }
    .app-mobile-topbar.admin .app-menu-toggle span {
        background: #fff;
    }
    .layout-admin .app-sidebar,
    .layout-client .app-sidebar {
        position: fixed;
        z-index: 130;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(86vw, 330px);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .24s ease;
        box-shadow: 28px 0 60px rgba(15,23,42,.20);
    }
    .layout-admin .app-sidebar.open,
    .layout-client .app-sidebar.open {
        transform: translateX(0);
    }
    .app-backdrop {
        position: fixed;
        inset: 0;
        z-index: 125;
        background: rgba(15,23,42,.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        display: block;
    }
    .app-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }
    body.app-menu-open {
        overflow: hidden;
    }
    .layout-admin .app-sidebar nav,
    .layout-client .app-sidebar nav {
        grid-template-columns: 1fr !important;
    }
    .app-main {
        padding: 18px 14px 28px !important;
    }
    .app-heading {
        display: grid !important;
        gap: 14px;
    }
    .app-heading .button,
    .app-heading .card-actions,
    .quote-flow-header .card-actions {
        width: 100%;
    }
    .quote-flow-header .card-actions,
    .card-actions {
        display: flex;
        flex-wrap: wrap;
    }
    .quote-flow-header .card-actions .button,
    .quote-flow-header .card-actions form,
    .quote-flow-header .card-actions form button {
        flex: 1 1 150px;
    }
    .form-grid,
    .form-grid.two,
    .inline-step-form {
        grid-template-columns: 1fr !important;
    }
    .quote-flow-card,
    .quote-client-card,
    .panel,
    .form-panel {
        border-radius: 20px;
        padding: 16px;
    }
    .table-like,
    .mini-row,
    .premium-row {
        overflow-x: auto;
    }
}

/* Ajustes V23 — refinamento visual da gestão de cotações */
.quote-flow-card-refined {
    gap: 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.quote-flow-header-refined {
    align-items: flex-start;
    gap: 20px;
}
.quote-flow-maininfo {
    display: grid;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.quote-flow-title-row {
    display: grid;
    gap: 10px;
}
.quote-flow-title-row strong {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
}
.quote-meta-chips,
.quote-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.quote-contact-line span::before {
    content: "•";
    margin-right: 10px;
    color: var(--line);
}
.quote-contact-line span:first-child::before {
    display: none;
}
.quote-card-actions-refined {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.quote-card-actions-refined .button,
.quote-card-actions-refined form {
    margin: 0;
}
.soft-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink-2);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}
.soft-chip.status.neutral { background: #eef2ff; color: #3730a3; }
.soft-chip.status.success { background: #ecfdf5; color: #047857; }
.soft-chip.status.danger { background: #fff1f2; color: #be123c; }
.quote-status-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.quote-status-mini {
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: #fff;
    display: grid;
    gap: 8px;
}
.quote-status-mini small {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.quote-status-mini strong {
    font-size: 18px;
    line-height: 1.1;
    color: var(--ink);
}
.quote-status-mini span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.quote-flow-grid-refined {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.98fr) minmax(0, 0.84fr);
    align-items: start;
}
.quote-flow-box-refined {
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.quote-box-heading {
    display: grid;
    gap: 8px;
}
.quote-box-heading h3 {
    margin: 0;
    font-size: 22px;
}
.quote-box-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.quote-form-refined {
    display: grid;
    gap: 14px;
}
.quote-form-refined label small {
    color: var(--muted);
    font-weight: 700;
}
.quote-inline-grid {
    gap: 12px;
}
.quote-form-refined input,
.quote-form-refined select,
.quote-form-refined textarea,
.inline-step-form-refined input,
.inline-step-form-refined select {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    box-shadow: none;
}
.quote-form-refined textarea {
    min-height: 130px;
}
.quote-box-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}
.quote-current-highlight,
.quote-current-status,
.quote-current-empty {
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #fff8f1 0%, #fff 100%);
}
.quote-current-empty {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.quote-flow-current small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.quote-flow-current strong {
    color: var(--ink);
    font-size: 16px;
}
.quote-current-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quote-action-stack-refined {
    gap: 12px;
}
.quote-action-stack-refined .button {
    width: 100%;
    justify-content: center;
}
.button.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    color: #fff;
}
.quote-steps-refined {
    border-top: 1px solid var(--line-soft);
    padding-top: 20px;
    display: grid;
    gap: 16px;
}
.inline-step-form-refined {
    grid-template-columns: 1.15fr .9fr .75fr .9fr 1.25fr auto;
    gap: 12px;
}
.inline-step-form-refined .button {
    min-height: 42px;
}
@media (max-width: 1320px) {
    .quote-status-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .quote-flow-grid-refined {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .quote-card-actions-refined {
        justify-content: stretch;
        width: 100%;
    }
    .quote-card-actions-refined .button,
    .quote-card-actions-refined form,
    .quote-card-actions-refined form button {
        width: 100%;
    }
}
@media (max-width: 720px) {
    .quote-status-overview {
        grid-template-columns: 1fr;
    }
    .quote-flow-card-refined,
    .quote-flow-box-refined,
    .quote-status-mini {
        border-radius: 22px;
    }
    .quote-flow-title-row strong {
        font-size: 22px;
    }
}

/* Ajustes V24 — cotações em lista e página individual */
.quotes-list-page {
    display: grid;
    gap: 20px;
}
.quote-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}
.quote-list-header strong {
    font-size: 18px;
    color: var(--ink);
}
.quote-list-header span {
    color: var(--muted);
}
.quote-simple-list {
    display: grid;
    gap: 16px;
}
.quote-simple-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.quote-simple-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.quote-simple-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.quote-simple-title strong {
    font-size: 18px;
    color: var(--ink);
}
.quote-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.quote-info-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}
.quote-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #fbfcff;
    min-width: 0;
}
.quote-info-list li span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.quote-info-list li span small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}
.quote-info-list li strong {
    color: var(--ink);
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}
.quote-simple-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.quote-detail-shell {
    display: grid;
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.quote-detail-sidebar,
.quote-detail-content {
    min-width: 0;
}
.quote-detail-content {
    display: grid;
    gap: 20px;
}
.quote-detail-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 2.5vw, 28px);
    display: grid;
    gap: 18px;
}
.sticky-card {
    position: sticky;
    top: 22px;
}
.quote-detail-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}
.quote-side-actions {
    display: grid;
    gap: 10px;
}
.quote-side-actions form,
.quote-side-actions button,
.quote-side-actions .button {
    width: 100%;
    justify-content: center;
}
.quote-section-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}
.quote-section-title > span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ink-grad);
    color: #fff;
    font-weight: 900;
}
.quote-section-title h2 {
    margin: 0 0 6px;
}
.quote-section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.quote-detail-form {
    display: grid;
    gap: 14px;
}
.quote-detail-form textarea {
    min-height: 130px;
}
.quote-list-block {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}
.quote-list-block h3 {
    margin: 0;
    font-size: 18px;
}
.billings-list li,
.status-list li {
    align-items: flex-start;
}
.billings-list .button,
.status-list .button {
    flex: 0 0 auto;
}
.quote-action-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.quote-action-list form,
.quote-action-list button {
    width: 100%;
}
.quote-action-list .button {
    justify-content: center;
    min-height: 48px;
}
.quote-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.quote-timeline-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: #fbfcff;
}
.quote-timeline-list strong {
    display: block;
    color: var(--ink);
}
.quote-timeline-list span,
.quote-timeline-list p {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
}
.quote-timeline-list form { margin: 0; }
.quote-timeline-list button {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: #fff1f2;
    color: #be123c;
    font-weight: 900;
    cursor: pointer;
}
@media (max-width: 1180px) {
    .quote-detail-shell {
        grid-template-columns: 1fr;
    }
    .sticky-card {
        position: static;
    }
    .quote-info-list.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .quote-action-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 780px) {
    .quote-list-header,
    .quote-simple-card {
        grid-template-columns: 1fr;
    }
    .quote-simple-actions,
    .quote-simple-actions .button {
        width: 100%;
        justify-content: center;
    }
    .quote-info-list.compact {
        grid-template-columns: 1fr;
    }
    .quote-info-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-info-list li strong {
        text-align: left;
    }
    .quote-detail-heading .card-actions,
    .quote-detail-heading .card-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Ajustes V26 — contrato visível e ações de assinatura */
.quote-contract-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.quote-info-list li .quote-contract-actions .button {
    margin-top: 0;
}
@media (max-width: 720px) {
    .quote-contract-actions,
    .quote-contract-actions .button {
        width: 100%;
    }
}

/* Ajustes V27 — popup de edição de contrato e PDF organizado */
.contract-editor-modal {
    width: min(980px, calc(100vw - 32px));
    border: 0;
    border-radius: 28px;
    padding: 0;
    background: transparent;
}
.contract-editor-modal::backdrop {
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(8px);
}
.contract-editor-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
    padding: clamp(18px, 3vw, 30px);
    display: grid;
    gap: 20px;
}
.contract-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.contract-editor-head h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
}
.contract-editor-head p:last-child {
    margin: 0;
    color: var(--muted);
}
.contract-editor-head .icon-button {
    width: 44px;
    height: 44px;
    font-size: 24px;
    font-weight: 900;
}
.contract-editor-form {
    display: grid;
    gap: 14px;
}
.contract-editor-form textarea {
    min-height: 130px;
}
.contract-editor-form small {
    color: var(--muted);
    font-weight: 700;
}
.contract-editor-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}
@media (max-width: 720px) {
    .contract-editor-card {
        border-radius: 22px;
        max-height: 92vh;
        overflow: auto;
    }
    .contract-editor-head,
    .contract-editor-actions {
        display: grid;
    }
    .contract-editor-actions .button {
        width: 100%;
    }
}

/* Ajustes V28 — administração de contatos do formulário público */
.contact-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.contact-stats-grid article {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 8px;
}
.contact-stats-grid small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}
.contact-stats-grid strong {
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
}
.contact-admin-panel {
    display: grid;
    gap: 18px;
}
.contact-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, .45fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: var(--soft);
}
.contact-filter-bar label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    color: var(--ink-2);
}
.contact-message-list {
    display: grid;
    gap: 14px;
}
.contact-message-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.contact-message-card.status-nova {
    border-color: rgba(255, 75, 0, .26);
    background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}
.contact-message-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.contact-message-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.contact-message-title strong {
    font-size: 18px;
    color: var(--ink);
}
.contact-message-title span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.contact-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.contact-message-meta span:not(:first-child)::before {
    content: "•";
    color: var(--line);
    margin-right: 12px;
}
.contact-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.contact-message-actions form {
    margin: 0;
}
.contact-show-grid {
    display: grid;
    grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}
.contact-show-card {
    display: grid;
    gap: 16px;
}
.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}
.detail-list div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: var(--soft);
}
.detail-list dt {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.detail-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    word-break: break-word;
}
.contact-full-message {
    min-height: 240px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line-soft);
    color: var(--ink-2);
    line-height: 1.75;
    white-space: normal;
}
.danger-zone {
    border-color: #fecaca;
    background: #fff1f2;
}
.pagination-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    color: var(--muted);
    font-weight: 800;
}
@media (max-width: 1100px) {
    .contact-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-filter-bar,
    .contact-message-card,
    .contact-show-grid {
        grid-template-columns: 1fr;
    }
    .contact-message-actions {
        justify-content: stretch;
    }
    .contact-message-actions .button,
    .contact-message-actions form,
    .contact-message-actions form button {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .contact-stats-grid {
        grid-template-columns: 1fr;
    }
}
