:root {
    --ink: #10140f;
    --ink-soft: #364033;
    --muted: #687163;
    --line: #dfe6d7;
    --paper: #fbfff5;
    --surface: #ffffff;
    --accent: #7fff00;
    --accent-deep: #4e9f00;
    --accent-soft: #e8ffd2;
    --forest: #18351c;
    --sky: #dff7ff;
    --clay: #f5efe4;
    --gold: #c59b38;
    --shadow: 0 24px 70px rgba(16, 20, 15, 0.12);
    --shadow-soft: 0 14px 40px rgba(16, 20, 15, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(127, 255, 0, 0.14), rgba(251, 255, 245, 0) 360px),
        var(--paper);
    font-family: Lato, Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

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

img,
video {
    max-width: 100%;
}

.site-shell {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid rgba(24, 53, 28, 0.12);
    background: rgba(251, 255, 245, 0.88);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(16, 20, 15, 0.2);
    border-radius: 12px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
    line-height: 1;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.site-nav,
.header-actions,
.hero-actions,
.hero-proof,
.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav {
    border: 1px solid rgba(24, 53, 28, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink-soft);
    font-size: 15px;
    padding: 4px 10px;
}

.site-nav a,
.ghost-link {
    border-radius: 999px;
    padding: 8px 10px;
}

.site-nav a:hover,
.ghost-link:hover {
    background: var(--accent-soft);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(16, 20, 15, 0.76);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(78, 159, 0, 0.24);
    color: var(--ink);
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(78, 159, 0, 0.28);
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
    box-shadow: 0 5px 0 var(--ink);
}

.button-secondary {
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(16, 20, 15, 0.08);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 64px) 44px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-deep);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.96;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.04;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.hero-text,
.split-section p,
.trust-copy p,
.section-heading {
    color: var(--ink-soft);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-text {
    max-width: 650px;
    margin-bottom: 28px;
}

.hero-proof {
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-proof span,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(24, 53, 28, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 900;
}

.persona-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 650px;
    margin-top: 24px;
}

.persona-strip a {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(24, 53, 28, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.64);
    padding: 16px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.persona-strip a:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 159, 0, 0.42);
    background: var(--surface);
}

.persona-strip span {
    color: var(--muted);
}

.hero-panel {
    position: relative;
}

.hero-panel::before {
    position: absolute;
    inset: -18px 24px 24px -18px;
    border: 1px solid rgba(24, 53, 28, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(127, 255, 0, 0.5), transparent 30%),
        linear-gradient(135deg, rgba(223, 247, 255, 0.8), rgba(232, 255, 210, 0.7));
    content: "";
}

.deal-card {
    position: relative;
    border: 1px solid rgba(16, 20, 15, 0.16);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 34px);
}

.deal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.deal-card-header span {
    font-weight: 900;
}

.deal-card-header small {
    color: var(--muted);
}

.deal-card-top,
.deal-title,
.timeline-item,
.release-box,
.deal-meta,
.metric-band,
.split-section,
.trust-section,
.video-section,
.faq-section,
.compliance-preview,
.cta-section,
.site-footer {
    display: flex;
}

.deal-card-top {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 30px;
}

.deal-card-top strong {
    font-size: clamp(26px, 4vw, 42px);
}

