:root {
    --ink: #172018;
    --ink-soft: #263229;
    --forest: #294536;
    --moss: #65765f;
    --sage: #aebba4;
    --jute: #c8aa78;
    --jute-deep: #9a7544;
    --cream: #f5f1e8;
    --paper: #fcfaf5;
    --white: #ffffff;
    --muted: #6d746d;
    --line: rgba(23, 32, 24, 0.12);
    --line-light: rgba(255, 255, 255, 0.58);
    --shadow-sm: 0 12px 32px rgba(30, 40, 31, 0.08);
    --shadow-md: 0 24px 64px rgba(30, 40, 31, 0.12);
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 34px;
    --shell: min(1180px, calc(100% - 40px));
    --sans: "Manrope", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 4%, rgba(200, 170, 120, 0.19), transparent 27rem),
        radial-gradient(circle at 95% 12%, rgba(101, 118, 95, 0.16), transparent 30rem),
        var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(154, 117, 68, 0.34);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1,
h2 {
    font-weight: 650;
}

h1 em,
h2 em {
    color: var(--forest);
    font-family: var(--serif);
    font-weight: 400;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    color: var(--white);
    background: var(--ink);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell {
    width: var(--shell);
    margin-inline: auto;
}

.section-block {
    padding-block: 104px;
}

.content-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 780px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--jute-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.muted,
.form-note {
    color: var(--muted);
}

.glass-card {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .glass-card {
        background: rgba(255, 255, 255, 0.58);
        -webkit-backdrop-filter: blur(12px) saturate(1.08);
        backdrop-filter: blur(12px) saturate(1.08);
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(23, 32, 24, 0.08);
    background: rgba(245, 241, 232, 0.9);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .site-header {
        background: rgba(245, 241, 232, 0.76);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--shell);
    min-height: 78px;
    margin-inline: auto;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 40px;
    overflow: hidden;
    color: var(--paper);
    background: var(--ink);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.22em;
}

.brand-mark span:first-child {
    transform: translateX(-1px) skewX(-10deg);
}

.brand-mark span:last-child {
    transform: translateX(2px) skewX(-10deg);
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links {
    margin-inline: auto;
}

.nav-links a,
.portal-link {
    position: relative;
    padding: 10px 12px;
    color: #536057;
    font-size: 14px;
    font-weight: 680;
}

.nav-links a::after,
.portal-link::after {
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 1px;
    content: "";
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.portal-link:hover::after,
.portal-link.active::after {
    transform: scaleX(1);
}

.nav-links a.active,
.portal-link.active {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons and links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 780;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-dark,
.btn.primary {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 12px 26px rgba(23, 32, 24, 0.16);
}

.btn-dark:hover,
.btn.primary:hover {
    background: var(--forest);
    border-color: var(--forest);
}

.btn-light {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
}

.btn-outline,
.btn.ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
}

.btn-outline:hover,
.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.7);
}

.btn-small {
    min-height: 42px;
    padding-inline: 16px;
}

.btn-full,
.btn.full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 780;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(3px);
}

/* Flash */
.flash {
    position: fixed;
    top: 94px;
    right: 24px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: min(440px, calc(100% - 48px));
    padding: 14px 16px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.flash-warning {
    background: #8c682e;
}

.flash-error {
    background: #873f37;
}

.flash button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

/* Home hero */
.hero {
    padding-block: 38px 74px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
    min-height: 690px;
    gap: 24px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    margin-right: -76px;
    padding: 64px;
    border-radius: var(--radius-lg);
}

.hero-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(58px, 6.2vw, 92px);
}

.hero-copy h1 em {
    white-space: nowrap;
}

.hero-lead {
    max-width: 590px;
    margin-bottom: 0;
    color: #59645c;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-facts span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.hero-facts strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 20px;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-image-frame {
    height: 100%;
    min-height: 690px;
    overflow: hidden;
    border-radius: 38px 38px 38px 140px;
    box-shadow: var(--shadow-md);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-note {
    position: absolute;
    right: 28px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 15px 18px;
    border-radius: 16px;
}

.note-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: #6f8f59;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(111, 143, 89, 0.16);
}

.floating-note strong,
.floating-note small {
    display: block;
}

.floating-note strong {
    font-size: 13px;
}

.floating-note small {
    color: var(--muted);
    font-size: 11px;
}

/* Sections */
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-heading h2,
.story-copy h2,
.usage-inner h2,
.process-cta h2,
.custom-brand-card h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(38px, 4.6vw, 64px);
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    min-width: 0;
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    background: #ded4c1;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.product-card-image:hover img {
    transform: scale(1.025);
}

.product-card-image span,
.size-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    color: var(--ink);
    background: rgba(252, 250, 245, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-copy {
    padding: 20px 5px 0;
}

.product-card-copy h3 {
    margin-bottom: 8px;
    font-size: 23px;
}

.product-card-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.story-band {
    padding-block: 105px;
    color: var(--paper);
    background: var(--ink);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 86px;
}

.story-images {
    position: relative;
    min-height: 620px;
}

.story-image-main {
    width: 82%;
    height: 560px;
    object-fit: cover;
    border-radius: 34px 34px 120px 34px;
}

.story-image-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 12px solid var(--ink);
    border-radius: 50%;
}

.story-copy .eyebrow,
.usage-inner .eyebrow {
    color: var(--jute);
}

.story-copy h2 {
    color: var(--paper);
}

.story-copy p {
    max-width: 540px;
    color: rgba(252, 250, 245, 0.68);
    font-size: 18px;
}

.clean-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.clean-list li {
    padding: 9px 13px;
    color: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-preview {
    padding-bottom: 112px;
}

.route-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.route-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius);
}

.route-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 16px;
    font-size: 25px;
}

.route-preview span,
.route-price small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-preview h3 {
    margin: 2px 0 4px;
    font-size: 25px;
}

.route-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.route-price {
    text-align: right;
}

.route-price small,
.route-price strong {
    display: block;
}

.route-price strong {
    font-size: 32px;
    line-height: 1.1;
}

.usage-strip {
    padding-block: 68px;
    color: var(--paper);
    background: var(--forest);
}

.usage-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.usage-inner h2 {
    max-width: 850px;
    color: var(--paper);
    font-size: clamp(32px, 4.4vw, 58px);
}

/* Page intros */
.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    min-height: 480px;
    gap: 56px;
    padding-block: 76px 62px;
}

.page-intro-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 6.4vw, 90px);
}

.page-intro-copy > p:last-child {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
}

.page-intro-meta {
    display: grid;
    gap: 7px;
    padding: 34px;
    border-radius: var(--radius);
}

.page-intro-meta span,
.page-intro-meta small {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro-meta strong {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
}

.page-intro-image,
.pricing-intro-image,
.contact-visual {
    overflow: hidden;
    height: 390px;
    border-radius: 120px 24px 24px 24px;
    box-shadow: var(--shadow-md);
}

.page-intro-image img,
.pricing-intro-image img,
.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product details */
.product-list {
    display: grid;
    gap: 110px;
    padding-block: 50px 110px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 56px;
}

.product-detail-reverse .product-detail-media {
    order: 2;
}

.product-detail-media {
    position: relative;
    min-height: 590px;
}

.product-main-image {
    width: 88%;
    height: 560px;
    object-fit: cover;
    border-radius: 28px 28px 100px 28px;
    box-shadow: var(--shadow-md);
}

.product-detail-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 39%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 9px solid var(--cream);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.product-detail-copy {
    position: relative;
    padding: 46px;
    border-radius: var(--radius-lg);
}

.product-detail-copy .size-pill {
    top: 22px;
    right: 22px;
    left: auto;
}

.product-detail-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4vw, 54px);
}

.product-detail-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.spec-list {
    display: grid;
    gap: 0;
    margin: 28px 0;
}

.spec-list div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 18px;
    padding-block: 13px;
    border-bottom: 1px solid var(--line);
}

.spec-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
    text-transform: uppercase;
}

.spec-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 660;
}

.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.custom-brand-card {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 46px;
    margin-bottom: 110px;
    padding: 52px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.custom-brand-card p:last-child {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--muted);
}

.custom-brand-card img {
    width: 260px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

/* Process */
.process-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding-block: 30px 90px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.process-step {
    min-height: 250px;
    padding: 36px;
    background: var(--paper);
}

.process-step > span {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--jute-deep);
    font-family: var(--serif);
    font-size: 28px;
}

.process-step h2 {
    margin-bottom: 12px;
    font-size: 29px;
}

.process-step p {
    max-width: 460px;
    margin-bottom: 0;
    color: var(--muted);
}

.process-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 110px;
    padding: 50px;
    border-radius: var(--radius-lg);
}

/* Pricing */
.pricing-intro-image {
    border-radius: 24px 120px 24px 24px;
}

.pricing-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding-block: 34px 110px;
}

.price-calculator {
    position: sticky;
    top: 104px;
    padding: 30px;
    border-radius: var(--radius);
}

.price-calculator h2,
.smart-form h2,
.table-panel h2,
.matrix-panel h2,
.admin-calculator h2,
.quote-checklist h2 {
    margin-bottom: 24px;
    font-size: 32px;
}

.calculator-fields {
    display: grid;
    gap: 4px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 760;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    background: rgba(252, 250, 245, 0.9);
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    background: var(--white);
    border-color: var(--jute-deep);
    box-shadow: 0 0 0 4px rgba(154, 117, 68, 0.11);
}

.estimate-box,
output {
    display: grid;
    gap: 4px;
    min-height: 118px;
    margin: 8px 0 14px;
    padding: 20px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 16px;
}

.estimate-box strong {
    font-size: 32px;
    line-height: 1;
}

.estimate-box span,
.estimate-box small {
    color: rgba(252, 250, 245, 0.68);
    font-size: 12px;
}

.form-note {
    margin-bottom: 20px;
    font-size: 11px;
    line-height: 1.55;
}

.pricing-tables {
    display: grid;
    gap: 22px;
}

.pricing-card {
    padding: 34px;
    background: rgba(252, 250, 245, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pricing-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pricing-card-head h2 {
    margin-bottom: 0;
    font-size: 34px;
}

.route-moq {
    padding: 8px 12px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 13px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-price-table th:not(:first-child),
.public-price-table td:not(:first-child) {
    text-align: right;
}

.public-price-table thead span {
    font-size: 9px;
    font-weight: 600;
}

.public-price-table tbody th {
    color: var(--ink);
    font-size: 13px;
}

.public-price-table td {
    font-size: 19px;
    font-weight: 800;
}

/* Contact */
.contact-visual {
    border-radius: 24px 24px 120px 24px;
}

.enquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
    gap: 56px;
    padding-block: 42px 110px;
}

.enquiry-form,
.smart-form,
.table-panel,
.matrix-panel,
.admin-calculator,
.admin-tabs,
.dashboard-side {
    padding: 34px;
    background: rgba(252, 250, 245, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-heading {
    margin-bottom: 28px;
}

.form-heading h2 {
    margin-bottom: 0;
    font-size: 36px;
}

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

.quote-checklist {
    padding-top: 12px;
}

.quote-checklist ol {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.quote-checklist li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}

.quote-checklist li > span {
    color: var(--jute-deep);
    font-family: var(--serif);
    font-size: 22px;
}

.quote-checklist strong,
.quote-checklist small {
    display: block;
}

.quote-checklist small {
    margin-top: 3px;
    color: var(--muted);
}

.checklist-note {
    display: grid;
    gap: 4px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
}

.checklist-note span {
    color: var(--muted);
    font-size: 13px;
}

/* Portals and admin */
.portal-heading {
    padding-block: 76px 36px;
}

.portal-heading h1 {
    margin-bottom: 14px;
    font-size: clamp(50px, 6vw, 76px);
}

.portal-heading > p:last-child {
    color: var(--muted);
}

.portal-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-block: 35px 110px;
}

.portal-auth.single {
    grid-template-columns: minmax(0, 500px);
    justify-content: center;
}

.dashboard-grid,
.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding-block: 35px 110px;
}

.dashboard-side,
.admin-tabs {
    position: sticky;
    top: 104px;
}

.dashboard-side {
    text-align: center;
}

.avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 28px;
}

.dashboard-side h2 {
    margin-bottom: 5px;
}

.dashboard-side p {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 6px 10px;
    color: #31533a;
    background: #dcebdc;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-main,
.admin-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

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

.panel-title h2 {
    margin-bottom: 0;
}

.panel-title > span {
    color: var(--muted);
    font-size: 12px;
}

.admin-tabs {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.admin-tabs a {
    padding: 11px 13px;
    color: var(--muted);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 720;
}

.admin-tabs a:hover,
.admin-tabs a.active {
    color: var(--paper);
    background: var(--forest);
}

.admin-tabs form {
    margin-top: 12px;
}

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

.metric-grid article {
    padding: 24px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 18px;
}

.metric-grid strong,
.metric-grid span {
    display: block;
}

.metric-grid strong {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;
}

.metric-grid span {
    color: rgba(252, 250, 245, 0.68);
    font-size: 12px;
}

.pricing-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.admin-calculator {
    position: sticky;
    top: 104px;
}

.matrix-scroll {
    overflow-x: auto;
}

.price-matrix input,
.price-matrix select {
    min-width: 112px;
}

.new-tier-row {
    background: rgba(200, 170, 120, 0.11);
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form select {
    min-width: 120px;
}

.mini-link {
    min-height: 34px;
    padding: 0 10px;
    color: var(--ink);
    background: rgba(200, 170, 120, 0.2);
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 780;
    cursor: pointer;
}

.color-swatch {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--swatch);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
}

/* Footer */
.site-footer {
    color: var(--paper);
    background: #111711;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    width: var(--shell);
    margin-inline: auto;
    gap: 80px;
    padding-block: 68px;
}

.brand-light .brand-mark {
    color: var(--ink);
    background: var(--jute);
}

.brand-light .brand-copy small {
    color: rgba(252, 250, 245, 0.55);
}

.footer-brand p {
    max-width: 430px;
    margin: 20px 0 0;
    color: rgba(252, 250, 245, 0.56);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    gap: 48px;
}

.footer-nav div {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-nav strong {
    margin-bottom: 8px;
    color: var(--jute);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-nav a {
    color: rgba(252, 250, 245, 0.66);
    font-size: 13px;
}

.footer-nav a:hover {
    color: var(--paper);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: var(--shell);
    margin-inline: auto;
    padding-block: 18px;
    color: rgba(252, 250, 245, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 11px;
}

/* Lightweight entrance motion */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 460ms ease, transform 460ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: all content stays usable when JavaScript is unavailable. */
.no-js .nav-toggle {
    display: none;
}

@media (max-width: 1040px) {
    .no-js .header-inner {
        flex-wrap: wrap;
    }

    .no-js .site-nav {
        position: static;
        display: flex;
        flex: 1 0 100%;
        margin-top: 12px;
        padding: 12px 0 0;
        border-top: 1px solid var(--line);
        background: transparent;
        box-shadow: none;
    }
}

/* Responsive */
@media (max-width: 1040px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        position: fixed;
        top: 78px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 18px;
        background: rgba(252, 250, 245, 0.98);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow-md);
    }

    .site-nav.open {
        display: grid;
    }

    .nav-links,
    .nav-actions {
        display: grid;
        gap: 4px;
    }

    .nav-links {
        margin: 0;
    }

    .nav-actions {
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .nav-links a,
    .portal-link {
        padding: 12px;
    }

    .nav-links a::after,
    .portal-link::after {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        margin: 0 5% -90px;
        padding: 52px;
    }

    .hero-visual {
        padding-top: 0;
    }

    .hero-image-frame {
        min-height: 620px;
        border-radius: 38px 38px 38px 110px;
    }

    .story-grid,
    .product-detail,
    .page-intro,
    .enquiry-layout {
        grid-template-columns: 1fr;
    }

    .story-grid {
        gap: 55px;
    }

    .story-images {
        max-width: 720px;
    }

    .page-intro {
        gap: 32px;
    }

    .page-intro-meta {
        max-width: 480px;
    }

    .page-intro-image,
    .pricing-intro-image,
    .contact-visual {
        height: 520px;
    }

    .product-detail-reverse .product-detail-media {
        order: 0;
    }

    .product-detail-copy {
        margin-top: -90px;
        margin-inline: 5%;
    }

    .pricing-layout,
    .dashboard-grid,
    .admin-shell,
    .pricing-admin-grid {
        grid-template-columns: 1fr;
    }

    .price-calculator,
    .dashboard-side,
    .admin-tabs,
    .admin-calculator {
        position: static;
    }

    .dashboard-side {
        text-align: left;
    }

    .avatar {
        margin-inline: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 70px;
    }

    .site-nav {
        top: 70px;
        right: 14px;
        left: 14px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-copy {
        margin: 0 0 -58px;
        padding: 36px 26px;
        border-radius: 26px;
    }

    .hero-copy h1 {
        font-size: clamp(47px, 14vw, 66px);
    }

    .hero-copy h1 em {
        white-space: normal;
    }

    .hero-facts {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 34px;
    }

    .hero-facts span {
        display: grid;
        grid-template-columns: 62px 1fr;
        align-items: center;
    }

    .hero-facts strong {
        margin: 0;
    }

    .hero-image-frame {
        min-height: 500px;
        border-radius: 28px 28px 28px 76px;
    }

    .floating-note {
        right: 16px;
        bottom: 16px;
        min-width: 0;
    }

    .section-block,
    .story-band {
        padding-block: 76px;
    }

    .section-heading,
    .usage-inner,
    .process-cta,
    .pricing-card-head,
    .panel-title,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card-grid,
    .route-preview-grid,
    .process-list,
    .portal-auth,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .story-images {
        min-height: 480px;
    }

    .story-image-main {
        width: 88%;
        height: 430px;
    }

    .route-preview {
        grid-template-columns: auto 1fr;
    }

    .route-price {
        grid-column: 2;
        text-align: left;
    }

    .page-intro {
        min-height: 0;
        padding-block: 58px 36px;
    }

    .page-intro-copy h1,
    .portal-heading h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .page-intro-image,
    .pricing-intro-image,
    .contact-visual {
        height: 420px;
        border-radius: 70px 20px 20px 20px;
    }

    .product-list {
        gap: 82px;
        padding-bottom: 82px;
    }

    .product-detail-media {
        min-height: 460px;
    }

    .product-main-image {
        width: 90%;
        height: 430px;
    }

    .product-detail-copy {
        margin: -62px 0 0;
        padding: 34px 24px;
        border-radius: 24px;
    }

    .custom-brand-card {
        grid-template-columns: 1fr;
        padding: 34px 24px;
    }

    .custom-brand-card img {
        width: 180px;
    }

    .process-list {
        background: transparent;
        border: 0;
        gap: 14px;
        overflow: visible;
    }

    .process-step {
        min-height: 0;
        border: 1px solid var(--line);
        border-radius: 18px;
    }

    .process-cta {
        align-items: stretch;
        padding: 34px 24px;
    }

    .pricing-layout,
    .enquiry-layout,
    .dashboard-grid,
    .admin-shell,
    .portal-auth {
        padding-bottom: 82px;
    }

    .pricing-card,
    .price-calculator,
    .enquiry-form,
    .smart-form,
    .table-panel,
    .matrix-panel,
    .admin-calculator,
    .admin-tabs,
    .dashboard-side {
        padding: 24px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-block: 52px;
    }

    .footer-nav {
        gap: 26px;
    }

    .footer-bottom {
        display: flex;
        gap: 7px;
    }
}

@media (max-width: 440px) {
    .brand-mark {
        width: 50px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .detail-actions .btn {
        width: 100%;
    }

    .section-heading h2,
    .story-copy h2,
    .usage-inner h2,
    .process-cta h2,
    .custom-brand-card h2 {
        font-size: 38px;
    }

    .floating-note {
        left: 16px;
    }

    .public-price-table th,
    .public-price-table td {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .glass-card,
        .site-header {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
    }
}

input[type="hidden"] {
    display: none !important;
}

/* ========================================================================== 
   Experience refinement v2: typography, responsive composition and image zoom
   ========================================================================== */

html {
    scroll-padding-top: 96px;
    scrollbar-gutter: stable;
}

body {
    overflow-x: clip;
}

main {
    overflow: clip;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p,
li,
dd {
    text-wrap: pretty;
}

/* content-visibility caused inaccurate full-page painting and jumpy section
   geometry in some Chromium builds. Keep the class harmless for old markup. */
.content-auto {
    content-visibility: visible;
    contain: none;
}

.section-block {
    padding-block: clamp(76px, 8vw, 112px);
}

.section-heading {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.section-heading h2,
.story-copy h2,
.usage-inner h2,
.process-cta h2,
.custom-brand-card h2 {
    font-size: clamp(38px, 4.15vw, 58px);
    line-height: 1.01;
}

/* Interactive product media */
.zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: inherit;
    background: #dcd2c0;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
    appearance: none;
    isolation: isolate;
}

.zoom-trigger::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 28%;
    pointer-events: none;
    content: "";
    background: linear-gradient(to top, rgba(12, 18, 13, 0.22), transparent);
    opacity: 0;
    transition: opacity 220ms ease;
}

.zoom-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(.2, .72, .2, 1), filter 220ms ease;
}

.zoom-trigger:hover img {
    transform: scale(1.025);
}

.zoom-trigger:hover::after,
.zoom-trigger:focus-visible::after {
    opacity: 1;
}

.zoom-trigger:focus-visible {
    outline: 3px solid rgba(154, 117, 68, 0.62);
    outline-offset: 4px;
}

.image-action {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    top: auto !important;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 8px 11px !important;
    color: var(--ink) !important;
    background: rgba(252, 250, 245, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 22px rgba(17, 23, 17, 0.14);
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: 0.055em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.image-action b {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.zoom-trigger:hover .image-action,
.zoom-trigger:focus-visible .image-action {
    opacity: 1;
    transform: none;
}

/* Header polish */
.site-header {
    box-shadow: 0 1px 0 rgba(23, 32, 24, 0.035);
}

.header-inner {
    min-height: 76px;
}

.nav-links a,
.portal-link {
    white-space: nowrap;
}

/* Hero: no negative overlap, predictable scaling at browser zoom levels */
.hero {
    padding-block: clamp(24px, 3.5vw, 44px) clamp(72px, 7vw, 96px);
}

.hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    min-height: clamp(590px, 66vw, 680px);
    gap: clamp(18px, 2.25vw, 30px);
}

.hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: clamp(42px, 5vw, 68px);
    overflow: hidden;
}

.hero-copy h1 {
    max-width: 10.5ch;
    margin-bottom: clamp(20px, 2.5vw, 30px);
    font-size: clamp(54px, 5.25vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.048em;
}

.hero-copy h1 em {
    display: block;
    max-width: 12.5ch;
    margin-top: 0.16em;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.042em;
    white-space: normal;
}

.hero-lead {
    max-width: 48ch;
    color: #5c675f;
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.68;
}

.hero-actions {
    margin-top: clamp(26px, 3vw, 36px);
}

.hero-facts {
    margin-top: clamp(34px, 4vw, 50px);
}

.hero-image-frame {
    height: 100%;
    min-height: 0;
    border-radius: 34px 34px 34px 124px;
    box-shadow: var(--shadow-md);
}

.hero-image-frame img {
    object-position: 51% 50%;
}

.floating-note {
    right: 22px;
    bottom: 22px;
}

/* Product cards */
.product-card-grid {
    gap: clamp(18px, 2.2vw, 26px);
}

.product-card-image {
    aspect-ratio: 1 / 1.07;
    border-radius: 24px;
}

.product-card-image .size-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 11px;
    color: var(--ink);
    background: rgba(252, 250, 245, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
}

.product-card-copy {
    padding-top: 18px;
}

.product-card-copy h3 {
    margin-bottom: 7px;
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.15;
}

.product-card-copy h3 a:hover {
    color: var(--forest);
}

.card-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
}

.card-detail-link span {
    transition: transform 180ms ease;
}

.card-detail-link:hover span {
    transform: translateX(3px);
}

/* Natural story */
.story-band {
    padding-block: clamp(84px, 9vw, 118px);
}

.story-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(54px, 7vw, 88px);
}

.story-images {
    min-height: 590px;
}

.story-image-main {
    width: 82%;
    height: 540px;
    border-radius: 32px 32px 112px 32px;
}

.story-image-main img,
.story-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image-small {
    width: 42%;
    border: 10px solid var(--ink);
}

.story-copy h2 {
    max-width: 11ch;
}

/* Page headers */
.page-intro {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    min-height: 500px;
    gap: clamp(42px, 6vw, 76px);
    padding-block: clamp(62px, 7vw, 88px) clamp(42px, 5vw, 68px);
}

.page-intro-copy h1 {
    max-width: 11ch;
    font-size: clamp(52px, 5.7vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.page-intro-copy h1 em {
    display: inline-block;
    margin-top: 0.1em;
}

.page-intro-copy > p:last-child {
    max-width: 52ch;
    line-height: 1.7;
}

.page-intro-image,
.pricing-intro-image,
.contact-visual {
    width: 100%;
    height: clamp(350px, 34vw, 430px);
    border: 0;
}

/* Product detail composition */
.product-list {
    gap: clamp(86px, 10vw, 122px);
    padding-block: 52px 116px;
}

.product-detail {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: clamp(42px, 5.5vw, 70px);
}

.product-detail-media {
    min-height: 590px;
}

.product-main-image {
    width: 88%;
    height: 560px;
    border-radius: 28px 28px 100px 28px;
    box-shadow: var(--shadow-md);
}

.product-main-image img,
.product-detail-image img,
.custom-brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-image {
    border: 9px solid var(--cream);
}

.product-detail-copy {
    padding: clamp(34px, 4vw, 48px);
}

.product-detail-copy h2 {
    max-width: 12ch;
    font-size: clamp(36px, 3.6vw, 52px);
}

.custom-brand-image {
    width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.custom-brand-card .custom-brand-image {
    justify-self: end;
}

/* Pricing */
.pricing-layout {
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 32px);
}

.pricing-card {
    padding: clamp(28px, 3vw, 38px);
}

.pricing-card-head h2 {
    font-size: clamp(29px, 2.8vw, 36px);
}

.public-price-table td {
    font-variant-numeric: tabular-nums;
}

/* Image viewer */
body.viewer-open {
    overflow: hidden;
}

.image-viewer {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(12px, 2vw, 26px);
    color: var(--paper);
    background: transparent;
    border: 0;
    overflow: hidden;
}

.image-viewer[open] {
    display: grid;
    place-items: center;
}

.image-viewer::backdrop {
    background: rgba(8, 12, 9, 0.84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.image-viewer-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1240px, 100%);
    height: min(900px, calc(100dvh - clamp(24px, 4vw, 52px)));
    overflow: hidden;
    background: #121813;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.image-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.image-viewer-bar > div:first-child {
    display: grid;
    min-width: 0;
}

.image-viewer-kicker {
    color: var(--jute);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.image-viewer-title,
#image-viewer-title {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-viewer-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.image-viewer-controls button {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 750;
    cursor: pointer;
}

.image-viewer-controls button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.image-viewer-controls [data-viewer-action="reset"] {
    min-width: 66px;
    font-size: 11px;
}

.image-viewer-controls .image-viewer-close {
    margin-left: 5px;
    background: var(--paper);
    color: var(--ink);
    font-size: 25px;
}

.image-viewer-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: clamp(10px, 2vw, 24px);
    overflow: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.055), transparent 42%),
        #0d120e;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.image-viewer-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
    user-select: none;
    -webkit-user-drag: none;
}

.image-viewer-help {
    margin: 0;
    padding: 11px 20px 13px;
    color: rgba(252, 250, 245, 0.57);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    text-align: center;
}

@media (hover: none) {
    .image-action {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1040px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 18px;
    }

    .hero-copy {
        margin: 0;
        padding: clamp(42px, 7vw, 62px);
    }

    .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(58px, 8.2vw, 82px);
    }

    .hero-copy h1 em {
        max-width: none;
        font-size: clamp(43px, 6.2vw, 62px);
    }

    .hero-image-frame {
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-radius: 32px 32px 32px 100px;
    }

    .story-grid,
    .page-intro,
    .product-detail,
    .enquiry-layout {
        grid-template-columns: 1fr;
    }

    .story-grid {
        gap: 50px;
    }

    .page-intro {
        min-height: 0;
    }

    .page-intro-copy h1 {
        max-width: 12ch;
    }

    .page-intro-image,
    .pricing-intro-image,
    .contact-visual {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .product-detail-reverse .product-detail-media {
        order: 0;
    }

    .product-detail-copy {
        margin: 0;
    }

    .product-detail-media {
        max-width: 780px;
    }

    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .price-calculator {
        position: static;
    }
}

@media (max-width: 820px) {
    .product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 30px, 1180px);
        --radius-lg: 28px;
    }

    html {
        scroll-padding-top: 80px;
    }

    body {
        font-size: 15px;
        line-height: 1.58;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 48px;
        height: 36px;
        font-size: 18px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .site-nav {
        top: 76px;
        max-height: calc(100dvh - 92px);
        padding: 16px;
        overflow-y: auto;
        border-radius: 16px;
    }

    .site-nav.open {
        animation: nav-in 180ms ease-out both;
    }

    @keyframes nav-in {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: none; }
    }

    .hero {
        padding-block: 16px 72px;
    }

    .hero-copy {
        padding: 36px 25px 32px;
        border-radius: 24px;
    }

    .hero-copy h1 {
        max-width: 10ch;
        margin-bottom: 20px;
        font-size: clamp(48px, 14vw, 66px);
        line-height: 0.96;
    }

    .hero-copy h1 em {
        max-width: 11ch;
        font-size: clamp(38px, 10.7vw, 52px);
        line-height: 1.02;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 1.62;
    }

    .hero-actions {
        gap: 16px;
        margin-top: 26px;
    }

    .hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 30px;
        padding-top: 18px;
    }

    .hero-facts span {
        display: block;
        min-width: 0;
        padding: 10px 8px;
        background: rgba(255, 255, 255, 0.42);
        border: 1px solid rgba(23, 32, 24, 0.07);
        border-radius: 12px;
        font-size: 10px;
        text-align: center;
    }

    .hero-facts strong {
        margin: 0 0 3px;
        font-size: 17px;
    }

    .hero-image-frame {
        aspect-ratio: 4 / 5;
        min-height: 0;
        border-radius: 24px 24px 24px 70px;
    }

    .hero-image-frame img {
        object-position: 55% center;
    }

    .floating-note {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 11px 13px;
    }

    .section-block,
    .story-band {
        padding-block: 72px;
    }

    .section-heading {
        gap: 18px;
        margin-bottom: 28px;
    }

    .section-heading h2,
    .story-copy h2,
    .usage-inner h2,
    .process-cta h2,
    .custom-brand-card h2 {
        font-size: clamp(36px, 10.5vw, 45px);
        line-height: 1.02;
    }

    .product-card-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-card-image {
        aspect-ratio: 4 / 4.35;
    }

    .product-card-copy {
        padding: 16px 3px 0;
    }

    .story-images {
        min-height: min(116vw, 520px);
    }

    .story-image-main {
        width: 92%;
        height: min(104vw, 470px);
        border-radius: 25px 25px 80px 25px;
    }

    .story-image-small {
        right: -2px;
        width: 39%;
        border-width: 7px;
    }

    .story-copy h2 {
        max-width: 12ch;
    }

    .page-intro {
        gap: 28px;
        padding-block: 48px 34px;
    }

    .page-intro-copy h1,
    .portal-heading h1 {
        max-width: 11ch;
        margin-bottom: 20px;
        font-size: clamp(44px, 13vw, 62px);
        line-height: 0.99;
    }

    .page-intro-copy > p:last-child {
        font-size: 16px;
    }

    .page-intro-image,
    .pricing-intro-image,
    .contact-visual {
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 55px 18px 18px 18px;
    }

    .pricing-intro-image {
        border-radius: 18px 55px 18px 18px;
    }

    .contact-visual {
        border-radius: 18px 18px 55px 18px;
    }

    .product-list {
        gap: 76px;
        padding-block: 42px 82px;
    }

    .product-detail {
        gap: 24px;
    }

    .product-detail-media {
        min-height: min(119vw, 545px);
    }

    .product-main-image {
        width: 92%;
        height: min(111vw, 505px);
        border-radius: 24px 24px 76px 24px;
    }

    .product-detail-image {
        right: 0;
        bottom: 0;
        width: 39%;
        border-width: 7px;
    }

    .product-detail-copy {
        margin: 0;
        padding: 30px 23px;
        border-radius: 24px;
    }

    .product-detail-copy .size-pill {
        position: static;
        display: inline-flex;
        margin-bottom: 18px;
    }

    .product-detail-copy h2 {
        max-width: none;
        font-size: clamp(34px, 9.5vw, 44px);
    }

    .spec-list div {
        grid-template-columns: 88px 1fr;
        gap: 14px;
    }

    .custom-brand-card {
        gap: 28px;
        margin-bottom: 82px;
    }

    .custom-brand-card .custom-brand-image {
        justify-self: start;
        width: min(210px, 68vw);
    }

    .pricing-layout {
        gap: 18px;
        padding-block: 28px 82px;
    }

    .price-calculator,
    .pricing-card {
        padding: 23px;
    }

    .pricing-card-head h2 {
        font-size: 29px;
    }

    .route-moq {
        align-self: flex-start;
    }

    .usage-inner {
        gap: 28px;
    }

    .footer-inner {
        padding-block: 50px;
    }

    .image-viewer {
        padding: 0;
    }

    .image-viewer-panel {
        width: 100%;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .image-viewer-bar {
        align-items: flex-start;
        padding: 12px;
    }

    .image-viewer-bar > div:first-child {
        padding: 4px 2px;
    }

    .image-viewer-controls {
        gap: 4px;
    }

    .image-viewer-controls button {
        min-width: 37px;
        height: 37px;
        border-radius: 9px;
    }

    .image-viewer-controls [data-viewer-action="reset"] {
        min-width: 58px;
    }

    .image-viewer-help {
        padding-inline: 14px;
    }
}

@media (max-width: 640px) {
    /* Tables become readable price cards instead of a horizontal-scroll trap. */
    .public-price-table,
    .public-price-table tbody {
        display: block;
        width: 100%;
    }

    .public-price-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .public-price-table tbody {
        display: grid;
        gap: 12px;
    }

    .public-price-table tbody tr {
        display: grid;
        padding: 16px;
        background: rgba(255, 255, 255, 0.55);
        border: 1px solid var(--line);
        border-radius: 15px;
    }

    .public-price-table tbody th {
        display: block;
        padding: 0 0 10px;
        color: var(--forest);
        border: 0;
        font-size: 14px;
    }

    .public-price-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 9px 0;
        border-bottom: 0;
        border-top: 1px solid var(--line);
        font-size: 18px;
        text-align: right;
        white-space: normal;
    }

    .public-price-table tbody td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-align: left;
        text-transform: uppercase;
    }
}

@media (max-width: 460px) {
    :root {
        --shell: min(100% - 24px, 1180px);
    }

    .hero-copy {
        padding-inline: 21px;
    }

    .hero-copy h1 {
        font-size: clamp(45px, 14.5vw, 58px);
    }

    .hero-copy h1 em {
        font-size: clamp(35px, 11.5vw, 46px);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .hero-actions .text-link {
        width: 100%;
        justify-content: center;
    }

    .hero-facts span {
        padding-inline: 5px;
        font-size: 9px;
    }

    .image-action {
        right: 10px !important;
        bottom: 10px !important;
        padding: 7px 9px !important;
    }

    .pricing-card-head {
        gap: 12px;
    }

    .image-viewer-bar > div:first-child {
        display: none;
    }

    .image-viewer-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav.open {
        animation: none;
    }

    .zoom-trigger img,
    .image-action {
        transition: none;
    }
}

/* Keep sections immediately paintable. This removes scroll-triggered opacity work
   and prevents blank content during fast scrolling, screenshots, and back/forward restoration. */
.js .reveal,
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* === V3 cohesion refinements: linked image compositions === */
.story-images,
.product-detail-media {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.story-images {
    min-height: 610px;
    padding: 22px 22px 136px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 38px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 26px 64px rgba(0,0,0,0.16);
}

.story-images::before,
.product-detail-media::before {
    position: absolute;
    inset: auto auto 44px 42px;
    width: 180px;
    height: 180px;
    content: "";
    background: radial-gradient(circle, rgba(111,143,89,0.24), rgba(111,143,89,0));
    pointer-events: none;
}

.story-images::after,
.product-detail-media::after {
    position: absolute;
    right: clamp(34px, 6vw, 110px);
    bottom: clamp(88px, 11vw, 128px);
    width: clamp(88px, 12vw, 136px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.42));
    transform: rotate(-26deg);
    transform-origin: right center;
    pointer-events: none;
}

.story-images-intro,
.media-card-head {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 3;
    display: grid;
    gap: 3px;
    max-width: min(68%, 300px);
    padding: 12px 14px;
    color: rgba(252,250,245,0.95);
    background: rgba(7, 15, 9, 0.38);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px) saturate(1.02);
    backdrop-filter: blur(10px) saturate(1.02);
}

.story-images-intro span,
.media-card-head span {
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-images-intro small,
.media-card-head small {
    color: rgba(252,250,245,0.74);
    font-size: 11px;
    line-height: 1.35;
}

.story-image-main,
.product-main-image {
    position: relative;
    display: block;
    width: min(86%, 640px);
    height: 100%;
    min-height: 420px;
    margin-top: 58px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 34px 34px 108px 34px;
    box-shadow: 0 24px 56px rgba(0,0,0,0.22);
}

.story-image-main img,
.product-main-image img,
.story-image-small img,
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image-small,
.product-detail-image {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: block;
    width: min(36%, 240px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 28px;
    border: 10px solid rgba(7, 15, 9, 0.72);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.06);
}

.story-image-small {
    border-radius: 50%;
}

.story-image-chip,
.detail-image-chip {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--paper);
    background: rgba(7, 15, 9, 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.product-detail-media {
    min-height: 610px;
    padding: 22px 22px 126px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.42));
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 34px;
    box-shadow: var(--shadow-md);
}

.product-detail-media::before {
    background: radial-gradient(circle, rgba(200,170,120,0.18), rgba(200,170,120,0));
}

.product-detail-media::after {
    background: linear-gradient(90deg, rgba(23,32,24,0.04), rgba(23,32,24,0.18));
}

.media-card-head {
    color: var(--ink);
    background: rgba(252,250,245,0.88);
    border-color: rgba(23,32,24,0.08);
}

.media-card-head small {
    color: var(--muted);
}

.product-main-image {
    width: min(87%, 650px);
    margin-top: 62px;
    box-shadow: var(--shadow-md);
}

.product-detail-image {
    width: min(37%, 228px);
    border: 10px solid var(--paper);
}

@media (max-width: 980px) {
    .story-images,
    .product-detail-media {
        padding-bottom: 118px;
    }

    .story-image-main,
    .product-main-image {
        width: min(88%, 100%);
    }

    .story-image-small,
    .product-detail-image {
        width: min(40%, 220px);
    }
}

@media (max-width: 760px) {
    .story-images {
        min-height: 0;
        padding: 18px 18px 112px;
        border-radius: 28px;
    }

    .product-detail-media {
        min-height: 0;
        padding: 18px 18px 112px;
        border-radius: 28px;
    }

    .story-images-intro,
    .media-card-head {
        top: 14px;
        left: 14px;
        right: 14px;
        max-width: none;
        padding: 11px 12px;
    }

    .story-image-main,
    .product-main-image {
        width: 100%;
        min-height: 0;
        margin-top: 66px;
        height: auto;
        aspect-ratio: 1 / 1.02;
        border-radius: 24px 24px 78px 24px;
    }

    .story-image-small,
    .product-detail-image {
        right: 16px;
        bottom: 16px;
        width: min(39vw, 168px);
        border-width: 7px;
        border-radius: 24px;
    }

    .story-image-small {
        border-radius: 50%;
    }

    .story-images::after,
    .product-detail-media::after {
        right: 28px;
        bottom: 82px;
        width: 92px;
    }

    .story-image-chip,
    .detail-image-chip {
        left: 8px;
        right: 8px;
        bottom: 8px;
        min-height: 30px;
        font-size: 10px;
    }
}

@media (max-width: 460px) {
    .story-images,
    .product-detail-media {
        padding: 16px 16px 100px;
    }

    .story-image-main,
    .product-main-image {
        margin-top: 64px;
        aspect-ratio: 1 / 1.05;
    }

    .story-image-small,
    .product-detail-image {
        width: min(38vw, 150px);
        right: 12px;
        bottom: 12px;
    }

    .story-images-intro small,
    .media-card-head small {
        font-size: 10px;
    }
}

/* === Scroll-film integration: hero animation stays inside the existing card === */
.page-home {
    overflow-x: clip;
}

.hero-jute-visual {
    --jh-overflow-inset: 11%;
    --jh-spill-pad: 9.4%;
    --jh-overflow-opacity: 0;
    isolation: isolate;
    overflow: visible;
}

.hero-jute-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(115% 80% at 48% 24%, #f7efdc 0%, #e9d9bb 38%, #b99a70 68%, #765438 100%);
    border-radius: 34px 34px 34px 124px;
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.hero-jute-fallback,
.jh-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-jute-fallback {
    z-index: 0;
    object-fit: cover;
    object-position: 51% 50%;
    opacity: 1;
    transition: opacity 320ms ease;
}

.jh-canvas {
    z-index: 1;
    opacity: 0;
    transition: opacity 260ms ease;
}

.hero-jute-visual.is-jute-ready .hero-jute-fallback {
    opacity: 0;
}

.hero-jute-visual.is-jute-ready .jh-canvas {
    opacity: 1;
}

.hero-jute-vignette {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent 28%),
        radial-gradient(76% 68% at 50% 44%, transparent 45%, rgba(38,22,8,0.18) 80%, rgba(25,13,4,0.34) 100%);
    mix-blend-mode: multiply;
}

.jh-overflow-canvas {
    position: absolute;
    z-index: 8;
    top: calc(-1 * var(--jh-overflow-inset));
    left: calc(-1 * var(--jh-overflow-inset));
    right: auto;
    bottom: auto;
    display: block;
    width: 122%;
    height: 122%;
    pointer-events: none;
    opacity: var(--jh-overflow-opacity);
    transition: opacity 100ms linear;
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% var(--jh-spill-pad) no-repeat,
        linear-gradient(#000 0 0) bottom / 100% var(--jh-spill-pad) no-repeat,
        linear-gradient(#000 0 0) left / var(--jh-spill-pad) 100% no-repeat,
        linear-gradient(#000 0 0) right / var(--jh-spill-pad) 100% no-repeat;
    mask:
        linear-gradient(#000 0 0) top / 100% var(--jh-spill-pad) no-repeat,
        linear-gradient(#000 0 0) bottom / 100% var(--jh-spill-pad) no-repeat,
        linear-gradient(#000 0 0) left / var(--jh-spill-pad) 100% no-repeat,
        linear-gradient(#000 0 0) right / var(--jh-spill-pad) 100% no-repeat;
}

.hero-jute-scroll-hint {
    position: absolute;
    z-index: 5;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: rgba(252, 250, 245, 0.92);
    background: rgba(23, 32, 24, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(23, 32, 24, 0.18);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.hero-jute-visual.is-jute-ready .hero-jute-scroll-hint {
    opacity: 1;
}

.hero-jute-scroll-hint b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 50%;
    font-size: 12px;
    animation: jute-scroll-nudge 1.35s ease-in-out infinite;
}

.hero-jute-visual.has-jute-motion .hero-jute-scroll-hint {
    opacity: 0;
    transform: translateY(7px);
}

.hero-jute-visual .floating-note {
    z-index: 6;
}

@keyframes jute-scroll-nudge {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}

@media (max-width: 1040px) {
    .hero-jute-frame {
        aspect-ratio: 16 / 10;
        height: auto;
        border-radius: 32px 32px 32px 100px;
    }
}

@media (max-width: 760px) {
    .hero-jute-visual {
        --jh-overflow-inset: 8%;
        --jh-spill-pad: 6.95%;
    }

    .hero-jute-frame {
        aspect-ratio: 4 / 5;
        border-radius: 24px 24px 24px 70px;
    }

    .hero-jute-scroll-hint {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 10px;
        font-size: 9px;
    }
}

@media (max-width: 460px) {
    .hero-jute-scroll-hint span {
        display: none;
    }

    .hero-jute-scroll-hint {
        padding: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-jute-fallback,
    .jh-canvas,
    .jh-overflow-canvas,
    .hero-jute-scroll-hint {
        transition: none;
    }

    .hero-jute-scroll-hint {
        display: none;
    }
}

/* ==========================================================================
   V4 — premium homepage layer
   --------------------------------------------------------------------------
   Palette extends the existing jute/forest identity with two additions:
   a deep LOAM ground so the page has tonal architecture instead of one cream
   wash, and INDIGO — Bengal's other historic export dye — reserved strictly
   for live/interactive states so "this figure just changed" is never ambiguous.

   Signature: the LOOM RAIL. A warp/weft hairline drawn from the material
   itself, used in exactly three places — the hero scrubber, the section
   dividers, and the quantity slider track.
   ========================================================================== */

:root {
    --loam: #131a12;
    --loam-soft: #1d2619;
    --loam-line: rgba(233, 226, 208, 0.14);
    --indigo: #2f4d80;
    --indigo-lift: #4a6fa8;
    --header-h: 74px;
    --ease-out: cubic-bezier(0.22, 0.68, 0.24, 1);
    --warp: repeating-linear-gradient(90deg,
        rgba(154, 117, 68, 0.30) 0 1px,
        transparent 1px 5px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Utility type role: every number on the page uses it, so tiers, prices,
   and dimensions all line up vertically down the page. */
.data-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.data-figure {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: -0.015em;
}

.eyebrow-light {
    color: var(--jute);
}

/* Restore a restrained entrance. The v3 build disabled reveals entirely to
   stop blank sections; a short opacity-only fade with a translate that is
   cleared on load keeps content paintable even if the observer never fires. */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

/* ------------------------------------------------------------ hero track */
/* The scroll film is driven by native sticky positioning: the track supplies
   the scroll distance, the stage stays put while it is consumed. No JS pin,
   no pin spacer, no reparenting, nothing that can move the document. */
.hero-track {
    --hero-travel: 190vh;
    position: relative;
    padding: 0;
    min-height: calc(100vh + var(--hero-travel));
    min-height: calc(100svh + var(--hero-travel));
}

.hero-stage {
    position: sticky;
    top: var(--header-h);
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-block: clamp(18px, 2.6vw, 38px);
}

.hero-stage > .hero-grid {
    width: var(--shell);
    margin-inline: auto;
    min-height: min(680px, calc(100vh - var(--header-h) - 72px));
    min-height: min(680px, calc(100svh - var(--header-h) - 72px));
}

.hero-stage .hero-copy {
    overflow: visible;
    border-radius: var(--radius-lg);
}

.hero-copy h1 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--forest);
}

/* Hero facts rebuilt as a definition list so the labels are real labels. */
.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(28px, 3.4vw, 44px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-facts dd {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------- hero media + rail */
.hero-jute-visual {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    height: 100%;
}

.hero-jute-media {
    position: relative;
    min-height: 0;
    height: 100%;
}

.jute-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    position: relative;
    opacity: 0;
    transition: opacity 400ms var(--ease-out);
}

.hero-jute-visual.is-jute-ready .jute-rail {
    opacity: 1;
}

/* The warp threads, and the weft that fills across them as you scroll. */
.jute-rail::before,
.jute-rail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    border-radius: 2px;
}

.jute-rail::before {
    right: 0;
    background: var(--warp), rgba(23, 32, 24, 0.07);
}

.jute-rail::after {
    width: var(--jh-progress, 0%);
    background: linear-gradient(90deg, var(--jute-deep), var(--jute));
    box-shadow: 0 0 0 1px rgba(154, 117, 68, 0.18);
    transition: width 90ms linear;
}

.jute-rail li {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 12px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 260ms var(--ease-out);
}

.jute-rail-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: rgba(23, 32, 24, 0.2);
    transition: background 260ms var(--ease-out), transform 260ms var(--ease-out);
}

.jute-rail li.is-done {
    color: var(--jute-deep);
}

.jute-rail li.is-done .jute-rail-dot {
    background: var(--jute-deep);
}

.jute-rail li.is-active {
    color: var(--ink);
}

.jute-rail li.is-active .jute-rail-dot {
    background: var(--forest);
    transform: scale(1.65);
    box-shadow: 0 0 0 4px rgba(41, 69, 54, 0.14);
}

/* ------------------------------------------------------------- ledger */
.ledger {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.42);
}

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

.ledger-cell {
    padding: 26px 26px 26px 0;
}

.ledger-cell + .ledger-cell {
    padding-left: 26px;
    border-left: 1px solid var(--line);
}

.ledger-cell .data-figure {
    display: block;
    margin: 8px 0 4px;
    color: var(--ink);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
}

.ledger-cell small {
    color: var(--muted);
    font-size: 12px;
}

/* -------------------------------------------------------- product cards */
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.product-card-price .data-label {
    display: inline;
}

.product-card-price .data-figure {
    color: var(--forest);
    font-size: 22px;
    font-weight: 800;
}

.product-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 16px;
}

.btn-quiet {
    background: transparent;
    border-color: rgba(23, 32, 24, 0.2);
    color: var(--ink);
}

.btn-quiet:hover {
    background: rgba(23, 32, 24, 0.05);
    border-color: var(--forest);
}

.btn-jute {
    background: linear-gradient(180deg, var(--jute), var(--jute-deep));
    color: #221703;
    box-shadow: 0 14px 30px rgba(154, 117, 68, 0.32);
}

.btn-jute:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(154, 117, 68, 0.4);
}

/* ------------------------------------------------------- order builder */
.builder {
    padding-block: clamp(72px, 8vw, 118px);
    color: #eee8da;
    background:
        radial-gradient(120% 70% at 12% 0%, rgba(154, 117, 68, 0.22), transparent 60%),
        radial-gradient(90% 60% at 90% 100%, rgba(47, 77, 128, 0.20), transparent 62%),
        var(--loam);
}

.builder-inner {
    display: grid;
    gap: clamp(28px, 3.4vw, 46px);
}

.builder-head h2 {
    margin: 0 0 14px;
    color: #f6f2e8;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.builder-head h2 em {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--jute);
}

.builder-lead {
    max-width: 56ch;
    margin: 0;
    color: rgba(238, 232, 218, 0.7);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
}

.builder-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: clamp(20px, 2.6vw, 38px);
    align-items: start;
    padding: clamp(22px, 2.6vw, 36px);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--loam-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.builder-controls {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.builder-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.builder-field .data-label,
.builder-field legend {
    color: rgba(238, 232, 218, 0.62);
    padding: 0;
}

.chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

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

.chip {
    position: relative;
    display: block;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: grid;
    gap: 3px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--loam-line);
    border-radius: 14px;
    cursor: pointer;
    transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.chip span strong {
    color: #f6f2e8;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.chip span small {
    color: rgba(238, 232, 218, 0.55);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.chip:hover span {
    background: rgba(255, 255, 255, 0.08);
}

.chip input:checked + span {
    background: rgba(74, 111, 168, 0.22);
    border-color: var(--indigo-lift);
    box-shadow: inset 0 0 0 1px rgba(74, 111, 168, 0.4);
}

.chip input:focus-visible + span {
    outline: 3px solid rgba(74, 111, 168, 0.55);
    outline-offset: 2px;
}

.builder-qty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.qty-input {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid var(--loam-line);
    border-radius: 12px;
}

.qty-input input {
    width: 5.5ch;
    padding: 0;
    color: #f6f2e8;
    background: transparent;
    border: 0;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    -moz-appearance: textfield;
}

.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input span {
    color: rgba(238, 232, 218, 0.55);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Slider track carries the loom rail motif. */
.qty-slider {
    width: 100%;
    height: 26px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.qty-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 4px;
    background:
        linear-gradient(90deg, var(--jute-deep) 0 var(--fill, 30%), transparent var(--fill, 30%)),
        repeating-linear-gradient(90deg, rgba(238, 232, 218, 0.22) 0 1px, transparent 1px 6px),
        rgba(255, 255, 255, 0.08);
}

.qty-slider::-moz-range-track {
    height: 6px;
    border-radius: 4px;
    background:
        linear-gradient(90deg, var(--jute-deep) 0 var(--fill, 30%), transparent var(--fill, 30%)),
        repeating-linear-gradient(90deg, rgba(238, 232, 218, 0.22) 0 1px, transparent 1px 6px),
        rgba(255, 255, 255, 0.08);
}

.qty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    background: #f6f2e8;
    border: 4px solid var(--jute-deep);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.qty-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #f6f2e8;
    border: 4px solid var(--jute-deep);
    border-radius: 50%;
}

.qty-slider:focus-visible {
    outline: 3px solid rgba(74, 111, 168, 0.6);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Tier ladder: every published MOQ break, positioned on the slider scale. */
.tier-ladder {
    position: relative;
    height: 30px;
    margin-top: 4px;
}

.tier-mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: rgba(238, 232, 218, 0.45);
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color 220ms var(--ease-out);
}

.tier-mark::before {
    content: "";
    display: block;
    width: 1px;
    height: 7px;
    margin: 0 auto 5px;
    background: rgba(238, 232, 218, 0.3);
}

.tier-mark.is-reached {
    color: var(--jute);
}

.tier-mark.is-reached::before {
    background: var(--jute);
}

.tier-mark.is-current {
    color: #f6f2e8;
}

/* ------------------------------------------------------------ result */
.builder-result {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: clamp(20px, 2.2vw, 28px);
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid var(--loam-line);
    border-radius: var(--radius);
}

.result-main {
    display: grid;
    gap: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--loam-line);
}

.result-main .data-label {
    color: rgba(238, 232, 218, 0.55);
}

.result-unit {
    color: #f6f2e8;
    font-size: clamp(40px, 4.4vw, 58px);
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
    line-height: 1;
    transition: color 260ms var(--ease-out);
}

.builder-result.is-updating .result-unit {
    color: var(--indigo-lift);
}

.builder-result.is-blocked .result-unit {
    font-size: clamp(24px, 2.4vw, 30px);
    color: var(--jute);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 16px;
}

.result-grid .data-label {
    color: rgba(238, 232, 218, 0.5);
    margin-bottom: 5px;
}

.result-grid strong {
    color: #f6f2e8;
    font-size: 17px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.result-note {
    margin: 0;
    min-height: 2.6em;
    color: rgba(238, 232, 218, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

.result-note b {
    color: var(--jute);
    font-variant-numeric: tabular-nums;
}

.result-note.is-warning {
    color: #f2c99a;
}

.builder-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    padding-top: 4px;
}

.builder-disclaimer {
    max-width: 46ch;
    margin: 0;
    color: rgba(238, 232, 218, 0.5);
    font-size: 12px;
    line-height: 1.5;
}

/* ------------------------------------------------------------- process */
.process-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.process-step {
    position: relative;
    padding: 34px 22px 30px 0;
}

.process-step + .process-step {
    padding-left: 22px;
}

.process-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warp), rgba(23, 32, 24, 0.07);
    border-radius: 2px;
}

.process-step.is-visible::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--forest), var(--moss));
    border-radius: 2px;
    animation: loom-weave 720ms var(--ease-out) both;
}

@keyframes loom-weave {
    from { width: 0; }
    to { width: 100%; }
}

.process-index {
    display: block;
    margin-bottom: 14px;
    color: var(--jute-deep);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.16em;
}

.process-step h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.process-step p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.process-time {
    display: inline-block;
    padding: 5px 10px;
    color: var(--forest);
    background: rgba(41, 69, 54, 0.08);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------- spec */
.spec-band {
    padding-block: clamp(66px, 7vw, 104px);
    color: #eee8da;
    background: var(--loam-soft);
}

.spec-head h2 {
    margin: 0 0 clamp(26px, 3vw, 40px);
    color: #f6f2e8;
    font-size: clamp(30px, 3.2vw, 46px);
    letter-spacing: -0.038em;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 18px 16px 18px 0;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--loam-line);
}

.spec-table thead th {
    color: rgba(238, 232, 218, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom-color: rgba(233, 226, 208, 0.26);
}

.spec-table tbody th {
    color: #f6f2e8;
    font-size: 16px;
    font-weight: 760;
}

.spec-table td {
    color: rgba(238, 232, 218, 0.72);
}

.spec-table .data-figure {
    color: var(--jute);
    font-weight: 780;
}

.spec-scale {
    min-width: 150px;
    white-space: nowrap;
}

.spec-scale .data-figure {
    display: inline-block;
    vertical-align: middle;
}

.spec-bar {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    width: var(--w, 60%);
    max-width: 92px;
    height: 8px;
    background: linear-gradient(90deg, var(--jute-deep), var(--jute));
    border-radius: 3px;
}

/* ----------------------------------------------------------------- faq */
.faq-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    cursor: pointer;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 720;
    letter-spacing: -0.015em;
    list-style: none;
    transition: color 200ms var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--jute-deep);
}

.faq-item summary i {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform 260ms var(--ease-out), background 260ms var(--ease-out);
}

.faq-item summary i::before,
.faq-item summary i::after {
    content: "";
    position: absolute;
    inset: 50% 7px auto;
    height: 1.5px;
    background: var(--ink);
    transform: translateY(-50%);
    transition: opacity 200ms var(--ease-out);
}

.faq-item summary i::after {
    inset: 7px auto 7px 50%;
    width: 1.5px;
    height: auto;
    transform: translateX(-50%);
}

.faq-item[open] summary i {
    background: var(--forest);
    transform: rotate(90deg);
}

.faq-item[open] summary i::before,
.faq-item[open] summary i::after {
    background: var(--paper);
}

.faq-item[open] summary i::after {
    opacity: 0;
}

.faq-answer {
    padding: 0 60px 24px 4px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* --------------------------------------------------- mobile quote bar */
.quote-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 12px 12px 18px;
    background: rgba(252, 250, 245, 0.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(23, 32, 24, 0.2);
    backdrop-filter: blur(14px);
    transform: translateY(140%);
    transition: transform 380ms var(--ease-out);
}

.quote-bar strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.quote-bar.is-shown {
    transform: none;
}

.quote-bar[hidden] {
    display: none;
}

/* Header settles onto a solid ground once the reader leaves the hero. */
.site-header.is-stuck {
    background: rgba(245, 241, 232, 0.96);
    box-shadow: 0 10px 30px rgba(23, 32, 24, 0.08);
}

/* ------------------------------------------------------------ responsive */
/* One sticky element at every breakpoint. Below 1040px the hero stacks, so the
   stage is capped to the viewport and the film card is sized to fit beside the
   copy rather than being given its own competing sticky context. */
@media (max-width: 1040px) {
    .hero-track {
        --hero-travel: 140vh;
    }

    .hero-stage {
        align-items: center;
        padding-block: 12px;
    }

    .hero-stage > .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 14px;
        align-content: center;
    }

    .hero-stage .hero-copy {
        padding: clamp(22px, 4vw, 34px);
    }

    .hero-stage .hero-copy h1 {
        margin-bottom: 14px;
        font-size: clamp(32px, 6.2vw, 46px);
    }

    .hero-stage .hero-copy h1 em {
        font-size: clamp(25px, 5vw, 36px);
    }

    .hero-stage .hero-lead {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero-stage .hero-actions {
        margin-top: 18px;
    }

    .hero-stage .hero-facts {
        margin-top: 18px;
        padding-top: 14px;
    }

    .hero-jute-frame {
        height: 42svh;
        min-height: 240px;
        aspect-ratio: auto;
    }

    .builder-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 26px;
    }

    .ledger-cell {
        padding: 20px 16px 20px 0;
    }

    .ledger-cell + .ledger-cell {
        padding-left: 16px;
    }
}

/* Short viewports cannot hold the lead paragraph and the film at once. */
@media (max-width: 1040px) and (max-height: 700px) {
    .hero-stage .hero-lead,
    .hero-stage .hero-facts {
        display: none;
    }

    .hero-jute-frame {
        height: 46svh;
    }
}

@media (max-width: 760px) {
    .hero-track {
        --hero-travel: 115vh;
    }

    .hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-facts dt {
        font-size: 9.5px;
        letter-spacing: 0.08em;
    }

    .hero-facts dd {
        font-size: 14px;
    }

    .jute-rail-label {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .ledger-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ledger-cell {
        padding: 16px 0;
        border-top: 1px solid var(--line);
    }

    .ledger-cell:first-child {
        border-top: 0;
    }

    .ledger-cell + .ledger-cell {
        padding-left: 0;
        border-left: 0;
    }

    .chip-row {
        gap: 8px;
    }

    .chip span {
        padding: 11px 8px;
        text-align: center;
    }

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

    .process-step,
    .process-step + .process-step {
        padding: 26px 0 24px;
    }

    .spec-table thead {
        display: none;
    }

    .spec-table tbody tr {
        display: grid;
        gap: 8px;
        padding: 18px 0;
        border-bottom: 1px solid var(--loam-line);
    }

    .spec-table th,
    .spec-table td {
        padding: 0;
        border: 0;
    }

    .spec-table td[data-th]::before {
        content: attr(data-th);
        display: block;
        margin-bottom: 4px;
        color: rgba(238, 232, 218, 0.45);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .faq-answer {
        padding-right: 8px;
    }

    .quote-bar {
        display: flex;
    }

    body.page-home {
        padding-bottom: 82px;
    }
}

@media (max-width: 460px) {
    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-facts div:last-child {
        grid-column: 1 / -1;
    }

    .jute-rail li:nth-child(even) .jute-rail-label {
        display: none;
    }
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-track {
        --hero-travel: 0px;
        min-height: 0;
        padding-block: clamp(24px, 3.5vw, 44px) clamp(72px, 7vw, 96px);
    }

    .hero-stage {
        position: static;
        min-height: 0;
        padding-block: 0;
    }

    .hero-stage > .hero-grid {
        min-height: 0;
    }

    .js .reveal,
    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .jute-rail::after,
    .jute-rail li,
    .jute-rail-dot,
    .quote-bar,
    .result-unit {
        transition: none;
    }

    .process-step.is-visible::after {
        animation: none;
    }
}

/* Estimate carried over from the homepage builder into the enquiry form. */
.carried-estimate {
    display: grid;
    gap: 5px;
    margin: 0 0 22px;
    padding: 16px 18px;
    background: rgba(41, 69, 54, 0.06);
    border: 1px solid rgba(41, 69, 54, 0.16);
    border-left: 3px solid var(--forest);
    border-radius: var(--radius-sm);
}

.carried-estimate strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.carried-estimate small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}


/* ========================================================================== 
   V5 — HOMEPAGE HERO FIT + TYPOGRAPHY POLISH
   Keeps the scroll-film architecture, but makes the copy card and film fit
   inside the visible stage at desktop, tablet, and phone widths.
   ========================================================================== */

.page-home .hero-stage > .hero-grid {
    width: min(1320px, calc(100% - 48px));
    grid-template-columns: minmax(380px, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
    gap: clamp(18px, 2vw, 28px);
    min-height: min(700px, calc(100svh - var(--header-h) - 46px));
    max-height: calc(100svh - var(--header-h) - 30px);
}

.page-home .hero-stage .hero-copy {
    align-self: stretch;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 3.4vw, 50px);
    overflow: hidden;
    border-radius: clamp(24px, 2.4vw, 34px);
}

.page-home .hero-copy .eyebrow {
    margin-bottom: clamp(14px, 1.5vw, 18px);
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.14em;
}

.page-home .hero-copy h1 {
    max-width: 9.5ch;
    margin-bottom: clamp(18px, 2vw, 24px);
    font-size: clamp(48px, 4.55vw, 70px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.page-home .hero-copy h1 em {
    display: block;
    max-width: 10.5ch;
    margin-top: 0.18em;
    font-size: clamp(34px, 3.15vw, 48px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
    white-space: normal;
}

.page-home .hero-stage .hero-lead {
    max-width: 43ch;
    margin: 0;
    color: #5b665e;
    font-size: clamp(15px, 1.18vw, 17px);
    font-weight: 500;
    line-height: 1.58;
}

.page-home .hero-stage .hero-actions {
    gap: 18px;
    margin-top: clamp(22px, 2.4vw, 30px);
}

.page-home .hero-stage .hero-actions .btn {
    min-height: 46px;
    padding-inline: 22px;
}

.page-home .hero-stage .hero-actions .text-link {
    font-size: 14px;
    font-weight: 750;
}

.page-home .hero-jute-visual,
.page-home .hero-jute-media,
.page-home .hero-jute-frame {
    min-width: 0;
    min-height: 0;
}

.page-home .hero-jute-frame {
    border-radius: clamp(24px, 2.4vw, 34px);
}

@media (max-width: 1040px) {
    .page-home .hero-track {
        --hero-travel: 125vh;
    }

    .page-home .hero-stage {
        padding-block: 10px;
    }

    .page-home .hero-stage > .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(230px, 1fr);
        align-content: stretch;
        gap: 12px;
        min-height: calc(100svh - var(--header-h) - 20px);
        max-height: calc(100svh - var(--header-h) - 20px);
    }

    .page-home .hero-stage .hero-copy {
        padding: clamp(20px, 3.4vw, 28px);
        border-radius: 24px;
    }

    .page-home .hero-copy .eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .page-home .hero-stage .hero-copy h1 {
        max-width: none;
        margin-bottom: 12px;
        font-size: clamp(35px, 5.8vw, 44px);
        line-height: 0.96;
    }

    .page-home .hero-stage .hero-copy h1 em {
        max-width: none;
        margin-top: 0.12em;
        font-size: clamp(27px, 4.6vw, 34px);
    }

    .page-home .hero-stage .hero-lead {
        max-width: 52ch;
        font-size: 14.5px;
        line-height: 1.5;
    }

    .page-home .hero-stage .hero-actions {
        gap: 14px;
        margin-top: 16px;
    }

    .page-home .hero-stage .hero-actions .btn {
        min-height: 42px;
        padding: 10px 17px;
        font-size: 13px;
    }

    .page-home .hero-stage .hero-actions .text-link {
        font-size: 13px;
    }

    .page-home .hero-jute-visual {
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
        overflow: visible;
    }

    .page-home .hero-jute-frame {
        width: 100%;
        height: 100%;
        min-height: 230px;
        max-height: none;
        border-radius: 24px;
    }

    .page-home .floating-note {
        right: 14px;
        bottom: 14px;
        min-width: 0;
        max-width: calc(100% - 28px);
        padding: 10px 12px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 66px;
    }

    .page-home .hero-track {
        --hero-travel: 105vh;
    }

    .page-home .hero-stage {
        top: var(--header-h);
        padding-block: 8px;
    }

    .page-home .hero-stage > .hero-grid {
        width: min(100% - 20px, 680px);
        grid-template-rows: auto minmax(220px, 1fr);
        gap: 10px;
        min-height: calc(100svh - var(--header-h) - 16px);
        max-height: calc(100svh - var(--header-h) - 16px);
    }

    .page-home .hero-stage .hero-copy {
        padding: 18px 18px 17px;
        border-radius: 20px;
        box-shadow: 0 14px 36px rgba(30, 40, 31, 0.09);
    }

    .page-home .hero-copy .eyebrow {
        margin-bottom: 8px;
        font-size: 9.5px;
        letter-spacing: 0.12em;
    }

    .page-home .hero-stage .hero-copy h1 {
        margin-bottom: 10px;
        font-size: clamp(34px, 10.2vw, 42px);
        line-height: 0.94;
        letter-spacing: -0.052em;
    }

    .page-home .hero-stage .hero-copy h1 em {
        margin-top: 0.12em;
        font-size: clamp(26px, 7.7vw, 32px);
        line-height: 1;
    }

    .page-home .hero-stage .hero-lead {
        max-width: 46ch;
        font-size: 13.5px;
        line-height: 1.48;
    }

    .page-home .hero-stage .hero-actions {
        flex-wrap: nowrap;
        gap: 12px;
        margin-top: 14px;
    }

    .page-home .hero-stage .hero-actions .btn {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .page-home .hero-stage .hero-actions .text-link {
        min-width: 0;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .page-home .hero-jute-frame {
        min-height: 220px;
        border-radius: 20px;
    }

    .page-home .hero-jute-scroll-hint {
        left: 12px;
        bottom: 12px;
    }

    .page-home .floating-note {
        display: none;
    }

    .page-home .jute-rail {
        padding-top: 8px;
    }
}

@media (max-width: 430px) {
    .page-home .hero-stage > .hero-grid {
        width: calc(100% - 16px);
        grid-template-rows: auto minmax(205px, 1fr);
        gap: 8px;
    }

    .page-home .hero-stage .hero-copy {
        padding: 16px;
        border-radius: 18px;
    }

    .page-home .hero-stage .hero-copy h1 {
        font-size: clamp(31px, 9.6vw, 38px);
    }

    .page-home .hero-stage .hero-copy h1 em {
        font-size: clamp(24px, 7vw, 29px);
    }

    .page-home .hero-stage .hero-lead {
        font-size: 13px;
        line-height: 1.44;
    }

    .page-home .hero-stage .hero-actions {
        gap: 10px;
    }

    .page-home .hero-stage .hero-actions .btn {
        padding-inline: 12px;
    }

    .page-home .hero-stage .hero-actions .text-link {
        font-size: 12px;
    }

    .page-home .hero-jute-frame {
        min-height: 205px;
        border-radius: 18px;
    }
}

@media (max-width: 360px) {
    .page-home .hero-stage .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page-home .hero-stage .hero-actions .btn {
        width: auto;
    }
}


/* =======================================================================
   V6 HOME PROCESS — compact card system, stronger hierarchy, calmer colour
   ======================================================================= */
.page-home .process-band {
    padding-block: clamp(64px, 7vw, 92px);
}

.page-home .process-heading {
    align-items: flex-end;
    margin-bottom: clamp(22px, 2.6vw, 30px);
}

.page-home .process-heading .eyebrow {
    margin-bottom: 10px;
    color: #916c3f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.page-home .process-heading h2 {
    max-width: 720px;
    font-family: var(--sans);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.page-home .process-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-bottom: 4px;
    padding: 9px 13px;
    color: var(--forest);
    background: rgba(252, 250, 245, 0.72);
    border: 1px solid rgba(41, 69, 54, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 7px 20px rgba(23, 32, 24, 0.04);
}

.page-home .process-link span {
    transition: transform 180ms var(--ease-out);
}

.page-home .process-link:hover span {
    transform: translateX(3px);
}

.page-home .process-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.page-home .process-step,
.page-home .process-step + .process-step {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 294px;
    padding: 22px 20px 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(252, 250, 245, 0.94)),
        var(--paper);
    border: 1px solid rgba(23, 32, 24, 0.10);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(30, 40, 31, 0.055);
    transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.page-home .process-step:hover {
    transform: translateY(-3px);
    border-color: rgba(41, 69, 54, 0.20);
    box-shadow: 0 18px 42px rgba(30, 40, 31, 0.085);
}

.page-home .process-step::before {
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(41, 69, 54, 0.12);
    border-radius: 0 0 3px 3px;
}

.page-home .process-step.is-visible::after {
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    height: 3px;
    background: linear-gradient(90deg, var(--forest), #78906f);
    border-radius: 0 0 3px 3px;
    animation: home-process-weave 720ms var(--ease-out) both;
    transform-origin: left center;
}

@keyframes home-process-weave {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.page-home .process-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 34px;
    min-height: 28px;
    margin: 8px 0 18px;
    padding: 5px 8px;
    color: #8b663b;
    background: rgba(200, 170, 120, 0.13);
    border: 1px solid rgba(154, 117, 68, 0.14);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    line-height: 1;
}

.page-home .process-step h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-home .process-step p {
    flex: 1 1 auto;
    margin: 0;
    color: #667069;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 450;
    line-height: 1.58;
    letter-spacing: -0.005em;
}

.page-home .process-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 32, 24, 0.08);
}

.page-home .process-meta-label {
    color: #8a918b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.page-home .process-time {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 7px 10px;
    color: #2d4a39;
    background: #edf0e9;
    border: 1px solid rgba(41, 69, 54, 0.08);
    border-radius: 9px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.05;
}

.page-home .process-transit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 1120px) {
    .page-home .process-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-home .process-step,
    .page-home .process-step + .process-step {
        min-height: 270px;
    }
}

@media (max-width: 760px) {
    .page-home .process-band {
        padding-block: 58px;
    }

    .page-home .process-heading {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .page-home .process-heading h2 {
        max-width: 10ch;
        font-size: clamp(34px, 10vw, 43px);
        line-height: 1;
    }

    .page-home .process-link {
        margin-top: 2px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .page-home .process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-home .process-step,
    .page-home .process-step + .process-step {
        min-height: 264px;
        padding: 20px 17px 16px;
    }

    .page-home .process-step::before {
        left: 17px;
        right: 17px;
    }

    .page-home .process-step.is-visible::after {
        left: 17px;
        width: calc(100% - 34px);
    }
}

@media (max-width: 540px) {
    .page-home .process-heading {
        display: grid;
        gap: 14px;
    }

    .page-home .process-heading h2 {
        max-width: 12ch;
        font-size: clamp(32px, 10.5vw, 40px);
    }

    .page-home .process-link {
        justify-self: start;
        margin: 0;
    }

    .page-home .process-track {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .page-home .process-step,
    .page-home .process-step + .process-step {
        min-height: 0;
        padding: 19px 18px 16px;
    }

    .page-home .process-index {
        margin: 7px 0 14px;
    }

    .page-home .process-step h3 {
        font-size: 17px;
    }

    .page-home .process-step p {
        font-size: 13px;
        line-height: 1.55;
    }

    .page-home .process-meta {
        margin-top: 16px;
        padding-top: 12px;
    }
}

/* ======================================================================
   DOXRINE V7 — CMS collections, official identity and staff permissions
   ====================================================================== */
.brand-official {
    gap: 12px;
    min-width: 218px;
}
.official-mark {
    width: 60px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.official-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand-official .brand-copy strong {
    letter-spacing: .16em;
    font-size: 1.02rem;
    line-height: 1;
}
.brand-official .brand-copy small {
    margin-top: 5px;
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.footer-brand-official > a {
    display: inline-flex;
    width: 170px;
    max-width: 60%;
}
.footer-brand-official > a img {
    width: 100%;
    height: auto;
    max-height: 112px;
    object-fit: contain;
    object-position: left center;
}

/* Dynamic homepage product sections. Every section is an independent CMS entity. */
.dynamic-product-section {
    background: var(--collection-bg, #f1ede3);
    color: var(--collection-text, #101b14);
    padding: clamp(68px, 7vw, 112px) 0;
    overflow: hidden;
}
.dynamic-product-section + .dynamic-product-section {
    border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 12%, transparent);
}
.collection-heading {
    margin-bottom: clamp(28px, 4vw, 48px);
    align-items: end;
    gap: 28px;
}
.collection-heading .eyebrow {
    color: var(--collection-accent, #9a7441);
}
.collection-heading h2 {
    max-width: none;
    font-size: clamp(2.45rem, 3.7vw, 4.7rem);
    line-height: .98;
    letter-spacing: -.052em;
    color: var(--collection-text, #101b14);
    text-wrap: balance;
}
.collection-intro {
    max-width: 680px;
    margin: 18px 0 0;
    color: color-mix(in srgb, var(--collection-text, #101b14) 64%, transparent);
    font-size: clamp(.96rem, 1.15vw, 1.08rem);
    line-height: 1.7;
}
.dynamic-product-section .text-link {
    color: var(--collection-text, #101b14);
    flex: 0 0 auto;
}
.adaptive-product-grid {
    --product-gap: clamp(14px, 1.6vw, 24px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--product-gap);
    align-items: stretch;
}
/*
 * Flex wrapping is deliberate here: unlike a rigid grid, an incomplete last row
 * stays centred when an admin creates 5, 7, 10, etc. variants.
 */
.adaptive-product-grid[data-columns="1"] > .adaptive-product-card { width: 100%; }
.adaptive-product-grid[data-columns="2"] > .adaptive-product-card { width: calc(50% - 12px); }
.adaptive-product-grid[data-columns="3"] > .adaptive-product-card { width: calc(33.3333% - 16px); }
.adaptive-product-grid[data-columns="4"] > .adaptive-product-card { width: calc(25% - 18px); }
.adaptive-product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: clamp(20px, 2vw, 30px);
    background: var(--card-tone, #ece4d5);
    border: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 9%, transparent);
    box-shadow: 0 18px 45px rgba(24, 31, 24, .075);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.adaptive-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 56px rgba(24, 31, 24, .12);
}
.adaptive-product-media {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    aspect-ratio: 1 / 1.08;
    cursor: zoom-in;
}
.adaptive-product-grid[data-count="1"] .adaptive-product-media { aspect-ratio: 16 / 7; }
.adaptive-product-grid[data-count="2"] .adaptive-product-media { aspect-ratio: 4 / 3; }
.adaptive-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.adaptive-product-card:hover .adaptive-product-media img { transform: scale(1.025); }
.adaptive-product-media .size-label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(250, 248, 241, .92);
    color: #152017;
    font: 800 .7rem/1 Manrope, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 5px 18px rgba(0,0,0,.09);
}
.adaptive-product-copy {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: 20px 20px 22px;
}
.adaptive-product-copy h3 {
    margin: 0 0 8px;
    font: 750 clamp(1.05rem, 1.25vw, 1.25rem)/1.2 Manrope, sans-serif;
    letter-spacing: -.025em;
    color: var(--collection-text, #101b14);
}
.adaptive-product-copy p {
    margin: 0;
    max-width: 42ch;
    font-size: .86rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--collection-text, #101b14) 62%, transparent);
}
.adaptive-product-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
    flex: 0 0 auto;
    text-align: right;
}
.adaptive-product-meta > span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: color-mix(in srgb, var(--collection-text, #101b14) 58%, transparent);
}
.adaptive-product-meta strong {
    color: var(--card-accent, #9a7441);
    font-size: 1rem;
    letter-spacing: 0;
}
.dynamic-chip-row { flex-wrap: wrap; }
.dynamic-chip-row .chip { flex: 1 1 150px; }

/* Admin / employee CMS additions */
.admin-quick-grid,
.permission-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.admin-quick-card,
.permission-overview article {
    padding: 22px;
    border-radius: 20px;
    background: #fffdf8;
    border: 1px solid rgba(28, 36, 29, .1);
    text-decoration: none;
    color: #162017;
    display: grid;
    gap: 8px;
}
.admin-quick-card span,
.permission-overview article > span {
    color: #9a7441;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}
.admin-quick-card strong,
.permission-overview strong { font-size: 1rem; line-height: 1.4; }
.cms-fieldset,
.permission-grid {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid rgba(27, 36, 28, .11);
    border-radius: 20px;
    background: rgba(255,255,255,.54);
}
.cms-fieldset > legend,
.permission-grid > legend {
    padding: 0 10px;
    font: 800 .76rem/1 Manrope, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #76592f;
}
.cms-repeat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.repeat-editor {
    padding: 18px;
    border-radius: 16px;
    background: #fffdf8;
    border: 1px solid rgba(27,36,28,.08);
}
.repeat-editor > strong { display: block; margin-bottom: 12px; }
.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.permission-card {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin: 0 !important;
    border-radius: 14px;
    background: #fffdf8;
    border: 1px solid rgba(27,36,28,.09);
    cursor: pointer;
}
.permission-card input { width: 18px !important; height: 18px; margin-top: 2px; }
.permission-card span { display: grid; gap: 4px; }
.permission-card strong { font-size: .9rem; }
.permission-card small { color: #7d857e; font-size: .72rem; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.permission-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1ea;
    font-size: .68rem;
    text-transform: capitalize;
}
.table-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.danger-link { color: #9b3f35 !important; }
.admin-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.brand-admin-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0 26px;
}
.brand-preview-light,
.brand-preview-dark {
    min-height: 190px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}
.brand-preview-light { background: #f4f0e7; border: 1px solid rgba(27,36,28,.09); }
.brand-preview-dark { background: #0b0e0c; }
.brand-admin-preview img { width: min(280px, 78%); height: 140px; object-fit: contain; }
.employee-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fffdf8;
    border: 1px solid rgba(27,36,28,.09);
    border-radius: 20px;
}
.employee-welcome h2, .employee-welcome p { margin: 0; }
.permission-overview article.is-locked { opacity: .48; background: #f0efea; }
.permission-overview article.is-granted { box-shadow: inset 3px 0 0 #496256; }
.dynamic-price-matrix th small { display: block; max-width: 120px; white-space: normal; color: #7c847d; font-weight: 500; margin-top: 4px; }

@media (min-width: 1100px) {
    .collection-heading h2 { white-space: nowrap; }
}
@media (max-width: 1180px) {
    .adaptive-product-grid[data-columns="4"] > .adaptive-product-card { width: calc(33.3333% - 16px); }
    .adaptive-product-grid[data-columns="1"] > .adaptive-product-card { width: 100%; }
    .adaptive-product-grid[data-columns="2"] > .adaptive-product-card { width: calc(50% - 12px); }
    .admin-quick-grid, .permission-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-official { min-width: auto; }
    .nav-actions { gap: 12px; }
}
@media (max-width: 820px) {
    .official-mark { width: 48px; height: 38px; }
    .adaptive-product-grid > .adaptive-product-card { width: calc(50% - 10px); }
    .adaptive-product-grid[data-count="1"] > .adaptive-product-card { width: 100%; }
    .adaptive-product-grid[data-count="1"] .adaptive-product-media { aspect-ratio: 4 / 3; }
    .collection-heading h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
    .cms-repeat-grid, .permission-grid, .brand-admin-preview { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .brand-official .brand-copy strong { font-size: .88rem; }
    .brand-official .brand-copy small { font-size: .58rem; }
    .adaptive-product-grid > .adaptive-product-card { width: 100%; }
    .adaptive-product-media,
    .adaptive-product-grid[data-count="2"] .adaptive-product-media { aspect-ratio: 4 / 3; }
    .adaptive-product-copy { align-items: start; flex-direction: column; }
    .adaptive-product-meta { justify-items: start; text-align: left; }
    .admin-quick-grid, .permission-overview { grid-template-columns: 1fr; }
    .cms-fieldset, .permission-grid { padding: 16px; }
}


/* V9 authentication system */
.account-access-shell,
.staff-auth-shell { padding-block: 28px 110px; }
.account-access-card,
.staff-auth-card { border: 1px solid rgba(26,37,29,.10); border-radius: 30px; background: rgba(255,253,248,.92); box-shadow: 0 26px 70px rgba(29,35,30,.08); overflow: hidden; }
.account-access-card { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); }
.account-access-intro { padding: clamp(32px,4vw,58px); background: linear-gradient(145deg,#17231a 0%,#24362a 100%); color:#f7f2e7; }
.account-access-intro .eyebrow { color:#d2ae73; }
.account-access-intro h2 { max-width:11ch; margin:13px 0 18px; color:#fffdf8; font-size:clamp(2.2rem,4vw,4.1rem); line-height:.98; letter-spacing:-.055em; }
.account-access-intro > p:not(.eyebrow) { max-width:42rem; margin:0 0 26px; color:rgba(255,255,255,.72); font-size:.98rem; line-height:1.75; }
.account-form-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; background:#fffdf8; }
.auth-form-panel { display:grid; align-content:start; gap:16px; padding:clamp(28px,3vw,44px); }
.auth-form-panel + .auth-form-panel { border-left:1px solid rgba(26,37,29,.09); }
.auth-form-panel-soft { background:#f6f2e9; }
.auth-form-heading { margin-bottom:2px; }
.auth-form-heading h3 { margin:5px 0 0; font-size:1.45rem; letter-spacing:-.035em; }
.field-optional { float:right; color:#899089; font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.social-auth { display:grid; gap:12px; margin:24px 0 0; }
.google-button-wrap { min-height:44px; display:flex; align-items:center; overflow:hidden; border-radius:10px; }
.google-button-wrap > div { max-width:100%; }
.google-oauth-button { width:100%; min-height:46px; padding:0 16px; display:flex; align-items:center; justify-content:center; gap:12px; border:1px solid #d4d8de; border-radius:10px; background:#fff; color:#202124; font:600 .875rem/1 Manrope,sans-serif; text-decoration:none; box-shadow:0 1px 2px rgba(60,64,67,.08); transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.google-oauth-button:hover { border-color:#b8bec7; box-shadow:0 2px 8px rgba(60,64,67,.14); transform:translateY(-1px); }
.google-oauth-button:focus-visible { outline:3px solid rgba(66,133,244,.22); outline-offset:2px; }
.google-oauth-icon { width:19px; height:19px; display:grid; place-items:center; flex:0 0 19px; }
.google-oauth-icon svg { display:block; width:19px; height:19px; }
.social-provider-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.social-provider { min-height:44px; padding:0 14px; border:1px solid rgba(255,255,255,.20); border-radius:10px; background:rgba(255,255,255,.07); color:rgba(255,255,255,.86); font:700 .82rem/1 Manrope,sans-serif; display:flex; align-items:center; justify-content:center; gap:8px; }
.staff-auth-form .social-provider { color:#243029; border-color:rgba(26,37,29,.11); background:#f7f4ed; }
.social-provider:disabled { cursor:not-allowed; opacity:.58; }
.social-provider span { font-size:1rem; }
.social-provider small { margin-left:auto; padding:3px 6px; border-radius:999px; background:rgba(255,255,255,.12); font-size:.55rem; letter-spacing:.06em; text-transform:uppercase; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:20px 0; color:rgba(255,255,255,.52); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.staff-auth-form .auth-divider { color:#8b918b; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; flex:1; background:currentColor; opacity:.25; }
.auth-trust-row { display:flex; flex-wrap:wrap; gap:7px; }
.auth-trust-row span { padding:7px 9px; border-radius:999px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.66); font-size:.65rem; }
.staff-auth-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(340px,.72fr); max-width:1040px; margin-inline:auto; }
.staff-auth-copy { padding:clamp(34px,5vw,62px); background:#f3eee3; }
.staff-auth-copy h2 { margin:9px 0 15px; font-size:clamp(2.3rem,4vw,4rem); letter-spacing:-.055em; }
.staff-auth-copy > p { max-width:38rem; color:#6f7870; line-height:1.75; }
.staff-auth-form { padding:clamp(30px,4vw,52px); background:#fffdf8; }
.staff-auth-form form { display:grid; gap:16px; }
.staff-auth-note { display:grid; gap:6px; margin-top:24px; padding:16px 17px; border-radius:15px; background:rgba(72,98,84,.08); border:1px solid rgba(72,98,84,.12); }
.staff-auth-note strong { font-size:.8rem; color:#304a3b; }
.staff-auth-note span { color:#707a72; font-size:.82rem; line-height:1.55; }
.google-access-toggle { align-content:start; }
.google-access-toggle .toggle-line { min-height:48px; display:flex; align-items:center; gap:9px; padding:11px 13px; border:1px solid rgba(26,37,29,.12); border-radius:10px; background:#fffdf8; font-size:.78rem; color:#526057; }
.google-access-toggle input { width:18px !important; height:18px; margin:0; }
.google-admin-note { margin-top:14px; padding:14px 16px; border-radius:13px; background:#eef3ec; color:#526057; }
.google-admin-note strong { color:#2d4938; }
@media (max-width:1040px){ .account-access-card{grid-template-columns:1fr}.account-access-intro h2{max-width:15ch}.staff-auth-card{grid-template-columns:1fr} }
@media (max-width:760px){ .account-access-shell,.staff-auth-shell{padding-block:12px 74px}.account-access-card,.staff-auth-card{border-radius:22px}.account-form-stack{grid-template-columns:1fr}.auth-form-panel + .auth-form-panel{border-left:0;border-top:1px solid rgba(26,37,29,.09)}.account-access-intro,.auth-form-panel,.staff-auth-copy,.staff-auth-form{padding:26px 22px}.account-access-intro h2,.staff-auth-copy h2{font-size:clamp(2rem,10vw,3rem)}.social-provider-grid{grid-template-columns:1fr} }

/* ========================================================================== 
   V12 — Product catalogue redesign
   Compact, filterable catalogue with large + detail-image cards and a single
   glass product dialog. Uses unique catalog-* classes to avoid legacy layout
   collisions while the rest of the site remains untouched.
   ========================================================================== */
.page-products {
    background:
        radial-gradient(circle at 8% 7%, rgba(200, 170, 120, 0.17), transparent 31rem),
        radial-gradient(circle at 94% 18%, rgba(74, 102, 83, 0.13), transparent 34rem),
        #f5f1e8;
}

.catalog-shell {
    padding-block: 58px 108px;
    scroll-margin-top: calc(var(--header-h, 78px) + 24px);
}

.catalog-toolbar {
    position: sticky;
    top: calc(var(--header-h, 78px) + 14px);
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(250px, 1.55fr) minmax(145px, .72fr) minmax(220px, 1fr) minmax(155px, .78fr);
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: rgba(250, 248, 242, .78);
    box-shadow: 0 18px 55px rgba(31, 40, 32, .10);
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
    .catalog-toolbar {
        background: rgba(250, 248, 242, .69);
        -webkit-backdrop-filter: blur(18px) saturate(1.18);
        backdrop-filter: blur(18px) saturate(1.18);
    }
}

.catalog-toolbar label,
.catalog-search-wrap > label,
.catalog-price-group > label {
    display: grid;
    gap: 7px;
    color: #6c746e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-search-field,
.catalog-control select,
.money-input {
    min-height: 48px;
    border: 1px solid rgba(23, 32, 24, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.catalog-search-field:focus-within,
.catalog-control select:focus,
.money-input:focus-within {
    border-color: rgba(41, 69, 54, .42);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 4px rgba(41, 69, 54, .08);
}

.catalog-search-field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 0 12px 0 14px;
}

.catalog-search-field svg {
    width: 19px;
    fill: none;
    stroke: #6c746e;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.catalog-search-field input,
.money-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.catalog-search-field input {
    height: 46px;
    font-size: 14px;
}

.catalog-search-field input::placeholder,
.money-input input::placeholder {
    color: #9a9f9b;
}

.catalog-search-field kbd {
    min-width: 24px;
    padding: 3px 7px;
    color: #888f89;
    border: 1px solid rgba(23, 32, 24, .1);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: #f4f1ea;
    font: 700 11px/1.2 var(--sans);
    text-align: center;
}

.catalog-control select {
    width: 100%;
    padding: 0 34px 0 13px;
    color: var(--ink);
    outline: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}

.catalog-price-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.money-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0 11px;
}

.money-input b {
    color: #6c746e;
    font-size: 13px;
}

.money-input input {
    height: 46px;
    padding-left: 5px;
    font-size: 13px;
    font-weight: 650;
}

.catalog-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 3px 19px;
}

.catalog-result-bar > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.catalog-result-bar strong {
    font-size: 14px;
}

.catalog-result-bar span {
    color: var(--muted);
    font-size: 12px;
}

.catalog-clear {
    padding: 7px 0;
    color: var(--forest);
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.catalog-clear:disabled {
    opacity: .34;
    cursor: default;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.catalog-grid.is-empty {
    min-height: 0;
}

.catalog-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 27px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 14px 42px rgba(28, 38, 30, .075);
    cursor: pointer;
    isolation: isolate;
    transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}

.catalog-card[hidden] {
    display: none;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    z-index: 2;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 28px 66px rgba(28, 38, 30, .15);
    transform: translateY(-7px);
}

.catalog-card:focus-visible {
    outline: 3px solid rgba(154, 117, 68, .30);
    outline-offset: 3px;
}

.catalog-card-media {
    position: relative;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
    margin: 10px 10px 0;
    border-radius: 21px;
    background: var(--card-tone, #ece4d5);
}

.catalog-card-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.catalog-card:hover .catalog-card-main,
.catalog-card:focus-visible .catalog-card-main {
    transform: scale(1.035);
}

.catalog-card-detail {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 31%;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .70);
    box-shadow: 0 14px 34px rgba(20, 28, 22, .18);
    transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}

.catalog-card:hover .catalog-card-detail,
.catalog-card:focus-visible .catalog-card-detail {
    transform: translate(-3px, -3px) rotate(-1deg);
}

.catalog-card-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.catalog-card-detail span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    left: 9px;
    padding: 5px 7px;
    color: #fff;
    border-radius: 999px;
    background: rgba(17, 23, 17, .76);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.catalog-category-chip,
.catalog-size-chip {
    position: absolute;
    top: 14px;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 999px;
    background: rgba(249, 247, 241, .76);
    box-shadow: 0 6px 18px rgba(25, 32, 26, .08);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.catalog-category-chip {
    left: 14px;
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-size-chip {
    right: 14px;
}

.catalog-card-glow {
    position: absolute;
    right: -30%;
    bottom: -45%;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-accent, #9a7441) 22%, transparent);
    filter: blur(38px);
    opacity: .6;
    pointer-events: none;
}

.catalog-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 23px 18px;
}

.catalog-card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.catalog-card h2 {
    margin-bottom: 8px;
    font-size: clamp(23px, 2.1vw, 31px);
    letter-spacing: -.045em;
}

.catalog-card-title-row p {
    min-height: 42px;
    margin-bottom: 0;
    color: #737a74;
    font-size: 12px;
    line-height: 1.65;
}

.catalog-open-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--forest);
    border: 1px solid rgba(23, 32, 24, .09);
    border-radius: 50%;
    background: #f8f6f0;
    font-size: 16px;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.catalog-card:hover .catalog-open-icon,
.catalog-card:focus-visible .catalog-open-icon {
    color: #fff;
    background: var(--forest);
    transform: rotate(9deg);
}

.catalog-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid rgba(23, 32, 24, .08);
}

.catalog-card-meta > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.catalog-card-meta > span:last-child {
    text-align: right;
}

.catalog-card-meta small {
    color: #8b918c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-card-meta strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.catalog-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    color: #8b918c;
    font-size: 9px;
    letter-spacing: .03em;
}

.catalog-card-action b {
    color: var(--forest);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-empty {
    display: grid;
    max-width: 600px;
    margin: 38px auto 0;
    padding: 52px;
    place-items: center;
    border-radius: 28px;
    text-align: center;
}

.catalog-empty[hidden] {
    display: none;
}

.catalog-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: rgba(41, 69, 54, .08);
    font-size: 25px;
}

.catalog-empty h2 {
    margin-bottom: 8px;
    font-size: 30px;
}

.catalog-empty p {
    margin-bottom: 22px;
    color: var(--muted);
}

.catalog-custom-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    margin-bottom: 104px;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 31px;
}

.catalog-custom-card h2 {
    max-width: 720px;
    margin-bottom: 10px;
    font-size: clamp(31px, 4vw, 50px);
}

.catalog-custom-card p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
}

/* Glass product detail dialog */
body.product-dialog-open {
    overflow: hidden;
}

.product-glass-dialog {
    width: min(1100px, calc(100vw - 34px));
    max-width: none;
    max-height: min(860px, calc(100dvh - 34px));
    overflow: visible;
    padding: 0;
    color: var(--ink);
    border: 0;
    border-radius: 32px;
    background: transparent;
    box-shadow: none;
}

.product-glass-dialog::backdrop {
    background:
        radial-gradient(circle at 25% 15%, rgba(177, 150, 103, .16), transparent 28rem),
        rgba(12, 18, 14, .58);
    -webkit-backdrop-filter: blur(11px) saturate(.9);
    backdrop-filter: blur(11px) saturate(.9);
}

.product-glass-dialog[open] {
    animation: productGlassIn 320ms cubic-bezier(.16,.78,.24,1) both;
}

@keyframes productGlassIn {
    from { opacity: 0; transform: translateY(18px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-dialog-shell {
    position: relative;
    overflow: auto;
    max-height: min(860px, calc(100dvh - 34px));
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
    background: rgba(247, 244, 236, .84);
    box-shadow: 0 42px 120px rgba(10, 17, 12, .38);
}

@supports ((-webkit-backdrop-filter: blur(22px)) or (backdrop-filter: blur(22px))) {
    .product-dialog-shell {
        background: rgba(247, 244, 236, .72);
        -webkit-backdrop-filter: blur(22px) saturate(1.16);
        backdrop-filter: blur(22px) saturate(1.16);
    }
}

.product-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--ink);
    border: 1px solid rgba(23, 32, 24, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 25px rgba(25, 32, 26, .11);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.product-dialog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
    gap: clamp(30px, 5vw, 62px);
    padding: clamp(20px, 3vw, 34px);
}

.product-dialog-media {
    display: grid;
    align-content: start;
    gap: 12px;
}

.product-dialog-main-wrap {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 24px;
    background: #ebe5d8;
}

.product-dialog-main-wrap > img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.product-dialog-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(17, 23, 17, .74);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.product-dialog-thumbs {
    display: grid;
    grid-auto-columns: 68px;
    grid-auto-flow: column;
    gap: 9px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.product-dialog-thumbs button {
    width: 68px;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 3px;
    border: 1px solid rgba(23, 32, 24, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .54);
    cursor: pointer;
    opacity: .62;
    transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-dialog-thumbs button:hover,
.product-dialog-thumbs button.is-active {
    opacity: 1;
    border-color: rgba(41, 69, 54, .48);
    transform: translateY(-2px);
}

.product-dialog-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-dialog-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 34px 22px 34px 0;
}

.product-dialog-kickers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-dialog-kickers span {
    padding: 7px 10px;
    color: #566158;
    border: 1px solid rgba(23, 32, 24, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .47);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-dialog-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(38px, 4.8vw, 60px);
    letter-spacing: -.055em;
}

.product-dialog-lead {
    max-width: 520px;
    margin-bottom: 0;
    color: #69716b;
    font-size: 14px;
}

.product-dialog-price {
    display: grid;
    gap: 1px;
    margin: 28px 0 18px;
    padding: 18px 0;
    border-block: 1px solid rgba(23, 32, 24, .09);
}

.product-dialog-price > span,
.product-dialog-price > small {
    color: #858c86;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-dialog-price strong {
    margin: 2px 0;
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 500;
}

.product-dialog-price strong small {
    color: #777f78;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 650;
}

.product-dialog-specs {
    display: grid;
    gap: 0;
    margin: 0;
}

.product-dialog-specs > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 32, 24, .075);
}

.product-dialog-specs dt {
    color: #858c86;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.product-dialog-specs dd {
    margin: 0;
    font-size: 12px;
    font-weight: 680;
}

.product-dialog-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 19px;
}

.product-dialog-features span {
    padding: 7px 10px;
    color: #566158;
    border-radius: 9px;
    background: rgba(41, 69, 54, .07);
    font-size: 10px;
    font-weight: 650;
}

.product-dialog-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 27px;
}

@media (max-width: 1080px) {
    .catalog-toolbar {
        grid-template-columns: minmax(260px, 1.2fr) minmax(160px, .75fr) minmax(220px, 1fr);
    }

    .catalog-toolbar > .catalog-control:last-child {
        grid-column: 3;
    }

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

    .product-dialog-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
    }
}

@media (max-width: 820px) {
    .catalog-toolbar {
        position: relative;
        top: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-search-wrap,
    .catalog-price-group {
        grid-column: 1 / -1;
    }

    .catalog-toolbar > .catalog-control:last-child {
        grid-column: auto;
    }

    .catalog-custom-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .product-glass-dialog {
        width: min(720px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
    }

    .product-dialog-shell {
        max-height: calc(100dvh - 24px);
        border-radius: 25px;
    }

    .product-dialog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }

    .product-dialog-main-wrap,
    .product-dialog-main-wrap > img {
        min-height: min(58vw, 460px);
    }

    .product-dialog-copy {
        padding: 18px 12px 28px;
    }
}

@media (max-width: 580px) {
    .catalog-shell {
        width: min(100% - 24px, 1180px);
        padding-block: 30px 74px;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 11px;
        border-radius: 19px;
    }

    .catalog-search-wrap,
    .catalog-price-group,
    .catalog-toolbar > .catalog-control:last-child {
        grid-column: 1;
    }

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

    .catalog-result-bar {
        align-items: flex-end;
        padding-inline: 2px;
    }

    .catalog-result-bar > div {
        display: grid;
        gap: 1px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-card-media {
        aspect-ratio: 1 / .92;
    }

    .catalog-card-title-row p {
        min-height: 0;
    }

    .catalog-custom-card {
        width: min(100% - 28px, 1180px);
        margin-bottom: 72px;
        padding: 31px 25px;
    }

    .catalog-custom-card h2 {
        font-size: 34px;
    }

    .product-dialog-main-wrap,
    .product-dialog-main-wrap > img {
        min-height: 360px;
    }

    .product-dialog-copy h2 {
        padding-right: 32px;
        font-size: 39px;
    }

    .product-dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-dialog-actions .btn,
    .product-dialog-actions .text-link {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card,
    .catalog-card-main,
    .catalog-card-detail,
    .catalog-open-icon,
    .product-glass-dialog[open] {
        animation: none !important;
        transition: none !important;
    }
}

/* V12 admin controls added for catalogue/homepage curation. */
.check-label {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    align-self: end;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(252, 250, 245, .9);
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--forest);
}

.check-label span {
    line-height: 1.3;
}

.catalog-toolbar label,
.catalog-search-wrap > label,
.catalog-price-group > label {
    margin-bottom: 0;
}

.money-input input {
    min-height: 0;
}

/* ========================================================================
   V14 PRICING EXPERIENCE
   Focused B2B pricing explorer: transparent, compact, scalable and mobile-safe.
   ======================================================================== */
.page-pricing {
    background:
        radial-gradient(circle at 82% 13%, rgba(169, 143, 101, 0.10), transparent 28rem),
        var(--paper);
}

.pricing-hero-v14 {
    padding-block: clamp(64px, 8vw, 108px) clamp(30px, 4vw, 48px);
}

.pricing-hero-v14-copy {
    max-width: 900px;
}

.pricing-hero-v14 h1 {
    max-width: 10.5ch;
    margin: 10px 0 24px;
    font-size: clamp(58px, 7.1vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.pricing-hero-v14 h1 em {
    display: inline-block;
    color: var(--forest);
    font-family: "Fraunces", serif;
    font-weight: 400;
    letter-spacing: -0.055em;
}

.pricing-hero-v14-copy > p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 1.55vw, 21px);
    line-height: 1.65;
}

.pricing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.pricing-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(33, 50, 39, 0.10);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.pricing-trust-row b {
    color: var(--forest);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-workspace-v14 {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    align-items: stretch;
    gap: clamp(18px, 2.2vw, 28px);
    padding-bottom: clamp(80px, 8vw, 118px);
}

.pricing-estimator-v14,
.pricing-route-guide-v14,
.pricing-matrix-card-v14,
.pricing-cta-v14 {
    background: rgba(251, 249, 243, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 70px rgba(28, 38, 31, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pricing-estimator-v14 {
    padding: clamp(24px, 3vw, 40px);
    border-radius: 30px;
}

.pricing-estimator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(34, 51, 40, 0.10);
}

.pricing-estimator-heading h2,
.pricing-route-guide-heading h2,
.pricing-matrix-header-v14 h2,
.pricing-cta-v14 h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: clamp(31px, 3vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.pricing-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--forest);
    background: rgba(56, 84, 61, 0.075);
    border: 1px solid rgba(56, 84, 61, 0.12);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-live-badge i {
    width: 7px;
    height: 7px;
    background: var(--forest);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(56, 84, 61, 0.10);
}

.pricing-estimator-body {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.82fr);
    gap: clamp(24px, 3vw, 40px);
    padding-top: 30px;
}

.pricing-estimator-controls {
    min-width: 0;
}

.pricing-route-fieldset {
    padding: 0;
    margin: 0 0 24px;
    border: 0;
}

.pricing-route-fieldset legend,
.pricing-product-field > span,
.pricing-quantity-field > span,
.pricing-tier-shortcuts > span,
.pricing-matrix-toolbar-v14 label > span {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.pricing-route-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pricing-route-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.pricing-route-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pricing-route-option > span {
    display: grid;
    min-height: 122px;
    padding: 17px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(33, 50, 39, 0.12);
    border-radius: 18px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pricing-route-option:hover > span {
    transform: translateY(-2px);
    border-color: rgba(33, 50, 39, 0.24);
}

.pricing-route-option input:focus-visible + span {
    outline: 3px solid rgba(154, 117, 68, 0.24);
    outline-offset: 3px;
}

.pricing-route-option input:checked + span {
    color: var(--paper);
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 15px 34px rgba(32, 52, 37, 0.16);
}

.pricing-route-option small,
.pricing-route-option em {
    font-style: normal;
}

.pricing-route-option small {
    color: var(--jute-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pricing-route-option strong {
    align-self: end;
    margin-top: 10px;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.pricing-route-option em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.pricing-route-option input:checked + span small,
.pricing-route-option input:checked + span em {
    color: rgba(252, 250, 245, 0.72);
}

.pricing-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
    gap: 12px;
}

.pricing-product-field,
.pricing-quantity-field {
    display: block;
    margin: 0;
}

.pricing-product-select-wrap {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(33, 50, 39, 0.12);
    border-radius: 17px;
}

.pricing-product-select-wrap img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.pricing-product-select-wrap select {
    min-height: 37px;
    padding: 5px 30px 5px 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.pricing-product-select-wrap small {
    display: block;
    max-width: 34ch;
    margin-top: 1px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.pricing-quantity-input {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(33, 50, 39, 0.12);
    border-radius: 17px;
}

.pricing-quantity-input input {
    min-height: 56px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}

.pricing-quantity-input > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pricing-quantity-field > small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.pricing-tier-shortcuts {
    margin-top: 22px;
}

.pricing-tier-shortcuts > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pricing-tier-shortcuts button {
    min-height: 36px;
    padding: 7px 12px;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid rgba(33, 50, 39, 0.16);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.pricing-tier-shortcuts button:hover,
.pricing-tier-shortcuts button.is-current {
    color: var(--paper);
    background: var(--forest);
    border-color: var(--forest);
    transform: translateY(-1px);
}

.pricing-estimate-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pricing-estimate-v14 {
    display: flex;
    flex-direction: column;
    min-height: 272px;
    margin: 0 0 12px;
    padding: clamp(22px, 2.5vw, 30px);
    color: var(--paper);
    background:
        radial-gradient(circle at 90% 10%, rgba(185, 153, 94, 0.18), transparent 13rem),
        var(--ink);
    border-radius: 22px;
}

.pricing-estimate-kicker {
    color: rgba(252, 250, 245, 0.60);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pricing-estimate-v14 .estimate-price {
    margin-top: 22px;
}

.pricing-estimate-v14 .estimate-price strong {
    display: block;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.pricing-estimate-v14 .estimate-price small {
    color: rgba(252, 250, 245, 0.58);
    font-size: 10px;
}

.pricing-estimate-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: auto;
    padding-top: 24px;
}

.pricing-estimate-meta > span {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(252, 250, 245, 0.14);
}

.pricing-estimate-meta small {
    color: rgba(252, 250, 245, 0.50);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-estimate-meta b {
    color: var(--paper);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.pricing-estimate-note {
    margin: 16px 0 0;
    color: rgba(252, 250, 245, 0.68);
    font-size: 10px;
    line-height: 1.5;
}

.pricing-estimate-note b {
    color: var(--paper);
}

.pricing-estimate-v14.is-blocked {
    background: #6e5841;
}

.pricing-quote-link {
    margin-top: 2px;
}

.pricing-estimate-disclaimer {
    margin: 11px 2px 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.pricing-route-guide-v14 {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.5vw, 30px);
    border-radius: 30px;
}

.pricing-route-guide-heading h2 {
    max-width: 8ch;
    font-size: clamp(30px, 3vw, 40px);
}

.pricing-route-guide-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.pricing-route-guide-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 17px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(33, 50, 39, 0.11);
    border-radius: 18px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.pricing-route-guide-card:hover,
.pricing-route-guide-card.is-active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(33, 50, 39, 0.25);
}

.pricing-route-guide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pricing-route-guide-top b {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.pricing-route-guide-top em {
    padding: 5px 7px;
    color: var(--jute-deep);
    background: rgba(154, 117, 68, 0.09);
    border-radius: 999px;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-route-guide-card > strong {
    font-size: 12px;
}

.pricing-route-guide-card > small,
.pricing-route-guide-note {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.pricing-route-guide-moq {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 10px;
    color: var(--forest);
    border-top: 1px solid rgba(33, 50, 39, 0.09);
    font-size: 9px;
    font-weight: 800;
}

.pricing-route-guide-moq i {
    font-style: normal;
    font-size: 14px;
}

.pricing-route-guide-note {
    margin: auto 2px 0;
    padding-top: 20px;
}

.pricing-route-guide-note b {
    color: var(--ink);
}

.pricing-matrix-section-v14 {
    padding-bottom: clamp(80px, 8vw, 118px);
}

.pricing-matrix-header-v14 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.pricing-matrix-header-v14 > div:first-child > p:last-child {
    max-width: 650px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.pricing-matrix-route-tabs {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    background: rgba(33, 50, 39, 0.065);
    border: 1px solid rgba(33, 50, 39, 0.08);
    border-radius: 14px;
}

.pricing-matrix-route-tabs button {
    min-height: 41px;
    padding: 9px 14px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.pricing-matrix-route-tabs button:hover {
    color: var(--ink);
}

.pricing-matrix-route-tabs button.is-active {
    color: var(--paper);
    background: var(--forest);
    box-shadow: 0 8px 18px rgba(33, 50, 39, 0.13);
}

.pricing-matrix-card-v14 {
    padding: clamp(18px, 2.4vw, 30px);
    border-radius: 30px;
}

.pricing-matrix-toolbar-v14 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 2px 20px;
}

.pricing-matrix-toolbar-v14 > div {
    display: grid;
    gap: 3px;
}

.pricing-matrix-toolbar-v14 > div span {
    color: var(--jute-deep);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pricing-matrix-toolbar-v14 > div strong {
    font-size: 13px;
}

.pricing-matrix-toolbar-v14 label {
    display: block;
    width: min(250px, 100%);
    margin: 0;
}

.pricing-matrix-toolbar-v14 select {
    min-height: 42px;
    padding-block: 8px;
    font-size: 11px;
    font-weight: 700;
}

.pricing-route-panel-v14[hidden] {
    display: none !important;
}

.pricing-route-panel-copy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 18px;
    background: rgba(53, 77, 58, 0.055);
    border: 1px solid rgba(53, 77, 58, 0.07);
    border-radius: 16px 16px 0 0;
}

.pricing-route-panel-copy > div {
    display: grid;
    gap: 3px;
}

.pricing-route-panel-copy span {
    color: var(--jute-deep);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pricing-route-panel-copy strong {
    font-size: 15px;
}

.pricing-route-panel-copy p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
    text-align: right;
}

.pricing-table-scroll-v14 {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(33, 50, 39, 0.09);
    border-top: 0;
    border-radius: 0 0 16px 16px;
}

.pricing-table-v14 {
    min-width: 720px;
    background: rgba(255, 255, 255, 0.48);
}

.pricing-table-v14 th,
.pricing-table-v14 td {
    padding: 18px 16px;
    border-color: rgba(33, 50, 39, 0.085);
}

.pricing-table-v14 thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--ink-soft);
    background: #f5f1e8;
    font-size: 9px;
    text-align: right;
    vertical-align: bottom;
}

.pricing-table-v14 thead th:first-child {
    left: 0;
    z-index: 2;
    text-align: left;
}

.pricing-table-v14 thead th span,
.pricing-table-v14 thead th small {
    display: block;
}

.pricing-table-v14 thead th span {
    color: var(--ink);
    font-size: 10px;
    letter-spacing: -0.01em;
    text-transform: none;
}

.pricing-table-v14 thead th small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 650;
    text-transform: uppercase;
}

.pricing-table-v14 tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 155px;
    color: var(--ink);
    background: rgba(247, 244, 236, 0.96);
    font-size: 12px;
    text-transform: none;
}

.pricing-table-v14 tbody th span,
.pricing-table-v14 tbody th small {
    display: block;
}

.pricing-table-v14 tbody th small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pricing-table-v14 td {
    color: var(--ink);
    font-size: 13px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pricing-table-v14 td strong {
    font-size: 18px;
    letter-spacing: -0.025em;
}

.pricing-table-v14 td small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 650;
}

.pricing-table-v14 tbody tr:hover td,
.pricing-table-v14 tbody tr:hover th {
    background-color: rgba(221, 213, 194, 0.25);
}

.pricing-table-v14 tbody tr.is-best-tier td,
.pricing-table-v14 tbody tr.is-best-tier th {
    background-color: rgba(66, 95, 69, 0.075);
}

.pricing-table-v14 [data-product-col][hidden] {
    display: none !important;
}

.pricing-na {
    color: var(--muted);
}

.pricing-matrix-foot-v14 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 3px 2px;
}

.pricing-matrix-foot-v14 p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.pricing-matrix-foot-v14 p b {
    color: var(--ink);
}

.pricing-matrix-foot-v14 .text-link {
    flex: 0 0 auto;
    font-size: 10px;
}

.pricing-cta-v14 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(80px, 9vw, 130px);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 30px;
}

.pricing-cta-v14 > div {
    max-width: 720px;
}

.pricing-cta-v14 h2 {
    max-width: 16ch;
}

.pricing-cta-v14 > div > p:last-child {
    max-width: 620px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .pricing-workspace-v14 {
        grid-template-columns: 1fr;
    }

    .pricing-route-guide-v14 {
        display: grid;
        grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
        align-items: start;
        gap: 24px;
    }

    .pricing-route-guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .pricing-route-guide-note {
        grid-column: 1 / -1;
        margin: 0;
        padding-top: 0;
    }
}

@media (max-width: 820px) {
    .pricing-hero-v14 {
        padding-top: 54px;
    }

    .pricing-estimator-body {
        grid-template-columns: 1fr;
    }

    .pricing-estimate-v14 {
        min-height: 235px;
    }

    .pricing-matrix-header-v14,
    .pricing-matrix-toolbar-v14,
    .pricing-route-panel-copy,
    .pricing-cta-v14 {
        align-items: stretch;
        flex-direction: column;
    }

    .pricing-matrix-route-tabs {
        align-self: flex-start;
    }

    .pricing-matrix-toolbar-v14 label {
        width: 100%;
    }

    .pricing-route-panel-copy p {
        max-width: none;
        text-align: left;
    }

    .pricing-matrix-foot-v14 {
        align-items: flex-start;
        flex-direction: column;
    }

    .pricing-cta-v14 .btn {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .pricing-hero-v14 {
        padding-block: 46px 24px;
    }

    .pricing-hero-v14 h1 {
        font-size: clamp(50px, 15vw, 68px);
    }

    .pricing-trust-row {
        gap: 6px;
        margin-top: 22px;
    }

    .pricing-trust-row span {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 9px;
    }

    .pricing-estimator-v14,
    .pricing-route-guide-v14,
    .pricing-matrix-card-v14,
    .pricing-cta-v14 {
        border-radius: 22px;
    }

    .pricing-estimator-v14,
    .pricing-route-guide-v14,
    .pricing-matrix-card-v14 {
        padding: 18px;
    }

    .pricing-estimator-heading {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 20px;
    }

    .pricing-route-options,
    .pricing-form-row,
    .pricing-route-guide-v14,
    .pricing-route-guide-list {
        grid-template-columns: 1fr;
    }

    .pricing-route-option > span {
        min-height: 92px;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
    }

    .pricing-route-option small {
        grid-column: 1 / -1;
    }

    .pricing-route-option strong {
        align-self: center;
        margin-top: 3px;
    }

    .pricing-route-option em {
        margin: 0;
        text-align: right;
    }

    .pricing-route-guide-heading h2 {
        max-width: 13ch;
    }

    .pricing-route-guide-note {
        grid-column: auto;
    }

    .pricing-matrix-route-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .pricing-matrix-route-tabs button {
        padding-inline: 8px;
    }

    .pricing-table-scroll-v14 {
        overflow: visible;
        border: 0;
    }

    .pricing-table-v14,
    .pricing-table-v14 tbody {
        display: block;
        min-width: 0;
        width: 100%;
        background: transparent;
    }

    .pricing-table-v14 thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pricing-table-v14 tbody {
        display: grid;
        gap: 10px;
    }

    .pricing-table-v14 tbody tr {
        display: grid;
        padding: 15px;
        background: rgba(255, 255, 255, 0.57);
        border: 1px solid rgba(33, 50, 39, 0.10);
        border-radius: 15px;
    }

    .pricing-table-v14 tbody tr.is-best-tier {
        background: rgba(66, 95, 69, 0.07);
        border-color: rgba(66, 95, 69, 0.16);
    }

    .pricing-table-v14 tbody th {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 11px;
        background: transparent !important;
        border: 0;
        font-size: 13px;
    }

    .pricing-table-v14 tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 0;
        background: transparent !important;
        border-bottom: 0;
        border-top: 1px solid rgba(33, 50, 39, 0.085);
        text-align: right;
        white-space: normal;
    }

    .pricing-table-v14 tbody td::before {
        color: var(--muted);
        content: attr(data-label);
        max-width: 48%;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .pricing-table-v14 tbody td strong {
        margin-left: auto;
    }

    .pricing-matrix-foot-v14 .text-link,
    .pricing-cta-v14 .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .pricing-estimate-meta {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .pricing-estimate-v14 {
        min-height: 280px;
    }

    .pricing-product-select-wrap {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .pricing-product-select-wrap img {
        width: 48px;
        height: 48px;
    }
}

/* Small V14 interaction safeguards. */
.pricing-route-option input {
    min-height: 1px;
    padding: 0;
    border: 0;
}

.pricing-table-v14.is-product-filtered {
    min-width: 420px;
}

@media (max-width: 640px) {
    .pricing-table-v14.is-product-filtered {
        min-width: 0;
    }
}

/* ========================================================================
   V15 — visual-first pricing redesign
   Less text, clearer route choice, glassmorphism depth, and tier cards that
   are easy to understand at first glance.
   ======================================================================== */
.page-pricing {
    --pricing-air: #5b8ec9;
    --pricing-air-deep: #204a71;
    --pricing-sea: #3b8a7a;
    --pricing-sea-deep: #123b31;
    background:
        radial-gradient(circle at 10% 10%, rgba(154, 117, 68, 0.10), transparent 28rem),
        radial-gradient(circle at 90% 22%, rgba(79, 117, 99, 0.10), transparent 30rem),
        linear-gradient(180deg, #f8f5ee 0%, #f2eee6 100%);
}

.pricing-glass-card-v15 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.60), rgba(255,255,255,0.28));
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 26px 80px rgba(30, 41, 33, 0.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.pricing-glass-card-v15::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255,255,255,0.40), rgba(255,255,255,0.04) 48%, rgba(255,255,255,0.18));
    pointer-events: none;
}

.pricing-hero-v15 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(26px, 4vw, 56px);
    padding-block: clamp(56px, 7vw, 92px) clamp(26px, 3.5vw, 44px);
}

.pricing-hero-copy-v15 {
    max-width: 760px;
}

.pricing-hero-copy-v15 h1 {
    max-width: 11ch;
    margin: 10px 0 22px;
    font-size: clamp(56px, 7vw, 102px);
    line-height: 0.92;
    letter-spacing: -0.068em;
}

.pricing-hero-copy-v15 h1 em {
    color: var(--forest);
    font-family: "Fraunces", serif;
    font-style: italic;
    font-weight: 400;
}

.pricing-hero-copy-v15 > p:not(.eyebrow) {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.7;
}

.pricing-hero-actions-v15 {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    margin-top: 28px;
}

.pricing-hero-notes-v15 {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.pricing-hero-notes-v15 span,
.pricing-live-pill-v15 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 13px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(32, 50, 38, 0.10);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-scene-stack-v15 {
    display: grid;
    gap: 16px;
}

.pricing-scene-card-v15,
.pricing-route-tile-v15 {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 28px;
    background-color: #264153;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.pricing-scene-card-v15::before,
.pricing-route-tile-v15::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 22, 33, 0.02), rgba(9, 17, 25, 0.42));
    z-index: -1;
}

.pricing-scene-card-v15:hover,
.pricing-route-tile-v15:hover,
.pricing-scene-card-v15.is-active,
.pricing-route-tile-v15.is-active {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.86);
    box-shadow: 0 22px 52px rgba(20, 35, 30, 0.18);
}

.pricing-scene-card-v15.scene-air,
.pricing-route-tile-v15.route-air {
    background-image: url('routes/air-scene.svg');
}

.pricing-scene-card-v15.scene-sea,
.pricing-route-tile-v15.route-sea {
    background-image: url('routes/sea-scene.svg');
}

.pricing-scene-card-v15 {
    min-height: 188px;
    padding: 16px;
}

.pricing-scene-overlay-v15,
.pricing-route-tile-copy-v15 {
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 100%;
    padding: 18px 18px 16px;
    color: var(--paper);
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.36);
    border-radius: 22px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pricing-scene-overlay-v15 small,
.pricing-route-tile-copy-v15 small,
.pricing-product-copy-v15 small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-scene-overlay-v15 strong,
.pricing-route-tile-copy-v15 strong {
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -0.05em;
}

.pricing-scene-overlay-v15 em,
.pricing-route-tile-copy-v15 em {
    color: rgba(252,250,245,0.82);
    font-style: normal;
    font-size: 12px;
    line-height: 1.45;
}

.pricing-builder-v15 {
    padding-block: 10px clamp(74px, 8vw, 108px);
}

.pricing-builder-grid-v15 {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
    gap: clamp(20px, 2.5vw, 28px);
}

.pricing-control-panel-v15,
.pricing-summary-card-v15,
.pricing-cta-card-v15 {
    border-radius: 32px;
}

.pricing-control-panel-v15 {
    padding: clamp(22px, 3vw, 34px);
}

.pricing-panel-head-v15 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(33, 50, 39, 0.08);
}

.pricing-panel-head-v15 h2,
.pricing-tier-head-v15 h2,
.pricing-cta-card-v15 h2 {
    margin: 7px 0 0;
    font-size: clamp(31px, 3vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.048em;
}

.pricing-live-pill-v15 i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 5px rgba(56,84,61,0.10);
}

.pricing-route-strip-v15 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.pricing-route-tile-v15 {
    min-height: 184px;
    padding: 12px;
}

.pricing-product-strip-v15 {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 12px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.pricing-product-card-v15 {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--ink);
    background: rgba(255,255,255,0.54);
    border: 1px solid rgba(33,50,39,0.10);
    border-radius: 22px;
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pricing-product-card-v15:hover,
.pricing-product-card-v15.is-active {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.78);
    border-color: rgba(33,50,39,0.18);
    box-shadow: 0 14px 28px rgba(30,41,33,0.08);
}

.pricing-product-card-v15 img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 18px;
}

.pricing-product-copy-v15 {
    display: grid;
    gap: 5px;
}

.pricing-product-copy-v15 strong,
.pricing-tier-card-v15 strong {
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pricing-product-copy-v15 small {
    color: var(--jute-deep);
}

.pricing-product-copy-v15 em {
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    line-height: 1.45;
}

.pricing-quantity-panel-v15 {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(33,50,39,0.08);
    border-radius: 26px;
}

.pricing-quantity-head-v15 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pricing-quantity-head-v15 h3 {
    margin: 7px 0 0;
    font-size: clamp(22px, 2vw, 28px);
    letter-spacing: -0.045em;
}

.pricing-quantity-box-v15 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(33,50,39,0.10);
    border-radius: 18px;
}

.pricing-quantity-box-v15 input {
    width: 150px;
    min-height: 52px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.pricing-quantity-box-v15 span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-quantity-range-v15 {
    width: 100%;
    margin-top: 18px;
    accent-color: var(--forest);
}

.pricing-tier-shortcuts-v15 {
    margin-top: 16px;
}

.pricing-tier-shortcuts-v15 > span,
.pricing-summary-facts-v15 span small,
.pricing-tier-card-v15 small,
.pricing-tier-head-v15 > div > p:last-child {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.pricing-tier-shortcuts-v15 > span {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-tier-shortcuts-v15 > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pricing-tier-shortcuts-v15 button,
.pricing-mini-products-v15 button,
.pricing-mini-routes-v15 button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--ink-soft);
    background: rgba(255,255,255,0.56);
    border: 1px solid rgba(33,50,39,0.10);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.pricing-tier-shortcuts-v15 button:hover,
.pricing-tier-shortcuts-v15 button.is-current,
.pricing-mini-products-v15 button:hover,
.pricing-mini-products-v15 button.is-active,
.pricing-mini-routes-v15 button:hover,
.pricing-mini-routes-v15 button.is-active {
    color: var(--paper);
    background: var(--forest);
    border-color: var(--forest);
    transform: translateY(-1px);
}

.pricing-summary-card-v15 {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 14px;
}

.pricing-summary-visual-v15 {
    position: relative;
    min-height: 308px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18,59,49,0.10), rgba(18,59,49,0.24));
}

.pricing-summary-visual-v15 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 500ms ease;
}

.pricing-summary-card-v15:hover .pricing-summary-visual-v15 img {
    transform: scale(1.08);
}

.pricing-image-action-v15 {
    position: absolute;
    right: 16px;
    bottom: 16px;
    min-height: 40px;
    padding: 9px 14px;
    color: var(--paper);
    background: rgba(15, 28, 20, 0.45);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.pricing-summary-glass-v15 {
    position: relative;
    z-index: 1;
    margin: -42px 12px 0;
    padding: 22px;
    color: var(--paper);
    background: linear-gradient(145deg, rgba(25, 38, 30, 0.84), rgba(28, 49, 38, 0.58));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 26px;
    box-shadow: 0 16px 34px rgba(21, 35, 27, 0.20);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.pricing-summary-glass-v15 .pricing-estimate-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(252,250,245,0.76);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pricing-summary-glass-v15 .pricing-estimate-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A1D6BC;
    box-shadow: 0 0 0 5px rgba(161,214,188,0.10);
}

.pricing-summary-glass-v15 .estimate-price {
    display: grid;
    gap: 5px;
    margin-top: 16px;
}

.pricing-summary-glass-v15 .estimate-price strong {
    font-size: clamp(50px, 4.5vw, 68px);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.pricing-summary-glass-v15 .estimate-price small {
    color: rgba(252,250,245,0.78);
    font-size: 13px;
}

.pricing-summary-glass-v15 .pricing-estimate-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.pricing-summary-glass-v15 .pricing-estimate-meta > span {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
}

.pricing-summary-glass-v15 .pricing-estimate-meta small {
    color: rgba(252,250,245,0.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-summary-glass-v15 .pricing-estimate-meta b {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.pricing-summary-glass-v15 .pricing-estimate-note {
    margin: 16px 0 0;
    color: rgba(252,250,245,0.72);
    font-size: 11px;
    line-height: 1.55;
}

.pricing-summary-glass-v15.is-blocked {
    background: linear-gradient(145deg, rgba(113,86,59,0.92), rgba(90,69,48,0.78));
}

.pricing-summary-facts-v15 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 12px 14px;
}

.pricing-summary-facts-v15 span {
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 16px;
    background: rgba(255,255,255,0.48);
    border: 1px solid rgba(33,50,39,0.08);
    border-radius: 20px;
}

.pricing-summary-facts-v15 span b {
    font-size: 14px;
    line-height: 1.2;
}

.pricing-tier-showcase-v15 {
    padding-bottom: clamp(78px, 8vw, 116px);
}

.pricing-tier-head-v15 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.pricing-tier-head-v15 > div:first-child {
    max-width: 680px;
}

.pricing-tier-head-v15 > div > p:last-child {
    margin: 13px 0 0;
}

.pricing-mini-routes-v15,
.pricing-mini-products-v15 {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pricing-mini-products-v15 {
    margin-bottom: 22px;
}

.pricing-mini-products-v15 button span {
    color: rgba(255,255,255,0.70);
    margin-left: 6px;
    font-size: 10px;
}

.pricing-tier-grid-v15 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pricing-tier-card-v15 {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.36));
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 18px 36px rgba(30,41,33,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.pricing-tier-card-v15:hover,
.pricing-tier-card-v15.is-current {
    transform: translateY(-3px);
    border-color: rgba(56,84,61,0.22);
    box-shadow: 0 22px 44px rgba(30,41,33,0.12);
}

.pricing-tier-card-v15::after {
    content: "";
    position: absolute;
    inset: auto -15% -35% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,84,61,0.12), transparent 68%);
    pointer-events: none;
}

.pricing-tier-badge-v15 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 11px;
    color: var(--forest);
    background: rgba(56,84,61,0.08);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-tier-qty-v15 {
    margin-top: 18px;
}

.pricing-tier-qty-v15 strong {
    font-size: clamp(34px, 3vw, 44px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.pricing-tier-qty-v15 span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.pricing-tier-price-v15 {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.pricing-tier-price-v15 strong {
    font-size: clamp(38px, 3vw, 52px);
}

.pricing-tier-price-v15 small {
    margin-bottom: 8px;
}

.pricing-tier-meta-v15 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.pricing-tier-meta-v15 span {
    display: grid;
    gap: 3px;
    padding: 13px;
    background: rgba(255,255,255,0.44);
    border: 1px solid rgba(33,50,39,0.08);
    border-radius: 18px;
}

.pricing-tier-meta-v15 span b {
    font-size: 17px;
    font-weight: 800;
}

.pricing-tier-save-v15 {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(33,50,39,0.08);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.pricing-cta-v15 {
    padding-bottom: clamp(78px, 8vw, 120px);
}

.pricing-cta-card-v15 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 3vw, 40px);
}

.pricing-cta-card-v15 p:last-child {
    max-width: 56ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

@keyframes pricingFloatV15 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.pricing-scene-card-v15,
.pricing-route-tile-v15,
.pricing-summary-card-v15,
.pricing-tier-card-v15 {
    animation: pricingFloatV15 8s ease-in-out infinite;
}

.pricing-route-tile-v15:nth-child(2),
.pricing-tier-card-v15:nth-child(2) {
    animation-delay: 0.8s;
}

.pricing-scene-card-v15:nth-child(2),
.pricing-tier-card-v15:nth-child(3) {
    animation-delay: 1.6s;
}

@media (max-width: 1100px) {
    .pricing-hero-v15,
    .pricing-builder-grid-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-scene-stack-v15 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-tier-grid-v15 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .pricing-hero-v15 {
        padding-top: 46px;
    }

    .pricing-panel-head-v15,
    .pricing-quantity-head-v15,
    .pricing-tier-head-v15,
    .pricing-cta-card-v15 {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-route-strip-v15,
    .pricing-summary-facts-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-scene-stack-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-summary-glass-v15 .pricing-estimate-meta,
    .pricing-tier-meta-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-quantity-box-v15 {
        width: 100%;
        justify-content: space-between;
    }

    .pricing-quantity-box-v15 input {
        width: min(180px, 100%);
    }
}

@media (max-width: 640px) {
    .pricing-hero-copy-v15 h1 {
        font-size: clamp(48px, 15vw, 68px);
    }

    .pricing-hero-actions-v15,
    .pricing-hero-notes-v15,
    .pricing-mini-routes-v15,
    .pricing-mini-products-v15 {
        gap: 8px;
    }

    .pricing-control-panel-v15,
    .pricing-summary-card-v15,
    .pricing-cta-card-v15 {
        border-radius: 24px;
    }

    .pricing-control-panel-v15 {
        padding: 18px;
    }

    .pricing-route-tile-v15,
    .pricing-scene-card-v15 {
        min-height: 160px;
        border-radius: 22px;
    }

    .pricing-scene-overlay-v15,
    .pricing-route-tile-copy-v15 {
        padding: 15px;
        border-radius: 18px;
    }

    .pricing-product-strip-v15 {
        grid-auto-columns: minmax(220px, 1fr);
    }

    .pricing-product-card-v15 {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .pricing-product-card-v15 img {
        width: 76px;
        height: 76px;
    }

    .pricing-summary-visual-v15 {
        min-height: 250px;
    }

    .pricing-summary-glass-v15 {
        margin-inline: 6px;
        padding: 18px;
    }

    .pricing-summary-glass-v15 .estimate-price strong {
        font-size: 44px;
    }

    .pricing-tier-card-v15 {
        padding: 18px;
        border-radius: 22px;
    }

    .pricing-tier-price-v15 strong {
        font-size: 36px;
    }

    .pricing-cta-card-v15 .btn,
    .pricing-summary-card-v15 .btn {
        width: 100%;
        justify-content: center;
    }
}

/* V16 — simplify repeated pricing details */
.pricing-hero-copy-v15 > p:not(.eyebrow) {
    max-width: 44ch;
}

.pricing-scene-card-v15 {
    min-height: 170px;
    padding: 14px;
}

.pricing-scene-overlay-v15 {
    align-content: space-between;
    justify-items: start;
    padding: 16px;
}

.pricing-scene-overlay-v15 small,
.pricing-scene-overlay-v15 strong,
.pricing-scene-overlay-v15 em {
    display: none;
}

.pricing-scene-pill-v15,
.pricing-scene-hint-v15 {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--paper);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.20);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-scene-hint-v15 {
    align-self: end;
    min-height: 28px;
    padding: 6px 10px;
    color: rgba(252,250,245,0.9);
    background: rgba(15, 28, 20, 0.28);
    font-size: 9px;
}

.pricing-route-tile-v15 {
    min-height: 140px;
}

.pricing-route-tile-copy-v15 {
    align-content: end;
    justify-items: start;
    gap: 8px;
    padding: 14px;
}

.pricing-route-tile-copy-v15 em {
    display: none;
}

.pricing-route-icon-v15 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    font-size: 16px;
    line-height: 1;
}

.pricing-route-tile-copy-v15 strong {
    font-size: 24px;
}

.pricing-route-tile-copy-v15 small {
    color: rgba(252,250,245,0.85);
    font-size: 9px;
}

.pricing-product-copy-v15 {
    gap: 3px;
}

.pricing-product-copy-v15 em {
    display: none;
}

@media (max-width: 640px) {
    .pricing-route-tile-v15 {
        min-height: 120px;
    }

    .pricing-scene-card-v15 {
        min-height: 144px;
    }
}

/* V17 — cleaner pricing hero */
.pricing-hero-copy-v15 h1 {
    max-width: 8.5ch;
    margin-bottom: 8px;
    font-size: clamp(42px, 5.6vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.pricing-hero-copy-v15 h1 em {
    display: none;
}

.pricing-hero-subtitle-v17 {
    margin: 0 0 16px;
    color: var(--forest);
    font-family: "Fraunces", serif;
    font-size: clamp(24px, 3.2vw, 42px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.pricing-hero-copy-v15 > p:not(.eyebrow):not(.pricing-hero-subtitle-v17) {
    max-width: 34ch;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
}

.pricing-scene-stack-v15 {
    gap: 18px;
}

.pricing-scene-card-v15 {
    min-height: 150px;
    padding: 12px;
}

.pricing-scene-overlay-v17 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0;
}

.pricing-scene-icon-v17 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: rgba(255,255,255,0.96);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.24), 0 10px 26px rgba(18,34,28,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 38px;
    line-height: 1;
}

.pricing-scene-card-v15.is-active .pricing-scene-icon-v17 {
    transform: scale(1.04);
    background: rgba(255,255,255,0.18);
}

@media (max-width: 640px) {
    .pricing-hero-copy-v15 h1 {
        font-size: clamp(38px, 11vw, 56px);
    }

    .pricing-hero-subtitle-v17 {
        font-size: clamp(22px, 8vw, 34px);
    }

    .pricing-scene-card-v15 {
        min-height: 132px;
    }

    .pricing-scene-icon-v17 {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

/* V18 — adaptive multi-product pricing compare */
.pricing-hero-v15 {
    grid-template-columns: minmax(0, 0.95fr) minmax(560px, 0.95fr);
}

.pricing-scene-stack-v15 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pricing-tier-showcase-v15 {
    padding-top: 8px;
}

.pricing-compare-toolbar-v17 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 18px;
    align-items: center;
    margin-bottom: 16px;
}

.pricing-category-filters-v17 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pricing-category-filters-v17 button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--ink-soft);
    background: rgba(255,255,255,0.56);
    border: 1px solid rgba(33,50,39,0.10);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.pricing-category-filters-v17 button:hover,
.pricing-category-filters-v17 button.is-active,
.pricing-mini-products-v17 button.is-primary {
    color: var(--paper);
    background: var(--forest);
    border-color: var(--forest);
}

.pricing-mini-products-v17 {
    margin-bottom: 18px;
}

.pricing-mini-products-v17 button {
    position: relative;
}

.pricing-mini-products-v17 button.is-primary::after {
    content: "Primary";
    margin-left: 8px;
    color: rgba(255,255,255,0.78);
    font-size: 10px;
}

.pricing-compare-grid-v17 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pricing-compare-card-v17 {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
    border: 1px solid rgba(255,255,255,0.76);
    box-shadow: 0 18px 36px rgba(30,41,33,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pricing-compare-card-v17.is-primary {
    border-color: rgba(56,84,61,0.26);
    box-shadow: 0 24px 44px rgba(30,41,33,0.12);
}

.pricing-compare-card-v17.is-blocked {
    background: linear-gradient(145deg, rgba(245, 236, 220, 0.85), rgba(255,255,255,0.48));
}

.pricing-compare-head-v17 {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.pricing-compare-head-v17 img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 22px;
}

.pricing-compare-head-v17 div {
    display: grid;
    gap: 4px;
}

.pricing-compare-head-v17 small {
    color: var(--jute-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-compare-head-v17 strong {
    font-size: 24px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.pricing-compare-head-v17 em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.pricing-compare-main-v17 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pricing-compare-main-v17 > div {
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(255,255,255,0.44);
    border: 1px solid rgba(33,50,39,0.08);
    border-radius: 18px;
}

.pricing-compare-main-v17 > div span,
.pricing-compare-tier-chip-v17 small,
.pricing-compare-empty-v17 {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-compare-main-v17 > div strong {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-compare-main-v17 > div small {
    color: var(--muted);
    font-size: 11px;
}

.pricing-compare-tiers-v17 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.pricing-compare-tier-chip-v17 {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(255,255,255,0.44);
    border: 1px solid rgba(33,50,39,0.08);
    border-radius: 16px;
}

.pricing-compare-tier-chip-v17 b {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-compare-tier-chip-v17.is-current {
    background: rgba(56,84,61,0.10);
    border-color: rgba(56,84,61,0.24);
}

.pricing-compare-empty-v17 {
    margin: 0;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .pricing-hero-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-scene-stack-v15 {
        max-width: 780px;
    }
}

@media (max-width: 960px) {
    .pricing-compare-toolbar-v17 {
        grid-template-columns: 1fr;
    }

    .pricing-category-filters-v17 {
        justify-content: flex-start;
    }

    .pricing-compare-grid-v17 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pricing-scene-stack-v15 {
        grid-template-columns: 1fr;
    }

    .pricing-compare-head-v17,
    .pricing-compare-main-v17 {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   V19 — brand visibility + visual-first How it works page
   ======================================================================== */
.official-mark img{filter:brightness(0) saturate(100%);opacity:.78;transform:scale(1.04)}
.footer-brand-official>a{width:190px;max-width:72%}
.footer-brand-official>a img{max-height:126px;filter:brightness(2.2) contrast(1.18);opacity:1}
.footer-brand-official p{color:rgba(244,242,234,.72)}

.page-process{background:radial-gradient(circle at 86% 12%,rgba(105,135,112,.10),transparent 28rem),radial-gradient(circle at 8% 30%,rgba(170,132,79,.08),transparent 24rem),var(--paper)}
.process-hero-v19{display:grid;grid-template-columns:minmax(0,.82fr) minmax(420px,1.18fr);align-items:center;gap:clamp(34px,5vw,72px);min-height:590px;padding-block:clamp(58px,7vw,94px) clamp(48px,6vw,76px)}
.process-hero-copy-v19{max-width:620px}.process-hero-copy-v19 h1{max-width:8.5ch;margin:10px 0 18px;color:var(--ink);font-size:clamp(54px,6.2vw,88px);line-height:.93;letter-spacing:-.064em}.process-hero-copy-v19>p:last-child{margin:0;color:var(--muted);font-size:clamp(17px,1.5vw,21px);line-height:1.55}
.process-hero-visual-v19{position:relative;min-height:470px}.process-hero-main-v19,.process-hero-small-v19{position:absolute;overflow:hidden;background:rgba(255,255,255,.46);border:1px solid rgba(255,255,255,.72);box-shadow:0 28px 72px rgba(29,41,32,.12);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.process-hero-main-v19{inset:18px 70px 18px 16px;border-radius:34px 34px 92px 34px}.process-hero-main-v19:after,.process-hero-small-v19:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(16,28,20,.12))}.process-hero-main-v19 img,.process-hero-small-v19 img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 700ms var(--ease-out)}.process-hero-visual-v19:hover .process-hero-main-v19 img{transform:scale(1.035)}
.process-hero-glass-tag-v19,.process-hero-small-v19 span{position:absolute;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;color:var(--paper);background:rgba(16,29,20,.38);border:1px solid rgba(255,255,255,.24);border-radius:999px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.process-hero-glass-tag-v19{left:20px;bottom:20px}.process-hero-small-v19{width:180px;height:180px;border-radius:26px}.process-hero-small-a-v19{top:0;right:0}.process-hero-small-b-v19{right:0;bottom:0}.process-hero-small-v19 span{left:12px;bottom:12px;min-height:29px;padding:6px 9px;font-size:8px}
.process-explorer-v19{padding-bottom:clamp(72px,8vw,112px)}.process-step-tabs-v19{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:18px;padding:8px;overflow-x:auto;background:rgba(255,255,255,.48);border:1px solid rgba(33,50,39,.09);border-radius:22px;box-shadow:0 14px 34px rgba(30,41,33,.06);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);scrollbar-width:thin}.process-step-tab-v19{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;min-height:54px;padding:10px 12px;color:var(--ink-soft);background:transparent;border:0;border-radius:15px;cursor:pointer;font:inherit;text-align:left;transition:background 180ms ease,color 180ms ease,transform 180ms ease,box-shadow 180ms ease}.process-step-tab-v19:hover{transform:translateY(-1px);background:rgba(255,255,255,.56)}.process-step-tab-v19.is-active{color:var(--paper);background:var(--forest);box-shadow:0 12px 24px rgba(33,50,39,.15)}.process-step-tab-v19 span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--jute-deep);background:rgba(154,117,68,.10);font-family:var(--serif);font-size:13px}.process-step-tab-v19.is-active span{color:var(--paper);background:rgba(255,255,255,.13)}.process-step-tab-v19 strong{font-size:11px;font-weight:800;letter-spacing:.02em}
.process-stage-v19{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:18px;min-height:520px}.process-stage-image-v19{position:relative;overflow:hidden;min-height:520px;border-radius:34px 34px 86px 34px;background:#d8d4c8;box-shadow:0 26px 64px rgba(29,41,32,.10)}.process-stage-image-v19 img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01);transition:opacity 260ms ease,transform 620ms var(--ease-out)}.process-stage-v19.is-switching .process-stage-image-v19 img{opacity:.20;transform:scale(1.05)}.process-stage-number-v19{position:absolute;left:24px;top:24px;z-index:2;display:grid;place-items:center;width:64px;height:64px;color:var(--paper);background:rgba(16,29,20,.40);border:1px solid rgba(255,255,255,.26);border-radius:50%;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-family:var(--serif);font-size:24px}.process-stage-zoom-v19{position:absolute;right:22px;bottom:22px;z-index:3;display:grid;place-items:center;width:48px;height:48px;color:var(--paper);background:rgba(16,29,20,.42);border:1px solid rgba(255,255,255,.28);border-radius:50%;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);cursor:pointer;font:inherit;font-size:22px;transition:transform 170ms ease,background 170ms ease}.process-stage-zoom-v19:hover{transform:scale(1.06);background:rgba(16,29,20,.62)}
.process-stage-copy-v19{display:flex;flex-direction:column;justify-content:center;min-height:520px;padding:clamp(28px,4vw,54px);border-radius:34px}.process-stage-icon-v19{display:grid;place-items:center;width:62px;height:62px;margin-bottom:28px;color:var(--forest);background:rgba(56,84,61,.08);border:1px solid rgba(56,84,61,.12);border-radius:20px;font-family:var(--serif);font-size:28px;font-weight:500}.process-stage-copy-v19 h2{max-width:11ch;margin:8px 0 16px;font-size:clamp(38px,4.2vw,62px);line-height:.96;letter-spacing:-.055em}.process-stage-copy-v19>p:last-of-type{max-width:35ch;margin:0;color:var(--muted);font-size:clamp(15px,1.4vw,18px);line-height:1.6}.process-stage-progress-v19{width:100%;height:4px;margin-top:38px;overflow:hidden;background:rgba(33,50,39,.08);border-radius:999px}.process-stage-progress-v19 span{display:block;width:calc(100%/6);height:100%;background:var(--forest);border-radius:inherit;transition:width 320ms var(--ease-out)}
.process-route-strip-v19{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(220px,.72fr);gap:14px;padding-bottom:clamp(70px,8vw,106px)}.process-route-card-v19,.process-route-link-v19{min-height:160px;border-radius:28px}.process-route-card-v19{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;align-items:center;gap:0 16px;padding:24px;color:var(--paper);border:1px solid rgba(255,255,255,.42);box-shadow:0 20px 42px rgba(30,41,33,.10)}.process-route-card-v19:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.02));pointer-events:none}.process-route-air-v19{background:linear-gradient(135deg,#87b2da,#315b7c)}.process-route-sea-v19{background:linear-gradient(135deg,#84c8bb,#20564d)}.process-route-icon-v19{z-index:1;display:grid;place-items:center;grid-row:1/span 2;width:66px;height:66px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);border-radius:50%;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:28px}.process-route-card-v19 strong,.process-route-card-v19 small{position:relative;z-index:1}.process-route-card-v19 strong{align-self:end;font-size:30px;letter-spacing:-.04em}.process-route-card-v19 small{align-self:start;color:rgba(252,250,245,.76);font-size:11px;font-weight:700}.process-route-link-v19{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px;color:var(--ink);background:rgba(255,255,255,.56);border:1px solid rgba(33,50,39,.10);box-shadow:0 20px 42px rgba(30,41,33,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:transform 180ms ease,background 180ms ease}.process-route-link-v19:hover{transform:translateY(-2px);background:rgba(255,255,255,.78)}.process-route-link-v19 span{font-size:15px;font-weight:800}.process-route-link-v19 strong{font-size:28px}
.process-cta-v19{padding-bottom:clamp(80px,9vw,126px)}.process-cta-card-v19{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;min-height:104px;padding:22px 28px;color:var(--paper);background:var(--forest);border-radius:26px;box-shadow:0 20px 44px rgba(31,51,38,.14);transition:transform 180ms ease,box-shadow 180ms ease}.process-cta-card-v19:hover{transform:translateY(-2px);box-shadow:0 24px 50px rgba(31,51,38,.19)}.process-cta-card-v19 span{color:rgba(252,250,245,.66);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.process-cta-card-v19 strong{font-size:clamp(24px,2.5vw,36px);letter-spacing:-.04em}.process-cta-card-v19 i{font-style:normal;font-size:30px}
@media(max-width:1040px){.process-hero-v19,.process-stage-v19{grid-template-columns:1fr}.process-hero-copy-v19 h1{max-width:none}.process-hero-visual-v19{min-height:440px}.process-stage-copy-v19{min-height:360px}.process-route-strip-v19{grid-template-columns:repeat(2,minmax(0,1fr))}.process-route-link-v19{grid-column:1/-1;min-height:92px}}
@media(max-width:760px){.process-hero-v19{min-height:0;padding-top:46px}.process-hero-copy-v19 h1{font-size:clamp(48px,13vw,66px)}.process-hero-visual-v19{min-height:380px}.process-hero-main-v19{inset:16px 42px 16px 0;border-radius:28px 28px 68px 28px}.process-hero-small-v19{width:132px;height:132px;border-radius:22px}.process-step-tabs-v19{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(120px,1fr)}.process-stage-image-v19{min-height:380px;border-radius:26px 26px 64px 26px}.process-stage-copy-v19{min-height:330px;padding:26px;border-radius:26px}.process-stage-copy-v19 h2{font-size:clamp(36px,10vw,52px)}.process-route-strip-v19{grid-template-columns:1fr}.process-route-link-v19{grid-column:auto}}
@media(max-width:520px){.footer-brand-official>a{width:165px}.process-hero-visual-v19{min-height:330px}.process-hero-main-v19{right:28px}.process-hero-small-v19{width:108px;height:108px}.process-stage-image-v19{min-height:320px}.process-route-card-v19{min-height:136px}.process-cta-card-v19{grid-template-columns:1fr auto}.process-cta-card-v19 span{grid-column:1/-1}}

/* ========================================================================
   V20 — member login/signup redesign
   Glassmorphism auth card with animated sign-in/sign-up swap.
   ======================================================================== */
.account-access-shell-v20 {
    padding-block: 20px 110px;
}

.account-access-card-v20 {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    max-width: 1160px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255,255,255,.60), rgba(255,255,255,.24));
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 34px 100px rgba(27,36,28,.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.account-access-card-v20::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(117,150,128,.16), transparent 28%), radial-gradient(circle at bottom right, rgba(210,174,115,.12), transparent 30%);
}

.account-access-intro-v20 {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 24px;
    min-height: 620px;
    padding: clamp(28px,4vw,52px);
    background:
        linear-gradient(155deg, rgba(15,24,18,.90) 0%, rgba(24,38,29,.76) 44%, rgba(38,68,53,.62) 100%),
        radial-gradient(circle at 15% 15%, rgba(208,173,113,.20), transparent 25%),
        radial-gradient(circle at 85% 10%, rgba(123,156,138,.14), transparent 24%);
    color: #f7f2e7;
}

.auth-visual-mark-v20 {
    position: relative;
    z-index: 1;
}

.auth-visual-mark-v20 h2 {
    max-width: 11ch;
    margin: 14px 0 14px;
    color: #fffdf8;
    font-size: clamp(2.5rem,4.2vw,4.5rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.auth-visual-mark-v20 > p:not(.eyebrow) {
    max-width: 26ch;
    color: rgba(255,255,255,.74);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .85;
    pointer-events: none;
}

.auth-orb-one {
    width: 180px;
    height: 180px;
    top: -32px;
    right: 12px;
    background: radial-gradient(circle, rgba(208,173,113,.28), transparent 68%);
}

.auth-orb-two {
    width: 240px;
    height: 240px;
    right: -60px;
    bottom: 88px;
    background: radial-gradient(circle, rgba(123,156,138,.24), transparent 70%);
}

.auth-social-stack-v20 {
    position: relative;
    z-index: 1;
}

.social-auth-v20,
.social-oauth-row-v20 {
    display: grid;
    gap: 12px;
}

.social-oauth-btn-v20 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
    color: #fffdf8;
    font: 700 .95rem/1 Manrope, sans-serif;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-oauth-btn-v20:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.28);
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.12));
    box-shadow: 0 16px 28px rgba(12,18,14,.14);
}

.social-oauth-btn-v20:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.social-oauth-icon-v20 {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.88);
    color: #111;
    flex: 0 0 34px;
    font-size: 1rem;
    font-weight: 800;
}

.social-oauth-icon-v20 svg {
    display: block;
    width: 18px;
    height: 18px;
}

.social-oauth-btn-v20 small {
    margin-left: auto;
    min-width: 42px;
    padding: 4px 6px;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.09);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-trust-row-v20 {
    position: relative;
    z-index: 1;
}

.auth-trust-row-v20 span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.76);
    font-size: .68rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.account-workspace-v20 {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: clamp(24px,3.2vw,34px);
    background: linear-gradient(155deg, rgba(255,252,247,.74), rgba(255,255,255,.34));
}

.auth-swap-head-v20 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.auth-swap-toggle-v20 {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(27,36,28,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.auth-swap-toggle-v20 button,
.auth-link-button-v20 {
    font: inherit;
    cursor: pointer;
}

.auth-swap-toggle-v20 button {
    min-height: 44px;
    padding: 0 18px;
    color: #526057;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-swap-toggle-v20 button.is-active {
    color: #fffdf8;
    background: linear-gradient(135deg, #17231a, #264333);
    box-shadow: 0 12px 24px rgba(23,35,26,.16);
}

.auth-swap-note-v20 {
    margin: 0;
    color: #6d786f;
    font-size: .9rem;
    line-height: 1.6;
}

.auth-swap-stage-v20 {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.auth-swap-track-v20 {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform .52s cubic-bezier(.22,.61,.36,1);
}

.account-access-card-v20[data-auth-mode="signup"] .auth-swap-track-v20 {
    transform: translateX(-50%);
}

.auth-form-panel-v20 {
    width: 50%;
    flex: 0 0 50%;
    gap: 18px;
    padding: clamp(28px,3vw,40px);
    background: transparent;
    border: 0;
}

.auth-form-panel-v20.auth-form-panel-soft {
    background: transparent;
}

.auth-form-heading-v20 h3 {
    margin: 6px 0 0;
    font-size: clamp(1.55rem,2.2vw,2rem);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.auth-form-panel-v20 label {
    display: grid;
    gap: 8px;
    color: #2a362f;
    font-size: .84rem;
    font-weight: 700;
}

.auth-form-panel-v20 input,
.auth-form-panel-v20 select,
.auth-form-panel-v20 textarea {
    min-height: 54px;
    padding-inline: 16px;
    border-radius: 16px;
    border: 1px solid rgba(27,36,28,.09);
    background: rgba(255,255,255,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.auth-form-panel-v20 input:focus,
.auth-form-panel-v20 select:focus,
.auth-form-panel-v20 textarea:focus {
    border-color: rgba(72,98,84,.32);
    box-shadow: 0 0 0 4px rgba(72,98,84,.10), inset 0 1px 0 rgba(255,255,255,.64);
}

.auth-form-actions-v20 {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.auth-form-panel-v20 .btn {
    min-height: 54px;
    border-radius: 999px;
}

.auth-panel-alt-v20 {
    margin: 4px 0 0;
    color: #748077;
    font-size: .92rem;
    line-height: 1.55;
}

.auth-link-button-v20 {
    padding: 0;
    border: 0;
    background: transparent;
    color: #213528;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1040px) {
    .account-access-card-v20 {
        grid-template-columns: 1fr;
    }

    .account-access-intro-v20 {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .account-access-shell-v20 {
        padding-block: 12px 76px;
    }

    .account-access-card-v20,
    .auth-swap-stage-v20 {
        border-radius: 24px;
    }

    .account-access-intro-v20,
    .account-workspace-v20,
    .auth-form-panel-v20 {
        padding: 22px;
    }

    .auth-swap-head-v20 {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-swap-toggle-v20 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .auth-visual-mark-v20 h2 {
        font-size: clamp(2.1rem, 12vw, 3rem);
    }

    .social-oauth-btn-v20 {
        min-height: 50px;
        padding-inline: 14px;
        font-size: .86rem;
    }

    .social-oauth-btn-v20 small {
        display: none;
    }

    .auth-form-panel-v20 .field-grid {
        grid-template-columns: 1fr;
    }
}


/* V21 — simplified auth intro after removing marketing copy */
.account-access-intro-v20 {
    grid-template-rows: auto 1fr auto;
}
.auth-social-stack-v20 {
    align-self: center;
    width: 100%;
}
.auth-visual-mark-v20 {
    min-height: 0;
}

/* ========================================================================
   V22 — DOXRINE cinematic sliding authentication
   Demo-inspired split-panel motion rebuilt in the DOXRINE visual language.
   ======================================================================== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.auth-page-guest main {
    min-height: calc(100vh - 82px);
}

.auth-page-guest .site-footer {
    display: none;
}

.auth-page-guest {
    background:
        radial-gradient(circle at 12% 14%, rgba(200,170,120,.30), transparent 26rem),
        radial-gradient(circle at 88% 22%, rgba(74,111,88,.22), transparent 30rem),
        radial-gradient(circle at 52% 110%, rgba(154,117,68,.16), transparent 34rem),
        linear-gradient(145deg, #f4efe4 0%, #ebe7dc 48%, #f6f2e9 100%);
}

.dox-auth-shell {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 64px) 20px;
    overflow: hidden;
}

.dox-auth-shell::before {
    content: "";
    position: absolute;
    inset: 8% 5% auto auto;
    width: 28vw;
    height: 28vw;
    max-width: 430px;
    max-height: 430px;
    min-width: 220px;
    min-height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71,104,83,.16), transparent 68%);
    filter: blur(10px);
    z-index: -2;
    animation: doxAuthFloat 10s ease-in-out infinite alternate;
}

.dox-auth-ambient {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
    opacity: .72;
}

.dox-auth-ambient-one {
    width: 230px;
    height: 230px;
    left: max(2vw, 18px);
    bottom: 9%;
    background: radial-gradient(circle at 36% 34%, rgba(207,174,117,.34), rgba(207,174,117,.08) 46%, transparent 72%);
    animation: doxAuthFloat 12s ease-in-out infinite alternate-reverse;
}

.dox-auth-ambient-two {
    width: 160px;
    height: 160px;
    right: 4%;
    top: 14%;
    background: radial-gradient(circle at 38% 35%, rgba(67,100,78,.24), rgba(67,100,78,.04) 50%, transparent 72%);
    animation: doxAuthFloat 9s ease-in-out infinite alternate;
}

@keyframes doxAuthFloat {
    from { transform: translate3d(0,0,0) rotate(0deg); }
    to { transform: translate3d(18px,-16px,0) rotate(7deg); }
}

.dox-auth-card {
    --auth-glass: rgba(255,255,255,.46);
    --auth-line: rgba(255,255,255,.70);
    --auth-dark: #16261c;
    --auth-green: #294536;
    --auth-gold: #c8aa78;
    position: relative;
    width: min(100%, 980px);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.24));
    box-shadow:
        0 42px 100px rgba(33,45,36,.18),
        inset 0 1px 0 rgba(255,255,255,.82);
    backdrop-filter: blur(28px) saturate(1.18);
    -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.dox-auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 130;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.dox-auth-form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    transition:
        transform .72s cubic-bezier(.22,.72,.22,1),
        opacity .42s ease;
}

.dox-auth-signin {
    z-index: 3;
    opacity: 1;
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-signin {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.dox-auth-signup {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-signup {
    z-index: 5;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: auto;
    animation: doxAuthReveal .72s cubic-bezier(.22,.72,.22,1);
}

@keyframes doxAuthReveal {
    0%, 42% { opacity: 0; }
    58%, 100% { opacity: 1; }
}

.dox-auth-form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 42px clamp(34px, 4.3vw, 54px);
    background:
        radial-gradient(circle at 22% 10%, rgba(255,255,255,.60), transparent 34%),
        linear-gradient(155deg, rgba(255,255,255,.34), rgba(250,247,240,.20));
}

.dox-auth-mini-brand {
    position: absolute;
    top: 24px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: .72rem;
    letter-spacing: .13em;
}

.dox-auth-mini-brand img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.dox-auth-title {
    text-align: center;
    margin-bottom: 18px;
}

.dox-auth-title h1 {
    margin: 0;
    color: #18231c;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.dox-auth-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dox-social-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 15px;
    border: 1px solid rgba(35,48,39,.11);
    background: rgba(255,255,255,.54);
    box-shadow:
        0 8px 22px rgba(35,48,39,.07),
        inset 0 1px 0 rgba(255,255,255,.84);
    color: #172018;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dox-social-btn svg {
    width: 20px;
    height: 20px;
}

.dox-social-btn:not(:disabled):hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(41,69,54,.19);
    background: rgba(255,255,255,.82);
    box-shadow: 0 14px 26px rgba(35,48,39,.12), inset 0 1px 0 rgba(255,255,255,.9);
}

.dox-social-btn:disabled {
    opacity: .78;
    cursor: default;
}

.dox-social-facebook {
    color: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 1.16rem;
}

.dox-social-x {
    color: #111;
}

.dox-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 17px 0;
    color: #8a928b;
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.dox-auth-divider::before,
.dox-auth-divider::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44,59,49,.15));
}

.dox-auth-divider::after {
    background: linear-gradient(90deg, rgba(44,59,49,.15), transparent);
}

.dox-auth-fields {
    display: grid;
    gap: 10px;
}

.dox-auth-fields input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    color: #1f2b23;
    border: 1px solid rgba(37,52,42,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
    outline: none;
    font-size: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.dox-auth-fields input::placeholder {
    color: #858e87;
}

.dox-auth-fields input:focus {
    border-color: rgba(41,69,54,.30);
    background: rgba(255,255,255,.78);
    box-shadow: 0 0 0 4px rgba(41,69,54,.08), inset 0 1px 0 rgba(255,255,255,.92);
    transform: translateY(-1px);
}

.dox-auth-submit {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    padding: 0 22px;
    color: #fffdf8;
    border: 1px solid rgba(26,41,31,.16);
    border-radius: 15px;
    background: linear-gradient(135deg, #182a1f 0%, #294536 62%, #3a5a47 100%);
    box-shadow: 0 14px 28px rgba(28,48,35,.18), inset 0 1px 0 rgba(255,255,255,.10);
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.dox-auth-submit span {
    transition: transform .2s ease;
}

.dox-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(28,48,35,.24), inset 0 1px 0 rgba(255,255,255,.12);
    filter: saturate(1.06);
}

.dox-auth-submit:hover span {
    transform: translateX(3px);
}

.dox-auth-mobile-switch {
    display: none;
    margin: 16px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #526158;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
}

.dox-auth-overlay-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    transition: transform .72s cubic-bezier(.22,.72,.22,1);
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-overlay-wrap {
    transform: translateX(-100%);
}

.dox-auth-overlay {
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    color: #fffdf8;
    transform: translateX(0);
    transition: transform .72s cubic-bezier(.22,.72,.22,1);
    background:
        radial-gradient(circle at 20% 20%, rgba(210,174,115,.23), transparent 24%),
        radial-gradient(circle at 78% 76%, rgba(132,165,143,.16), transparent 26%),
        linear-gradient(145deg, rgba(17,31,22,.92), rgba(36,66,49,.84));
    backdrop-filter: blur(30px) saturate(1.12);
    -webkit-backdrop-filter: blur(30px) saturate(1.12);
}

.dox-auth-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 95%);
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-overlay {
    transform: translateX(50%);
}

.dox-auth-overlay-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 46px;
    text-align: center;
    transition: transform .72s cubic-bezier(.22,.72,.22,1), opacity .38s ease;
}

.dox-auth-overlay-left {
    transform: translateX(-12%);
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-overlay-left {
    transform: translateX(0);
}

.dox-auth-overlay-right {
    right: 0;
    transform: translateX(0);
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-overlay-right {
    transform: translateX(12%);
}

.dox-auth-panel-glow {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211,179,125,.16), transparent 67%);
    filter: blur(2px);
    animation: doxAuthPulse 5.8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes doxAuthPulse {
    from { transform: scale(.88); opacity: .54; }
    to { transform: scale(1.08); opacity: .92; }
}

.dox-auth-panel-logo {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.14));
}

.dox-auth-overlay-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fffdf8;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.8vw, 3.5rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

.dox-auth-ghost {
    position: relative;
    z-index: 1;
    min-width: 154px;
    min-height: 48px;
    padding: 0 22px;
    color: #fffdf8;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dox-auth-ghost:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255,255,255,.68);
    background: rgba(255,255,255,.14);
    box-shadow: 0 14px 28px rgba(8,15,11,.16), inset 0 1px 0 rgba(255,255,255,.17);
}

@media (max-width: 820px) {
    .dox-auth-shell {
        min-height: calc(100vh - 74px);
        padding: 26px 16px 54px;
    }

    .dox-auth-card {
        width: min(100%, 520px);
        min-height: 650px;
        border-radius: 28px;
    }

    .dox-auth-overlay-wrap {
        display: none;
    }

    .dox-auth-form-container {
        width: 100%;
    }

    .dox-auth-signin,
    .dox-auth-signup,
    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signin,
    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signup {
        transform: translateX(0);
    }

    .dox-auth-signup {
        opacity: 0;
        pointer-events: none;
    }

    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signin {
        opacity: 0;
        pointer-events: none;
    }

    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signup {
        opacity: 1;
        pointer-events: auto;
        animation: doxAuthMobileIn .45s ease both;
    }

    .dox-auth-card[data-auth-mode="signin"] .dox-auth-signin {
        animation: doxAuthMobileIn .45s ease both;
    }

    .dox-auth-mobile-switch {
        display: inline-block;
    }

    .dox-auth-form {
        padding: 68px clamp(24px, 7vw, 42px) 34px;
    }
}

@keyframes doxAuthMobileIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .auth-page-guest .site-header {
        position: relative;
    }

    .dox-auth-shell {
        min-height: auto;
        padding: 18px 12px 36px;
    }

    .dox-auth-card {
        min-height: 620px;
        border-radius: 24px;
    }

    .dox-auth-title h1 {
        font-size: clamp(1.95rem, 10vw, 2.55rem);
    }

    .dox-auth-mini-brand {
        top: 22px;
        left: 24px;
    }

    .dox-auth-form {
        padding-inline: 24px;
    }

    .dox-auth-fields input,
    .dox-auth-submit {
        min-height: 48px;
        border-radius: 14px;
    }

    .dox-social-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dox-auth-shell::before,
    .dox-auth-ambient,
    .dox-auth-panel-glow {
        animation: none !important;
    }

    .dox-auth-form-container,
    .dox-auth-overlay-wrap,
    .dox-auth-overlay,
    .dox-auth-overlay-panel {
        transition-duration: .01ms !important;
    }
}

/* Pointer-reactive glass highlight for the V22 auth card. */
.dox-auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 125;
    pointer-events: none;
    background: radial-gradient(260px circle at var(--auth-x, 50%) var(--auth-y, 20%), rgba(255,255,255,.20), transparent 68%);
    opacity: .82;
    transition: opacity .28s ease;
}

/* ================================================================
   DOXRINE V23 — Auth visual / colour refinement
   Rich product-led imagery replaces the flat green overlay while
   keeping the V22 swap logic and auth backend untouched.
   ================================================================ */
.auth-page-guest {
    background:
        radial-gradient(circle at 10% 14%, rgba(210, 178, 121, .30), transparent 31rem),
        radial-gradient(circle at 88% 16%, rgba(98, 126, 102, .16), transparent 28rem),
        linear-gradient(132deg, #f6f1e8 0%, #eee8dc 45%, #f8f5ef 100%);
}

.dox-auth-shell::before {
    background: radial-gradient(circle, rgba(190, 151, 92, .18), transparent 68%);
}

.dox-auth-ambient-one {
    background: radial-gradient(circle at 36% 34%, rgba(212, 174, 108, .36), rgba(212, 174, 108, .08) 48%, transparent 72%);
}

.dox-auth-ambient-two {
    background: radial-gradient(circle at 38% 35%, rgba(78, 105, 83, .19), rgba(78, 105, 83, .035) 50%, transparent 72%);
}

.dox-auth-card {
    --auth-dark: #1f271f;
    --auth-green: #405f49;
    --auth-gold: #bd9360;
    border-color: rgba(255,255,255,.78);
    background:
        linear-gradient(145deg, rgba(255,255,255,.64), rgba(248,244,236,.36));
    box-shadow:
        0 46px 110px rgba(51,47,38,.18),
        0 12px 36px rgba(51,47,38,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.dox-auth-form {
    background:
        radial-gradient(circle at 15% 9%, rgba(255,255,255,.84), transparent 31%),
        radial-gradient(circle at 86% 94%, rgba(211,184,137,.10), transparent 36%),
        linear-gradient(160deg, rgba(255,255,255,.47), rgba(249,246,239,.28));
}

.dox-auth-title h1 { color: #262b25; }

.dox-auth-fields input {
    color: #262a25;
    border-color: rgba(70,61,46,.11);
    background: rgba(255,255,255,.66);
    box-shadow: 0 5px 18px rgba(56,50,40,.035), inset 0 1px 0 rgba(255,255,255,.92);
}

.dox-auth-fields input:focus {
    border-color: rgba(157,118,68,.38);
    background: rgba(255,255,255,.91);
    box-shadow: 0 0 0 4px rgba(186,143,85,.10), 0 8px 24px rgba(56,50,40,.06);
}

.dox-auth-submit {
    color: #fffdf8;
    border-color: rgba(31,39,31,.10);
    background: linear-gradient(118deg, #242c25 0%, #374f3d 52%, #5d735d 100%);
    box-shadow: 0 16px 30px rgba(36,51,39,.20), inset 0 1px 0 rgba(255,255,255,.13);
}

.dox-auth-submit:hover {
    box-shadow: 0 20px 38px rgba(36,51,39,.27), inset 0 1px 0 rgba(255,255,255,.15);
}

.dox-social-btn {
    border-color: rgba(66,58,45,.10);
    background: rgba(255,255,255,.66);
    box-shadow: 0 9px 24px rgba(58,50,38,.055), inset 0 1px 0 rgba(255,255,255,.95);
}

.dox-auth-overlay-wrap {
    border-radius: inherit;
}

.dox-auth-overlay {
    background: #242a24;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dox-auth-overlay::before {
    z-index: 8;
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(18,24,19,.03), rgba(18,24,19,.21) 58%, rgba(18,24,19,.56) 100%),
        linear-gradient(105deg, rgba(24,32,25,.30), rgba(24,32,25,.02) 50%, rgba(24,32,25,.20));
    mask-image: none;
}

.dox-auth-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 115%, rgba(218,181,118,.27), transparent 34%),
        linear-gradient(90deg, rgba(255,255,255,.06), transparent 18%, transparent 82%, rgba(255,255,255,.04));
    mix-blend-mode: screen;
}

.dox-auth-overlay-panel {
    gap: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

.dox-auth-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #252c25;
}

.dox-auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17,23,18,.04) 0%, rgba(17,23,18,.05) 33%, rgba(17,23,18,.43) 70%, rgba(17,23,18,.78) 100%),
        linear-gradient(110deg, rgba(18,25,19,.28), transparent 48%, rgba(217,182,121,.10));
}

.dox-auth-visual-main {
    position: absolute;
    inset: -2%;
    width: 104%;
    height: 104%;
    object-fit: cover;
    filter: saturate(.86) contrast(.98) brightness(.88);
    transform: scale(1.035);
    transition: transform 1.15s cubic-bezier(.2,.75,.2,1), filter .9s ease;
}

.dox-auth-overlay-panel:hover .dox-auth-visual-main {
    transform: scale(1.075);
    filter: saturate(.98) contrast(1.02) brightness(.91);
}

.dox-auth-visual-float {
    position: absolute;
    right: 7%;
    top: 8%;
    width: 31%;
    aspect-ratio: .9;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 22px 48px rgba(10,14,10,.28), inset 0 1px 0 rgba(255,255,255,.34);
    transform: rotate(4deg);
    z-index: 3;
    opacity: .96;
    animation: doxAuthFloatCard 6.8s ease-in-out infinite alternate;
}

.dox-auth-overlay-left .dox-auth-visual-float {
    right: auto;
    left: 7%;
    transform: rotate(-4deg);
}

.dox-auth-visual-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -58px;
    bottom: 17%;
    border: 1px solid rgba(225,191,132,.33);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 26px rgba(225,191,132,.035), 0 0 0 54px rgba(225,191,132,.025);
}

.dox-auth-overlay-left .dox-auth-visual-ring {
    right: auto;
    left: -58px;
}

@keyframes doxAuthFloatCard {
    from { translate: 0 0; rotate: -1deg; }
    to { translate: 0 -10px; rotate: 1.5deg; }
}

.dox-auth-panel-copy {
    position: relative;
    z-index: 14;
    width: 100%;
    margin-top: auto;
    padding: 0 clamp(34px,4vw,52px) clamp(42px,5vw,64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dox-auth-overlay-left .dox-auth-panel-copy {
    align-items: flex-end;
    text-align: right;
}

.dox-auth-panel-logo {
    width: 116px;
    height: 54px;
    margin-bottom: 12px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0,0,0,.24));
    opacity: .98;
}

.dox-auth-overlay-left .dox-auth-panel-logo { object-position: right center; }

.dox-auth-overlay-panel h2 {
    max-width: 320px;
    margin: 0 0 20px;
    color: #fffdf9;
    font-size: clamp(2.55rem,4vw,4.15rem);
    line-height: .92;
    letter-spacing: -.06em;
    text-shadow: 0 8px 28px rgba(0,0,0,.20);
}

.dox-auth-ghost {
    min-width: 166px;
    min-height: 50px;
    color: #272c26;
    border-color: rgba(255,255,255,.68);
    background: rgba(255,253,248,.88);
    box-shadow: 0 14px 34px rgba(10,14,10,.20), inset 0 1px 0 rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dox-auth-ghost:hover {
    color: #20251f;
    border-color: rgba(255,255,255,.92);
    background: #fffdf9;
    box-shadow: 0 18px 40px rgba(10,14,10,.26), inset 0 1px 0 rgba(255,255,255,1);
}

/* The previous circular glow is intentionally retired in V23. */
.dox-auth-panel-glow { display: none; }

@media (max-width: 820px) {
    .dox-auth-card {
        background: linear-gradient(155deg, rgba(255,255,255,.72), rgba(247,242,233,.45));
        box-shadow: 0 30px 74px rgba(51,47,38,.15), inset 0 1px 0 rgba(255,255,255,.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dox-auth-visual-float { animation: none !important; }
    .dox-auth-visual-main { transition: none !important; }
}

/* =========================================================
   V23 — DOXRINE AUTH VISUAL REFINEMENT
   Product-led editorial visual, brighter glass, cleaner color system
   ========================================================= */
.auth-page-guest {
    background:
        radial-gradient(circle at 10% 0%, rgba(214,190,146,.22), transparent 30rem),
        radial-gradient(circle at 96% 100%, rgba(101,126,104,.12), transparent 34rem),
        #f2efe8;
}

.dox-auth-shell {
    padding: clamp(24px, 4vw, 52px) 20px;
}

.dox-auth-shell::before,
.dox-auth-ambient { opacity: .32; }

.dox-auth-card {
    --auth-dark: #18231d;
    --auth-green: #385343;
    --auth-gold: #b9945b;
    width: min(100%, 1040px);
    min-height: 630px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.9);
    background: rgba(247,244,237,.66);
    box-shadow: 0 28px 80px rgba(37,44,38,.14), inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(26px) saturate(1.05);
    -webkit-backdrop-filter: blur(26px) saturate(1.05);
}

.dox-auth-form {
    background:
        radial-gradient(circle at 16% 4%, rgba(255,255,255,.72), transparent 36%),
        linear-gradient(150deg, rgba(250,248,243,.88), rgba(240,236,227,.76));
    padding: 48px clamp(36px, 4.3vw, 58px);
}

.dox-auth-mini-brand { color: #263229; }
.dox-auth-mini-brand strong { font-weight: 800; letter-spacing: .16em; }

.dox-auth-title h1 {
    color: #1d2821;
    font-size: clamp(2.15rem, 3.45vw, 3.15rem);
}

.dox-social-btn {
    background: rgba(255,255,255,.82);
    border-color: rgba(37,48,40,.09);
    box-shadow: 0 7px 20px rgba(35,45,38,.06), inset 0 1px 0 #fff;
}

.dox-auth-divider { color: #8d8a82; }

.dox-auth-fields input {
    min-height: 52px;
    color: #243027;
    border-color: rgba(44,55,47,.10);
    background: rgba(255,255,255,.74);
    box-shadow: 0 4px 14px rgba(46,54,48,.025), inset 0 1px 0 rgba(255,255,255,.94);
}

.dox-auth-fields input:focus {
    border-color: rgba(68,91,74,.34);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(87,111,92,.08), 0 8px 20px rgba(47,59,50,.05);
}

.dox-auth-submit {
    background: linear-gradient(135deg, #17221c 0%, #30483a 100%);
    border-color: rgba(21,34,26,.12);
    box-shadow: 0 14px 30px rgba(29,46,35,.18);
}

.dox-auth-overlay {
    background: #1f2b23;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dox-auth-overlay::before { display: none; }

.dox-auth-overlay-panel {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
    text-align: left;
    background: #27362c;
}

.dox-auth-visual-image {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    object-fit: cover;
    transform: scale(1.025);
    filter: saturate(.88) contrast(1.02);
    transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

.dox-auth-overlay-right .dox-auth-visual-image { object-position: 52% center; }
.dox-auth-overlay-left .dox-auth-visual-image { object-position: center center; }

.dox-auth-visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12,18,14,.10) 0%, rgba(12,18,14,.18) 42%, rgba(12,18,14,.76) 100%),
        linear-gradient(90deg, rgba(17,29,21,.24), transparent 60%);
}

.dox-auth-visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 16px;
    padding: 52px 46px;
}

.dox-auth-panel-logo {
    width: 108px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.20));
}

.dox-auth-overlay-panel h2 {
    max-width: 9ch;
    color: #fff;
    font-size: clamp(2.45rem, 4vw, 4.2rem);
    line-height: .92;
    letter-spacing: -.055em;
    text-shadow: 0 8px 28px rgba(0,0,0,.24);
}

.dox-auth-ghost {
    min-width: 164px;
    min-height: 50px;
    color: #18231d;
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 28px rgba(0,0,0,.16), inset 0 1px 0 #fff;
}

.dox-auth-ghost:hover {
    color: #111b15;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 16px 32px rgba(0,0,0,.20), inset 0 1px 0 #fff;
}

.dox-auth-overlay-panel:hover .dox-auth-visual-image {
    transform: scale(1.065);
    filter: saturate(.98) contrast(1.03);
}

.dox-auth-card[data-auth-mode="signup"] .dox-auth-overlay-left .dox-auth-visual-image,
.dox-auth-card[data-auth-mode="signin"] .dox-auth-overlay-right .dox-auth-visual-image {
    animation: doxAuthImageIn .8s cubic-bezier(.22,.72,.22,1) both;
}

@keyframes doxAuthImageIn {
    from { transform: scale(1.10) translateX(10px); filter: saturate(.70) blur(2px); }
    to { transform: scale(1.025) translateX(0); filter: saturate(.88) blur(0); }
}

@media (max-width: 820px) {
    .dox-auth-card { background: rgba(247,244,237,.84); }
    .dox-auth-form { background: linear-gradient(150deg, rgba(252,250,246,.96), rgba(241,237,229,.92)); }
}

/* =========================================================
   V24 — Auth page final visual rebuild
   Cleaner palette, better contrast, product-led overlay,
   less boring and more premium while preserving swap logic.
   ========================================================= */
.auth-page-guest {
    background:
        radial-gradient(circle at 8% 12%, rgba(221,191,137,.34), transparent 24rem),
        radial-gradient(circle at 92% 14%, rgba(88,131,105,.24), transparent 30rem),
        radial-gradient(circle at 50% 100%, rgba(175,147,107,.18), transparent 28rem),
        linear-gradient(145deg, #f7f1e7 0%, #ede4d4 38%, #e4ece4 100%);
}

.dox-auth-shell::before {
    width: 34vw;
    height: 34vw;
    max-width: 520px;
    max-height: 520px;
    min-width: 240px;
    min-height: 240px;
    background: radial-gradient(circle, rgba(84,120,96,.22), transparent 68%);
    filter: blur(16px);
}

.dox-auth-ambient { opacity: .82; }
.dox-auth-ambient-one {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 36% 34%, rgba(207,174,117,.42), rgba(207,174,117,.09) 48%, transparent 72%);
}

.dox-auth-ambient-two {
    width: 190px;
    height: 190px;
    background: radial-gradient(circle at 38% 35%, rgba(74,112,89,.30), rgba(74,112,89,.06) 50%, transparent 72%);
}

.dox-auth-card {
    --auth-dark: #16261c;
    --auth-green: #254635;
    --auth-gold: #d0b07d;
    width: min(100%, 1020px);
    min-height: 630px;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,.78);
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.34));
    box-shadow:
        0 46px 110px rgba(33,45,36,.18),
        inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(30px) saturate(1.14);
    -webkit-backdrop-filter: blur(30px) saturate(1.14);
}

.dox-auth-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.26), transparent 24%, transparent 76%, rgba(255,255,255,.06));
    pointer-events: none;
}

.dox-auth-form {
    padding: 44px clamp(34px, 4.3vw, 56px);
    background:
        radial-gradient(circle at 20% 12%, rgba(255,255,255,.86), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.68), rgba(250,247,240,.84));
}

.dox-auth-mini-brand {
    color: #203126;
    font-weight: 800;
}

.dox-auth-title h1 {
    color: #18231c;
    font-size: clamp(2.1rem, 3.4vw, 3.15rem);
}

.dox-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(35,48,39,.10);
    background: rgba(255,255,255,.88);
    box-shadow:
        0 10px 22px rgba(35,48,39,.07),
        inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dox-social-btn:not(:disabled):hover {
    border-color: rgba(41,69,54,.18);
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 28px rgba(35,48,39,.12), inset 0 1px 0 rgba(255,255,255,.94);
}

.dox-auth-fields { gap: 11px; }
.dox-auth-fields input {
    min-height: 52px;
    padding: 0 18px;
    color: #1f2b23;
    border: 1px solid rgba(37,52,42,.10);
    border-radius: 16px;
    background: rgba(255,252,247,.94);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.94);
    font-size: .92rem;
}

.dox-auth-fields input::placeholder { color: #818a83; }
.dox-auth-fields input:focus {
    border-color: rgba(41,69,54,.30);
    background: rgba(255,255,255,.98);
    box-shadow: 0 0 0 4px rgba(41,69,54,.08), inset 0 1px 0 rgba(255,255,255,.98);
}

.dox-auth-submit {
    min-height: 52px;
    margin-top: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d3528 0%, #2e513f 54%, #57745e 100%);
    box-shadow: 0 16px 30px rgba(28,48,35,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.dox-auth-submit:hover {
    box-shadow: 0 20px 36px rgba(28,48,35,.24), inset 0 1px 0 rgba(255,255,255,.14);
}

.dox-auth-mobile-switch { margin-top: 18px; }

.dox-auth-overlay-wrap {
    border-radius: inherit;
}

.dox-auth-overlay {
    background:
        radial-gradient(circle at 18% 18%, rgba(212,178,117,.24), transparent 22%),
        radial-gradient(circle at 82% 70%, rgba(112,149,127,.20), transparent 26%),
        linear-gradient(145deg, rgba(16,32,23,.98), rgba(39,67,51,.94));
    backdrop-filter: blur(26px) saturate(1.12);
    -webkit-backdrop-filter: blur(26px) saturate(1.12);
}

.dox-auth-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 95%);
}

.dox-auth-overlay::after {
    content: "";
    position: absolute;
    inset: auto auto -18% -14%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208,176,125,.16), transparent 70%);
    filter: blur(16px);
    pointer-events: none;
}

.dox-auth-overlay-panel {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    padding: 36px 42px;
    text-align: center;
    overflow: visible;
}

.dox-auth-panel-glow {
    display: block;
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211,179,125,.18), transparent 67%);
    filter: blur(2px);
    animation: doxAuthPulse 5.8s ease-in-out infinite alternate;
    pointer-events: none;
}

.dox-auth-visual,
.dox-auth-panel-copy,
.dox-auth-visual-main,
.dox-auth-visual-float,
.dox-auth-visual-ring {
    all: unset;
}

.dox-auth-visual {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100%, 310px);
}

.dox-auth-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dox-auth-panel-logo {
    width: 112px;
    height: 44px;
    object-fit: contain;
    filter: brightness(1.06) drop-shadow(0 8px 18px rgba(0,0,0,.14));
}

.dox-auth-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.04;
    border-radius: 30px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 48px rgba(8,15,11,.18), inset 0 1px 0 rgba(255,255,255,.16);
    overflow: hidden;
}

.dox-auth-visual-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 38%, transparent 62%, rgba(255,255,255,.08));
    pointer-events: none;
}

.dox-auth-feature-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 22px rgba(5,10,8,.16);
}

.dox-auth-visual-frame-signin .dox-auth-feature-shot { object-position: center 42%; }
.dox-auth-visual-frame-signup .dox-auth-feature-shot { object-position: center center; }

.dox-auth-chip-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dox-auth-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,253,248,.92);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.dox-auth-overlay-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 320px;
}

.dox-auth-overlay-copy-left { text-align: right; }
.dox-auth-overlay-copy-right { text-align: left; }
.dox-auth-overlay-copy-left,
.dox-auth-overlay-copy-right { justify-items: start; }
.dox-auth-overlay-left .dox-auth-overlay-copy { justify-items: end; }
.dox-auth-overlay-right .dox-auth-overlay-copy { justify-items: start; }

.dox-auth-overlay-panel h2 {
    margin: 0;
    max-width: 320px;
    color: #fffdf8;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
    text-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.dox-auth-overlay-copy p {
    margin: 0;
    color: rgba(255,253,248,.78);
    font-size: .92rem;
    line-height: 1.6;
}

.dox-auth-ghost {
    min-width: 166px;
    min-height: 50px;
    color: #fffdf8;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dox-auth-ghost:hover {
    color: #fffdf8;
    border-color: rgba(255,255,255,.66);
    background: rgba(255,255,255,.16);
    box-shadow: 0 14px 28px rgba(8,15,11,.16), inset 0 1px 0 rgba(255,255,255,.18);
}

@media (max-width: 820px) {
    .dox-auth-card {
        width: min(100%, 520px);
        min-height: 650px;
        border-radius: 30px;
        background: linear-gradient(155deg, rgba(255,255,255,.80), rgba(248,243,235,.56));
        box-shadow: 0 30px 74px rgba(51,47,38,.15), inset 0 1px 0 rgba(255,255,255,.95);
    }

    .dox-auth-overlay-wrap { display: none; }
    .dox-auth-form { padding: 68px clamp(24px, 7vw, 42px) 34px; }
    .dox-auth-mobile-switch { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
    .dox-auth-panel-glow { animation: none !important; }
}

/* =========================================================
   V24 — PROFESSIONAL AUTH CLEANUP
   Full-bleed editorial imagery + restrained glass form.
   This block intentionally overrides prior auth experiments.
   ========================================================= */
.auth-page-guest {
    background:
        radial-gradient(circle at 12% 18%, rgba(211,183,135,.22), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(101,128,108,.15), transparent 30rem),
        linear-gradient(135deg, #f7f3eb 0%, #f0ebe1 48%, #eef2ec 100%) !important;
}

.auth-page-guest main {
    min-height: calc(100vh - 82px);
}

.dox-auth-shell {
    min-height: calc(100vh - 82px) !important;
    padding: clamp(24px, 4vw, 48px) 20px !important;
}

.dox-auth-shell::before,
.dox-auth-ambient-one,
.dox-auth-ambient-two {
    opacity: .58 !important;
}

.dox-auth-card {
    width: min(94vw, 960px) !important;
    min-height: 570px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    background: rgba(255,255,255,.58) !important;
    box-shadow:
        0 30px 80px rgba(40,47,41,.14),
        0 8px 26px rgba(40,47,41,.06),
        inset 0 1px 0 rgba(255,255,255,.94) !important;
    backdrop-filter: blur(28px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.08) !important;
}

.dox-auth-card::after {
    background: linear-gradient(180deg, rgba(255,255,255,.20), transparent 30%, transparent 72%, rgba(255,255,255,.04)) !important;
}

.dox-auth-card::before {
    opacity: .32 !important;
    background: radial-gradient(240px circle at var(--auth-x, 50%) var(--auth-y, 20%), rgba(255,255,255,.18), transparent 70%) !important;
}

.dox-auth-form {
    padding: 58px clamp(36px, 4vw, 52px) 42px !important;
    background:
        radial-gradient(circle at 16% 8%, rgba(255,255,255,.96), transparent 34%),
        linear-gradient(160deg, rgba(255,255,255,.82), rgba(249,246,240,.72)) !important;
}

.dox-auth-mini-brand {
    top: 22px !important;
    left: 26px !important;
    color: #243128 !important;
    font-size: .68rem !important;
    letter-spacing: .12em !important;
}

.dox-auth-mini-brand img {
    width: 24px !important;
    height: 24px !important;
}

.dox-auth-title {
    margin-bottom: 18px !important;
}

.dox-auth-title h1 {
    color: #1e2922 !important;
    font-family: var(--serif) !important;
    font-size: clamp(2.15rem, 3vw, 2.85rem) !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
    font-weight: 500 !important;
}

.dox-auth-socials {
    gap: 9px !important;
}

.dox-social-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(38,48,41,.09) !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 8px 20px rgba(34,43,36,.055), inset 0 1px 0 rgba(255,255,255,.98) !important;
}

.dox-social-btn:not(:disabled):hover {
    transform: translateY(-2px) !important;
    background: #fff !important;
    box-shadow: 0 12px 24px rgba(34,43,36,.10), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.dox-auth-divider {
    margin: 16px 0 !important;
    color: #929992 !important;
}

.dox-auth-fields {
    gap: 10px !important;
}

.dox-auth-fields input {
    min-height: 49px !important;
    padding: 0 16px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(37,48,40,.10) !important;
    background: rgba(255,255,255,.82) !important;
    color: #202923 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96) !important;
}

.dox-auth-fields input:focus {
    border-color: rgba(48,86,63,.28) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(48,86,63,.07) !important;
}

.dox-auth-submit {
    min-height: 49px !important;
    margin-top: 15px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(27,42,32,.08) !important;
    background: linear-gradient(135deg, #1f3528 0%, #31513e 100%) !important;
    box-shadow: 0 12px 24px rgba(31,53,40,.18) !important;
}

.dox-auth-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 30px rgba(31,53,40,.23) !important;
}

/* ---- Sliding image side: no cards, chips or fake UI ---- */
.dox-auth-overlay-wrap {
    border-radius: 30px !important;
}

.dox-auth-overlay {
    background: #172219 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dox-auth-overlay::before,
.dox-auth-overlay::after {
    display: none !important;
}

.dox-auth-overlay-panel {
    position: absolute !important;
    top: 0 !important;
    width: 50% !important;
    height: 100% !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
    text-align: left !important;
}

.dox-auth-panel-photo {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.015) !important;
    filter: saturate(.86) contrast(1.01) brightness(.91) !important;
    transition: transform 1.1s cubic-bezier(.2,.72,.2,1), filter .6s ease !important;
}

.dox-auth-overlay-panel:hover .dox-auth-panel-photo {
    transform: scale(1.045) !important;
    filter: saturate(.92) contrast(1.02) brightness(.94) !important;
}

.dox-auth-overlay-left .dox-auth-panel-photo {
    object-position: 46% center !important;
}

.dox-auth-overlay-right .dox-auth-panel-photo {
    object-position: 54% center !important;
}

.dox-auth-panel-shade {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background:
        linear-gradient(180deg, rgba(13,20,15,.24) 0%, rgba(13,20,15,.04) 35%, rgba(13,20,15,.18) 58%, rgba(13,20,15,.78) 100%),
        linear-gradient(105deg, rgba(18,27,20,.18), transparent 52%) !important;
    pointer-events: none !important;
}

.dox-auth-panel-content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 34px 34px 36px !important;
}

.dox-auth-panel-logo {
    width: 104px !important;
    height: 42px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: brightness(0) invert(1) drop-shadow(0 5px 16px rgba(0,0,0,.18)) !important;
    opacity: .98 !important;
}

.dox-auth-panel-bottom {
    display: grid !important;
    gap: 18px !important;
    align-items: start !important;
    justify-items: start !important;
    width: 100% !important;
}

.dox-auth-overlay-panel h2 {
    max-width: 320px !important;
    margin: 0 !important;
    color: #fffdf8 !important;
    font-family: var(--serif) !important;
    font-size: clamp(2.35rem, 3.7vw, 3.35rem) !important;
    font-weight: 500 !important;
    line-height: .96 !important;
    letter-spacing: -.05em !important;
    text-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
}

.dox-auth-ghost {
    min-width: 148px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.62) !important;
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    font-size: .8rem !important;
    font-weight: 800 !important;
}

.dox-auth-ghost:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(255,255,255,.90) !important;
    background: rgba(255,255,255,.24) !important;
    color: #fff !important;
}

/* Kill old V23 overlay experiments if cached markup/styles remain. */
.dox-auth-visual,
.dox-auth-visual-main,
.dox-auth-visual-float,
.dox-auth-visual-ring,
.dox-auth-brand-pill,
.dox-auth-chip-row,
.dox-auth-overlay-copy,
.dox-auth-panel-copy,
.dox-auth-panel-glow {
    display: none !important;
}

@media (max-width: 900px) {
    .dox-auth-shell {
        padding: 24px 16px 48px !important;
    }

    .dox-auth-card {
        width: min(100%, 520px) !important;
        min-height: 620px !important;
        border-radius: 26px !important;
    }

    .dox-auth-overlay-wrap {
        display: none !important;
    }

    .dox-auth-form-container {
        width: 100% !important;
    }

    .dox-auth-signin,
    .dox-auth-signup,
    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signin,
    .dox-auth-card[data-auth-mode="signup"] .dox-auth-signup {
        transform: translateX(0) !important;
    }

    .dox-auth-form {
        padding: 66px clamp(24px, 7vw, 40px) 32px !important;
    }

    .dox-auth-mobile-switch {
        display: inline-block !important;
    }
}

@media (max-width: 480px) {
    .dox-auth-card {
        min-height: 600px !important;
        border-radius: 22px !important;
    }

    .dox-auth-title h1 {
        font-size: 2.15rem !important;
    }

    .dox-auth-form {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dox-auth-panel-photo {
        transition: none !important;
    }
}

/* =========================================================
   V25 — Aesthetic glass auth refinement
   Lotus artwork panels + stronger glassmorphism + neon CTA.
   ========================================================= */
.auth-page-guest {
    background:
        radial-gradient(circle at 9% 12%, rgba(248,177,176,.14), transparent 22rem),
        radial-gradient(circle at 86% 8%, rgba(130,186,159,.18), transparent 26rem),
        radial-gradient(circle at 50% 100%, rgba(216,188,139,.18), transparent 28rem),
        linear-gradient(135deg, #f7f2ea 0%, #eef3ee 48%, #f7f4ef 100%) !important;
}

.dox-auth-shell::before {
    background: radial-gradient(circle, rgba(121, 180, 150, .16), transparent 70%) !important;
    filter: blur(18px) !important;
}

.dox-auth-ambient-one {
    background: radial-gradient(circle at 36% 34%, rgba(244,171,170,.24), rgba(244,171,170,.06) 48%, transparent 72%) !important;
}

.dox-auth-ambient-two {
    background: radial-gradient(circle at 38% 35%, rgba(99,155,129,.24), rgba(99,155,129,.05) 50%, transparent 72%) !important;
}

.dox-auth-card {
    width: min(94vw, 980px) !important;
    min-height: 590px !important;
    border-radius: 32px !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.56), rgba(255,255,255,.28)) !important;
    box-shadow:
        0 34px 90px rgba(31,44,36,.14),
        0 10px 32px rgba(31,44,36,.06),
        inset 0 1px 0 rgba(255,255,255,.96) !important;
    backdrop-filter: blur(30px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.08) !important;
}

.dox-auth-form {
    background:
        linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.54)) !important;
}

.dox-auth-title h1 {
    color: #173126 !important;
    font-family: var(--serif) !important;
    font-size: clamp(2.2rem, 3vw, 2.95rem) !important;
    font-weight: 500 !important;
    line-height: .98 !important;
    letter-spacing: -.05em !important;
}

.dox-auth-divider {
    color: #9aa39d !important;
}

.dox-auth-fields {
    gap: 13px !important;
}

.dox-auth-fields input {
    min-height: 54px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.68) !important;
    background: rgba(255,255,255,.34) !important;
    color: #183126 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        0 10px 24px rgba(35,53,42,.05) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease !important;
}

.dox-auth-fields input::placeholder {
    color: #73877a !important;
    font-weight: 500 !important;
}

.dox-auth-fields input:hover {
    transform: translateY(-1px) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.84),
        0 14px 30px rgba(35,53,42,.07) !important;
}

.dox-auth-fields input:focus {
    border-color: rgba(113,193,158,.62) !important;
    background: rgba(255,255,255,.48) !important;
    box-shadow:
        0 0 0 4px rgba(120,224,180,.12),
        0 0 22px rgba(120,224,180,.14),
        inset 0 1px 0 rgba(255,255,255,.92) !important;
    transform: translateY(-2px) !important;
}

.dox-auth-submit {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    min-height: 54px !important;
    margin-top: 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(109,214,169,.20) !important;
    background: linear-gradient(135deg, #173826 0%, #25553c 48%, #38795a 100%) !important;
    box-shadow:
        0 16px 30px rgba(31,74,52,.24),
        0 0 0 1px rgba(255,255,255,.08) inset,
        0 0 24px rgba(88,193,146,.12) !important;
    transition: transform .24s ease, box-shadow .24s ease, filter .24s ease !important;
}

.dox-auth-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 16%, rgba(255,255,255,.22) 34%, transparent 52%);
    transform: translateX(-140%);
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.dox-auth-submit::after {
    content: "";
    position: absolute;
    inset: -18% auto auto 12%;
    width: 54%;
    height: 130%;
    background: radial-gradient(circle, rgba(144,255,208,.18), transparent 68%);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

.dox-auth-submit:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow:
        0 22px 36px rgba(31,74,52,.28),
        0 0 26px rgba(88,193,146,.22),
        0 0 44px rgba(88,193,146,.08) !important;
    filter: saturate(1.06) !important;
}

.dox-auth-submit:hover::before {
    transform: translateX(160%);
}

.dox-auth-submit span {
    font-size: 1.15rem !important;
}

.dox-social-btn {
    border-radius: 15px !important;
    background: rgba(255,255,255,.44) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

.dox-social-btn:not(:disabled):hover {
    box-shadow: 0 14px 24px rgba(34,43,36,.10), 0 0 18px rgba(143,214,180,.12) !important;
}

.dox-auth-overlay {
    background: linear-gradient(180deg, #173124 0%, #214133 100%) !important;
}

.dox-auth-overlay-panel {
    border-radius: 0 !important;
}

.dox-auth-panel-photo {
    filter: saturate(.92) contrast(1.02) brightness(.90) !important;
}

.dox-auth-overlay-left .dox-auth-panel-photo {
    object-position: center center !important;
}

.dox-auth-overlay-right .dox-auth-panel-photo {
    object-position: center 22% !important;
}

.dox-auth-panel-shade {
    background:
        linear-gradient(180deg, rgba(7,12,10,.12) 0%, rgba(7,12,10,.08) 34%, rgba(7,12,10,.34) 66%, rgba(7,12,10,.78) 100%),
        linear-gradient(90deg, rgba(7,12,10,.14), transparent 42%, rgba(7,12,10,.10)) !important;
}

.dox-auth-panel-content {
    padding: 28px 28px 30px !important;
}

.dox-auth-panel-logo {
    width: 96px !important;
    height: 38px !important;
    opacity: .92 !important;
}

.dox-auth-panel-bottom {
    gap: 14px !important;
}

.dox-auth-overlay-panel h2 {
    max-width: 320px !important;
    color: #fffaf5 !important;
    font-family: var(--serif) !important;
    font-size: clamp(2.4rem, 4vw, 3.45rem) !important;
    font-weight: 500 !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    text-shadow: 0 10px 26px rgba(0,0,0,.24) !important;
}

.dox-auth-ghost {
    min-width: 172px !important;
    min-height: 48px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.54) !important;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 0 1px rgba(255,255,255,.04),
        0 10px 26px rgba(0,0,0,.12),
        0 0 18px rgba(255,255,255,.08) !important;
    backdrop-filter: blur(18px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.14) !important;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease !important;
}

.dox-auth-ghost:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255,255,255,.84) !important;
    background: rgba(255,255,255,.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 12px 30px rgba(0,0,0,.16),
        0 0 24px rgba(255,255,255,.12) !important;
}

@media (max-width: 900px) {
    .dox-auth-card {
        min-height: 630px !important;
        border-radius: 28px !important;
    }

    .dox-auth-form {
        padding: 66px clamp(24px, 7vw, 40px) 34px !important;
    }

    .dox-auth-fields input,
    .dox-auth-submit {
        border-radius: 16px !important;
    }
}

/* ========================================================================
   V26 — Direct media uploads in Admin / Employee CMS
   Paths are now an internal implementation detail.
   ======================================================================== */
.media-manager-block {
    margin: 24px 0;
    padding: clamp(18px, 2vw, 26px);
    border: 1px solid rgba(31, 49, 38, .10);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 8%, rgba(190, 219, 198, .24), transparent 22rem),
        linear-gradient(145deg, rgba(255,255,255,.72), rgba(247,244,237,.58));
    box-shadow: 0 16px 40px rgba(32, 44, 36, .06), inset 0 1px 0 rgba(255,255,255,.86);
}

.media-manager-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.media-manager-head h3 {
    margin: 3px 0 0;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    letter-spacing: -.03em;
}

.media-manager-head p {
    max-width: 500px;
    margin: 0;
    color: #6d7770;
    font-size: .82rem;
    line-height: 1.55;
}

.media-manager-kicker {
    color: #78847c;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.media-upload-grid {
    display: grid;
    gap: 16px;
}

.media-upload-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-upload-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-upload-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.media-upload-card {
    position: relative;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    padding: 14px !important;
    border: 1px solid rgba(35, 53, 42, .10);
    border-radius: 20px;
    background: rgba(255,255,255,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 26px rgba(35,53,42,.045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.media-upload-card:hover {
    transform: translateY(-2px);
    border-color: rgba(49, 95, 67, .18);
    background: rgba(255,255,255,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 16px 30px rgba(35,53,42,.07);
}

.media-upload-title {
    display: block;
    color: #26382d;
    font-size: .82rem;
    font-weight: 800;
}

.media-upload-preview {
    position: relative;
    min-height: 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(43, 61, 49, .09);
    border-radius: 16px;
    background:
        linear-gradient(45deg, rgba(36,54,43,.025) 25%, transparent 25%, transparent 75%, rgba(36,54,43,.025) 75%),
        linear-gradient(45deg, rgba(36,54,43,.025) 25%, transparent 25%, transparent 75%, rgba(36,54,43,.025) 75%),
        #f5f3ed;
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
}

.media-upload-preview-wide { aspect-ratio: 16 / 10; }
.media-upload-preview-product { aspect-ratio: 4 / 3; min-height: 210px; }
.media-upload-preview-logo { min-height: 118px; }
.media-upload-preview-icon { min-height: 118px; }
.media-upload-preview-dark { background: #20372a; }

.media-upload-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: contain;
    padding: 10px;
}

.media-upload-preview-product img,
.media-upload-preview-wide img {
    padding: 0;
    object-fit: cover;
}

.media-upload-preview-icon img {
    width: 74px;
    height: 74px;
    padding: 6px;
}

.media-upload-preview img:not([src]) { display: none; }
.media-upload-empty { display: none; color: #89928c; font-size: .78rem; font-weight: 700; }
.media-upload-preview.is-empty .media-upload-empty { display: inline-flex; }

.media-upload-action {
    display: block;
    min-width: 0;
}

.media-upload-card input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 6px;
    border: 1px solid rgba(36, 55, 43, .10);
    border-radius: 13px;
    background: rgba(248,249,246,.88);
    color: #68746c;
    font: 600 .74rem/1.2 Manrope, sans-serif;
    cursor: pointer;
}

.media-upload-card input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: #294b39;
    color: #fff;
    font: 800 .72rem/1 Manrope, sans-serif;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.media-upload-card input[type="file"]:hover::file-selector-button {
    background: #1f3d2d;
    box-shadow: 0 7px 16px rgba(32, 65, 46, .16);
}

.media-upload-card small {
    color: #858e88;
    font-size: .69rem;
    line-height: 1.45;
}

.showcase-media-manager {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 0%, rgba(82, 187, 126, .10), transparent 32%),
        rgba(247, 249, 245, .74);
}

.showcase-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.showcase-manager-head > div {
    display: grid;
    gap: 3px;
}

.showcase-manager-head strong {
    color: #20382a;
    font-size: .92rem;
}

.showcase-manager-head span {
    color: #77827b;
    font-size: .72rem;
}

.showcase-manager-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(51, 103, 72, .13);
    border-radius: 999px;
    background: rgba(232, 244, 235, .75);
    color: #315f43 !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.showcase-upload-card {
    background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(239,245,240,.58));
}

.media-upload-preview-showcase {
    min-height: 210px;
    aspect-ratio: 4 / 3;
    background: #18231d;
}

.media-upload-preview-showcase img {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0;
    object-fit: cover;
}

.showcase-slot-number {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(12, 23, 17, .64);
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
}

.media-upload-card-gallery {
    justify-content: center;
    text-align: center;
    border-style: dashed;
    background: rgba(241,247,242,.66);
}

.media-upload-drop-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 8px auto;
    border-radius: 18px;
    border: 1px solid rgba(49, 95, 67, .12);
    background: rgba(255,255,255,.80);
    color: #315c43;
    font-size: 1.65rem;
    font-weight: 300;
    box-shadow: 0 10px 24px rgba(37,67,48,.07);
}

.existing-media-wrap { margin-top: 18px; }
.existing-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.existing-media-head strong { color: #26382d; font-size: .82rem; }
.existing-media-head span { color: #828b85; font-size: .72rem; }

.existing-media-grid,
.selected-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 10px;
}

.selected-upload-grid:empty { display: none; }
.selected-upload-grid:not(:empty) { margin-top: 12px; }

.existing-media-item,
.selected-upload-item {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    border: 1px solid rgba(37,55,43,.10);
    border-radius: 15px;
    background: #f4f3ee;
    box-shadow: 0 8px 20px rgba(34,48,39,.045);
}

.existing-media-item { display: block !important; padding: 0 !important; }
.existing-media-item img,
.selected-upload-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.existing-media-keep {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.88);
    color: #26382d;
    font-size: .68rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.existing-media-keep input { width: 14px !important; height: 14px !important; min-height: 0 !important; }
.selected-upload-item span {
    display: block;
    padding: 7px 8px;
    color: #68746c;
    font-size: .64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@media (max-width: 700px) {
    .media-manager-head { display: grid; gap: 8px; }
    .media-upload-grid-two,
    .media-upload-grid-four { grid-template-columns: 1fr; }
    .existing-media-head { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   V27 — Admin visibility reliability fix
   Admin/employee control surfaces must never depend on the
   public-site reveal observer. Large CMS forms can be taller
   than the viewport and never reach the observer ratio.
   ========================================================= */
.page-admin .reveal,
.page-employee .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.page-admin .admin-cms-form {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* =========================================================
   V28 — DUMMY COMMERCE / PAYMENT GATEWAY
   Product purchase CTA, checkout, payment control, order receipt.
   ========================================================= */
.adaptive-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-order-link,
.catalog-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #173126;
    color: #fffdf8;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(23,49,38,.16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.product-order-link:hover,
.catalog-buy-button:hover {
    transform: translateY(-2px);
    background: #244b38;
    box-shadow: 0 13px 24px rgba(23,49,38,.22);
}

.catalog-card-cta-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.catalog-buy-button {
    min-height: 32px;
    padding-inline: 12px;
    font-size: .68rem;
}

.product-dialog-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Checkout */
.page-checkout main,
.page-order main {
    background:
        radial-gradient(circle at 9% 8%, rgba(205,174,120,.18), transparent 26rem),
        radial-gradient(circle at 92% 10%, rgba(81,126,98,.13), transparent 30rem),
        #f4f0e7;
}

.checkout-page-shell {
    padding-top: clamp(38px, 6vw, 78px);
    padding-bottom: 110px;
}

.checkout-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.checkout-heading h1,
.order-confirmation-heading h1,
.order-not-found h1 {
    margin: 8px 0 10px;
    color: #14231a;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.8vw, 5.1rem);
    font-weight: 500;
    line-height: .93;
    letter-spacing: -.058em;
}

.checkout-heading p:last-child,
.order-confirmation-heading > p:last-child {
    max-width: 700px;
    margin: 0;
    color: #6e766f;
}

.checkout-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(39,74,54,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    color: #2f533f;
    font-size: .75rem;
    font-weight: 800;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.checkout-demo-badge i,
.payment-control-banner .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #63b57f;
    box-shadow: 0 0 0 5px rgba(99,181,127,.12), 0 0 20px rgba(99,181,127,.36);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0,1.62fr) minmax(320px,.74fr);
    gap: 24px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 18px;
}

.checkout-section,
.checkout-summary,
.order-receipt-card,
.order-next-card,
.order-not-found {
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,253,249,.68);
    box-shadow: 0 22px 56px rgba(40,49,42,.09), inset 0 1px 0 rgba(255,255,255,.93);
    backdrop-filter: blur(22px) saturate(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(1.06);
}

.checkout-section {
    padding: clamp(24px,3vw,34px);
    border-radius: 26px;
}

.checkout-section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.checkout-section-title > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #173126;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.checkout-section-title h2 {
    margin: 0;
    color: #18261d;
    font-size: 1.25rem;
    letter-spacing: -.03em;
}

.checkout-section-title p {
    margin: 5px 0 0;
    color: #7b817c;
    font-size: .82rem;
}

.checkout-product-inline {
    display: grid;
    grid-template-columns: 80px minmax(0,1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(32,50,39,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.52);
}

.checkout-product-inline img,
.checkout-summary-product img,
.order-product-row img {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.checkout-product-inline span,
.checkout-summary-product small,
.order-product-row span {
    color: #8d948f;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.checkout-product-inline h3,
.order-product-row h2 {
    margin: 3px 0 4px;
    color: #17241b;
    font-size: 1.08rem;
}

.checkout-product-inline p,
.order-product-row p {
    margin: 0;
    color: #737b74;
    font-size: .8rem;
}

.checkout-product-inline a {
    color: #3b5a48;
    font-size: .72rem;
    font-weight: 800;
}

.checkout-order-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkout-order-controls label,
.checkout-fields label {
    display: grid;
    gap: 8px;
    color: #2f3e34;
    font-size: .74rem;
    font-weight: 800;
}

.checkout-order-controls select,
.checkout-fields input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(34,55,41,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.74);
    color: #17241b;
    padding: 0 15px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.checkout-order-controls select:focus,
.checkout-fields input:focus {
    border-color: rgba(61,118,83,.35);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61,118,83,.08);
}

.checkout-qty {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid rgba(34,55,41,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.74);
}

.checkout-qty button,
.checkout-qty input {
    border: 0;
    background: transparent;
    color: #173126;
}

.checkout-qty button {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-qty input {
    width: 100%;
    min-width: 0;
    text-align: center;
    outline: 0;
    font-weight: 800;
}

.checkout-fields {
    gap: 14px;
}

.checkout-fields .field-span-2 {
    grid-column: 1 / -1;
}

.payment-method-list {
    display: grid;
    gap: 10px;
}

.payment-method-card {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(36,53,42,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.55);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.payment-method-card:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.76);
}

.payment-method-card.is-selected,
.payment-method-card:has(input:checked) {
    border-color: rgba(42,102,70,.34);
    background: rgba(241,249,244,.86);
    box-shadow: 0 0 0 3px rgba(75,143,98,.07), 0 10px 24px rgba(45,77,57,.07);
}

.payment-method-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid #a4ada7;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.payment-method-card:has(input:checked) .payment-radio {
    border-color: #3f9a64;
    background: #3f9a64;
}

.payment-method-copy {
    display: grid;
    gap: 3px;
}

.payment-method-copy strong {
    color: #17231b;
    font-size: .86rem;
}

.payment-method-copy small {
    color: #858c87;
    font-size: .68rem;
}

.payment-logos,
.payment-control-brand {
    display: flex;
    gap: 5px;
    align-items: center;
}

.payment-logos b,
.payment-control-brand-card b {
    display: inline-grid;
    place-items: center;
    min-width: 35px;
    height: 23px;
    padding: 0 6px;
    border: 1px solid #d7dbe0;
    border-radius: 5px;
    background: #fff;
    color: #183d8d;
    font-family: Arial,sans-serif;
    font-size: .56rem;
    font-weight: 900;
}

.payment-wordmark {
    font-weight: 900;
    font-size: .86rem;
}
.paypal-wordmark { color:#1473e6; font-style:italic; }
.klarna-wordmark { color:#111; background:#ffb3c7; padding:5px 7px; border-radius:5px; }
.coinbase-wordmark { color:#1652f0; }

.demo-card-fields {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(34,55,41,.08);
    border-radius: 16px;
    background: rgba(248,246,240,.72);
}

.demo-card-fields[hidden] { display:none; }

.checkout-demo-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .72rem;
}
.checkout-demo-note strong { color:#27533b; }
.checkout-demo-note span { color:#7c847e; }

.checkout-summary {
    position: sticky;
    top: 104px;
    padding: 26px;
    border-radius: 26px;
}

.checkout-summary-kicker {
    display: block;
    margin-bottom: 18px;
    color: #707a73;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(34,55,41,.09);
}

.checkout-summary-product img { width:64px; border-radius:12px; }
.checkout-summary-product strong { display:block; margin-bottom:4px; color:#17231b; font-size:.88rem; }

.checkout-summary-lines {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.checkout-summary-lines div,
.order-receipt-lines div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.checkout-summary-lines dt,
.order-receipt-lines dt {
    color: #7c847e;
    font-size: .76rem;
}

.checkout-summary-lines dd,
.order-receipt-lines dd {
    margin: 0;
    color: #213128;
    font-size: .76rem;
    font-weight: 800;
    text-align: right;
}

.checkout-summary-total {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(34,55,41,.09);
}

.checkout-summary-total span { color:#68726b; font-size:.76rem; }
.checkout-summary-total strong { color:#173126; font-size:1.55rem; letter-spacing:-.04em; }

.checkout-summary-note {
    margin: 0 0 18px;
    color: #8b928d;
    font-size: .68rem;
    line-height: 1.55;
}

.checkout-pay-button {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(116,215,165,.18);
    border-radius: 16px;
    background: linear-gradient(135deg,#163326,#23543b 54%,#38765a);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(28,70,48,.22), 0 0 24px rgba(88,193,146,.10);
    transition: transform .22s ease, box-shadow .22s ease;
}

.checkout-pay-button::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.22) 38%,transparent 56%);
    transform:translateX(-150%);
    transition:transform .72s cubic-bezier(.2,.8,.2,1);
}

.checkout-pay-button:hover {
    transform:translateY(-2px);
    box-shadow:0 20px 36px rgba(28,70,48,.26),0 0 28px rgba(88,193,146,.20);
}
.checkout-pay-button:hover::before { transform:translateX(160%); }
.checkout-pay-button:disabled { opacity:.5; cursor:not-allowed; transform:none; }

.checkout-security-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 16px;
    color: #7b837d;
}
.checkout-security-row p { margin:0; font-size:.67rem; line-height:1.5; }
.checkout-security-row strong { display:block; color:#415148; margin-bottom:2px; }

.checkout-method-empty,
.checkout-empty {
    padding: 24px;
    border-radius: 18px;
}

/* Order confirmation */
.order-confirmation-shell {
    padding-top: clamp(48px, 8vw, 100px);
    padding-bottom: 120px;
}

.order-success-mark {
    width: 64px;
    height: 64px;
    display:grid;
    place-items:center;
    margin-bottom:24px;
    border-radius:50%;
    background:#1f5339;
    color:#fff;
    box-shadow:0 16px 35px rgba(31,83,57,.20),0 0 0 10px rgba(61,137,88,.07);
    font-size:1.6rem;
}

.order-confirmation-heading { max-width:850px; margin-bottom:34px; }
.order-confirmation-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr); gap:22px; align-items:start; }
.order-receipt-card,.order-next-card { padding:30px; border-radius:26px; }
.order-receipt-top { display:flex; justify-content:space-between; gap:18px; align-items:center; padding-bottom:20px; border-bottom:1px solid rgba(34,55,41,.09); }
.order-receipt-top > div { display:grid; gap:3px; }
.order-receipt-top span { color:#858d87; font-size:.68rem; text-transform:uppercase; letter-spacing:.09em; font-weight:800; }
.order-receipt-top strong { color:#17231b; font-size:1.22rem; }
.order-product-row { display:grid; grid-template-columns:90px 1fr; gap:16px; align-items:center; padding:24px 0; }
.order-product-row img { width:90px; }
.order-receipt-lines { display:grid; gap:12px; padding:20px 0; border-top:1px solid rgba(34,55,41,.09); border-bottom:1px solid rgba(34,55,41,.09); }
.order-receipt-total { display:flex; justify-content:space-between; align-items:end; padding:22px 0; }
.order-receipt-total span { color:#6f786f; font-size:.78rem; }
.order-receipt-total strong { color:#173126; font-size:1.8rem; }
.order-receipt-actions { display:flex; gap:10px; flex-wrap:wrap; }
.order-next-card h3 { margin:8px 0 20px; color:#17231b; font-size:1.35rem; }
.order-next-number { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#173126; color:#fff; font-size:.68rem; font-weight:800; }
.order-next-card ol { list-style:none; padding:0; margin:0; display:grid; gap:18px; counter-reset:step; }
.order-next-card li { position:relative; display:grid; gap:4px; padding-left:28px; }
.order-next-card li::before { counter-increment:step; content:counter(step); position:absolute; left:0; top:0; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:#e3ebe5; color:#2e5d43; font-size:.6rem; font-weight:800; }
.order-next-card li b { color:#26372d; font-size:.8rem; }
.order-next-card li span { color:#7c847e; font-size:.72rem; line-height:1.5; }
.order-buyer-summary { display:grid; gap:3px; margin-top:26px; padding-top:20px; border-top:1px solid rgba(34,55,41,.09); }
.order-buyer-summary span { color:#89908a; font-size:.65rem; text-transform:uppercase; font-weight:800; letter-spacing:.08em; }
.order-buyer-summary strong { color:#17231b; }
.order-buyer-summary small { color:#7b837d; }
.order-not-found { max-width:760px; margin:80px auto; padding:42px; border-radius:28px; }
.order-not-found p { color:#727a73; }

/* Admin payment control */
.payment-admin-metrics {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:16px;
}
.payment-admin-metrics article {
    display:grid;
    gap:5px;
    padding:20px;
    border:1px solid rgba(255,255,255,.72);
    border-radius:18px;
    background:rgba(255,253,249,.72);
    box-shadow:0 16px 36px rgba(45,51,45,.06);
}
.payment-admin-metrics span { color:#7d857f; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.payment-admin-metrics strong { color:#173126; font-size:1.55rem; letter-spacing:-.04em; }
.payment-admin-metrics small { color:#929893; font-size:.67rem; }
.payment-control-form { margin-bottom:16px; }
.payment-control-form .panel-title p { max-width:680px; margin:6px 0 0; color:#7a827c; font-size:.78rem; }
.payment-control-banner { display:flex; gap:12px; align-items:center; padding:16px; margin-bottom:18px; border:1px solid rgba(69,137,91,.14); border-radius:16px; background:#f0f7f2; }
.payment-control-banner div { display:grid; gap:3px; }
.payment-control-banner strong { color:#27533b; font-size:.82rem; }
.payment-control-banner small { color:#6f7d73; }
.payment-control-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.payment-control-card { position:relative; display:grid; grid-template-columns:auto auto 1fr; gap:12px; align-items:center; min-height:80px; padding:14px; cursor:pointer; border:1px solid rgba(36,53,42,.10); border-radius:16px; background:rgba(255,255,255,.55); }
.payment-control-card > input { position:absolute; opacity:0; }
.payment-control-toggle { position:relative; width:42px; height:24px; border-radius:999px; background:#d9ddd9; transition:background .2s ease; }
.payment-control-toggle::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.16); transition:transform .2s ease; }
.payment-control-card:has(input:checked) .payment-control-toggle { background:#2f7550; }
.payment-control-card:has(input:checked) .payment-control-toggle::after { transform:translateX(18px); }
.payment-control-card > span:last-child { display:grid; gap:3px; }
.payment-control-card > span:last-child strong { color:#213128; font-size:.78rem; }
.payment-control-card > span:last-child small { color:#89908b; font-size:.66rem; }
.payment-control-brand { min-width:68px; }
.payment-control-brand-paypal b { color:#1473e6; font-style:italic; }
.payment-control-brand-klarna b { background:#ffb3c7; color:#111; padding:5px 7px; border-radius:5px; }
.payment-control-brand-coinbase b { color:#1652f0; }
.payment-status-form { display:flex; align-items:center; gap:6px; min-width:420px; }
.payment-status-form select { min-height:34px; padding:0 8px; border:1px solid rgba(36,53,42,.12); border-radius:8px; background:#fff; }
.payment-orders-panel { margin-top:16px; }

@media (max-width: 1050px) {
    .checkout-grid { grid-template-columns:1fr; }
    .checkout-summary { position:relative; top:auto; }
    .payment-admin-metrics { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 760px) {
    .checkout-heading { align-items:flex-start; flex-direction:column; }
    .checkout-order-controls,.checkout-fields,.payment-control-grid { grid-template-columns:1fr; }
    .checkout-fields .field-span-2 { grid-column:auto; }
    .payment-method-card { grid-template-columns:22px 1fr; }
    .payment-logos,.payment-wordmark { grid-column:2; justify-self:start; }
    .order-confirmation-grid { grid-template-columns:1fr; }
    .payment-admin-metrics { grid-template-columns:1fr; }
    .checkout-section,.checkout-summary,.order-receipt-card,.order-next-card { padding:22px; border-radius:22px; }
}

@media (max-width: 520px) {
    .checkout-page-shell,.order-confirmation-shell { padding-left:14px; padding-right:14px; }
    .checkout-product-inline { grid-template-columns:64px 1fr; }
    .checkout-product-inline img { width:64px; }
    .checkout-product-inline > a { grid-column:2; }
    .order-receipt-actions { flex-direction:column; }
    .order-receipt-actions .btn { width:100%; }
}

/* =========================================================
   V29 — production-style checkout / payment flow
   Customer-facing UI intentionally contains no sandbox labels.
   ========================================================= */
.page-payment main {
    background:
        radial-gradient(circle at 8% 10%, rgba(202,174,123,.15), transparent 27rem),
        radial-gradient(circle at 92% 8%, rgba(74,120,91,.12), transparent 30rem),
        #f4f0e7;
}

.checkout-secure-badge {
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    padding:0 16px;
    border:1px solid rgba(39,74,54,.12);
    border-radius:999px;
    background:rgba(255,255,255,.64);
    color:#2f533f;
    font-size:.75rem;
    font-weight:800;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.checkout-secure-badge i {
    width:8px;
    height:8px;
    border-radius:50%;
    background:#57aa76;
    box-shadow:0 0 0 5px rgba(87,170,118,.11),0 0 18px rgba(87,170,118,.30);
}

.payment-page-shell {
    padding-top:clamp(38px,6vw,76px);
    padding-bottom:110px;
}
.payment-page-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:24px;
    margin-bottom:28px;
}
.payment-page-heading h1 {
    margin:8px 0 8px;
    color:#14231a;
    font-family:var(--serif);
    font-size:clamp(2.7rem,5vw,4.7rem);
    font-weight:500;
    line-height:.94;
    letter-spacing:-.055em;
}
.payment-page-heading p:last-child { margin:0; color:#727a74; }
.payment-back-link {
    flex:0 0 auto;
    color:#355744;
    font-size:.76rem;
    font-weight:800;
    text-decoration:none;
}

.payment-page-grid {
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(310px,.72fr);
    gap:24px;
    align-items:start;
}
.payment-selector-card,
.payment-order-summary {
    border:1px solid rgba(255,255,255,.74);
    background:rgba(255,253,249,.72);
    box-shadow:0 22px 56px rgba(40,49,42,.09),inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter:blur(22px) saturate(1.06);
    -webkit-backdrop-filter:blur(22px) saturate(1.06);
}
.payment-selector-card { padding:0; border-radius:26px; overflow:hidden; }
.payment-selector-head { padding:28px 30px 20px; }
.payment-selector-head h2 { margin:0 0 5px; color:#17231b; font-size:1.25rem; }
.payment-selector-head p { margin:0; color:#7a837d; font-size:.78rem; }
.payment-provider-list { border-top:1px solid rgba(35,51,41,.10); }
.payment-provider-row {
    position:relative;
    display:grid;
    grid-template-columns:22px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    min-height:66px;
    padding:14px 18px;
    cursor:pointer;
    border-bottom:1px solid rgba(35,51,41,.10);
    background:rgba(255,255,255,.30);
    transition:background .2s ease,box-shadow .2s ease;
}
.payment-provider-row:hover { background:rgba(255,255,255,.58); }
.payment-provider-row.is-selected {
    background:rgba(243,250,246,.86);
    box-shadow:inset 3px 0 0 #3f9e67;
}
.payment-provider-row > input { position:absolute; opacity:0; pointer-events:none; }
.payment-provider-radio {
    width:18px;
    height:18px;
    border:1.5px solid #aab2ad;
    border-radius:50%;
    background:#fff;
    box-shadow:inset 0 0 0 4px #fff;
}
.payment-provider-row.is-selected .payment-provider-radio { border-color:#3ca366; background:#3ca366; }
.payment-provider-name strong { color:#1a271f; font-size:.85rem; }
.payment-provider-logos { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.payment-provider-logos b {
    display:inline-grid;
    place-items:center;
    min-width:34px;
    height:23px;
    padding:0 6px;
    border:1px solid #d7dce0;
    border-radius:5px;
    background:#fff;
    color:#173e8d;
    font-family:Arial,sans-serif;
    font-size:.55rem;
    font-weight:900;
}
.payment-provider-logos small { color:#7e8681; font-size:.62rem; }
.mc-mark { color:#e44242!important; letter-spacing:-.16em; }
.klarna-mark { background:#ffb2c7!important; color:#111!important; border-color:#ffb2c7!important; min-width:58px!important; }
.brand-paypal { color:#1473e6!important; font-style:italic; font-size:1.02rem!important; }
.brand-coinbase { color:#1652f0!important; font-size:.92rem!important; }
.brand-coinbase small { color:#18231d; font-size:.56rem; font-weight:700; }

.payment-provider-panel {
    padding:24px 30px 28px;
    border-bottom:1px solid rgba(35,51,41,.10);
    background:rgba(250,249,246,.78);
}
.payment-provider-panel[hidden] { display:none; }
.payment-card-fields { display:grid; gap:14px; }
.payment-card-fields label {
    display:grid;
    gap:8px;
    color:#34433a;
    font-size:.72rem;
    font-weight:800;
}
.payment-card-fields input {
    width:100%;
    min-height:49px;
    padding:0 14px;
    border:1px solid rgba(36,53,42,.12);
    border-radius:12px;
    background:#fff;
    color:#17231b;
    outline:none;
}
.payment-card-fields input:focus { border-color:rgba(57,137,88,.38); box-shadow:0 0 0 4px rgba(57,137,88,.08); }
.payment-redirect-panel {
    min-height:174px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:16px;
    text-align:center;
    color:#6f7771;
}
.payment-redirect-panel p { max-width:470px; margin:0; line-height:1.55; font-size:.82rem; }
.payment-window-icon {
    width:94px;
    height:70px;
    display:grid;
    place-items:center;
    border:2px solid #aeb5b0;
    border-radius:6px;
    color:#7e8781;
    font-size:1.7rem;
    background:rgba(255,255,255,.56);
    box-shadow:12px 12px 0 -10px #aeb5b0;
}
.payment-order-summary {
    position:sticky;
    top:104px;
    padding:26px;
    border-radius:26px;
}

@media (max-width:1050px) {
    .payment-page-grid { grid-template-columns:1fr; }
    .payment-order-summary { position:relative; top:auto; }
}
@media (max-width:760px) {
    .payment-page-heading { flex-direction:column; align-items:flex-start; }
    .payment-provider-row { grid-template-columns:22px 1fr; }
    .payment-provider-logos { grid-column:2; justify-content:flex-start; flex-wrap:wrap; }
    .payment-selector-head,.payment-provider-panel { padding-left:22px; padding-right:22px; }
}
@media (max-width:520px) {
    .payment-page-shell { padding-left:14px; padding-right:14px; }
    .payment-selector-card,.payment-order-summary { border-radius:22px; }
}

/* V30 — Gmail SMTP status / test controls in Admin > Payments */
.smtp-admin-panel {
    margin-bottom: 24px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(42,58,47,.09);
    border-radius: 24px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 18px 42px rgba(35,48,39,.06), inset 0 1px 0 rgba(255,255,255,.9);
}

.smtp-admin-panel .panel-title {
    align-items: flex-start;
}

.smtp-test-form {
    flex: 0 0 auto;
}

.smtp-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.smtp-status-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(43,58,48,.09);
    border-radius: 18px;
    background: rgba(250,248,243,.76);
}

.smtp-status-card span {
    color: #79827c;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.smtp-status-card strong {
    overflow-wrap: anywhere;
    color: #1d2c22;
    font-size: 1rem;
}

.smtp-status-card small {
    color: #7c857f;
    line-height: 1.45;
}

.smtp-status-card.is-ready {
    border-color: rgba(60,133,91,.20);
    background: rgba(234,247,238,.78);
    box-shadow: inset 0 0 0 1px rgba(76,157,106,.04);
}

.smtp-status-card.is-warning {
    border-color: rgba(184,135,60,.22);
    background: rgba(251,244,228,.82);
}

.smtp-error-note {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(168,78,68,.16);
    border-radius: 14px;
    background: rgba(255,240,237,.75);
    color: #77423d;
    font-size: .82rem;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .smtp-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .smtp-status-grid { grid-template-columns: 1fr; }
    .smtp-admin-panel .panel-title { display: grid; gap: 14px; }
    .smtp-test-form, .smtp-test-form .btn { width: 100%; }
}

/* =========================================================
   V31 — Admin Payments analytics / reporting experience
   Operational dashboard, glass surfaces, charts, reporting.
   ========================================================= */
.payment-dashboard {
    --pay-ink:#16271d;
    --pay-muted:#738078;
    --pay-green:#28563e;
    --pay-green-2:#4f8b69;
    --pay-mint:#dcebe1;
    --pay-gold:#b5905c;
    display:grid;
    gap:18px;
    min-width:0;
}

.payment-dashboard-head {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:22px;
    padding:8px 2px 2px;
}
.payment-dashboard-head h2 {
    margin:5px 0 5px;
    color:var(--pay-ink);
    font-size:clamp(1.9rem,3vw,2.75rem);
    letter-spacing:-.055em;
}
.payment-dashboard-head p:last-child { margin:0; color:var(--pay-muted); max-width:660px; }
.payment-head-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }

.payment-action-btn,
.payment-filter-btn,
.payment-save-btn,
.payment-inline-save {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    border:0;
    text-decoration:none;
    cursor:pointer;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.payment-action-btn::before,
.payment-filter-btn::before,
.payment-save-btn::before,
.payment-inline-save::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(110deg,transparent 15%,rgba(255,255,255,.22) 34%,transparent 52%);
    transform:translateX(-145%);
    transition:transform .65s cubic-bezier(.2,.8,.2,1);
}
.payment-action-btn:hover::before,
.payment-filter-btn:hover::before,
.payment-save-btn:hover::before,
.payment-inline-save:hover::before { transform:translateX(155%); }
.payment-action-btn {
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 16px;
    border-radius:999px;
    color:#fff;
    background:linear-gradient(135deg,#173226,#315d45);
    box-shadow:0 10px 24px rgba(31,76,52,.16);
    font-size:.74rem;
    font-weight:800;
}
.payment-action-btn:hover { transform:translateY(-2px); box-shadow:0 15px 30px rgba(31,76,52,.23),0 0 24px rgba(90,167,121,.10); }
.payment-action-btn-light {
    color:#284434;
    border:1px solid rgba(39,68,51,.10);
    background:rgba(255,255,255,.62);
    box-shadow:0 9px 24px rgba(38,49,41,.06),inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.payment-kpi-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.payment-kpi-card,
.payment-glass-card,
.payment-orders-card,
.payment-report-bar,
.payment-system-details {
    border:1px solid rgba(255,255,255,.72);
    background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(249,247,241,.48));
    box-shadow:0 18px 46px rgba(42,51,44,.07),inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter:blur(22px) saturate(1.06);
    -webkit-backdrop-filter:blur(22px) saturate(1.06);
}
.payment-kpi-card {
    position:relative;
    overflow:hidden;
    min-height:135px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    padding:20px;
    border-radius:23px;
    transition:transform .25s ease,box-shadow .25s ease;
}
.payment-kpi-card:hover { transform:translateY(-4px); box-shadow:0 25px 55px rgba(42,51,44,.11),inset 0 1px 0 rgba(255,255,255,.96); }
.payment-kpi-card.payment-kpi-primary {
    color:#fff;
    border-color:rgba(54,99,72,.16);
    background:linear-gradient(145deg,#173126,#2f5d44 72%,#50795f);
    box-shadow:0 20px 48px rgba(30,74,52,.20),inset 0 1px 0 rgba(255,255,255,.10);
}
.payment-kpi-label { color:#78837c; font-size:.65rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.payment-kpi-card strong { color:var(--pay-ink); font-size:clamp(1.55rem,2.3vw,2.15rem); letter-spacing:-.05em; }
.payment-kpi-card small { color:#8b938e; font-size:.69rem; }
.payment-kpi-primary .payment-kpi-label,.payment-kpi-primary small { color:rgba(255,255,255,.68); }
.payment-kpi-primary strong { color:#fff; }
.payment-kpi-orb { position:absolute; width:130px; height:130px; right:-38px; top:-42px; border-radius:50%; background:radial-gradient(circle,rgba(178,227,196,.28),transparent 68%); filter:blur(1px); animation:payOrb 5.5s ease-in-out infinite alternate; }
@keyframes payOrb { to { transform:translate(-8px,9px) scale(1.14); opacity:.78; } }

.payment-analytics-grid {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(280px,.75fr);
    gap:14px;
}
.payment-glass-card { border-radius:25px; padding:22px; min-width:0; }
.payment-status-card-wide { grid-column:1/-1; }
.payment-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.payment-card-head h3 { margin:3px 0 0; color:var(--pay-ink); font-size:1.28rem; letter-spacing:-.035em; }
.payment-card-head p { margin:5px 0 0; color:var(--pay-muted); font-size:.76rem; }
.payment-card-kicker { color:#97733f; font-size:.62rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.payment-card-note { color:#87918a; font-size:.68rem; }

.payment-bar-chart {
    height:260px;
    display:grid;
    grid-template-columns:repeat(6,minmax(45px,1fr));
    gap:12px;
    align-items:end;
    padding-top:26px;
}
.payment-bar-column { min-width:0; display:grid; grid-template-rows:22px 1fr auto auto; gap:5px; text-align:center; height:100%; }
.payment-bar-value { color:#6c786f; font-size:.61rem; opacity:0; transform:translateY(6px); transition:opacity .2s ease,transform .2s ease; }
.payment-bar-column:hover .payment-bar-value { opacity:1; transform:translateY(0); }
.payment-bar-track { position:relative; height:100%; min-height:150px; display:flex; align-items:flex-end; justify-content:center; border-radius:12px; background:linear-gradient(180deg,rgba(47,92,67,.025),rgba(47,92,67,.065)); overflow:hidden; }
.payment-bar-track::before { content:""; position:absolute; inset:25% 0 auto; height:1px; background:rgba(44,70,53,.06); box-shadow:0 44px 0 rgba(44,70,53,.06),0 88px 0 rgba(44,70,53,.06); }
.payment-bar-fill { width:min(70%,54px); height:var(--bar-height); min-height:4px; border-radius:11px 11px 5px 5px; background:linear-gradient(180deg,#70a780,#2f6648); box-shadow:0 10px 22px rgba(54,119,80,.18),inset 0 1px 0 rgba(255,255,255,.22); transform-origin:bottom; animation:payBarRise .9s cubic-bezier(.2,.82,.2,1) both; animation-delay:var(--bar-delay); }
.payment-bar-column:nth-child(odd) .payment-bar-fill { background:linear-gradient(180deg,#c6ad7e,#8b693d); box-shadow:0 10px 22px rgba(137,103,58,.14); }
@keyframes payBarRise { from { transform:scaleY(.03); opacity:.35; } to { transform:scaleY(1); opacity:1; } }
.payment-bar-column > strong { color:#36483d; font-size:.7rem; }
.payment-bar-column > small { color:#929992; font-size:.6rem; white-space:nowrap; }

.payment-method-visual { display:grid; grid-template-columns:150px minmax(0,1fr); gap:22px; align-items:center; min-height:245px; }
.payment-donut {
    width:145px;
    aspect-ratio:1;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:conic-gradient(#386f50 0 var(--card),#6e8fbc var(--card) calc(var(--card) + var(--paypal)),#d391a4 calc(var(--card) + var(--paypal)) calc(var(--card) + var(--paypal) + var(--klarna)),#b69967 calc(var(--card) + var(--paypal) + var(--klarna)) 100%);
    box-shadow:0 16px 34px rgba(45,63,50,.12);
    animation:payDonutIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes payDonutIn { from { transform:scale(.8) rotate(-24deg); opacity:.2; } to { transform:scale(1) rotate(0); opacity:1; } }
.payment-donut::before { content:""; grid-area:1/1; width:66%; aspect-ratio:1; border-radius:50%; background:rgba(250,249,245,.96); box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.payment-donut > span { grid-area:1/1; z-index:1; display:grid; text-align:center; }
.payment-donut strong { color:var(--pay-ink); font-size:1.6rem; letter-spacing:-.05em; }
.payment-donut small { color:#849087; font-size:.62rem; text-transform:uppercase; font-weight:800; letter-spacing:.08em; }
.payment-method-legend { display:grid; gap:12px; min-width:0; }
.payment-method-legend > div { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:9px; }
.payment-method-legend strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#3a4c40; font-size:.71rem; }
.payment-method-legend em { color:#8b938e; font-size:.68rem; font-style:normal; font-weight:800; }
.legend-dot { width:8px; height:8px; border-radius:50%; }
.legend-card { background:#386f50; }.legend-paypal { background:#6e8fbc; }.legend-klarna { background:#d391a4; }.legend-coinbase { background:#b69967; }

.payment-status-bars { display:grid; gap:10px; }
.payment-status-row { display:grid; grid-template-columns:92px minmax(0,1fr) 28px; gap:12px; align-items:center; }
.payment-status-row > span { color:#59675e; font-size:.68rem; font-weight:700; }
.payment-status-row > div { height:9px; overflow:hidden; border-radius:999px; background:rgba(51,84,62,.07); }
.payment-status-row i { display:block; width:var(--status-width); height:100%; border-radius:inherit; background:linear-gradient(90deg,#315f46,#78a987); transform-origin:left; animation:payStatusGrow .8s cubic-bezier(.2,.8,.2,1) both; animation-delay:var(--status-delay); }
.payment-status-row:nth-child(3n+2) i { background:linear-gradient(90deg,#9a7443,#c3a675); }
@keyframes payStatusGrow { from { transform:scaleX(.04); opacity:.35; } to { transform:scaleX(1); opacity:1; } }
.payment-status-row strong { color:#425149; font-size:.68rem; text-align:right; }

.payment-report-bar {
    display:grid;
    grid-template-columns:1.1fr repeat(4,minmax(125px,.9fr)) auto auto;
    gap:10px;
    align-items:end;
    padding:16px;
    border-radius:22px;
}
.payment-report-title { align-self:center; display:grid; gap:2px; }
.payment-report-title strong { color:var(--pay-ink); font-size:.9rem; }
.payment-report-bar label { display:grid; gap:6px; }
.payment-report-bar label > span { color:#77827b; font-size:.61rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.payment-report-bar input,.payment-report-bar select {
    min-height:42px;
    width:100%;
    padding:0 11px;
    border:1px solid rgba(39,58,46,.09);
    border-radius:12px;
    background:rgba(255,255,255,.62);
    color:#26372d;
    outline:none;
}
.payment-report-bar input:focus,.payment-report-bar select:focus { border-color:rgba(54,116,79,.28); box-shadow:0 0 0 4px rgba(71,143,97,.07); }
.payment-filter-btn,.payment-save-btn {
    min-height:42px;
    padding:0 16px;
    border-radius:12px;
    color:#fff;
    background:linear-gradient(135deg,#173226,#315d45);
    box-shadow:0 10px 24px rgba(31,76,52,.14);
    font-size:.71rem;
    font-weight:800;
}
.payment-filter-btn:hover,.payment-save-btn:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(31,76,52,.22),0 0 20px rgba(72,149,103,.08); }
.payment-reset-link { align-self:center; color:#66756b; font-size:.68rem; font-weight:800; }

.payment-method-control { padding:22px; }
.payment-control-heading { align-items:center; }
.payment-control-grid-v31 { margin:0; }
.payment-control-card-v31 {
    min-height:86px;
    border:1px solid rgba(36,53,42,.08);
    border-radius:18px;
    background:rgba(255,255,255,.44);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
}
.payment-control-card-v31:hover { transform:translateY(-2px); border-color:rgba(48,105,72,.14); background:rgba(255,255,255,.62); box-shadow:0 14px 28px rgba(42,55,45,.07),inset 0 1px 0 rgba(255,255,255,.84); }
.payment-control-card-v31:has(input:checked) { border-color:rgba(48,116,76,.16); background:rgba(239,248,242,.68); }

.payment-orders-card { border-radius:25px; overflow:hidden; padding:22px 22px 10px; }
.payment-orders-head { align-items:center; }
.payment-table-wrap { border:1px solid rgba(40,56,46,.07); border-radius:16px; overflow:auto; background:rgba(255,255,255,.30); }
.payment-report-table { width:100%; min-width:1080px; border-collapse:separate; border-spacing:0; }
.payment-report-table thead th { position:sticky; top:0; z-index:2; padding:13px 12px; color:#758078; background:rgba(245,244,239,.96); backdrop-filter:blur(10px); font-size:.59rem; letter-spacing:.08em; text-transform:uppercase; }
.payment-report-table tbody td { padding:14px 12px; border-top:1px solid rgba(40,56,46,.07); color:#33443a; font-size:.72rem; vertical-align:middle; }
.payment-report-table tbody tr { transition:background .18s ease,transform .18s ease; }
.payment-report-table tbody tr:hover { background:rgba(244,249,245,.74); }
.payment-status-form-v31 { min-width:360px; display:grid; grid-template-columns:1fr 1fr auto; gap:7px; align-items:end; }
.payment-status-form-v31 label { display:grid; gap:4px; }
.payment-status-form-v31 label span { color:#89928c; font-size:.55rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.payment-status-form-v31 select { min-height:36px; border-radius:9px; }
.payment-inline-save { min-height:36px; padding:0 11px; border-radius:9px; color:#fff; background:#28563e; font-size:.65rem; font-weight:800; }
.payment-inline-save:hover { transform:translateY(-1px); box-shadow:0 8px 16px rgba(40,86,62,.18); }
.payment-receipt-link { display:inline-flex; align-items:center; min-height:34px; padding:0 10px; border:1px solid rgba(41,68,52,.10); border-radius:9px; background:rgba(255,255,255,.58); color:#315440; font-size:.65rem; font-weight:800; text-decoration:none; transition:transform .2s ease,background .2s ease,box-shadow .2s ease; }
.payment-receipt-link:hover { transform:translateY(-2px); background:#fff; box-shadow:0 9px 18px rgba(42,55,45,.08); }
.payment-empty-state { display:grid; justify-items:center; gap:5px; padding:32px; text-align:center; }
.payment-empty-state strong { color:#425048; }.payment-empty-state span { color:#8b938e; }

.payment-system-details { border-radius:18px; overflow:hidden; }
.payment-system-details summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 17px; }
.payment-system-details summary::-webkit-details-marker { display:none; }
.payment-system-details summary > span { display:grid; gap:2px; }
.payment-system-details summary strong { color:#435149; font-size:.72rem; }
.payment-system-details summary small { color:#929994; font-size:.61rem; }
.payment-system-details summary em { padding:6px 10px; border-radius:999px; background:#edf5ef; color:#3b704f; font-size:.62rem; font-style:normal; font-weight:800; }
.payment-system-details summary em.is-warning { background:#f7eee1; color:#8a6736; }
.payment-system-detail-body { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:15px 17px 17px; border-top:1px solid rgba(40,56,46,.07); }
.payment-system-detail-body > div { display:grid; gap:3px; }
.payment-system-detail-body span { color:#8b938d; font-size:.59rem; text-transform:uppercase; font-weight:800; letter-spacing:.08em; }
.payment-system-detail-body strong { color:#33443a; font-size:.8rem; }
.payment-system-detail-body small { color:#858e88; font-size:.64rem; }

.payment-ui-enter { opacity:0; transform:translateY(14px); animation:paymentUiEnter .62s cubic-bezier(.2,.78,.2,1) forwards; }
.payment-ui-delay-1 { animation-delay:.07s; }.payment-ui-delay-2 { animation-delay:.14s; }.payment-ui-delay-3 { animation-delay:.21s; }.payment-ui-delay-4 { animation-delay:.28s; }
@keyframes paymentUiEnter { to { opacity:1; transform:translateY(0); } }

@media (max-width:1180px) {
    .payment-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .payment-report-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .payment-report-title { grid-column:1/-1; }
}
@media (max-width:900px) {
    .payment-analytics-grid { grid-template-columns:1fr; }
    .payment-status-card-wide { grid-column:auto; }
    .payment-dashboard-head,.payment-card-head.payment-control-heading,.payment-orders-head { align-items:flex-start; flex-direction:column; }
    .payment-method-visual { grid-template-columns:130px 1fr; }
    .payment-donut { width:125px; }
}
@media (max-width:620px) {
    .payment-kpi-grid { grid-template-columns:1fr; }
    .payment-report-bar { grid-template-columns:1fr; }
    .payment-report-title { grid-column:auto; }
    .payment-head-actions,.payment-action-btn,.payment-filter-btn,.payment-save-btn { width:100%; }
    .payment-method-visual { grid-template-columns:1fr; justify-items:center; }
    .payment-method-legend { width:100%; }
    .payment-bar-chart { gap:7px; overflow-x:auto; grid-template-columns:repeat(6,minmax(54px,1fr)); }
    .payment-status-row { grid-template-columns:76px minmax(0,1fr) 22px; gap:8px; }
    .payment-system-detail-body { align-items:stretch; flex-direction:column; }
    .payment-system-detail-body form,.payment-system-detail-body .payment-action-btn { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
    .payment-ui-enter,.payment-bar-fill,.payment-status-row i,.payment-donut,.payment-kpi-orb { animation:none!important; opacity:1!important; transform:none!important; }
}
@media print {
    .site-header,.site-footer,.admin-tabs,.payment-method-control,.payment-system-details,.payment-head-actions,.payment-report-bar { display:none!important; }
    .admin-shell { display:block!important; padding:0!important; }
    .payment-dashboard { gap:12px!important; }
    .payment-kpi-card,.payment-glass-card,.payment-orders-card { box-shadow:none!important; border:1px solid #ddd!important; background:#fff!important; }
}

/* V31 admin interaction polish */
.admin-tabs a,
.admin-shell .btn,
.admin-shell .mini-link {
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}
.admin-tabs a:hover { transform:translateX(4px); }
.admin-tabs a.active { box-shadow:0 10px 22px rgba(31,78,54,.13),inset 0 1px 0 rgba(255,255,255,.08); }
.admin-shell .btn:hover { transform:translateY(-2px); }
.admin-shell .mini-link:hover { transform:translateY(-1px); }

/* ========================================================================== 
   V32 — Internal staff communication: notifications + chat
   ========================================================================== */
.staff-color-dot,
.communication-current-color {
    display:inline-block;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--person-color,#315f46);
    box-shadow:0 0 0 4px color-mix(in srgb,var(--person-color,#315f46) 12%,transparent),0 6px 14px rgba(28,45,35,.12);
    vertical-align:middle;
}
.field-hint { display:block; margin-top:6px; color:#879088; font-size:.68rem; font-weight:500; }

.communication-dashboard {
    --comm-ink:#15251b;
    --comm-muted:#748078;
    --comm-line:rgba(36,58,44,.09);
    --comm-glass:rgba(255,255,255,.60);
    display:grid;
    gap:14px;
    padding-bottom:34px;
}
.communication-head {
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    min-height:122px;
    padding:24px 26px;
    border:1px solid var(--comm-line);
    border-radius:28px;
    background:
        radial-gradient(circle at 92% 0%,rgba(178,205,188,.34),transparent 35%),
        linear-gradient(145deg,rgba(255,255,255,.82),rgba(247,245,239,.58));
    box-shadow:0 22px 55px rgba(43,55,45,.07),inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter:blur(22px);
}
.communication-head::after {
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    right:-42px;
    bottom:-115px;
    border-radius:50%;
    background:rgba(38,87,59,.08);
    filter:blur(2px);
}
.communication-head h2 { margin:3px 0 3px; color:var(--comm-ink); font-size:clamp(1.8rem,2.2vw,2.55rem); letter-spacing:-.05em; }
.communication-head p:not(.eyebrow) { margin:0; color:var(--comm-muted); font-size:.78rem; }
.communication-team-palette { position:relative; z-index:1; display:flex; align-items:center; padding-left:10px; }
.communication-team-palette span {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    margin-left:-10px;
    border:3px solid rgba(248,247,242,.96);
    border-radius:50%;
    background:var(--person-color,#315f46);
    color:#fff;
    font-size:.72rem;
    font-weight:900;
    box-shadow:0 8px 20px rgba(34,57,42,.13);
    transition:transform .2s ease,filter .2s ease;
}
.communication-team-palette span:hover { transform:translateY(-4px) scale(1.05); filter:saturate(1.08); z-index:3; }

.communication-switch {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:7px;
    border:1px solid var(--comm-line);
    border-radius:20px;
    background:rgba(255,255,255,.44);
    backdrop-filter:blur(16px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.communication-switch a {
    display:grid;
    grid-template-columns:36px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:58px;
    padding:9px 14px 9px 10px;
    border-radius:15px;
    color:#657168;
    text-decoration:none;
    transition:transform .22s ease,background .22s ease,color .22s ease,box-shadow .22s ease;
}
.communication-switch a:hover { transform:translateY(-2px); color:#294335; background:rgba(255,255,255,.66); }
.communication-switch a.active { color:#fff; background:linear-gradient(135deg,#193628,#315f46); box-shadow:0 12px 28px rgba(31,78,54,.18),inset 0 1px 0 rgba(255,255,255,.12); }
.communication-switch-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:rgba(44,79,57,.07); font-size:1.08rem; }
.communication-switch a.active .communication-switch-icon { background:rgba(255,255,255,.12); }
.communication-switch strong { font-size:.78rem; }
.communication-switch small { display:grid; place-items:center; min-width:27px; height:27px; padding:0 7px; border-radius:999px; background:rgba(34,65,47,.07); font-size:.62rem; font-weight:900; }
.communication-switch a.active small { background:rgba(255,255,255,.14); color:#fff; }

.communication-color-control {
    overflow:hidden;
    border:1px solid var(--comm-line);
    border-radius:17px;
    background:rgba(255,255,255,.44);
}
.communication-color-control summary {
    display:grid;
    grid-template-columns:24px auto 1fr;
    align-items:center;
    gap:10px;
    min-height:50px;
    padding:10px 14px;
    list-style:none;
    cursor:pointer;
    color:#405047;
}
.communication-color-control summary::-webkit-details-marker { display:none; }
.communication-color-control summary strong { font-size:.7rem; }
.communication-color-control summary small { justify-self:end; color:#89918c; font-size:.63rem; }
.communication-color-form { display:flex; align-items:end; gap:12px; padding:0 14px 14px; border-top:1px solid var(--comm-line); }
.communication-color-form label { display:grid; gap:6px; color:#667269; font-size:.64rem; font-weight:800; }
.communication-color-form input[type=color] { width:110px; height:42px; padding:4px; border:1px solid var(--comm-line); border-radius:12px; background:#fff; cursor:pointer; }
.communication-color-form .btn { min-height:42px; }

.communication-stream {
    position:relative;
    min-height:430px;
    max-height:68vh;
    overflow:auto;
    scroll-behavior:smooth;
    padding:23px;
    border:1px solid var(--comm-line);
    border-radius:28px;
    background:
        linear-gradient(rgba(247,247,243,.73),rgba(247,247,243,.73)),
        radial-gradient(circle at 14% 10%,rgba(191,207,196,.31),transparent 24%),
        radial-gradient(circle at 86% 88%,rgba(211,195,168,.24),transparent 24%);
    box-shadow:0 25px 55px rgba(42,54,45,.07),inset 0 1px 0 rgba(255,255,255,.86);
    scrollbar-width:thin;
    scrollbar-color:rgba(50,76,59,.22) transparent;
}
.communication-message {
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    gap:11px;
    align-items:start;
    width:min(82%,780px);
    margin:0 0 17px;
    animation:commMessageIn .42s cubic-bezier(.2,.78,.2,1) both;
}
.communication-message.is-own { margin-left:auto; grid-template-columns:minmax(0,1fr) 40px; }
.communication-message.is-own .communication-avatar { order:2; }
.communication-message.is-own .communication-message-main { order:1; align-items:end; }
.communication-message.is-own .communication-meta { justify-content:flex-end; }
.communication-message-main { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.communication-avatar {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:14px;
    background:var(--person-color,#315f46);
    color:#fff;
    font-size:.7rem;
    font-weight:900;
    box-shadow:0 10px 20px color-mix(in srgb,var(--person-color,#315f46) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.18);
}
.communication-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 4px 6px; color:#8b938d; font-size:.59rem; }
.communication-meta strong { color:#34463b; font-size:.68rem; }
.communication-meta span { padding:3px 6px; border-radius:999px; background:rgba(46,75,56,.06); text-transform:capitalize; }
.communication-meta time { white-space:nowrap; }
.communication-meta em { padding:3px 6px; border-radius:999px; background:#eee3c8; color:#7f602c; font-size:.52rem; font-style:normal; font-weight:900; letter-spacing:.08em; }
.communication-bubble {
    position:relative;
    width:fit-content;
    max-width:100%;
    overflow:hidden;
    padding:13px 15px;
    border-radius:7px 20px 20px 20px;
    background:linear-gradient(145deg,color-mix(in srgb,var(--message-color) 96%,#fff 4%),var(--message-color));
    color:var(--message-ink,#fff);
    box-shadow:0 13px 28px color-mix(in srgb,var(--message-color) 18%,transparent),inset 0 1px 0 rgba(255,255,255,.12);
}
.communication-message.is-own .communication-bubble { border-radius:20px 7px 20px 20px; }
.communication-message.is-pinned .communication-bubble::before {
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:rgba(255,235,176,.72);
}
.communication-bubble > p { margin:0; font-size:.78rem; line-height:1.6; overflow-wrap:anywhere; }
.communication-reply-reference {
    display:grid;
    gap:2px;
    margin:-3px -3px 9px;
    padding:8px 10px;
    border-left:3px solid currentColor;
    border-radius:8px;
    background:rgba(255,255,255,.13);
    color:inherit;
    text-decoration:none;
    opacity:.88;
}
.communication-reply-reference strong { font-size:.62rem; }
.communication-reply-reference span { max-width:520px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.61rem; opacity:.8; }
.communication-actions { display:flex; gap:3px; margin:4px 5px 0; opacity:0; transform:translateY(-2px); transition:opacity .18s ease,transform .18s ease; }
.communication-message:hover .communication-actions,.communication-message:focus-within .communication-actions { opacity:1; transform:none; }
.communication-actions form { display:inline-flex; }
.communication-actions button { padding:3px 6px; border:0; background:transparent; color:#78827b; font-size:.58rem; font-weight:800; cursor:pointer; }
.communication-actions button:hover { color:#254832; }

.communication-attachments { display:grid; gap:8px; margin-top:10px; }
.communication-image-attachment {
    position:relative;
    display:block;
    width:min(330px,100%);
    overflow:hidden;
    border-radius:13px;
    background:rgba(255,255,255,.14);
    color:inherit;
    text-decoration:none;
}
.communication-image-attachment img { display:block; width:100%; max-height:260px; object-fit:cover; transition:transform .3s ease; }
.communication-image-attachment:hover img { transform:scale(1.025); }
.communication-image-attachment span { display:block; overflow:hidden; padding:7px 9px; text-overflow:ellipsis; white-space:nowrap; font-size:.56rem; opacity:.82; }
.communication-audio-attachment { display:grid; gap:6px; width:min(350px,100%); padding:9px; border-radius:13px; background:rgba(255,255,255,.14); }
.communication-audio-attachment audio { width:100%; height:36px; }
.communication-audio-attachment span { font-size:.56rem; opacity:.78; }
.communication-file-attachment {
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 20px;
    align-items:center;
    gap:9px;
    min-width:min(330px,100%);
    padding:9px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:13px;
    background:rgba(255,255,255,.12);
    color:inherit;
    text-decoration:none;
    transition:background .2s ease,transform .2s ease;
}
.communication-file-attachment:hover { transform:translateY(-1px); background:rgba(255,255,255,.2); }
.communication-file-attachment > span { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:rgba(255,255,255,.17); font-size:.6rem; font-weight:900; letter-spacing:.05em; }
.communication-file-attachment > div { min-width:0; display:grid; gap:2px; }
.communication-file-attachment strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.63rem; }
.communication-file-attachment small { font-size:.55rem; opacity:.75; }
.communication-file-attachment b { font-size:.7rem; }
.communication-empty { display:grid; place-items:center; align-content:center; gap:8px; min-height:360px; color:#7f8982; text-align:center; }
.communication-empty > span { display:grid; place-items:center; width:54px; height:54px; border-radius:18px; background:rgba(48,83,60,.07); color:#315f46; font-size:1.4rem; }
.communication-empty strong { color:#405147; font-size:.9rem; }
.communication-empty p { margin:0; font-size:.69rem; }

.communication-composer {
    position:sticky;
    bottom:10px;
    z-index:8;
    display:grid;
    gap:8px;
    padding:11px;
    border:1px solid rgba(35,57,43,.10);
    border-radius:22px;
    background:rgba(250,249,245,.83);
    box-shadow:0 24px 60px rgba(32,51,39,.14),inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter:blur(24px) saturate(1.1);
}
.communication-composer textarea {
    width:100%;
    min-height:54px;
    max-height:170px;
    resize:none;
    padding:13px 14px 8px;
    border:0;
    outline:0;
    border-radius:14px;
    background:transparent;
    color:#26372d;
    font:inherit;
    font-size:.78rem;
    line-height:1.5;
}
.communication-composer textarea::placeholder { color:#9aa19c; }
.communication-composer-bar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:0 2px 1px; }
.communication-attach-button {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:36px;
    padding:0 10px;
    border:1px solid rgba(42,69,52,.08);
    border-radius:11px;
    background:rgba(255,255,255,.57);
    color:#516157;
    cursor:pointer;
    transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.communication-attach-button:hover { transform:translateY(-2px); background:#fff; box-shadow:0 9px 18px rgba(43,57,47,.07); }
.communication-attach-button input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.communication-attach-button span { font-size:1.05rem; line-height:1; }
.communication-attach-button strong { font-size:.64rem; }
.communication-upload-limit { overflow:hidden; color:#8b938e; font-size:.59rem; text-overflow:ellipsis; white-space:nowrap; }
.communication-upload-limit.is-over { color:#a64d45; font-weight:800; }
.communication-send-button {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:38px;
    padding:0 13px 0 15px;
    border:0;
    border-radius:12px;
    background:linear-gradient(135deg,#183528,#315f46);
    color:#fff;
    box-shadow:0 10px 24px rgba(34,78,53,.17);
    cursor:pointer;
    transition:transform .2s ease,box-shadow .2s ease;
}
.communication-send-button:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(34,78,53,.23); }
.communication-send-button span { font-size:.67rem; font-weight:850; }
.communication-send-button b { display:grid; place-items:center; width:22px; height:22px; border-radius:7px; background:rgba(255,255,255,.12); font-size:.72rem; }
.communication-attachment-preview { display:flex; flex-wrap:wrap; gap:6px; padding:0 6px; }
.communication-attachment-preview:empty { display:none; }
.communication-preview-chip { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:7px; max-width:230px; padding:5px 8px 5px 5px; border:1px solid rgba(42,64,51,.08); border-radius:10px; background:rgba(255,255,255,.66); color:#55635a; }
.communication-preview-chip > span { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#edf1ed; font-size:.56rem; font-weight:900; }
.communication-preview-chip > div { min-width:0; display:grid; gap:1px; }
.communication-preview-chip strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.58rem; }
.communication-preview-chip small { color:#929993; font-size:.52rem; }
.communication-reply-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; margin:0 4px; padding:8px 10px; border-left:3px solid #315f46; border-radius:9px; background:rgba(48,95,70,.065); }
.communication-reply-composer[hidden] { display:none; }
.communication-reply-composer > div { min-width:0; display:grid; gap:2px; }
.communication-reply-composer strong { color:#385043; font-size:.61rem; }
.communication-reply-composer span { overflow:hidden; color:#7c8780; font-size:.57rem; text-overflow:ellipsis; white-space:nowrap; }
.communication-reply-composer button { display:grid; place-items:center; width:27px; height:27px; border:0; border-radius:8px; background:rgba(49,77,59,.07); color:#667269; font-size:1rem; cursor:pointer; }

@keyframes commMessageIn { from { opacity:0; transform:translateY(8px) scale(.99); } to { opacity:1; transform:none; } }

@media (max-width:760px) {
    .communication-head { min-height:auto; padding:20px; align-items:flex-start; }
    .communication-team-palette { max-width:145px; flex-wrap:wrap; justify-content:flex-end; }
    .communication-team-palette span { width:35px; height:35px; }
    .communication-stream { min-height:390px; max-height:62vh; padding:16px 12px; border-radius:22px; }
    .communication-message { width:94%; grid-template-columns:34px minmax(0,1fr); gap:8px; }
    .communication-message.is-own { grid-template-columns:minmax(0,1fr) 34px; }
    .communication-avatar { width:34px; height:34px; border-radius:11px; }
    .communication-bubble { padding:11px 12px; }
    .communication-actions { opacity:1; transform:none; }
    .communication-composer { bottom:4px; border-radius:18px; }
    .communication-composer-bar { grid-template-columns:auto 1fr auto; }
    .communication-upload-limit { font-size:0; }
    .communication-upload-limit::after { content:"10 MB max"; font-size:.56rem; }
    .communication-send-button > span { display:none; }
    .communication-send-button { padding:0 8px; }
}
@media (max-width:480px) {
    .communication-head { display:grid; }
    .communication-team-palette { justify-content:flex-start; padding-left:8px; }
    .communication-switch a { grid-template-columns:32px 1fr auto; padding-right:9px; }
    .communication-switch-icon { width:32px; height:32px; }
    .communication-message { width:100%; }
    .communication-meta span { display:none; }
    .communication-image-attachment { width:100%; }
    .communication-file-attachment { min-width:0; width:100%; }
    .communication-color-control summary small { display:none; }
    .communication-color-form { align-items:stretch; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
    .communication-message { animation:none!important; }
    .communication-stream { scroll-behavior:auto; }
}

/* ========================================================================== 
   V33 — DOXRINE Business Intelligence + Lead Sheet
   A staff-only finder and spreadsheet workspace. The visual system keeps the
   existing forest/jute identity, then adds restrained mint light, real glass
   layers, fast transform-based microinteractions and reduced-motion fallbacks.
   ========================================================================== */
.lead-intel {
    --intel-ink:#14231b;
    --intel-forest:#173d2c;
    --intel-forest-2:#245c40;
    --intel-mint:#8fffc5;
    --intel-mint-soft:#d9ffea;
    --intel-gold:#b98a52;
    --intel-line:rgba(36,78,54,.13);
    --intel-glass:rgba(250,250,245,.68);
    --intel-shadow:0 28px 70px rgba(31,58,42,.10);
    position:relative;
    display:grid;
    gap:18px;
    min-width:0;
    isolation:isolate;
}
.lead-intel::before {
    content:"";
    position:absolute;
    inset:-36px -26px -60px;
    z-index:-2;
    border-radius:42px;
    background:
        radial-gradient(circle at 14% 8%,rgba(100,255,181,.14),transparent 27%),
        radial-gradient(circle at 88% 16%,rgba(185,138,82,.10),transparent 26%),
        linear-gradient(145deg,rgba(245,248,241,.72),rgba(236,240,232,.44));
    pointer-events:none;
}
.lead-intel-ambient { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.lead-intel-ambient i { position:absolute; width:260px; height:260px; border-radius:50%; filter:blur(26px); opacity:.24; animation:intelFloat 13s ease-in-out infinite alternate; }
.lead-intel-ambient i:nth-child(1) { top:90px; left:-110px; background:rgba(93,255,176,.42); }
.lead-intel-ambient i:nth-child(2) { top:420px; right:-130px; background:rgba(183,139,83,.28); animation-delay:-4s; }
.lead-intel-ambient i:nth-child(3) { bottom:140px; left:42%; width:190px; height:190px; background:rgba(108,222,171,.22); animation-delay:-8s; }
@keyframes intelFloat { to { transform:translate3d(20px,-20px,0) scale(1.08); } }

.lead-intel-hero,
.finder-command,
.finder-progress-card,
.finder-results,
.lead-sheet-shell,
.lead-intel-metrics article {
    border:1px solid var(--intel-line);
    box-shadow:var(--intel-shadow),inset 0 1px 0 rgba(255,255,255,.68);
    backdrop-filter:blur(22px) saturate(1.12);
    -webkit-backdrop-filter:blur(22px) saturate(1.12);
}
.lead-intel-hero {
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:30px;
    min-height:260px;
    padding:34px;
    border-color:rgba(190,255,218,.16);
    border-radius:28px;
    color:#f7fbf7;
    background:
        radial-gradient(circle at 10% 0%,rgba(135,255,196,.18),transparent 35%),
        radial-gradient(circle at 88% 30%,rgba(205,161,100,.12),transparent 30%),
        linear-gradient(135deg,rgba(18,57,39,.94),rgba(13,38,28,.88));
    box-shadow:0 30px 80px rgba(17,49,34,.22),inset 0 1px 0 rgba(255,255,255,.11);
}
.lead-intel-hero::after {
    content:"";
    position:absolute;
    top:-120px;
    right:-80px;
    width:360px;
    height:360px;
    border:1px solid rgba(168,255,209,.10);
    border-radius:50%;
    box-shadow:0 0 0 52px rgba(168,255,209,.025),0 0 0 104px rgba(168,255,209,.018);
}
.lead-intel-hero-copy { position:relative; z-index:1; max-width:720px; }
.lead-intel-kicker { display:inline-flex; align-items:center; gap:8px; color:#708078; font-size:.62rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.lead-intel-hero .lead-intel-kicker { color:rgba(231,255,240,.72); }
.lead-intel-kicker > b { width:7px; height:7px; border-radius:50%; background:var(--intel-mint); box-shadow:0 0 0 4px rgba(143,255,197,.09),0 0 18px rgba(143,255,197,.45); }
.lead-intel-hero h2 { max-width:690px; margin:15px 0 10px; color:#fff; font-family:var(--sans); font-size:clamp(2rem,4vw,4.25rem); font-weight:670; line-height:.94; letter-spacing:-.055em; }
.lead-intel-hero h2 em { color:var(--intel-mint); font-style:normal; font-weight:540; }
.lead-intel-hero p { max-width:650px; margin:0; color:rgba(239,249,242,.67); font-size:.78rem; line-height:1.65; }
.lead-intel-switch { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:5px; min-width:300px; padding:6px; border:1px solid rgba(255,255,255,.09); border-radius:18px; background:rgba(4,21,14,.28); box-shadow:inset 0 1px 0 rgba(255,255,255,.05); backdrop-filter:blur(18px); }
.lead-intel-switch button { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 14px; border:0; border-radius:13px; color:rgba(237,248,240,.68); background:transparent; font:inherit; font-size:.68rem; font-weight:800; cursor:pointer; transition:transform .22s ease,color .22s ease,background .22s ease,box-shadow .22s ease; }
.lead-intel-switch button:hover { transform:translateY(-1px); color:#fff; }
.lead-intel-switch button.is-active { color:#10291c; background:linear-gradient(135deg,#d9ffea,#94f8c4); box-shadow:0 9px 26px rgba(84,255,166,.18),inset 0 1px 0 #fff; }
.lead-intel-switch button span { font-size:.95rem; }
.lead-intel-switch button b { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:rgba(11,39,25,.10); font-size:.55rem; }

.lead-intel-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.lead-intel-metrics article { position:relative; overflow:hidden; display:grid; gap:4px; min-height:116px; padding:18px 19px; border-radius:20px; background:linear-gradient(145deg,rgba(255,255,252,.73),rgba(244,247,241,.56)); }
.lead-intel-metrics article::after { content:""; position:absolute; width:90px; height:90px; right:-34px; top:-34px; border-radius:50%; background:rgba(103,237,167,.10); transition:transform .35s ease; }
.lead-intel-metrics article:hover::after { transform:scale(1.45); }
.lead-intel-metrics span { color:#77847d; font-size:.58rem; font-weight:750; }
.lead-intel-metrics strong { color:var(--intel-forest); font-family:var(--sans); font-size:1.72rem; font-weight:720; letter-spacing:-.04em; }
.lead-intel-metrics i { color:#9aa29d; font-size:.54rem; font-style:normal; }
.lead-intel-metrics .engine-card i { display:flex; align-items:center; gap:6px; }
.lead-intel-metrics .engine-card i b { width:6px; height:6px; border-radius:50%; background:#c69c62; box-shadow:0 0 0 4px rgba(198,156,98,.09); }
.lead-intel-metrics .engine-card.is-online i b { background:#56d793; box-shadow:0 0 0 4px rgba(86,215,147,.10),0 0 12px rgba(86,215,147,.36); }
.lead-intel-metrics .engine-card.is-offline strong { color:#9c5c4e; font-size:1.08rem; }
.lead-intel-view { display:grid; gap:14px; min-width:0; animation:intelViewIn .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes intelViewIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.finder-command,
.finder-results,
.finder-progress-card,
.lead-sheet-shell { border-radius:24px; background:linear-gradient(145deg,rgba(255,255,252,.76),rgba(245,247,242,.57)); }
.finder-command { padding:24px; }
.finder-command-top,
.finder-results-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.finder-command h3,
.finder-results h3,
.lead-sheet-title h3 { margin:5px 0 0; color:var(--intel-ink); font-family:var(--sans); font-size:1.25rem; font-weight:740; letter-spacing:-.03em; }
.finder-live-badge { display:flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid rgba(42,85,58,.09); border-radius:999px; color:#75827a; background:rgba(255,255,255,.54); font-size:.57rem; font-weight:760; }
.finder-live-badge b { width:7px; height:7px; border-radius:50%; background:#7bdb9f; box-shadow:0 0 0 4px rgba(123,219,159,.10); }
.finder-live-badge.is-busy b { animation:intelPulse 1.1s ease-in-out infinite; }
@keyframes intelPulse { 50% { opacity:.35; transform:scale(.72); } }

.finder-search-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin-top:20px; }
.finder-search-box { position:relative; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; min-height:58px; padding:0 14px 0 8px; border:1px solid rgba(36,78,54,.11); border-radius:17px; background:rgba(255,255,255,.64); box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 25px rgba(39,67,49,.04); transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.finder-search-box:focus-within { transform:translateY(-1px); border-color:rgba(55,145,94,.28); box-shadow:0 12px 32px rgba(35,83,55,.08),0 0 0 4px rgba(88,217,148,.07); }
.finder-search-box > span { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:#2a6344; background:#e9f5ed; font-size:.95rem; }
.finder-search-box input { min-width:0; border:0; outline:0; color:#1b2d22; background:transparent; font:inherit; font-size:.84rem; font-weight:700; }
.finder-search-box input::placeholder { color:#9ca59f; font-weight:550; }
.finder-search-box small { color:#9ba49e; font-size:.54rem; }

.lead-action { position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:0 15px; border:1px solid rgba(37,77,52,.10); border-radius:14px; font:inherit; cursor:pointer; transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease,border-color .22s ease,opacity .22s ease; }
.lead-action::before { content:""; position:absolute; inset:0; transform:translateX(-120%) skewX(-18deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent); transition:transform .55s ease; }
.lead-action:hover:not(:disabled) { transform:translateY(-2px); }
.lead-action:hover:not(:disabled)::before { transform:translateX(120%) skewX(-18deg); }
.lead-action:active:not(:disabled) { transform:translateY(0) scale(.985); }
.lead-action:disabled { opacity:.42; cursor:not-allowed; }
.lead-action span,.lead-action b { position:relative; z-index:1; }
.lead-action span { font-size:.64rem; font-weight:830; }
.lead-action b { display:grid; place-items:center; width:24px; height:24px; border-radius:8px; font-size:.68rem; }
.lead-action-primary { min-width:190px; border-color:rgba(116,255,180,.18); color:#fff; background:linear-gradient(135deg,#163d2a,#2b6847); box-shadow:0 13px 28px rgba(29,88,56,.18),inset 0 1px 0 rgba(255,255,255,.11); }
.lead-action-primary b { background:rgba(255,255,255,.10); }
.lead-action-primary:hover { box-shadow:0 17px 34px rgba(29,88,56,.24),0 0 0 1px rgba(115,255,179,.12); }
.lead-action-ghost { color:#315441; background:rgba(255,255,255,.60); }
.lead-action-ghost:hover:not(:disabled) { border-color:rgba(67,148,100,.19); box-shadow:0 10px 24px rgba(34,70,47,.08); }
.lead-action-ghost b { background:#edf5ef; }

.finder-options { display:grid; grid-template-columns:1fr 1fr 1fr 1.35fr; gap:9px; margin-top:11px; }
.finder-options > label:not(.finder-toggle) { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; min-height:45px; padding:0 10px 0 13px; border:1px solid rgba(36,78,54,.08); border-radius:13px; background:rgba(247,249,245,.55); }
.finder-options label > span { color:#87918b; font-size:.55rem; font-weight:680; }
.finder-options select,.finder-options input[type=number] { max-width:115px; border:0; outline:0; color:#344c3d; background:transparent; font:inherit; font-size:.59rem; font-weight:800; text-align:right; }
.finder-toggle { display:flex; align-items:center; gap:9px; min-height:45px; padding:0 12px; border:1px solid rgba(36,78,54,.08); border-radius:13px; background:rgba(247,249,245,.55); cursor:pointer; }
.finder-toggle input { position:absolute; opacity:0; pointer-events:none; }
.finder-toggle > span { position:relative; width:31px; height:18px; flex:0 0 auto; border-radius:999px; background:#d5ddd6; transition:background .2s ease; }
.finder-toggle > span::after { content:""; position:absolute; width:12px; height:12px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.12); transition:transform .2s ease; }
.finder-toggle input:checked + span { background:#55bd82; }
.finder-toggle input:checked + span::after { transform:translateX(13px); }
.finder-toggle b { color:#526157; font-size:.55rem; font-weight:750; }

.finder-progress-card { padding:18px 20px; }
.finder-progress-head { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.finder-progress-head > div { display:grid; gap:4px; }
.finder-progress-head span { color:#71907c; font-size:.54rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.finder-progress-head strong { color:#263a2e; font-size:.7rem; }
.finder-progress-head > b { color:#2d6446; font-family:var(--sans); font-size:1rem; }
.finder-progress-track { overflow:hidden; height:7px; margin:12px 0 8px; border-radius:999px; background:rgba(32,66,45,.08); }
.finder-progress-track i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#4fb67b,#8dffc2); box-shadow:0 0 18px rgba(83,230,144,.34); transition:width .34s ease; }
.finder-progress-card small { color:#909991; font-size:.53rem; }

.finder-results { padding:23px; }
.finder-results-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.finder-results-actions > span { margin-right:5px; color:#818d85; font-size:.57rem; font-weight:700; }
.finder-result-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:17px; }
.finder-empty-state { grid-column:1/-1; display:grid; place-items:center; min-height:250px; align-content:center; gap:7px; border:1px dashed rgba(39,78,54,.14); border-radius:18px; color:#869189; background:rgba(255,255,255,.35); text-align:center; }
.finder-empty-state > span { display:grid; place-items:center; width:50px; height:50px; border-radius:16px; color:#34694a; background:#eaf5ed; font-size:1.2rem; }
.finder-empty-state strong { color:#425548; font-size:.74rem; }
.finder-empty-state p { max-width:530px; margin:0; font-size:.59rem; line-height:1.6; }
.finder-business-card { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:76px; padding:11px; border:1px solid rgba(36,78,54,.08); border-radius:16px; background:rgba(255,255,255,.58); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.finder-business-card:hover { transform:translateY(-2px); border-color:rgba(63,137,91,.15); box-shadow:0 12px 28px rgba(38,73,49,.07); }
.finder-business-card > span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:#295f40; background:linear-gradient(145deg,#e8f5eb,#d8ece0); font-size:.64rem; font-weight:900; }
.finder-business-card > div { min-width:0; }
.finder-business-card strong { display:block; overflow:hidden; color:#283b30; font-size:.67rem; text-overflow:ellipsis; white-space:nowrap; }
.finder-business-card p { display:flex; flex-wrap:wrap; gap:5px; margin:5px 0 0; }
.finder-business-card p span { padding:3px 6px; border-radius:999px; color:#78847c; background:#f0f3ef; font-size:.49rem; }
.finder-business-card > b { display:grid; place-items:center; width:27px; height:27px; border-radius:9px; color:#69796e; background:#f3f6f2; font-size:.56rem; }
.finder-business-card.has-email > b { color:#1d7146; background:#dff6e8; box-shadow:0 0 0 4px rgba(66,183,113,.06); }

/* Spreadsheet */
.lead-sheet-shell { overflow:hidden; min-width:0; }
.lead-sheet-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 18px 13px; border-bottom:1px solid rgba(37,76,51,.07); }
.lead-sheet-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.sheet-search { display:flex; align-items:center; gap:6px; min-height:37px; padding:0 9px; border:1px solid rgba(37,76,51,.09); border-radius:11px; background:rgba(255,255,255,.62); transition:border-color .2s ease,box-shadow .2s ease; }
.sheet-search:focus-within { border-color:rgba(58,142,91,.22); box-shadow:0 0 0 3px rgba(69,177,113,.06); }
.sheet-search span { color:#708078; font-size:.78rem; }
.sheet-search input { width:145px; border:0; outline:0; color:#33453a; background:transparent; font:inherit; font-size:.58rem; }
.sheet-tool { display:inline-flex; align-items:center; gap:6px; min-height:37px; padding:0 10px; border:1px solid rgba(37,76,51,.09); border-radius:11px; color:#465c4e; background:rgba(255,255,255,.58); font:inherit; cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.8); transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease; }
.sheet-tool:hover:not(:disabled) { transform:translateY(-2px); color:#234a33; background:#fff; box-shadow:0 9px 20px rgba(33,71,46,.07); }
.sheet-tool:active:not(:disabled) { transform:none; }
.sheet-tool:disabled { opacity:.38; cursor:not-allowed; }
.sheet-tool span { font-size:.72rem; }
.sheet-tool b { font-size:.55rem; }
.sheet-tool.danger:hover:not(:disabled) { color:#944d43; }
.sheet-tool-export { color:#fff; border-color:transparent; background:linear-gradient(135deg,#1c4b33,#2c6948); box-shadow:0 9px 22px rgba(30,88,56,.16); }
.sheet-tool-export:hover:not(:disabled) { color:#fff; background:linear-gradient(135deg,#21563a,#347754); box-shadow:0 12px 26px rgba(30,88,56,.22); }
.sheet-formula-bar { display:grid; grid-template-columns:48px 28px minmax(0,1fr) auto; align-items:center; min-height:40px; border-bottom:1px solid rgba(37,76,51,.08); color:#748078; background:rgba(247,249,245,.72); }
.sheet-formula-bar > span { display:grid; place-items:center; height:100%; border-right:1px solid rgba(37,76,51,.08); font-size:.54rem; font-weight:800; }
.sheet-formula-bar > b { display:grid; place-items:center; height:100%; border-right:1px solid rgba(37,76,51,.08); color:#6f8176; font-family:var(--serif); font-size:.68rem; font-style:italic; }
.sheet-formula-bar input { min-width:0; height:100%; padding:0 10px; border:0; outline:0; color:#516258; background:transparent; font:inherit; font-size:.57rem; }
.sheet-formula-bar > i { padding:0 12px; color:#819087; font-size:.5rem; font-style:normal; font-weight:700; }
.sheet-formula-bar > i.is-dirty { color:#9a713e; }
.sheet-formula-bar > i.is-saving { color:#387a55; }

.lead-grid-wrap { position:relative; overflow:auto; max-height:620px; min-height:390px; background:rgba(252,252,248,.64); scrollbar-width:thin; scrollbar-color:rgba(44,91,61,.25) transparent; }
.lead-grid { width:100%; min-width:1060px; border-collapse:separate; border-spacing:0; table-layout:fixed; color:#314238; font-size:.6rem; }
.lead-grid col.col-select { width:42px; }
.lead-grid col.col-city { width:160px; }
.lead-grid col.col-business { width:255px; }
.lead-grid col.col-category { width:160px; }
.lead-grid col.col-phone { width:190px; }
.lead-grid col.col-email { width:270px; }
.lead-grid col.col-website { width:360px; }
.lead-grid thead { position:sticky; top:0; z-index:7; }
.lead-grid th { height:42px; padding:0 11px; border-right:1px solid rgba(33,74,49,.09); border-bottom:1px solid rgba(33,74,49,.11); color:#ecfff3; background:linear-gradient(180deg,rgba(31,82,54,.98),rgba(25,65,44,.98)); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); font-size:.56rem; font-weight:820; letter-spacing:.015em; text-align:left; cursor:pointer; user-select:none; }
.lead-grid th:not(.row-gutter) { transition:background .18s ease; }
.lead-grid th:not(.row-gutter):hover { background:linear-gradient(180deg,#286e49,#1f5639); }
.lead-grid th span { display:inline-block; vertical-align:middle; }
.lead-grid th b { float:right; color:rgba(225,255,237,.42); font-size:.52rem; }
.lead-grid th.is-sort b { color:#a0ffc8; }
.lead-grid .row-gutter { position:sticky; left:0; z-index:9; padding:0; text-align:center; cursor:default; }
.lead-grid .row-gutter input { accent-color:#73db9b; }
.lead-grid td { position:relative; height:42px; padding:0; border-right:1px solid rgba(36,75,51,.075); border-bottom:1px solid rgba(36,75,51,.075); background:rgba(255,255,252,.72); vertical-align:top; }
.lead-grid tbody tr:nth-child(even) td { background:rgba(247,249,245,.78); }
.lead-grid tbody tr:hover td { background:rgba(235,245,237,.82); }
.lead-grid tbody tr.is-selected td { background:rgba(211,240,222,.78); }
.lead-grid tbody tr.is-filtered { display:none; }
.lead-grid td.row-gutter { position:sticky; left:0; z-index:4; display:grid; grid-template-columns:1fr 1fr; place-items:center; gap:1px; padding:0 4px; color:#819087; background:rgba(239,243,238,.97)!important; font-size:.48rem; }
.lead-grid td.row-gutter input { width:12px; height:12px; accent-color:#3c9e67; }
.lead-grid td.row-gutter i { width:5px; height:5px; border-radius:50%; background:#b9c1bb; }
.lead-grid tr[data-source*="finder"] td.row-gutter i { background:#5bd28c; box-shadow:0 0 8px rgba(91,210,140,.45); }
.lead-grid-cell { min-height:41px; padding:9px 10px; outline:0; line-height:1.45; overflow-wrap:anywhere; cursor:text; }
.lead-grid-cell:focus { z-index:3; margin:-1px; min-height:43px; border:2px solid #4db477; background:#fff; box-shadow:0 5px 18px rgba(47,129,79,.12); }
.lead-grid-cell[data-col="email"],.lead-grid-cell[data-col="website"] { color:#285c40; text-decoration-thickness:1px; }
.lead-grid-cell:empty::before { content:attr(data-placeholder); color:#b0b8b2; }
.sheet-loading { position:absolute; inset:0; z-index:10; display:grid; place-items:center; align-content:center; gap:10px; color:#6e7f74; background:rgba(248,250,246,.78); backdrop-filter:blur(5px); }
.sheet-loading[hidden] { display:none; }
.sheet-loading span { width:26px; height:26px; border:2px solid rgba(48,109,71,.14); border-top-color:#3c9e67; border-radius:50%; animation:sheetSpin .7s linear infinite; }
.sheet-loading strong { font-size:.59rem; }
@keyframes sheetSpin { to { transform:rotate(360deg); } }
.lead-sheet-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:46px; padding:0 14px; border-top:1px solid rgba(37,76,51,.07); color:#87928a; background:rgba(244,247,242,.75); }
.lead-sheet-footer > div { display:flex; align-items:center; align-self:stretch; }
.sheet-tab { display:flex; align-items:center; height:100%; padding:0 13px; border-top:2px solid transparent; color:#53675a; font-size:.54rem; font-weight:800; }
.sheet-tab.is-active { border-top-color:#3d9c66; background:rgba(255,255,255,.55); }
.lead-sheet-footer > div button { width:29px; height:29px; border:0; border-radius:9px; color:#5d6f63; background:transparent; cursor:pointer; }
.lead-sheet-footer > div button:hover { background:rgba(54,106,72,.08); }
.lead-sheet-footer p,.lead-sheet-footer small { margin:0; font-size:.5rem; }
.lead-sheet-footer p b { color:#415748; }

.lead-toast-stack { position:fixed; right:24px; bottom:24px; z-index:120; display:grid; gap:8px; width:min(330px,calc(100vw - 32px)); pointer-events:none; }
.lead-toast { display:grid; grid-template-columns:31px minmax(0,1fr); align-items:center; gap:9px; padding:10px; border:1px solid rgba(55,94,68,.12); border-radius:15px; color:#3c4e42; background:rgba(250,251,248,.91); box-shadow:0 18px 44px rgba(28,58,39,.16); backdrop-filter:blur(18px); animation:leadToastIn .28s cubic-bezier(.2,.8,.2,1) both; pointer-events:auto; }
.lead-toast > span { display:grid; place-items:center; width:31px; height:31px; border-radius:10px; color:#22633e; background:#e1f5e8; font-size:.72rem; }
.lead-toast strong { display:block; font-size:.59rem; }
.lead-toast small { display:block; margin-top:2px; color:#8b968e; font-size:.5rem; line-height:1.45; }
.lead-toast.is-error > span { color:#924b42; background:#f8e7e3; }
@keyframes leadToastIn { from { opacity:0; transform:translateY(10px) scale(.97); } }

@media (max-width:1180px) {
    .lead-intel-hero { align-items:flex-start; flex-direction:column; min-height:auto; }
    .lead-intel-switch { width:100%; min-width:0; }
    .lead-intel-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .finder-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .finder-result-grid { grid-template-columns:1fr; }
    .lead-sheet-toolbar { align-items:flex-start; flex-direction:column; }
    .lead-sheet-tools { justify-content:flex-start; }
}
@media (max-width:760px) {
    .lead-intel-hero { padding:24px; border-radius:22px; }
    .lead-intel-hero h2 { font-size:2.4rem; }
    .lead-intel-metrics { grid-template-columns:1fr 1fr; }
    .finder-command,.finder-results { padding:17px; }
    .finder-search-line { grid-template-columns:1fr; }
    .lead-action-primary { width:100%; }
    .finder-options { grid-template-columns:1fr; }
    .finder-command-top,.finder-results-head { align-items:flex-start; flex-direction:column; }
    .finder-results-actions { justify-content:flex-start; }
    .sheet-search { width:100%; }
    .sheet-search input { width:100%; }
    .lead-sheet-footer small { display:none; }
}
@media (prefers-reduced-motion: reduce) {
    .lead-intel-ambient i,
    .finder-live-badge.is-busy b,
    .sheet-loading span { animation:none!important; }
    .lead-intel-view,.lead-toast { animation:none!important; }
    .lead-action,.sheet-tool,.finder-business-card,.lead-intel-switch button { transition:none!important; }
}
@media (prefers-reduced-transparency: reduce) {
    .lead-intel-hero,.finder-command,.finder-progress-card,.finder-results,.lead-sheet-shell,.lead-intel-metrics article { backdrop-filter:none; -webkit-backdrop-filter:none; }
    .finder-command,.finder-results,.lead-sheet-shell,.lead-intel-metrics article { background:#f8faf6; }
}

/* ========================================================================== 
   V34 — HERO PRODUCT SHOWCASE + CUSTOMER LIVE CHAT
   ========================================================================== */

/* --- Homepage: replace the scroll-driven jute assembly film with the supplied
   product-only neon glass carousel. The hero is now normal document flow. --- */
.page-home .hero-showcase-hero {
    position: relative;
    padding-block: clamp(26px, 3vw, 42px) clamp(58px, 6vw, 82px);
    overflow: clip;
}

.page-home .hero-showcase-hero .hero-grid {
    width: min(1320px, calc(100% - 48px));
    min-height: clamp(620px, 72vh, 760px);
    grid-template-columns: minmax(380px, .88fr) minmax(0, 1.12fr);
    align-items: stretch;
    gap: clamp(18px, 2vw, 28px);
}

.page-home .hero-showcase-hero .hero-copy {
    align-self: center;
    margin-right: -34px;
    padding: clamp(38px, 4vw, 58px);
    border-radius: clamp(26px, 2.5vw, 36px);
    z-index: 8;
}

.page-home .hero-showcase-hero .hero-copy h1 {
    max-width: 9.5ch;
    margin-bottom: clamp(18px, 2vw, 24px);
    font-size: clamp(50px, 4.8vw, 74px);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.055em;
}

.page-home .hero-showcase-hero .hero-copy h1 em {
    display: block;
    max-width: 10.5ch;
    margin-top: .16em;
    font-size: clamp(34px, 3.25vw, 50px);
    line-height: 1.02;
    white-space: normal;
}

.page-home .hero-showcase-hero .hero-lead {
    max-width: 43ch;
    font-size: clamp(15px, 1.18vw, 17px);
    line-height: 1.58;
}

.hero-product-showcase {
    --showcase-neon: #f2a93b;
    position: relative;
    min-height: clamp(620px, 72vh, 760px);
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: clamp(14px, 1.5vw, 20px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: clamp(28px, 3vw, 42px);
    background:
        radial-gradient(110% 90% at 54% 10%, color-mix(in srgb, var(--showcase-neon) 19%, transparent), transparent 58%),
        linear-gradient(150deg, rgba(12,17,15,.94), rgba(7,10,9,.985) 60%, rgba(14,21,17,.96));
    box-shadow:
        0 38px 90px -36px rgba(19,29,23,.7),
        0 0 80px -50px var(--showcase-neon),
        inset 0 1px 0 rgba(255,255,255,.13);
    transition: box-shadow .65s ease, border-color .65s ease;
}

.hero-product-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.hero-showcase-ambient {
    position: absolute;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    filter: blur(42px);
}

.hero-showcase-ambient i {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle, var(--showcase-neon), transparent 70%);
    transition: background .7s linear;
}

.hero-showcase-ambient i:nth-child(1) { width: 58%; aspect-ratio: 1; left: -3%; top: 2%; opacity: .31; animation: showcase-drift-a 18s ease-in-out infinite alternate; }
.hero-showcase-ambient i:nth-child(2) { width: 52%; aspect-ratio: 1; right: -6%; top: 34%; opacity: .2; animation: showcase-drift-b 22s ease-in-out infinite alternate; }
.hero-showcase-ambient i:nth-child(3) { width: 62%; aspect-ratio: 1; left: 22%; bottom: -20%; opacity: .14; background: radial-gradient(circle, #4868ff, transparent 70%); animation: showcase-drift-b 27s ease-in-out infinite alternate-reverse; }

@keyframes showcase-drift-a { to { transform: translate3d(20%, 14%, 0) scale(1.18); } }
@keyframes showcase-drift-b { to { transform: translate3d(-16%, -12%, 0) scale(.88); } }

.hero-showcase-deck {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-showcase-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    perspective: 1500px;
    touch-action: pan-y;
}

.hero-showcase-card {
    position: absolute;
    inset: 0;
    width: min(88%, 650px);
    height: calc(100% - 4px);
    margin: 2px auto;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    transition: transform .62s cubic-bezier(.22,.85,.26,1), opacity .62s cubic-bezier(.22,.85,.26,1), filter .62s cubic-bezier(.22,.85,.26,1);
}

.hero-showcase-track.is-dragging .hero-showcase-card { transition: none; }

.hero-showcase-glass {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: clamp(12px, 1.4vw, 17px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: clamp(24px, 2.5vw, 34px);
    background: linear-gradient(148deg, rgba(255,255,255,.105), rgba(255,255,255,.025) 52%, rgba(255,255,255,.065));
    box-shadow:
        0 42px 78px -34px rgba(0,0,0,.92),
        0 0 58px -30px var(--showcase-neon),
        inset 0 1px 0 rgba(255,255,255,.19);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.hero-showcase-glass::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(140deg, color-mix(in srgb, var(--showcase-neon) 62%, transparent), transparent 34%, transparent 67%, rgba(255,255,255,.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-showcase-glass figure {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: clamp(18px, 2vw, 26px);
    background: radial-gradient(110% 85% at 50% 0%, rgba(255,255,255,.07), rgba(0,0,0,.58));
    box-shadow: inset 0 0 58px -24px var(--showcase-neon);
}

.hero-showcase-glass img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateZ(34px) scale(1.012);
    user-select: none;
    -webkit-user-drag: none;
}

.hero-showcase-arrow {
    position: absolute;
    top: 50%;
    z-index: 120;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    color: #f7fff9;
    background: rgba(10,15,12,.54);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    transform: translateY(-50%);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.hero-showcase-arrow:hover { transform: translateY(-50%) scale(1.07); border-color: color-mix(in srgb, var(--showcase-neon) 72%, transparent); background: rgba(18,28,22,.76); }
.hero-showcase-arrow[disabled] { opacity: .24; cursor: default; }
.hero-showcase-arrow.is-prev { left: 3px; }
.hero-showcase-arrow.is-next { right: 3px; }
.hero-showcase-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.hero-showcase-rail {
    position: relative;
    z-index: 30;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.7vw, 18px);
    color: rgba(239,246,241,.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-showcase-count { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.hero-showcase-count b { color: #fff; font-weight: 850; }
.hero-showcase-count i { opacity: .45; font-style: normal; }
.hero-showcase-segments { display: flex; gap: 5px; }
.hero-showcase-segments button { width: clamp(20px, 2.8vw, 34px); height: 3px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; transition: background .3s ease, transform .3s ease, box-shadow .3s ease; }
.hero-showcase-segments button[aria-current="true"] { background: var(--showcase-neon); transform: scaleY(1.55); box-shadow: 0 0 13px var(--showcase-neon); }
.hero-showcase-hint { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-showcase-hint i { width: 14px; height: 1px; background: currentColor; animation: showcase-hint 2.2s ease-in-out infinite; }
@keyframes showcase-hint { 50% { transform: translateX(4px); opacity: .35; } }

/* --- Customer chat head / popover --- */
.customer-chat-widget {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 190;
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.customer-chat-launcher {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.64);
    border-radius: 22px;
    color: #f4fff7;
    background: linear-gradient(145deg, rgba(15,39,27,.88), rgba(17,64,40,.72));
    box-shadow: 0 22px 48px rgba(20,55,36,.28), inset 0 1px 0 rgba(255,255,255,.24), 0 0 32px rgba(73,255,148,.16);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.22,.85,.26,1), box-shadow .25s ease, border-radius .25s ease;
}

.customer-chat-launcher:hover { transform: translateY(-4px) scale(1.025); box-shadow: 0 28px 58px rgba(20,55,36,.34), inset 0 1px 0 rgba(255,255,255,.28), 0 0 42px rgba(73,255,148,.22); }
.customer-chat-launcher[aria-expanded="true"] { border-radius: 50%; transform: rotate(-3deg); }
.customer-chat-launcher svg { position: relative; z-index: 2; width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.customer-chat-launcher-glow { position: absolute; inset: 9px; border-radius: 16px; background: radial-gradient(circle, rgba(102,255,162,.16), transparent 68%); filter: blur(1px); }
.customer-chat-active-light { position: absolute; top: 7px; right: 7px; z-index: 4; width: 11px; height: 11px; border: 2px solid rgba(10,35,21,.94); border-radius: 50%; background: #56e88b; box-shadow: 0 0 0 3px rgba(86,232,139,.15), 0 0 13px #56e88b; transition: background .25s ease, box-shadow .25s ease; }
.customer-chat-widget.is-offline .customer-chat-active-light { background: #8a9890; box-shadow: 0 0 0 3px rgba(151,162,156,.12); }
.customer-chat-launcher-badge { position: absolute; left: -6px; top: -7px; z-index: 5; min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #f1eee6; border-radius: 999px; color: white; background: #ff5867; font-size: 10px; box-shadow: 0 6px 18px rgba(143,31,45,.28); }

.customer-chat-popover {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(380px, calc(100vw - 28px));
    height: min(610px, calc(100svh - 116px));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 28px;
    color: #eefaf2;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(73,255,148,.15), transparent 58%),
        linear-gradient(155deg, rgba(12,30,21,.90), rgba(7,17,12,.95));
    box-shadow: 0 34px 82px rgba(6,22,13,.36), inset 0 1px 0 rgba(255,255,255,.17), 0 0 52px rgba(64,255,143,.12);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    transform-origin: 92% 100%;
    animation: customer-chat-open .28s cubic-bezier(.22,.85,.26,1) both;
}

.customer-chat-popover[hidden] { display: none; }
@keyframes customer-chat-open { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }

.customer-chat-popover::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.customer-chat-popover-head { position: relative; z-index: 2; display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.customer-chat-brand-orb { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.09); box-shadow: 0 0 25px rgba(69,255,145,.08); }
.customer-chat-brand-orb img { width: 29px; height: 29px; object-fit: contain; }
.customer-chat-popover-title { display: grid; gap: 3px; min-width: 0; }
.customer-chat-popover-title > strong { font-size: 13px; letter-spacing: .12em; }
.customer-chat-popover-title > span { display: flex; align-items: center; gap: 7px; color: rgba(237,250,241,.6); font-size: 10px; }
.customer-chat-popover-title i { width: 7px; height: 7px; border-radius: 50%; background: #56e88b; box-shadow: 0 0 10px #56e88b; }
.customer-chat-popover-title i.is-offline { background: #89958e; box-shadow: none; }
.customer-chat-popover-title b { font-weight: 650; }
.customer-chat-close { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 12px; color: rgba(244,255,247,.72); background: rgba(255,255,255,.06); font-size: 23px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.customer-chat-close:hover { background: rgba(255,255,255,.11); transform: rotate(4deg); }

.customer-chat-onboarding { position: relative; z-index: 2; min-height: 0; height: 100%; align-self: stretch; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(112,255,164,.24) transparent; display: grid; align-content: start; justify-items: center; gap: 10px; padding: 24px 24px 28px; text-align: center; }
.customer-chat-onboarding[hidden] { display: none; }
.customer-chat-onboarding::-webkit-scrollbar { width: 7px; }
.customer-chat-onboarding::-webkit-scrollbar-track { background: transparent; }
.customer-chat-onboarding::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(112,255,164,.24); background-clip: padding-box; }
.customer-chat-welcome-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid rgba(92,255,154,.24); border-radius: 20px; color: #83ffad; background: rgba(80,255,145,.07); box-shadow: inset 0 0 26px rgba(80,255,145,.08), 0 0 34px rgba(80,255,145,.08); font-size: 20px; }
.customer-chat-onboarding > strong { font-size: 20px; letter-spacing: -.025em; }
.customer-chat-onboarding > p { max-width: 28ch; margin: 0 0 6px; color: rgba(235,247,239,.58); font-size: 12px; line-height: 1.55; }
.customer-chat-onboarding form { width: 100%; display: grid; gap: 9px; margin-top: 4px; }
.customer-chat-onboarding label { display: grid; gap: 5px; text-align: left; color: rgba(235,247,239,.62); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-chat-onboarding label span { display: flex; justify-content: space-between; }
.customer-chat-onboarding label em { font-weight: 500; font-style: normal; opacity: .55; text-transform: none; letter-spacing: 0; }
.customer-chat-onboarding input { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; outline: 0; color: white; background: rgba(255,255,255,.055); font: inherit; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.customer-chat-onboarding input:focus { border-color: rgba(91,255,154,.48); box-shadow: 0 0 0 3px rgba(82,255,148,.07); }
.customer-chat-onboarding form button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; color: #072013; background: linear-gradient(135deg, #82f6a8, #50d980); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 16px 34px rgba(43,211,110,.18); }
.customer-chat-onboarding form button:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.2); }
.customer-chat-onboarding > small { color: rgba(235,247,239,.38); font-size: 9.5px; }

.customer-chat-session { position: relative; z-index: 2; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.customer-chat-session[hidden] { display: none; }
.customer-chat-messages { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 18px 14px 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(112,255,164,.22) transparent; }
.customer-chat-message { display: flex; max-width: 86%; }
.customer-chat-message.is-customer { align-self: flex-end; }
.customer-chat-message.is-staff { align-self: flex-start; }
.customer-chat-message > div { position: relative; padding: 10px 12px 8px; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 9px 22px rgba(0,0,0,.12); }
.customer-chat-message.is-customer > div { border-radius: 16px 16px 5px 16px; color: #082216; background: linear-gradient(145deg, rgba(127,246,169,.96), rgba(76,218,127,.93)); border-color: rgba(166,255,195,.35); }
.customer-chat-message.is-staff > div { border-color: color-mix(in srgb, var(--chat-staff-color, #315f46) 44%, rgba(255,255,255,.12)); box-shadow: inset 2px 0 0 var(--chat-staff-color, #315f46), 0 9px 22px rgba(0,0,0,.12); }
.customer-chat-message p { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.customer-chat-message small { display: block; margin-top: 5px; opacity: .56; font-size: 8px; }
.customer-chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.05); }
.customer-chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(237,250,241,.62); animation: chat-dot 1.1s ease-in-out infinite; }
.customer-chat-typing i:nth-child(2) { animation-delay: .12s; }
.customer-chat-typing i:nth-child(3) { animation-delay: .24s; }
@keyframes chat-dot { 50% { transform: translateY(-3px); opacity: .35; } }
.customer-chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; margin: 0 12px 12px; padding: 7px 7px 7px 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.customer-chat-composer textarea { width: 100%; max-height: 92px; min-height: 30px; resize: none; overflow-y: auto; padding: 6px 0 5px; border: 0; outline: 0; color: #f4fff7; background: transparent; font: inherit; font-size: 12px; line-height: 1.45; }
.customer-chat-composer textarea::placeholder { color: rgba(235,247,239,.38); }
.customer-chat-composer button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 13px; color: #082116; background: linear-gradient(145deg, #88f7ac, #51db81); font-size: 17px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(53,222,117,.17); }
.customer-chat-composer button:disabled, .customer-chat-composer textarea:disabled { opacity: .42; cursor: not-allowed; }
.customer-chat-offline-note { margin: -4px 12px 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: rgba(235,247,239,.55); background: rgba(255,255,255,.035); font-size: 9px; text-align: center; }
.customer-chat-error { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 8; padding: 9px 11px; border: 1px solid rgba(255,115,125,.25); border-radius: 12px; color: #ffd7db; background: rgba(112,24,34,.85); backdrop-filter: blur(12px); font-size: 10px; box-shadow: 0 12px 30px rgba(41,8,12,.28); }

/* --- Admin / employee customer inbox --- */
.customer-chat-console {
    --customer-console-ink: #14221a;
    --customer-console-muted: #718077;
    display: grid;
    gap: 14px;
}

.customer-chat-console-head {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(42,72,53,.1);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(247,250,247,.48));
    box-shadow: 0 20px 50px rgba(39,62,46,.08), inset 0 1px 0 rgba(255,255,255,.86);
    backdrop-filter: blur(20px);
}
.customer-chat-console-head::after { content: ""; position: absolute; width: 210px; aspect-ratio: 1; right: -70px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(68,217,124,.15), transparent 68%); pointer-events: none; }
.customer-chat-console-head h2 { margin: 3px 0 0; color: var(--customer-console-ink); font-size: clamp(1.7rem, 2.2vw, 2.35rem); letter-spacing: -.045em; }
.customer-chat-console-status { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; }
.customer-chat-unread-total { padding: 7px 9px; border-radius: 999px; color: #734b1e; background: #f2e2c3; font-size: 10px; font-weight: 900; }
.customer-chat-power { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid rgba(42,72,53,.11); border-radius: 15px; color: #2d4134; background: rgba(255,255,255,.68); font: inherit; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: transform .2s ease, background .2s ease, color .2s ease; }
.customer-chat-power:hover { transform: translateY(-2px); }
.customer-chat-power-light { width: 9px; height: 9px; border-radius: 50%; background: #54d680; box-shadow: 0 0 0 4px rgba(84,214,128,.12), 0 0 12px rgba(84,214,128,.52); }
.customer-chat-power.is-offline .customer-chat-power-light { background: #919b95; box-shadow: 0 0 0 4px rgba(145,155,149,.1); }
.customer-chat-power strong { font-size: 11px; }

.customer-chat-workspace {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(42,72,53,.1);
    border-radius: 26px;
    background: rgba(255,255,255,.54);
    box-shadow: 0 24px 60px rgba(39,62,46,.085), inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(22px);
}
.customer-chat-thread-list { min-width: 0; overflow-y: auto; padding: 10px; border-right: 1px solid rgba(42,72,53,.08); background: linear-gradient(180deg, rgba(241,247,243,.72), rgba(250,250,247,.48)); }
.customer-chat-thread { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 16px; color: inherit; background: transparent; text-align: left; font: inherit; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.customer-chat-thread:hover { transform: translateX(2px); background: rgba(255,255,255,.72); }
.customer-chat-thread.is-active { border-color: rgba(48,116,73,.12); background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(40,75,52,.07); }
.customer-chat-thread-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#245b3b,#4e8a64); font-size: 12px; font-weight: 900; box-shadow: 0 8px 20px rgba(39,86,57,.14); }
.customer-chat-thread-copy { min-width: 0; display: grid; gap: 3px; }
.customer-chat-thread-copy strong { overflow: hidden; color: #293d31; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-chat-thread-copy small { overflow: hidden; color: #88928c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-chat-thread > b { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: #48a86b; font-size: 9px; }
.customer-chat-no-threads { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 7px; color: #829087; text-align: center; }
.customer-chat-no-threads span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(54,95,68,.06); font-size: 20px; }
.customer-chat-no-threads strong { font-size: 11px; }
.customer-chat-conversation { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: radial-gradient(90% 70% at 100% 0%, rgba(62,189,105,.07), transparent 65%); }
.customer-chat-conversation-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(42,72,53,.08); background: rgba(255,255,255,.32); }
.customer-chat-person { min-width: 0; display: flex; align-items: center; gap: 10px; }
.customer-chat-person > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#245b3b,#4e8a64); font-size: 12px; font-weight: 900; }
.customer-chat-person div { min-width: 0; display: grid; gap: 3px; }
.customer-chat-person strong { color: #2e4135; font-size: 12px; }
.customer-chat-person small { overflow: hidden; color: #859188; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-chat-live-chip { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; color: #4e6c59; background: rgba(65,159,94,.075); font-size: 9px; font-weight: 850; }
.customer-chat-live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #52d17b; box-shadow: 0 0 9px rgba(82,209,123,.6); }
.customer-chat-message-stream { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; }
.customer-chat-console-message { display: flex; max-width: min(76%, 620px); }
.customer-chat-console-message.is-staff { align-self: flex-end; }
.customer-chat-console-message.is-customer { align-self: flex-start; }
.customer-chat-console-bubble { padding: 11px 13px 8px; border: 1px solid rgba(38,64,47,.08); border-radius: 18px 18px 18px 6px; color: #304238; background: rgba(255,255,255,.78); box-shadow: 0 10px 22px rgba(44,67,51,.07); }
.customer-chat-console-message.is-staff .customer-chat-console-bubble { border-radius: 18px 18px 6px 18px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--staff-chat-color,#315f46) 92%, white), var(--staff-chat-color,#315f46)); border-color: color-mix(in srgb, var(--staff-chat-color,#315f46) 68%, transparent); }
.customer-chat-console-bubble p { margin: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.58; }
.customer-chat-console-bubble small { display: block; margin-top: 5px; opacity: .58; font-size: 8px; }
.customer-chat-empty-stage { margin: auto; display: grid; justify-items: center; gap: 8px; color: #8a958e; }
.customer-chat-empty-stage span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; color: #55916b; background: rgba(67,149,92,.07); font-size: 20px; }
.customer-chat-empty-stage strong { font-size: 11px; }
.customer-chat-staff-composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: end; padding: 12px; border-top: 1px solid rgba(42,72,53,.08); background: rgba(255,255,255,.38); }
.customer-chat-staff-composer textarea { width: 100%; min-height: 48px; max-height: 130px; resize: vertical; padding: 12px 14px; border: 1px solid rgba(42,72,53,.1); border-radius: 15px; outline: 0; color: #2e4135; background: rgba(255,255,255,.76); font: inherit; font-size: 11px; line-height: 1.5; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.customer-chat-staff-composer textarea:focus { border-color: rgba(52,128,78,.25); box-shadow: 0 0 0 3px rgba(52,128,78,.055), inset 0 1px 0 rgba(255,255,255,.85); }
.customer-chat-staff-composer button { min-height: 48px; display: flex; align-items: center; gap: 18px; padding: 0 16px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg,#1f4b33,#397051); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px rgba(41,99,64,.16); }
.customer-chat-staff-composer button b { font-size: 15px; }
.customer-chat-staff-composer button:disabled, .customer-chat-staff-composer textarea:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 1040px) {
    .page-home .hero-showcase-hero .hero-grid {
        width: min(100% - 28px, 780px);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .page-home .hero-showcase-hero .hero-copy { margin-right: 0; padding: clamp(24px, 4vw, 34px); }
    .page-home .hero-showcase-hero .hero-copy h1 { max-width: 11ch; font-size: clamp(42px, 7vw, 58px); }
    .page-home .hero-showcase-hero .hero-copy h1 em { max-width: 12ch; font-size: clamp(30px, 5vw, 40px); }
    .hero-product-showcase { min-height: clamp(500px, 64vh, 650px); }
    .hero-showcase-track { min-height: 430px; }
}

@media (max-width: 760px) {
    .page-home .hero-showcase-hero { padding-block: 14px 48px; }
    .page-home .hero-showcase-hero .hero-grid { width: calc(100% - 20px); gap: 10px; }
    .page-home .hero-showcase-hero .hero-copy { padding: 20px 18px 19px; border-radius: 22px; }
    .page-home .hero-showcase-hero .hero-copy .eyebrow { margin-bottom: 9px; font-size: 9.5px; }
    .page-home .hero-showcase-hero .hero-copy h1 { max-width: none; margin-bottom: 11px; font-size: clamp(35px, 10.5vw, 44px); }
    .page-home .hero-showcase-hero .hero-copy h1 em { max-width: none; margin-top: .1em; font-size: clamp(27px, 7.6vw, 33px); }
    .page-home .hero-showcase-hero .hero-lead { font-size: 13.5px; line-height: 1.48; }
    .page-home .hero-showcase-hero .hero-actions { flex-wrap: nowrap; gap: 11px; margin-top: 15px; }
    .page-home .hero-showcase-hero .hero-actions .btn { min-height: 40px; padding: 9px 14px; font-size: 12px; }
    .page-home .hero-showcase-hero .hero-actions .text-link { min-width: 0; font-size: 12px; white-space: nowrap; }
    .hero-product-showcase { min-height: 430px; padding: 10px; border-radius: 24px; }
    .hero-showcase-track { min-height: 350px; }
    .hero-showcase-card { width: 88%; }
    .hero-showcase-glass { padding: 9px; border-radius: 21px; }
    .hero-showcase-glass figure { border-radius: 16px; }
    .hero-showcase-arrow { display: none; }
    .hero-showcase-rail { min-height: 34px; gap: 9px; font-size: 8px; }
    .hero-showcase-hint { display: none; }
    .hero-showcase-segments button { width: 23px; }

    .customer-chat-widget { right: max(13px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
    body:has(.quote-bar.is-shown) .customer-chat-widget { bottom: calc(86px + env(safe-area-inset-bottom)); }
    .customer-chat-launcher { width: 58px; height: 58px; border-radius: 20px; }
    .customer-chat-launcher svg { width: 24px; height: 24px; }
    .customer-chat-popover { right: 0; bottom: 70px; width: min(365px, calc(100vw - 26px)); height: min(590px, calc(100svh - 96px)); border-radius: 24px; }

    .customer-chat-workspace { min-height: 660px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
    .customer-chat-thread-list { display: flex; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 9px; border-right: 0; border-bottom: 1px solid rgba(42,72,53,.08); }
    .customer-chat-thread { min-width: 210px; max-width: 240px; }
    .customer-chat-console-head { align-items: flex-start; flex-direction: column; padding: 17px; }
    .customer-chat-console-status { width: 100%; justify-content: space-between; }
}

@media (max-width: 430px) {
    .page-home .hero-showcase-hero .hero-grid { width: calc(100% - 16px); }
    .page-home .hero-showcase-hero .hero-copy { padding: 17px 16px; border-radius: 19px; }
    .page-home .hero-showcase-hero .hero-copy h1 { font-size: clamp(32px, 9.7vw, 39px); }
    .page-home .hero-showcase-hero .hero-copy h1 em { font-size: clamp(24px, 7.2vw, 29px); }
    .page-home .hero-showcase-hero .hero-lead { font-size: 12.8px; }
    .hero-product-showcase { min-height: 385px; border-radius: 21px; }
    .hero-showcase-track { min-height: 310px; }
    .hero-showcase-card { width: 91%; }
    .hero-showcase-rail { gap: 7px; }
    .hero-showcase-segments button { width: 19px; }

    .customer-chat-popover { position: fixed; left: 10px; right: 10px; top: max(10px, env(safe-area-inset-top)); bottom: calc(82px + env(safe-area-inset-bottom)); width: auto; height: auto; max-height: none; border-radius: 23px; transform-origin: 92% 100%; }
    .customer-chat-onboarding { padding: 18px 19px 24px; }
    .customer-chat-onboarding form { padding-bottom: max(2px, env(safe-area-inset-bottom)); }
    .customer-chat-console-message { max-width: 88%; }
    .customer-chat-staff-composer { grid-template-columns: minmax(0,1fr) 54px; }
    .customer-chat-staff-composer button { width: 54px; justify-content: center; padding: 0; }
    .customer-chat-staff-composer button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase-ambient i,
    .hero-showcase-hint i,
    .customer-chat-typing i { animation: none !important; }
}

/* V35 — admin hero showcase image manager */
@media (max-width: 1100px) {
    .media-upload-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .media-upload-grid-three { grid-template-columns: 1fr; }
    .showcase-manager-head { align-items: flex-start; }
    .showcase-manager-head > div span { max-width: 34ch; }
}

/* ========================================================================== 
   V36 — HERO SHOWCASE PROPORTION + IMAGE-FIT CORRECTION
   Equal desktop panels, no oversized right card, and full product visibility.
   ========================================================================== */
@media (min-width: 1041px) {
    .page-home .hero-showcase-hero .hero-grid {
        --hero-showcase-panel-height: clamp(590px, 66vh, 680px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: var(--hero-showcase-panel-height);
        align-items: stretch;
        gap: clamp(18px, 2vw, 26px);
    }

    .page-home .hero-showcase-hero .hero-copy,
    .page-home .hero-showcase-hero .hero-product-showcase {
        width: 100%;
        height: var(--hero-showcase-panel-height);
        min-height: var(--hero-showcase-panel-height);
        margin: 0;
    }

    .page-home .hero-showcase-hero .hero-copy {
        align-self: stretch;
    }

    .page-home .hero-showcase-hero .hero-product-showcase {
        align-self: stretch;
    }

    .hero-showcase-track {
        min-height: 0;
    }

    .hero-showcase-card {
        width: min(86%, 560px);
    }
}

/* Keep every uploaded showcase image completely inside the glass viewport.
   Absolute containment removes intrinsic portrait-image minimum sizing, which prevents
   the product from being clipped at either the top or bottom of the equal-height card. */
.hero-showcase-glass figure {
    position: relative;
    padding: 0;
    min-width: 0;
    min-height: 0;
}

.hero-showcase-glass img {
    position: absolute;
    inset: clamp(12px, 1vw, 16px);
    width: calc(100% - clamp(24px, 2vw, 32px));
    height: calc(100% - clamp(24px, 2vw, 32px));
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    transform: none;
}

@media (max-width: 1040px) {
    .hero-showcase-glass figure { padding: 0; }
    .hero-showcase-glass img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
}

/* ========================================================================== 
   V38 — RESPONSIVE PRODUCT CARD TYPOGRAPHY + LIVE GOOGLE SIGN-IN
   Desktop gets proper editorial breathing room; phone cards remain compact.
   ========================================================================== */

/* Google Identity Services fallback occupies the same visual slot when
   server-side OAuth is not configured. */
.dox-google-gis-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 50%;
}
.dox-google-gis-button > div,
.dox-google-gis-button iframe {
    max-width: 44px !important;
    max-height: 44px !important;
}
.staff-google-gis-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
}
.staff-google-gis-button > div { max-width: 100% !important; }
.social-oauth-row-google-live { grid-template-columns: minmax(0, 1fr); }

/* Full-width copy first, commercial controls second. This prevents the price
   and buttons from squeezing product names/descriptions into tiny columns. */
@media (min-width: 1100px) {
    .adaptive-product-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        align-items: start;
        gap: 20px;
        padding: clamp(22px, 1.7vw, 28px);
    }
    .adaptive-product-copy > div:first-child { min-width: 0; }
    .adaptive-product-copy h3 {
        max-width: 20ch;
        margin: 0 0 9px;
        font-size: clamp(1.18rem, 1.35vw, 1.45rem);
        line-height: 1.12;
        letter-spacing: -.032em;
        text-wrap: balance;
    }
    .adaptive-product-copy p {
        max-width: 36ch;
        font-size: clamp(.88rem, .94vw, .98rem);
        line-height: 1.55;
    }
    .adaptive-product-meta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-top: 16px;
        border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 10%, transparent);
        text-align: left;
    }
    .adaptive-product-meta > span { white-space: nowrap; }
    .adaptive-product-actions {
        flex: 0 1 auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 9px;
    }
    .adaptive-product-actions .mini-link,
    .adaptive-product-actions .product-order-link { white-space: nowrap; }
}

/* Smaller laptops use two cards rather than forcing three narrow desktop cards. */
@media (min-width: 821px) and (max-width: 1099px) {
    .adaptive-product-grid[data-columns="3"] > .adaptive-product-card,
    .adaptive-product-grid[data-columns="4"] > .adaptive-product-card {
        width: calc(50% - 12px);
    }
    .adaptive-product-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 17px;
        padding: 22px;
    }
    .adaptive-product-copy h3 {
        max-width: 22ch;
        font-size: 1.22rem;
        line-height: 1.14;
        text-wrap: balance;
    }
    .adaptive-product-copy p { max-width: 38ch; font-size: .9rem; }
    .adaptive-product-meta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 10%, transparent);
        text-align: left;
    }
}

/* Phone: one calm card, readable text, and two equal touch targets. */
@media (max-width: 600px) {
    .adaptive-product-copy {
        gap: 16px;
        padding: 18px;
    }
    .adaptive-product-copy h3 {
        max-width: none;
        margin-bottom: 7px;
        font-size: 1.16rem;
        line-height: 1.16;
        letter-spacing: -.028em;
    }
    .adaptive-product-copy p {
        max-width: 34ch;
        font-size: .88rem;
        line-height: 1.5;
    }
    .adaptive-product-meta {
        width: 100%;
        display: grid;
        justify-items: stretch;
        gap: 11px;
        padding-top: 13px;
        border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 10%, transparent);
        text-align: left;
    }
    .adaptive-product-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
    }
    .adaptive-product-actions .mini-link,
    .adaptive-product-actions .product-order-link {
        width: 100%;
        min-height: 42px;
        padding-inline: 10px;
        white-space: nowrap;
        text-align: center;
    }
}
.google-gis-fallback-icon { width: 19px; height: 19px; display: block; }
.dox-google-gis-button:not(:has(iframe)) {
    border: 1px solid rgba(38,48,41,.09);
    background: rgba(255,255,255,.90);
    box-shadow: 0 8px 20px rgba(34,43,36,.055), inset 0 1px 0 rgba(255,255,255,.98);
}
.staff-google-gis-fallback {
    width: min(290px, 100%);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #d6dbe2;
    border-radius: 999px;
    background: #fff;
    color: #252a27;
    font-size: .78rem;
    font-weight: 750;
}
.staff-google-gis-fallback b { font-weight: 750; }

/* ========================================================================== 
   V40 — FINAL ADMIN / EMPLOYEE RESPONSIVE CONTAINMENT AUDIT
   Prevent grid min-content expansion from forcing control-panel sections wider
   than the viewport. Wide data stays inside intentional horizontal scrollers.
   ========================================================================== */

.admin-content {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-content > *,
.admin-content form,
.admin-content section,
.admin-content article,
.admin-content .smart-form,
.admin-content .table-panel,
.admin-content .matrix-panel,
.admin-content .payment-dashboard,
.admin-content .communication-dashboard,
.admin-content .customer-chat-console,
.admin-content .lead-intel,
.admin-content .lead-intel-view,
.admin-content .lead-sheet-shell {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-content .field-grid,
.admin-content .field-grid > *,
.admin-content .panel-title,
.admin-content .panel-title > *,
.admin-content label,
.admin-content input,
.admin-content select,
.admin-content textarea,
.admin-content .media-upload-grid,
.admin-content .media-upload-grid > *,
.admin-content .cms-repeat-grid,
.admin-content .cms-repeat-grid > *,
.admin-content .permission-overview,
.admin-content .metric-grid,
.admin-content .admin-quick-grid {
    min-width: 0;
    max-width: 100%;
}

.admin-content input,
.admin-content select,
.admin-content textarea {
    box-sizing: border-box;
}

.table-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.table-wrap,
.matrix-scroll,
.payment-table-wrap,
.lead-grid-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table,
.matrix-scroll table,
.payment-table-wrap table {
    max-width: none;
}

/* Business Finder is deliberately spreadsheet-wide. Constrain the shell and
   let only the grid viewport scroll, rather than expanding the whole portal. */
.lead-intel,
.lead-intel-view,
.lead-sheet-shell,
.lead-sheet-toolbar,
.finder-command,
.finder-results,
.finder-progress-card {
    min-width: 0;
    max-width: 100%;
}

.lead-intel-hero,
.communication-head,
.customer-chat-console-head {
    max-width: 100%;
    min-width: 0;
}

.lead-intel-hero-copy,
.communication-head > *,
.customer-chat-console-head > * {
    min-width: 0;
}

@media (max-width: 1040px) {
    .admin-shell,
    .employee-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 16px;
        padding-top: 18px;
    }

    /* Compact section navigator: no long vertical blockade before the content. */
    .admin-tabs {
        position: sticky;
        top: 70px;
        z-index: 42;
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 7px;
        padding: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 16px;
        background: rgba(252, 250, 245, .94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        scrollbar-width: thin;
        scrollbar-color: rgba(50, 78, 60, .22) transparent;
    }

    .admin-tabs a {
        flex: 0 0 auto;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding: 0 13px;
        white-space: nowrap;
    }

    .admin-tabs form {
        flex: 0 0 auto;
        margin: 0;
    }

    .admin-tabs form .btn {
        width: auto;
        min-height: 40px;
        padding-inline: 14px;
        white-space: nowrap;
    }

    .pricing-admin-grid,
    .payment-kpi-grid,
    .payment-control-grid,
    .lead-intel-metrics,
    .permission-overview,
    .admin-quick-grid {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .portal-heading {
        padding-block: 34px 18px;
    }

    .portal-heading h1 {
        max-width: 15ch;
        margin-bottom: 8px;
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.02;
    }

    .admin-shell,
    .employee-shell {
        padding-bottom: 64px;
    }

    .smart-form,
    .table-panel,
    .matrix-panel,
    .admin-calculator,
    .dashboard-side {
        padding: 20px;
        border-radius: 20px;
    }

    .panel-title {
        width: 100%;
        gap: 9px;
    }

    .panel-title h2 {
        overflow-wrap: anywhere;
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.08;
    }

    .panel-title > span,
    .panel-title .mini-link {
        max-width: 100%;
    }

    .table-wrap,
    .matrix-scroll,
    .payment-table-wrap,
    .lead-grid-wrap {
        margin-inline: 0;
        border-radius: 12px;
    }

    /* Preserve readable columns inside scrollers rather than squeezing text. */
    .table-wrap table {
        min-width: max(620px, 100%);
    }

    .table-wrap th,
    .table-wrap td {
        padding: 12px 10px;
    }

    .communication-head,
    .customer-chat-console-head,
    .lead-intel-hero {
        width: 100%;
        overflow: hidden;
    }

    .communication-head h2,
    .customer-chat-console-head h2 {
        overflow-wrap: anywhere;
    }

    .communication-switch,
    .customer-chat-console-status,
    .lead-intel-switch {
        max-width: 100%;
    }

    .communication-switch a,
    .customer-chat-power {
        min-width: 0;
    }

    .lead-intel-hero h2 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.55rem);
        overflow-wrap: anywhere;
    }

    .lead-intel-metrics article {
        min-width: 0;
    }

    .lead-intel-metrics strong {
        overflow-wrap: anywhere;
        font-size: clamp(1.25rem, 7vw, 1.7rem);
    }

    .lead-sheet-toolbar,
    .lead-sheet-tools,
    .finder-results-actions {
        width: 100%;
        max-width: 100%;
    }

    .lead-sheet-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-search {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .sheet-tool {
        min-width: 0;
        justify-content: center;
    }

    .sheet-tool b {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .payment-control-card-v31,
    .payment-report-bar label,
    .payment-kpi-card {
        min-width: 0;
        max-width: 100%;
    }

    .payment-kpi-card strong,
    .payment-control-card-v31 strong,
    .payment-control-card-v31 small {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 430px) {
    .admin-tabs {
        top: 68px;
        margin-inline: 0;
        border-radius: 14px;
    }

    .admin-tabs a,
    .admin-tabs form .btn {
        min-height: 38px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .smart-form,
    .table-panel,
    .matrix-panel,
    .admin-calculator,
    .dashboard-side {
        padding: 16px;
    }

    .lead-intel-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-sheet-tools {
        grid-template-columns: minmax(0, 1fr);
    }

    .sheet-search {
        grid-column: auto;
    }
}

/* Final containment for decorative overflow. The spreadsheet itself still owns
   its horizontal scroll through .lead-grid-wrap. */
.admin-content .lead-intel {
    overflow: clip;
}

.payment-control-card-v31 {
    overflow: hidden;
}

/* ========================================================================== 
   V41 — MOBILE PRODUCT CARD ACTION FIX
   Phone/tablet only. Desktop (>820px) intentionally untouched.
   ========================================================================== */
@media (max-width: 820px) {
    /* Never keep two narrow commerce cards side-by-side on touch layouts. */
    .adaptive-product-grid,
    .adaptive-product-grid[data-columns="1"],
    .adaptive-product-grid[data-columns="2"],
    .adaptive-product-grid[data-columns="3"],
    .adaptive-product-grid[data-columns="4"] {
        gap: 16px;
    }

    .adaptive-product-grid > .adaptive-product-card,
    .adaptive-product-grid[data-columns="1"] > .adaptive-product-card,
    .adaptive-product-grid[data-columns="2"] > .adaptive-product-card,
    .adaptive-product-grid[data-columns="3"] > .adaptive-product-card,
    .adaptive-product-grid[data-columns="4"] > .adaptive-product-card {
        width: 100%;
        max-width: 560px;
        flex: 0 1 100%;
    }

    .adaptive-product-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        align-items: start;
        gap: 16px;
        width: 100%;
        padding: 18px;
    }

    .adaptive-product-copy > div:first-child,
    .adaptive-product-meta,
    .adaptive-product-actions {
        min-width: 0;
        width: 100%;
    }

    .adaptive-product-copy h3 {
        max-width: none;
        margin: 0 0 7px;
        font-size: clamp(1.08rem, 5vw, 1.24rem);
        line-height: 1.16;
    }

    .adaptive-product-copy p {
        max-width: 40ch;
        font-size: .88rem;
        line-height: 1.48;
    }

    .adaptive-product-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 11px;
        padding-top: 13px;
        border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 10%, transparent);
        text-align: left;
    }

    .adaptive-product-meta > span {
        white-space: normal;
    }

    .adaptive-product-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 9px;
    }

    .adaptive-product-actions .mini-link,
    .adaptive-product-actions .product-order-link {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    .adaptive-product-actions .mini-link {
        font-size: .72rem;
    }

    .adaptive-product-actions .product-order-link {
        font-size: .72rem;
    }
}

/* Extra-small phones: vertical buttons prevent any possible label collision. */
@media (max-width: 360px) {
    .adaptive-product-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================================================== 
   V42 — NARROW-CARD ACTION COLLISION HARD FIX
   This is intentionally based on each card's actual width, not only viewport
   width. It protects resized desktop windows, mobile browsers, zoomed views and
   embedded/webview layouts without changing normal desktop cards.
   ========================================================================== */
.adaptive-product-card {
    container-type: inline-size;
    container-name: doxrine-product-card;
}

/* If a card itself becomes narrow, commercial controls must never share a row. */
@container doxrine-product-card (max-width: 320px) {
    .adaptive-product-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        align-items: start;
        gap: 14px;
        padding: 16px;
    }

    .adaptive-product-copy > div:first-child,
    .adaptive-product-meta,
    .adaptive-product-actions {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .adaptive-product-copy h3 {
        max-width: none;
        font-size: clamp(1rem, 12cqw, 1.18rem);
        line-height: 1.14;
        text-wrap: pretty;
        overflow-wrap: normal;
        word-break: normal;
    }

    .adaptive-product-copy p {
        max-width: none;
        font-size: clamp(.78rem, 8.6cqw, .9rem);
        line-height: 1.48;
        overflow-wrap: normal;
        word-break: normal;
    }

    .adaptive-product-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        align-items: start;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid color-mix(in srgb, var(--collection-text, #101b14) 10%, transparent);
        text-align: left;
    }

    .adaptive-product-meta > span {
        white-space: normal;
        min-width: 0;
    }

    .adaptive-product-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .adaptive-product-actions .mini-link,
    .adaptive-product-actions .product-order-link {
        box-sizing: border-box;
        display: inline-flex;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 9px 8px;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.15;
        font-size: clamp(.68rem, 7.8cqw, .76rem);
    }
}

/* Extra safety for browsers/webviews where container queries are unavailable.
   Only touch layouts, never regular desktop presentation. */
@media (max-width: 820px) {
    .adaptive-product-actions .mini-link,
    .adaptive-product-actions .product-order-link {
        white-space: normal !important;
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 680px) {
    .adaptive-product-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