.deal-title {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

.deal-title span {
    font-size: 22px;
    font-weight: 900;
}

.deal-title small,
.release-box small {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.timeline-item {
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.timeline-item span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}

.timeline-item.complete span,
.timeline-item.active span {
    border-color: var(--ink);
    background: var(--accent);
}

.timeline-item.active p {
    color: var(--ink);
    font-weight: 900;
}

.timeline-item p {
    margin: 0;
}

.release-box {
    flex-direction: column;
    gap: 6px;
    border-radius: 16px;
    background: var(--forest);
    color: var(--surface);
    padding: 18px;
}

.deal-meta {
    gap: 12px;
    margin-top: 12px;
}

.deal-meta div {
    flex: 1;
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 14px;
}

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

.deal-meta strong {
    font-size: 16px;
}

.metric-band {
    justify-content: space-between;
    gap: 20px;
    padding: 26px clamp(18px, 4vw, 64px);
    background:
        linear-gradient(90deg, rgba(127, 255, 0, 0.12), transparent 40%),
        var(--forest);
    color: var(--surface);
}

.metric-band div {
    display: grid;
    gap: 4px;
}

.metric-band strong {
    color: var(--accent);
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1;
}

.metric-band span {
    color: rgba(255, 255, 255, 0.72);
}

.section,
.split-section,
.trust-section,
.video-section,
.faq-section,
.compliance-preview,
.testimonial-section,
.cta-section {
    padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 64px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.process-grid,
.pricing-grid,
.trust-grid,
.testimonial-section {
    display: grid;
    gap: 18px;
}

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

.process-grid article,
.price-card,
.trust-grid div,
.testimonial-section article {
    border: 1px solid rgba(16, 20, 15, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    padding: 24px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.process-grid article:hover,
.price-card:hover,
.trust-grid div:hover,
.testimonial-section article:hover {
    transform: translateY(-3px);
    border-color: rgba(78, 159, 0, 0.36);
    box-shadow: var(--shadow-soft);
}

.process-grid span {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--accent-deep);
    font-weight: 900;
}

.process-grid p,
.price-card p,
.trust-grid span,
.testimonial-section strong,
.site-footer p {
    color: var(--muted);
}

.split-section,
.trust-section,
.video-section,
.compliance-preview,
.cta-section,
.site-footer {
    gap: clamp(28px, 5vw, 70px);
}

.split-section {
    align-items: flex-start;
    justify-content: space-between;
    background: var(--surface);
}

.split-section > div:first-child,
.trust-copy {
    max-width: 650px;
}

.service-list {
    display: grid;
    min-width: min(100%, 460px);
    gap: 12px;
    border-top: 0;
}

.service-list div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    padding: 18px;
}

.service-list strong,
.service-list span:not(.service-icon) {
    grid-column: 2;
}

.service-icon {
    grid-row: 1 / span 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 900;
}

.service-list strong,
.trust-grid strong {
    font-size: 19px;
}

.service-list span {
    color: var(--muted);
}

.pricing-section {
    background: linear-gradient(180deg, var(--accent-soft), var(--paper));
}

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

.price-card.featured {
    border-color: var(--ink);
    background: var(--forest);
    color: var(--surface);
}

.price-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--accent-deep);
    font-weight: 900;
}

.price-card.featured a {
    color: var(--accent);
}

.price-card strong {
    display: block;
    margin: 16px 0;
    font-size: 48px;
    line-height: 1;
}

.price-card.featured p {
    color: rgba(255, 255, 255, 0.72);
}

.trust-section {
    align-items: center;
    background: var(--surface);
}

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

.trust-grid div {
    min-height: 150px;
    background: var(--paper);
}

.trust-grid span {
    display: block;
    margin-top: 10px;
}

.video-section {
    align-items: center;
    justify-content: space-between;
}

.video-section > div {
    max-width: 440px;
}

.video-section video {
    width: min(100%, 640px);
    border: 1px solid rgba(16, 20, 15, 0.14);
    border-radius: 20px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.testimonial-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--forest);
}

.testimonial-section article {
    background: rgba(255, 255, 255, 0.08);
    color: var(--surface);
}

.testimonial-section p {
    font-size: 22px;
}

.testimonial-section strong {
    color: rgba(255, 255, 255, 0.7);
}

.faq-section {
    flex-direction: column;
    background: var(--surface);
}

.faq-grid {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.faq-grid details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    padding: 18px 20px;
}

.faq-grid summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.faq-grid p {
    margin: 12px 0 0;
    color: var(--muted);
}

.compliance-preview {
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(223, 247, 255, 0.72), transparent 46%),
        var(--paper);
}

.compliance-preview > div:first-child {
    max-width: 760px;
}

.compliance-preview p {
    color: var(--ink-soft);
    font-size: 20px;
}

.compliance-links {
    display: grid;
    gap: 12px;
    min-width: min(100%, 320px);
}

.compliance-links a {
    border: 1px solid rgba(16, 20, 15, 0.16);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    font-weight: 900;
    padding: 18px;
}

.legal-page {
    background: var(--paper);
}

.legal-hero {
    padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 64px) clamp(32px, 5vw, 72px);
}

.legal-hero h1 {
    max-width: 980px;
}

.legal-hero p {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 21px;
}

.legal-grid,
.compliance-flow {
    display: grid;
    gap: 18px;
    padding: 0 clamp(18px, 4vw, 64px) clamp(56px, 8vw, 110px);
}

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

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

.legal-grid article,
.compliance-flow article,
.policy-panel {
    border: 1px solid rgba(16, 20, 15, 0.14);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.legal-grid article > span,
.compliance-flow article > span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent-deep);
    font-weight: 900;
}

.legal-grid h2,
.compliance-flow h2,
.policy-panel h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.legal-grid p,
.compliance-flow p,
.legal-grid li,
.policy-panel li {
    color: var(--ink-soft);
}

.legal-grid ul,
.policy-panel ul {
    margin: 18px 0 0;
    padding-left: 22px;
}

.legal-grid li,
.policy-panel li {
    margin: 8px 0;
}

.policy-panel {
    margin: 0 clamp(18px, 4vw, 64px) clamp(56px, 8vw, 110px);
    background: var(--forest);
    color: var(--surface);
}

.policy-panel li {
    color: rgba(255, 255, 255, 0.78);
}

.cta-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%),
        var(--accent);
}

.cta-section h2 {
    max-width: 780px;
}

.site-footer {
    justify-content: space-between;
    padding: 34px clamp(18px, 4vw, 64px);
    border-top: 1px solid rgba(16, 20, 15, 0.14);
    background: var(--ink);
    color: var(--surface);
}

.footer-brand .brand-mark {
    border-color: rgba(255, 255, 255, 0.22);
}

.site-footer p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
}

.navbar,
.container,
.card,
.form-control,
.btn {
    font-family: Lato, Arial, sans-serif;
}

.navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--paper) !important;
}

.navbar .container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand {
    font-weight: 900;
}

.navbar-toggler {
    display: none;
}

.navbar-collapse,
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--ink-soft);
    font-weight: 700;
}

.dropdown-menu {
    position: absolute;
    right: 24px;
    display: none;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
}

.container {
    width: min(100% - 36px, 1120px);
    margin: 0 auto;
}

.py-4 {
    padding-top: 56px;
    padding-bottom: 56px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.col-md-6,
.col-md-8 {
    width: min(100%, 760px);
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid var(--line);
    background: var(--forest);
    color: var(--surface);
    font-size: 20px;
    font-weight: 900;
    padding: 18px 22px;
}

.card-body {
    padding: 24px;
}

.auth-card {
    max-width: 680px;
    margin: 0 auto;
}

.auth-intro,
.auth-switch {
    color: var(--ink-soft);
    font-size: 18px;
}

.auth-switch {
    margin: 22px 0 0;
}

.auth-switch a {
    color: var(--accent-deep);
    font-weight: 900;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 64px);
}

.dashboard-menu {
    position: sticky;
    top: 96px;
    align-self: start;
    border: 1px solid rgba(16, 20, 15, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.dashboard-menu summary {
    display: none;
}

.dashboard-menu nav {
    display: grid;
    gap: 8px;
}

.dashboard-menu nav a {
    border-radius: 14px;
    color: var(--ink-soft);
    font-weight: 900;
    padding: 12px 14px;
}

.dashboard-menu nav a:hover,
.dashboard-menu nav a.active {
    background: var(--accent-soft);
    color: var(--ink);
}

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

.dashboard-hero,
.dashboard-grid,
.transactions-header,
.transaction-item,
.threat-grid,
.provider-grid,
.rating-graph-grid {
    display: grid;
    gap: 18px;
}

.dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: stretch;
}

.dashboard-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 6vw, 72px);
}

.dashboard-hero p,
.empty-state p {
    color: var(--ink-soft);
    font-size: 19px;
}

.wallet-panel,
.dashboard-card {
    border: 1px solid rgba(16, 20, 15, 0.14);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3 {
    overflow-wrap: anywhere;
    word-break: normal;
}

.overview-actions .dashboard-card h2 {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.12;
}

.wallet-panel {
    display: grid;
    align-content: center;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(127, 255, 0, 0.2), transparent 48%),
        var(--forest);
    color: var(--surface);
}

.wallet-panel strong {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.wallet-panel p,
.wallet-panel small {
    color: rgba(255, 255, 255, 0.74);
}

.dashboard-alert {
    max-width: 100%;
}

.alert-danger {
    background: #ffe8e8;
    color: #8c1d1d;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: start;
}

.request-card,
.security-card,
.threat-card {
    display: grid;
    gap: 18px;
}

.mini-form,
.provider-search {
    display: grid;
    gap: 16px;
}

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

.provider-search {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
}

.chart-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
    width: 100%;
    margin-top: 4px;
}

.provider-checkbox-select {
    position: relative;
}

.provider-checkbox-select summary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    list-style: none;
    padding: 10px 12px;
}

.provider-checkbox-select summary::-webkit-details-marker {
    display: none;
}

.provider-checkbox-select summary::after {
    content: "+";
}

.provider-checkbox-select[open] summary::after {
    content: "-";
}

.provider-checkbox-select[open] {
    z-index: 5;
}

.provider-checkbox-select .check-row {
    background: var(--surface);
    margin: 0;
    padding: 10px 12px;
}

.provider-checkbox-select[open] .check-row {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.provider-checkbox-select[open] .check-row:last-child {
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
}

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

.provider-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 18px;
}

.provider-grid article strong {
    display: block;
    font-size: 28px;
    margin-top: 12px;
}

.provider-grid article p,
.provider-grid article small {
    color: var(--muted);
}

.overview-actions,
.category-strip {
    display: grid;
    gap: 14px;
}

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

.overview-actions a span {
    color: var(--muted);
}

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

.category-strip a {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    padding: 16px;
}

.category-strip a.active,
.category-strip a:hover {
    border-color: var(--accent-deep);
    background: var(--accent-soft);
}

.category-strip span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.rating-graph-grid {
    gap: 14px;
}

.rating-row {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    padding: 16px;
}

.rating-row span {
    color: var(--muted);
}

.rating-bar {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.rating-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.rating-bar.price span {
    background: linear-gradient(90deg, var(--sky), var(--forest));
}

.price-range-chart {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 18px;
}

.price-chart-head,
.price-chart-body {
    display: grid;
    grid-template-columns: 96px minmax(720px, 1fr);
    gap: 16px;
    min-width: 860px;
}

.price-chart-head span,
.price-x-axis span,
.price-chart-legend {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.price-chart-body {
    min-height: 430px;
}

.price-y-axis {
    position: relative;
    border-right: 1px solid var(--line);
}

.price-y-axis span {
    position: absolute;
    right: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    transform: translateY(50%);
    white-space: nowrap;
}

.price-plot {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 1fr);
    gap: 22px;
    min-height: 390px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), rgba(16, 20, 15, 0.1) calc(25% - 1px) 25%),
        var(--paper);
    padding: 24px 18px 82px;
}

.price-provider-column {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: end;
    min-height: 270px;
}

.floating-range {
    position: absolute;
    bottom: 82px;
    width: 26px;
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    box-shadow: 0 14px 24px rgba(78, 159, 0, 0.24);
}

.average-dot {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 8px 18px rgba(16, 20, 15, 0.22);
    transform: translate(-50%, 50%);
}

.price-provider-column em {
    position: absolute;
    bottom: 54px;
    color: var(--ink);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.price-provider-column strong {
    position: absolute;
    bottom: 24px;
    max-width: 140px;
    text-align: center;
    line-height: 1.1;
}

.price-provider-column small {
    position: absolute;
    bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.price-x-axis {
    position: absolute;
    right: 18px;
    bottom: -34px;
}

.price-chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 860px;
}

.legend-range {
    width: 12px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ink);
}

.xy-chart {
    display: grid;
    gap: 0;
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 18px;
}

.xyz-chart {
    background:
        linear-gradient(135deg, rgba(24, 53, 28, 0.04), transparent 45%),
        var(--surface);
}

.xy-chart-head,
.xy-axis {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(520px, 1fr);
    gap: 14px;
    min-width: 760px;
}

.xy-chart-head {
    margin-bottom: 12px;
}

.xy-chart-head span,
.xy-axis-ticks span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.xy-axis-ticks {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.xy-axis-line {
    border-top: 1px solid var(--line);
}

.xy-row {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 760px;
    border-bottom: 1px solid rgba(223, 230, 215, 0.8);
    padding: 12px 0;
}

.xy-provider {
    display: grid;
    gap: 3px;
}

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

.xy-plot {
    position: relative;
    min-height: 82px;
    overflow: visible;
    border-radius: 12px;
    background:
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(16, 20, 15, 0.06) 26px 27px),
        repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(16, 20, 15, 0.1) calc(25% - 1px) 25%),
        var(--paper);
    perspective: 620px;
}

.xy-range {
    position: absolute;
    top: 30px;
    display: block;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    box-shadow: 0 8px 18px rgba(78, 159, 0, 0.2);
}

.z-marker {
    position: absolute;
    bottom: 24px;
    width: 20px;
    height: var(--z-height);
    margin-left: -10px;
    border: 1px solid rgba(16, 20, 15, 0.32);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--forest), var(--accent-deep));
    box-shadow:
        var(--z-depth) calc(var(--z-depth) * -0.45) 0 rgba(127, 255, 0, 0.28),
        0 12px 24px rgba(16, 20, 15, 0.18);
    transform: skewY(-10deg);
    z-index: 2;
}

.z-marker::after {
    position: absolute;
    right: calc(var(--z-depth) * -1);
    top: calc(var(--z-depth) * -0.45);
    width: var(--z-depth);
    height: 100%;
    border-radius: 0 6px 4px 0;
    background: rgba(24, 53, 28, 0.18);
    content: "";
}

.xy-plot em {
    position: absolute;
    inset: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--ink);
    font-style: normal;
    font-weight: 900;
    z-index: 3;
}

.z-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 760px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.z-legend span {
    width: 18px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--forest), var(--accent-deep));
    box-shadow: 12px -5px 0 rgba(127, 255, 0, 0.28);
}

.z-legend strong {
    color: var(--ink-soft);
}

.z-legend em {
    font-style: normal;
}

.ai-assist-card,
.ai-assist-form,
.ai-output {
    display: grid;
    gap: 16px;
}

.ai-assist-card {
    background:
        linear-gradient(135deg, rgba(223, 247, 255, 0.75), transparent 46%),
        var(--surface);
}

.ai-assist-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
}

.ai-output {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 16px;
}

.ai-output small,
.ai-assist-form small {
    color: var(--muted);
}

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

.form-help {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.form-span {
    grid-column: 1 / -1;
}

textarea.form-control {
    resize: vertical;
}

.consent-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 18px;
}

.consent-panel h3 {
    margin-bottom: 6px;
}

.consent-panel p,
.upload-grid small {
    color: var(--muted);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-weight: 700;
}

.check-row input {
    margin-top: 5px;
}

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

.upload-grid label {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 16px;
}

.upload-grid small {
    display: block;
    margin-top: 8px;
    font-weight: 400;
}

.security-card {
    background: var(--paper);
}

.security-card ul {
    margin: 0;
    padding-left: 20px;
}

.security-card li {
    margin: 10px 0;
    color: var(--ink-soft);
}

.transactions-header {
    grid-template-columns: 1fr auto;
    align-items: start;
}

.wallet-totals {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    background: var(--accent-soft);
    padding: 14px 18px;
}

.wallet-totals span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.transaction-list {
    display: grid;
    gap: 12px;
}

.transaction-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 18px;
}

.transaction-item h3 {
    margin: 12px 0 6px;
}

.transaction-item p,
.transaction-item small {
    color: var(--muted);
}

.transaction-details {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
}

.transaction-details div {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.transaction-details dt {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.transaction-details dd {
    color: var(--muted);
    margin: 2px 0 0;
}

.transaction-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: var(--surface);
}

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 24px;
}

.threat-card {
    background: var(--forest);
    color: var(--surface);
}

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

.threat-grid div {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.threat-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.form-group,
.mb-3,
.row.mb-3 {
    margin-bottom: 18px;
}

.col-form-label,
label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    padding: 10px 12px;
}

.form-control:focus {
    border-color: var(--accent-deep);
    outline: 3px solid rgba(127, 255, 0, 0.26);
}

.invalid-feedback,
.text-danger {
    color: #a32626;
    font-size: 14px;
}

.is-invalid {
    border-color: #a32626;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn,
.btn-primary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    padding: 0 18px;
}

.btn-link {
    border: 0;
    background: transparent;
    color: var(--accent-deep);
    font-weight: 900;
    padding: 0;
}

.alert {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.alert-success {
    background: var(--accent-soft);
    color: var(--forest);
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .split-section,
    .trust-section,
    .compliance-preview,
    .video-section {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        min-height: auto;
    }

    .process-grid,
    .pricing-grid,
    .legal-grid,
    .compliance-flow,
    .dashboard-hero,
    .dashboard-grid,
    .dashboard-shell,
    .provider-grid,
    .chart-controls,
    .overview-actions,
    .category-strip,
    .threat-grid,
    .testimonial-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-menu {
        position: static;
        grid-column: 1 / -1;
    }

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

@media (max-width: 680px) {
    .site-header,
    .navbar .container,
    .navbar-collapse,
    .navbar-nav,
    .header-actions,
    .hero-actions,
    .metric-band,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions,
    .hero-actions,
    .persona-strip,
    .navbar-collapse,
    .navbar-nav {
        width: 100%;
    }

    .persona-strip,
    .deal-meta {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .button,
    .ghost-link {
        width: 100%;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-panel::before {
        inset: -10px 12px 12px -10px;
    }

    .deal-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-grid,
    .pricing-grid,
    .trust-grid,
    .legal-grid,
    .compliance-flow,
    .dashboard-hero,
    .dashboard-grid,
    .dashboard-shell,
    .mini-form,
    .provider-search,
    .chart-controls,
    .ai-assist-form,
    .provider-grid,
    .overview-actions,
    .category-strip,
    .rating-row,
    .xy-row,
    .form-grid,
    .upload-grid,
    .transactions-header,
    .transaction-item,
    .threat-grid,
    .testimonial-section {
        grid-template-columns: 1fr;
    }

    .dashboard-menu {
        padding: 10px;
    }

    .dashboard-menu summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        cursor: pointer;
        border-radius: 14px;
        background: var(--accent);
        color: var(--ink);
        font-weight: 900;
        list-style: none;
        padding: 0 14px;
    }

    .dashboard-menu summary::-webkit-details-marker {
        display: none;
    }

    .dashboard-menu summary span,
    .dashboard-menu summary span::before,
    .dashboard-menu summary span::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--ink);
        content: "";
    }

    .dashboard-menu summary span {
        position: relative;
    }

    .dashboard-menu summary span::before {
        position: absolute;
        top: -6px;
    }

    .dashboard-menu summary span::after {
        position: absolute;
        top: 6px;
    }

    .dashboard-menu:not([open]) nav {
        display: none;
    }

    .dashboard-menu nav {
        grid-template-columns: 1fr;
        margin-top: 10px;
    }

    .transaction-actions {
        justify-content: flex-start;
    }

    .metric-band {
        gap: 24px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* ── Provider price comparison: header + inline SVG X-Y chart ─────────────── */
.chart-topbar {
    margin-bottom: 14px;
}
.chart-topbar .eyebrow {
    margin-bottom: 6px;
}
.chart-topbar h2 {
    margin: 0 0 8px;
}

.xy-chart {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 18px;
}
.xy-chart svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.xy-grid { stroke: rgba(16, 20, 15, 0.08); stroke-width: 1; }
.xy-axis { stroke: var(--line); stroke-width: 1.5; }
.xy-ylabel { fill: var(--muted); font-size: 12px; font-weight: 800; text-anchor: end; }
.xy-axis-title {
    fill: var(--muted); font-size: 12px; font-weight: 900;
    letter-spacing: 0.04em; text-transform: uppercase; text-anchor: middle;
}
.xy-range { stroke: var(--accent-deep); stroke-width: 12; stroke-linecap: round; opacity: 0.85; }
.xy-cap { stroke: var(--accent-deep); stroke-width: 2; }
.xy-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 3; }
.xy-price { fill: var(--muted); font-size: 11px; font-weight: 700; }
.xy-avg { fill: var(--ink); font-size: 11px; font-weight: 900; }
.xy-xlabel { fill: var(--ink); font-size: 12.5px; font-weight: 800; text-anchor: middle; }
.xy-xmeta { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.xy-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 12px; color: var(--muted);
    font-size: 12px; font-weight: 800; text-transform: uppercase;
}
.xy-legend-range {
    width: 26px; height: 10px; border-radius: 999px;
    background: var(--accent-deep); display: inline-block;
}
.xy-legend-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--ink); border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line); display: inline-block; margin-left: 8px;
}

/* ── Vue dashboard: maintenance / repair workflow ────────────────────────── */
.overview-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.mr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 900; color: var(--ink-soft); }

.seg-group { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; cursor: pointer; text-transform: capitalize; font-weight: 700; border-left: 1px solid var(--line); }
.seg-opt:first-child { border-left: 0; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt.active { background: var(--accent-soft); color: var(--accent-deep); }

.dropzone {
    display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
    text-align: center; padding: 28px; border: 2px dashed var(--line); border-radius: 16px;
    background: var(--surface); cursor: pointer; transition: border-color 160ms ease, background 160ms ease;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--accent-deep); background: var(--accent-soft); }
.dropzone strong { font-size: 16px; }
.dropzone small { color: var(--muted); }
.d-none { display: none; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.media-tile {
    position: relative; display: block; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; background: #000; aspect-ratio: 4 / 3; text-decoration: none; color: inherit;
}
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-remove {
    position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: rgba(16, 20, 15, 0.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.media-name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); color: #fff; font-size: 11px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.mr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mr-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 14px; }
.mr-progress > span { display: block; height: 100%; background: var(--accent-deep); transition: width 160ms ease; }
.mr-error { color: #b23c17; font-weight: 700; margin-top: 10px; }
.mr-back { color: var(--accent-deep); font-weight: 900; }
.mr-h3 { margin-top: 22px; }

.mr-list { display: grid; gap: 14px; }
.mr-item {
    display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: stretch;
    border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden;
    text-decoration: none; color: inherit; transition: border-color 160ms ease, transform 160ms ease;
}
.mr-item:hover { border-color: rgba(78, 159, 0, 0.42); transform: translateY(-2px); }
.mr-thumb { background: var(--clay); display: grid; place-items: center; }
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-thumb-fallback { color: var(--muted); font-size: 12px; font-weight: 800; }
.mr-item-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 0; }
.mr-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mr-meta { color: var(--muted); font-size: 12px; }
.mr-desc { color: var(--ink-soft); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-count { color: var(--muted); font-size: 12px; font-weight: 800; }

.status-badge {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em;
    background: var(--accent-soft); color: var(--accent-deep);
}
.status-badge[data-status="submitted"] { background: #dff7ff; color: #05668d; }
.status-badge[data-status="acknowledged"] { background: #fff3cd; color: #8a6d1a; }
.status-badge[data-status="scheduled"] { background: #e8ddff; color: #5a3fb0; }
.status-badge[data-status="in_progress"] { background: #ffe6cc; color: #9a5518; }
.status-badge[data-status="resolved"] { background: var(--accent-soft); color: var(--accent-deep); }
.status-badge[data-status="cancelled"] { background: #f0d9d9; color: #9a2a2a; }

.mr-timeline { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 18px; }
.mr-step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; font-size: 13px; }
.mr-step-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.mr-step.done { color: var(--ink); }
.mr-step.done .mr-step-dot { background: var(--accent-deep); border-color: var(--accent-deep); }
.mr-step.current .mr-step-dot { box-shadow: 0 0 0 4px var(--accent-soft); }

@media (max-width: 720px) {
    .mr-form-grid { grid-template-columns: 1fr; }
    .mr-item { grid-template-columns: 84px 1fr; }
}

/* ── Provider multiselect: open as an overlay so the form doesn't grow ────── */
.provider-checkbox-select[open] { z-index: 20; }
.provider-checkbox-select .provider-options { display: contents; }
.provider-checkbox-select[open] .provider-options {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    min-width: 260px;
    max-width: 360px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 14px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
/* Panel supplies the border now — drop the per-row borders/rounding. */
.provider-checkbox-select[open] .provider-options .check-row {
    border: 0;
    border-radius: 0;
    padding: 8px 0;
}

/* ── X-Y chart: combined (union) min/max price band ──────────────────────── */
.xy-union-band { fill: rgba(192, 57, 43, 0.08); }
.xy-union-line { stroke: #c0392b; stroke-width: 1.5; stroke-dasharray: 6 5; }
.xy-union-label { fill: #c0392b; font-size: 11px; font-weight: 900; }

/* ── Buttons: refined, professional styling (overrides earlier rules) ─────── */
.button,
.btn,
.btn-primary,
.button-secondary,
.btn-secondary {
    font-family: Lato, Arial, sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.button,
.btn,
.btn-primary {
    background: var(--accent-deep);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 20, 15, 0.12);
    transform: none;
}
.button:hover,
.btn:hover,
.btn-primary:hover {
    background: #438a00;
    box-shadow: 0 2px 8px rgba(16, 20, 15, 0.16);
    transform: none;
    color: #ffffff;
}
.button:active,
.btn:active,
.btn-primary:active {
    background: #397700;
    transform: translateY(1px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
.button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.button-secondary:focus-visible,
.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 4px var(--accent-deep);
}
.button:disabled,
.button[disabled],
.btn:disabled,
.btn[disabled] {
    background: var(--line);
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.button-secondary,
.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(16, 20, 15, 0.06);
}
.button-secondary:hover,
.btn-secondary:hover {
    background: var(--paper);
    border-color: var(--muted);
    box-shadow: 0 2px 8px rgba(16, 20, 15, 0.08);
    transform: none;
}
.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(16, 20, 15, 0.12);
}

/* ── Footer: legal links + copyright ─────────────────────────────────────── */
.site-footer a { transition: color 0.15s ease; }
.site-footer .footer-links a { color: rgba(255, 255, 255, 0.82); font-weight: 700; }
.site-footer .footer-links a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { display: block; margin-top: 14px; color: rgba(255, 255, 255, 0.5); font-size: 12px; }

/* ── Legal / terms pages ─────────────────────────────────────────────────── */
.legal-main { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 40px); }
.legal-doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.legal-doc h2 { font-size: 22px; margin: 30px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.legal-doc ul { padding-left: 20px; }
.legal-updated { color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.legal-note { margin-top: 32px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 14px; }

/* ── Sticky footer: keep the footer at the bottom on short pages ──────────── */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app > main { flex: 1 0 auto; }
#app > .site-footer { flex-shrink: 0; }
