@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
    --red:         #c9a84c;
    --red-dark:    #9a7a28;
    --navy:        #07101e;
    --navy-mid:    #0f1c2e;
    --navy-light:  #1a2e48;
    --gold:        #c9a84c;
    --gold-light:  #e2c070;
    --gold-dark:   #9a7a28;
    --ink:         #0d1117;
    --ink-mid:     #1f2937;
    --muted:       #6b7280;
    --muted-light: #9ca3af;
    --border:      #e5e7eb;
    --border-dark: #d1d5db;
    --bg:          #ffffff;
    --bg-off:      #faf9f7;
    --bg-dark:     #f3f4f6;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-serif:   'Source Serif 4', Georgia, serif;
    --font-ui:      'DM Sans', system-ui, sans-serif;

    --max-w: 1240px;
    --pad:   0 40px;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────
   TOP BAR
───────────────────────────────────────── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-links { display: flex; gap: 10px; align-items: center; }
.tb-sep { opacity: 0.3; }

/* ─────────────────────────────────────────
   MASTHEAD
───────────────────────────────────────── */
.masthead {
    background: var(--bg);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.masthead-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.masthead-left { display: flex; flex-direction: column; }
.masthead-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 2px;
}
.masthead-logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.5px;
}
.masthead-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
    margin-top: 3px;
}
.apply-btn {
    display: inline-block;
    padding: 11px 20px;
    background: var(--navy);
    color: var(--gold-light);
    border: 1px solid rgba(201,168,76,0.4);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.apply-btn:hover { background: var(--navy-mid); border-color: var(--gold); transform: translateY(-1px); }
.apply-btn--full {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
.apply-btn--light {
    background: rgba(201,168,76,0.1);
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.5);
    margin-top: 28px;
}
.apply-btn--light:hover { background: rgba(201,168,76,0.18); }

/* ─────────────────────────────────────────
   MAIN NAV
───────────────────────────────────────── */
.main-nav {
    background: var(--navy);
}
.main-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 0;
}
.nav-link {
    display: inline-block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
    transition: color 0.15s ease, background 0.15s ease;
    border-bottom: 3px solid transparent;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.active-nav { color: #fff; border-bottom-color: var(--red); }

/* ─────────────────────────────────────────
   TICKER
───────────────────────────────────────── */
.ticker-bar {
    background: var(--navy);
    border-top: 1px solid rgba(201,168,76,0.2);
    overflow: hidden;
}
.ticker-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 36px;
}
.ticker-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-track {
    overflow: hidden;
    flex: 1;
}
.ticker-item {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    animation: ticker 35s linear infinite;
}
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ─────────────────────────────────────────
   SHARED SECTION LAYOUT
───────────────────────────────────────── */
.section-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--pad);
}
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}
.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 4px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.ghost-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.ghost-btn:hover { background: var(--ink); color: #fff; }

/* shared tags */
.hg-category-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 2px;
}
.hg-tag--gold { color: #8a6520; border-bottom-color: var(--gold); }
.hg-tag--dark { color: var(--navy); border-bottom-color: var(--navy); }
.hg-lead-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.hg-author { font-weight: 700; color: var(--ink-mid); }
.hg-sep { color: var(--border-dark); }

/* ─────────────────────────────────────────
   HERO GRID
───────────────────────────────────────── */
.hero-grid-section {
    padding: 32px 0 48px;
    background: var(--bg);
}
.hg-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--pad);
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto auto;
    gap: 0 32px;
}

/* Lead story */
.hg-lead {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.hg-lead-img {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
    display: block;
    cursor: pointer;
}
.hg-lead-img-inner {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, var(--navy) 0%, #1a3460 60%, #0f2040 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.hg-img-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.hg-label-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--navy);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.4);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
}
.hg-lead-headline {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.hg-lead-deck {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--ink-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Bottom cards (under lead) */
.hg-bottom-row {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hg-card { display: flex; flex-direction: column; }
.hg-card-img {
    width: 100%;
    height: 130px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.hg-card-img--blue  { background: linear-gradient(135deg, #1e3a5f, #2e6da4); }
.hg-card-img--rose  { background: linear-gradient(135deg, #5c1e3a, #a44c72); }
.hg-card-img--green { background: linear-gradient(135deg, #1a3a1e, #2e6b34); }

.hg-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
}
.hg-card p {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

/* Side stories */
.hg-side {
    grid-column: 2;
    grid-row: 1 / 3;
    border-left: 1px solid var(--border);
    padding-left: 28px;
}
.hg-side-story { padding: 0 0 20px; }
.hg-side-story--top { padding-top: 0; }
.hg-side-story h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.15s;
}
.hg-side-story a:hover h3 { color: var(--gold-dark); }
.hg-lead-headline { transition: color 0.15s; }
.hg-lead-body a:hover .hg-lead-headline { color: var(--navy-light); }
.hg-card { transition: transform 0.2s; }
.hg-card:hover { transform: translateY(-2px); }
.hg-card:hover h4 { color: var(--gold-dark); }
.hg-side-story p {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 10px;
}
.hg-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ─────────────────────────────────────────
   STANDARD BAND
───────────────────────────────────────── */
.standard-band {
    background: var(--navy);
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
}
.standard-band-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.sb-stat {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
.sb-number {
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.sb-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sb-divider {
    width: 1px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   CATEGORIES
───────────────────────────────────────── */
.categories-section {
    padding: 56px 0 64px;
    background: var(--bg-off);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.cat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(192,32,42,0.1);
    transform: translateY(-2px);
}
.cat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.cat-card h4 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 5px;
}
.cat-state {
    font-size: 11px;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services-section {
    padding: 56px 0 64px;
    background: var(--bg);
}
.services-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.service-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.service-item:first-child { padding-top: 0; }
.service-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--border-dark);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    padding-top: 2px;
}
.service-body h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
    line-height: 1.2;
}
.service-body p {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Pricing card */
.pricing-card {
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255,255,255,0.06);
}
.pc-top {
    padding: 28px 28px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(160deg, #0d1a30, #1a3460);
    position: relative;
}
.pc-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
}
.pc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    border: 1px solid rgba(201,168,76,0.3);
    padding: 4px 10px;
    border-radius: 3px;
}
.pc-price {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}
.pc-price span {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
}
.pc-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
}
.pc-list {
    list-style: none;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pc-list li {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}
.pc-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.pc-note {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    padding: 0 28px 20px;
    line-height: 1.5;
}
.pricing-card .apply-btn--full {
    width: calc(100% - 56px);
    margin: 0 28px;
    border-radius: 4px;
}

/* ─────────────────────────────────────────
   BUSINESS NEWS SECTION
───────────────────────────────────────── */
.biz-news-section {
    padding: 56px 0 64px;
    background: var(--bg-off);
    border-top: 1px solid var(--border);
}
.biz-news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}
.biz-featured { display: flex; flex-direction: column; }
.biz-featured-img {
    width: 100%;
    height: 240px;
    border-radius: 4px;
    background: linear-gradient(160deg, var(--navy) 0%, #1a3460 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px;
    margin-bottom: 18px;
}
.biz-featured-img span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.biz-featured h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 12px;
}
.biz-featured p {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--ink-mid);
    line-height: 1.7;
}

.biz-side-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--border);
    padding-left: 32px;
}
.biz-list-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.biz-list-item:first-child { padding-top: 0; }
.biz-list-item:last-child  { border-bottom: none; padding-bottom: 0; }
.bli-img {
    width: 80px;
    height: 64px;
    border-radius: 4px;
    flex-shrink: 0;
}
.bli-img--slate { background: linear-gradient(135deg, #374151, #6b7280); }
.bli-img--navy  { background: linear-gradient(135deg, #0d1a30, #1e3a5f); }
.bli-img--amber { background: linear-gradient(135deg, #78350f, #d97706); }
.bli-img--rose  { background: linear-gradient(135deg, #5c1e3a, #9d4f72); }

.bli-body h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 6px;
}
.bli-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* ─────────────────────────────────────────
   CLOSING
───────────────────────────────────────── */
.closing-section {
    background: var(--navy);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.closing-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
}
.closing-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.closing-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}
.closing-headline {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}
.closing-sub {
    font-family: var(--font-serif);
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    padding: 28px 40px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 3px;
}
.footer-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    max-width: 560px;
    text-align: right;
}

/* ─────────────────────────────────────────
   CATEGORY PAGE (keep working)
───────────────────────────────────────── */
.hero {
    color: #fff;
    padding: 32px 40px 80px;
    background: linear-gradient(160deg, var(--navy) 0%, #162744 100%);
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
}
.hero-nei { /* covered */ }
.small-hero   { padding-bottom: 56px; }
.publish-hero { padding-bottom: 64px; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}
.brand-block h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}
.brand-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.nav-actions { display: flex; gap: 12px; }

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 60px;
    max-width: 800px;
}
.hero-content-large { max-width: 900px; }
.hero-pill {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 3px;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-content h2 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}
.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 680px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: var(--navy);
    color: var(--gold-light);
    border: 1px solid rgba(201,168,76,0.4);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--navy-mid); border-color: var(--gold); transform: translateY(-1px); }
.secondary-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
}
.secondary-btn:hover { background: rgba(255,255,255,0.14); }
.small-btn { padding: 8px 14px; font-size: 13px; }
.full-btn  { width: 100%; text-align: center; }

.section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 2px;
    margin-bottom: 14px;
}
.dark-tag { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.4); }

.section,
.standards-section,
.categories-section.institutional-section,
.model-section,
.quote-section,
.editorial-section,
.apply-principles-section,
.apply-section { padding: 56px 40px 72px; }

.standards-section,
.apply-principles-section,
.apply-section { background: var(--bg-off); }
.model-section, .editorial-section { background: var(--bg); }
.quote-section { background: var(--navy); }

.section-intro { max-width: 800px; margin: 0 auto 40px; }
.center { text-align: center; }
.section-intro h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.1;
}
.section-intro p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
}

.standards-grid, .principles-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.standard-card, .principle-card {
    background: var(--bg);
    border-radius: 6px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.standard-card:hover, .principle-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(192,32,42,0.08);
}
.standard-icon {
    width: 48px; height: 48px;
    margin-bottom: 16px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
}
.standard-card h3, .principle-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.standard-card p, .principle-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.editorial-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.editorial-card {
    background: var(--bg);
    border-radius: 6px;
    padding: 28px;
    border: 1px solid var(--border);
}
.editorial-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.editorial-card p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.gold-status-card {
    border-color: rgba(201,168,76,0.4);
    background: linear-gradient(160deg, #fffdf7, #faf6e8);
}

.business-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.business-card {
    position: relative;
    text-align: center;
    background: var(--bg);
    border-radius: 6px;
    padding: 32px 24px 24px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.business-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(192,32,42,0.08);
}
.rank-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--navy); color: var(--gold);
    padding: 6px 12px; border-radius: 3px;
    font-weight: 800; font-size: 13px;
}
.logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    border: 3px solid var(--gold);
    background: var(--bg-off);
}
.business-card h4 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    color: var(--ink); margin-bottom: 8px;
}
.business-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 5px 0; }
.rating-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 4px; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.rating-number { font-weight: 800; color: var(--ink); font-size: 16px; }
.reviews-text { font-size: 13px; color: var(--muted-light); margin-bottom: 12px; }
.card-buttons { display: flex; justify-content: center; margin-top: 18px; }
.rating-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rating-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    background: var(--bg-off);
    font-size: 13px; font-weight: 700;
    color: var(--ink);
    font-family: var(--font-ui);
    outline: none;
}

.empty-state {
    max-width: 800px; margin: 0 auto;
    text-align: center; padding: 72px 36px;
    background: var(--navy); color: #fff;
    border-radius: 8px;
    border-top: 3px solid var(--red);
}
.empty-state h2 { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin-bottom: 14px; }
.empty-state p  { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 10px; line-height: 1.7; }
.empty-state .btn { margin-top: 20px; }

.model-wrapper {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 56px; align-items: start;
}
.model-left h2 { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.1; }
.model-left > p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.model-points { display: flex; flex-direction: column; gap: 10px; }
.model-point {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-off);
    border-radius: 4px;
    border: 1px solid var(--border);
}
.model-point span {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--red); color: #fff;
    font-weight: 800; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.model-point p { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; padding-top: 2px; }

.model-card {
    background: var(--navy);
    border-radius: 8px;
    padding: 32px 28px;
    border-top: 3px solid var(--gold);
}
.price-badge {
    display: inline-block;
    font-size: 10px; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 4px 10px; border-radius: 3px;
    margin-bottom: 16px;
}
.model-card h3 { font-family: var(--font-display); font-size: 46px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.model-card h3 span { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.4); }
.model-card > p.muted { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 22px; line-height: 1.55; }
.model-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.model-list li { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); padding-left: 16px; position: relative; }
.model-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.quote-card { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-card h2 { font-family: var(--font-display); font-size: 46px; font-weight: 700; font-style: italic; color: #fff; line-height: 1.1; margin-bottom: 16px; }
.quote-card p  { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.75; }

.apply-wrapper {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 44px; align-items: start;
}
.apply-copy-card h3 { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.1; }
.apply-copy-card > p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.apply-benefits { display: flex; flex-direction: column; gap: 12px; }
.benefit-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); }
.benefit-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-off); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.benefit-item h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.benefit-item p  { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.apply-form-card { background: var(--bg); border-radius: 8px; padding: 36px 32px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.form-header { margin-bottom: 24px; }
.form-header h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-header p  { font-size: 14px; color: var(--muted); line-height: 1.6; }
.publish-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    background: var(--bg-off);
    font-size: 14px; font-family: var(--font-ui);
    color: var(--ink); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: var(--bg);
}
.form-group textarea { resize: vertical; }
.success-box h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.success-box > p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.submitted-preview { margin: 18px 0 22px; background: var(--bg-off); border-radius: 6px; padding: 18px; border: 1px solid var(--border); }
.submitted-preview p { font-size: 14px; margin: 7px 0; color: var(--muted); }
.submitted-preview p strong { color: var(--ink); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
    .hg-wrapper { grid-template-columns: 1fr; }
    .hg-side { grid-column: 1; grid-row: auto; border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
    .hg-bottom-row { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .services-layout { grid-template-columns: 1fr; }
    .pricing-card { position: static; }
    .biz-news-grid { grid-template-columns: 1fr; }
    .biz-side-list { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
    .standards-grid, .principles-grid, .business-grid { grid-template-columns: repeat(2, 1fr); }
    .editorial-grid, .apply-wrapper, .model-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    :root { --pad: 0 20px; }
    .topbar-inner, .masthead-inner, .main-nav-inner, .standard-band-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
    .masthead-logo { font-size: 24px; }
    .main-nav-inner { flex-wrap: wrap; }
    .nav-link { padding: 10px 12px; font-size: 12px; }
    .hg-lead-headline { font-size: 26px; }
    .hg-bottom-row { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .standard-band-inner { flex-wrap: wrap; gap: 24px; }
    .sb-divider { display: none; }
    .closing-headline { font-size: 36px; }
    .section, .standards-section, .categories-section.institutional-section, .model-section, .quote-section, .editorial-section, .apply-principles-section, .apply-section { padding: 48px 20px 60px; }
    .standards-grid, .principles-grid, .business-grid, .form-row { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; align-items: flex-start; }
    .hero { padding: 24px 20px 64px; }
    .hero-content h2 { font-size: 36px; }
    .section-title { font-size: 26px; }
    .apply-form-card { padding: 24px 18px; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .footer-copy { text-align: left; }
}

/* Service lead capture redesign */
.lead-service-body {
    --service-ink: #111827;
    --service-muted: #667085;
    --service-line: #d9e1ea;
    --service-bg: #f6f8fb;
    --service-panel: #ffffff;
    --service-navy: #102033;
    --service-teal: #0f766e;
    --service-lime: #d9f99d;
    --service-red: #b42318;
    background: var(--service-bg);
    color: var(--service-ink);
    font-family: var(--font-ui);
}

.service-shell {
    min-height: 94vh;
    background:
        linear-gradient(90deg, rgba(246,248,251,0.98) 0%, rgba(246,248,251,0.9) 54%, rgba(16,32,51,0.78) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
}

.service-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.service-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--service-navy);
    color: var(--service-lime);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.service-brand-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 26px rgba(9, 33, 62, 0.14);
}

.service-brand-logo-full {
    width: min(260px, 46vw);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.landing-brand-showcase {
    display: none;
}

.service-brand strong {
    display: block;
    font-size: 16px;
    color: var(--service-ink);
}

.service-brand small {
    display: block;
    font-size: 12px;
    color: var(--service-muted);
    margin-top: 2px;
}

.service-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-nav-links a {
    padding: 9px 12px;
    border-radius: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.service-nav-links a:hover {
    background: rgba(15,118,110,0.1);
    color: var(--service-teal);
}

.service-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 28px 76px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 460px;
    gap: 42px;
    align-items: center;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(15,118,110,0.1);
    color: var(--service-teal);
    border: 1px solid rgba(15,118,110,0.2);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.service-hero h1 {
    max-width: 720px;
    font-family: var(--font-ui);
    font-size: 54px;
    line-height: 1.02;
    font-weight: 800;
    color: var(--service-ink);
    margin-bottom: 20px;
}

.service-hero p {
    max-width: 660px;
    font-size: 18px;
    line-height: 1.65;
    color: #475467;
    margin-bottom: 26px;
}

.service-hero-actions,
.service-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.service-trust-row {
    margin-top: 28px;
    gap: 10px;
}

.service-trust-row span {
    padding: 8px 10px;
    border: 1px solid var(--service-line);
    background: rgba(255,255,255,0.75);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #475467;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-ui);
    cursor: pointer;
}

.service-btn-primary {
    background: var(--service-teal);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15,118,110,0.18);
}

.service-btn-secondary {
    background: #fff;
    color: var(--service-navy);
    border-color: var(--service-line);
}

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

.service-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.service-alerts {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.service-alert {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--service-line);
    background: #fff;
    color: var(--service-navy);
    font-size: 13px;
    font-weight: 800;
}

.service-alert-error {
    border-color: rgba(185, 28, 28, 0.24);
    background: #fff1f2;
    color: #991b1b;
}

.service-alert-success {
    border-color: rgba(15, 118, 110, 0.24);
    background: #ecfdf5;
    color: #0f766e;
}

.service-request-card {
    background: var(--service-panel);
    border: 1px solid rgba(16,32,51,0.1);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(16,32,51,0.18);
    padding: 26px;
}

.service-form-header {
    margin-bottom: 18px;
}

.service-form-header span,
.service-section-head span,
.workflow-copy span {
    display: block;
    color: var(--service-teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 7px;
}

.service-form-header h2 {
    font-size: 26px;
    line-height: 1.1;
    color: var(--service-ink);
}

.service-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

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

.service-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
    color: var(--service-ink);
    font-family: var(--font-ui);
    font-size: 14px;
    padding: 11px 12px;
    outline: none;
}

.service-form textarea {
    resize: vertical;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    border-color: var(--service-teal);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
}

.photo-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: -4px;
}

.photo-upload-preview article {
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.photo-upload-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef2f6;
}

.photo-upload-preview span {
    display: block;
    padding: 7px 8px;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-success {
    text-align: center;
    padding: 32px 10px;
}

.service-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    background: #dcfce7;
    color: #166534;
    font-weight: 900;
}

.service-success h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.service-success p {
    color: var(--service-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-band,
.workflow-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 28px;
}

.service-section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-section-head h2,
.workflow-copy h2 {
    font-family: var(--font-ui);
    font-size: 38px;
    line-height: 1.1;
    color: var(--service-ink);
}

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

.service-card-grid article {
    background: #fff;
    border: 1px solid var(--service-line);
    border-radius: 8px;
    padding: 24px;
}

.service-card-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: var(--service-teal);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.service-card-grid h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-card-grid p,
.workflow-copy p {
    color: var(--service-muted);
    line-height: 1.65;
}

.workflow-section {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 44px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--service-line);
    border-radius: 8px;
    margin-bottom: 70px;
}

.workflow-copy p {
    margin-top: 14px;
}

.workflow-steps {
    display: grid;
    gap: 12px;
}

.workflow-steps div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--service-line);
}

.workflow-steps strong {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--service-navy);
    color: var(--service-lime);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.workflow-steps span {
    font-weight: 800;
    color: #344054;
}

.service-footer {
    padding: 26px 28px;
    background: var(--service-navy);
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-footer span {
    color: rgba(255,255,255,0.62);
}

@media (max-width: 980px) {
    .service-hero,
    .workflow-section {
        grid-template-columns: 1fr;
    }
    .service-hero h1 {
        font-size: 42px;
    }
    .service-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove old green/CRM background from Crewviax branded pages */
.lead-service-body .service-shell,
.lead-service-body .landing-shell,
.lead-service-body .worker-shell,
.lead-service-body .ranking-page-shell {
    background:
        radial-gradient(circle at 84% 18%, rgba(255,106,0,0.13), transparent 30%),
        radial-gradient(circle at 12% 22%, rgba(8,42,77,0.08), transparent 28%),
        linear-gradient(120deg, #FFFFFF 0%, #FFF7ED 48%, #F8FAFC 100%) !important;
}

.lead-service-body .service-shell::before,
.lead-service-body .landing-shell::before,
.lead-service-body .worker-shell::before,
.lead-service-body .ranking-page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(8,42,77,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,42,77,0.045) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
}

.lead-service-body .service-shell,
.lead-service-body .landing-shell,
.lead-service-body .worker-shell,
.lead-service-body .ranking-page-shell {
    position: relative;
    overflow: hidden;
}

.lead-service-body .service-nav,
.lead-service-body .landing-hero,
.lead-service-body .worker-hero,
.lead-service-body .ranking-page-hero {
    position: relative;
    z-index: 1;
}

.service-menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(8,42,77,0.16);
    border-radius: 12px;
    background: #FFFFFF;
    color: #082A4D;
    cursor: pointer;
}

.service-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.service-nav.is-menu-open .service-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.service-nav.is-menu-open .service-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.service-nav.is-menu-open .service-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Work with us CTA on landing */
.landing-work-with-us {
    max-width: 1220px;
    margin: 0 auto;
    padding: 46px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 380px;
    gap: 26px;
    align-items: stretch;
}

.landing-work-copy,
.landing-work-card {
    background: #FFFFFF;
    border: 1px solid rgba(8,42,77,0.14);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(8,42,77,0.08);
}

.landing-work-copy {
    padding: 34px;
}

.landing-work-copy h2 {
    max-width: 720px;
    margin: 8px 0 12px;
    color: #082A4D;
    font-size: 38px;
    line-height: 1.08;
}

.landing-work-copy p {
    max-width: 760px;
    color: #5D6A7A;
    line-height: 1.7;
}

.landing-work-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.landing-work-points span {
    padding: 12px 14px;
    border: 1px solid #FED7AA;
    border-radius: 10px;
    background: #FFF7ED;
    color: #082A4D;
    font-weight: 800;
}

.landing-work-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-work-card strong {
    color: #082A4D;
    font-size: 24px;
    line-height: 1.15;
}

.landing-work-card p {
    margin: 12px 0 22px;
    color: #5D6A7A;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .landing-work-with-us {
        grid-template-columns: 1fr;
    }

    .landing-work-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .service-nav-links {
        width: 100%;
        overflow-x: auto;
    }
    .service-hero {
        padding-top: 24px;
    }
    .service-hero h1 {
        font-size: 34px;
    }
    .service-form-grid {
        grid-template-columns: 1fr;
    }
    .service-request-card {
        padding: 20px;
    }
    .service-section-head h2,
    .workflow-copy h2 {
        font-size: 30px;
    }
}

/* Landing page polish */
.landing-shell {
    min-height: auto;
    background:
        linear-gradient(90deg, rgba(248,250,252,0.98) 0%, rgba(248,250,252,0.92) 48%, rgba(16,32,51,0.24) 100%),
        url('/static/images/bus-sys-crm-background-3840x2160.png') center right / cover no-repeat;
    border-bottom: 1px solid #d9e1ea;
}

.landing-nav {
    padding-top: 18px;
    padding-bottom: 18px;
}

.landing-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 28px 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 56px;
    align-items: center;
}

.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(15,118,110,0.22);
    border-radius: 999px;
    background: rgba(236,253,245,0.82);
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.landing-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,0.14);
}

.landing-hero h1 {
    max-width: 760px;
    font-family: var(--font-ui);
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.landing-hero p {
    max-width: 650px;
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.landing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-actions-stacked {
    display: grid;
    margin-top: 18px;
}

.portal-preview-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.portal-preview-list span {
    padding: 12px 14px;
    border: 1px solid #d9e1ea;
    background: #f8fafc;
    border-radius: 8px;
    color: #344054;
    font-weight: 800;
    font-size: 14px;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
    max-width: 620px;
}

.landing-metrics div {
    background: rgba(255,255,255,0.78);
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 16px;
}

.landing-metrics strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #102033;
    margin-bottom: 6px;
}

.landing-metrics span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.landing-form-panel {
    background: #fff;
    border: 1px solid rgba(16,32,51,0.12);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(16,32,51,0.2);
    padding: 26px;
}

.landing-form-panel .service-form-header p {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
}

.landing-form-note {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.landing-service-strip {
    max-width: 1180px;
    margin: -34px auto 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 2;
}

.landing-service-strip a {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(16,32,51,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-service-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #eef7f6;
    border: 1px solid #bee3df;
    color: #0b766f;
}

.landing-service-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-service-strip a:hover {
    transform: translateY(-2px);
    border-color: rgba(15,118,110,0.45);
}

.landing-service-strip strong {
    display: block;
    color: #102033;
    font-size: 16px;
    margin-bottom: 7px;
}

.landing-service-strip span {
    display: block;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.landing-split,
.landing-process,
.landing-catalog,
.landing-ranking,
.landing-owner-band {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 28px;
}

.landing-catalog {
    padding-top: 66px;
    padding-bottom: 24px;
}

.landing-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.landing-catalog-grid article {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 18px;
    min-height: 142px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-catalog-grid .landing-service-icon {
    margin-bottom: 0;
}

.landing-catalog-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(15,118,110,0.42);
    box-shadow: 0 14px 34px rgba(16,32,51,0.08);
}

.landing-catalog-grid strong {
    display: block;
    color: #102033;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 9px;
}

.landing-catalog-grid span {
    display: block;
    color: #667085;
    line-height: 1.55;
    font-size: 13px;
}

.landing-service-strip .landing-service-icon,
.landing-catalog-grid .landing-service-icon {
    display: inline-flex;
    color: #0b766f;
    line-height: 1;
    font-size: 0;
}

.landing-ranking {
    padding-top: 34px;
    padding-bottom: 52px;
}

.landing-section-head p {
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
    margin-top: 8px;
}

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

.landing-ranking-card {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 18px 48px rgba(16,32,51,0.06);
}

.landing-ranking-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.landing-ranking-head > span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    font-size: 22px;
}

.landing-ranking-head strong {
    display: block;
    color: #102033;
    font-size: 18px;
    line-height: 1.2;
}

.landing-ranking-head small,
.landing-ranking-list small {
    display: block;
    color: #667085;
    line-height: 1.45;
}

.landing-ranking-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.landing-ranking-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.landing-rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #102033;
    color: #fff;
    font-weight: 900;
}

.landing-ranking-list strong {
    display: block;
    color: #102033;
    line-height: 1.25;
    margin-bottom: 3px;
}

.landing-community-band {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 34px 44px;
    background: #102033;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.landing-community-band h2 {
    color: #fff;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-community-band p {
    color: rgba(255,255,255,0.68);
    line-height: 1.6;
    margin-top: 10px;
}

.landing-community-band .landing-eyebrow {
    color: #d9f99d;
}

.landing-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: start;
}

.landing-eyebrow {
    display: block;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.landing-split h2,
.landing-process h2,
.landing-owner-band h2 {
    font-family: var(--font-ui);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0;
}

.landing-proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.landing-proof-grid article {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 22px;
}

.landing-proof-grid strong,
.landing-process-grid h3 {
    display: block;
    color: #102033;
    font-size: 18px;
    margin-bottom: 8px;
}

.landing-proof-grid p,
.landing-process-grid p,
.landing-promise p,
.landing-owner-band p {
    color: #667085;
    line-height: 1.65;
    font-size: 15px;
}

.landing-promise {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px;
    background: #102033;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: center;
}

.landing-promise h2 {
    font-family: var(--font-ui);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0;
}

.landing-promise p {
    color: rgba(255,255,255,0.68);
    margin-top: 14px;
    font-size: 16px;
}

.landing-promise .landing-eyebrow {
    color: #d9f99d;
}

.landing-promise-list {
    display: grid;
    gap: 10px;
}

.landing-promise-list span {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
}

.landing-process {
    padding-top: 44px;
}

.landing-section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

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

.landing-process-grid div {
    background: #102033;
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    min-height: 220px;
}

.landing-process-grid span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #d9f99d;
    color: #102033;
    font-weight: 900;
    margin-bottom: 24px;
}

.landing-process-grid h3 {
    color: #fff;
}

.landing-process-grid p {
    color: rgba(255,255,255,0.68);
}

.landing-owner-band {
    margin-bottom: 70px;
    padding: 44px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.landing-owner-band div {
    max-width: 760px;
}

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

.landing-owner-band p {
    margin-top: 12px;
}

@media (max-width: 1040px) {
    .landing-hero,
    .landing-split,
    .landing-promise {
        grid-template-columns: 1fr;
    }

    .landing-service-strip,
    .landing-process-grid,
    .landing-catalog-grid,
    .landing-ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-community-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .landing-hero {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .landing-hero h1 {
        font-size: 38px;
    }

    .landing-metrics,
    .landing-service-strip,
    .landing-process-grid,
    .landing-catalog-grid,
    .landing-ranking-grid {
        grid-template-columns: 1fr;
    }

    .landing-service-strip {
        margin-top: 18px;
    }

    .landing-split h2,
    .landing-process h2,
    .landing-promise h2,
    .landing-owner-band h2,
    .landing-community-band h2 {
        font-size: 30px;
    }

    .landing-promise {
        padding: 28px 20px;
    }

    .landing-ranking {
        padding-left: 20px;
        padding-right: 20px;
    }

    .landing-community-band {
        padding: 28px 20px;
    }

    .landing-owner-band {
        padding: 28px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-owner-actions {
        justify-content: flex-start;
    }
}

/* Worker signup */
.worker-shell {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(248,250,252,0.98) 0%, rgba(248,250,252,0.93) 55%, rgba(16,32,51,0.16) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
}

.worker-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 28px 80px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) 520px;
    gap: 54px;
    align-items: start;
}

.worker-hero h1 {
    font-family: var(--font-ui);
    font-size: 54px;
    line-height: 1.02;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.worker-hero p {
    max-width: 650px;
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 26px;
}

.worker-checkboxes {
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.worker-checkboxes legend {
    padding: 0 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.worker-checkboxes label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.worker-checkboxes input {
    width: auto;
}

.worker-required-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f3f3b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

.worker-required-check input {
    width: auto;
    margin-top: 2px;
}

.customer-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background:
        linear-gradient(90deg, rgba(248,250,252,0.98), rgba(248,250,252,0.9)),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center / cover no-repeat;
}

.customer-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(16,32,51,0.16);
}

.customer-auth-card h1 {
    font-size: 32px;
    margin: 24px 0 8px;
    color: #0f172a;
}

.customer-auth-card > p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 18px;
}

.customer-nav {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid #d9e1ea;
}

.customer-portal {
    max-width: 1120px;
    margin: 0 auto;
    padding: 54px 28px 80px;
}

.customer-portal h1 {
    font-size: 42px;
    color: #0f172a;
    margin-bottom: 8px;
}

.customer-portal-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.customer-portal-head p {
    color: #667085;
    line-height: 1.6;
}

.customer-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.customer-info-card {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 20px;
}

.customer-info-card span {
    display: block;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.customer-info-card strong {
    display: block;
    font-size: 20px;
    color: #102033;
    margin-bottom: 8px;
}

.customer-info-card p {
    color: #667085;
    line-height: 1.6;
}

.customer-section {
    margin-top: 30px;
}

.customer-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.customer-section-title h2 {
    font-size: 24px;
    color: #102033;
}

.customer-section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 900;
}

.customer-ticket-list {
    display: grid;
    gap: 14px;
}

.customer-ticket-card,
.customer-detail-card,
.customer-pay-card,
.customer-empty {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(16,32,51,0.06);
}

.customer-ticket-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.customer-ticket-card-compact {
    box-shadow: none;
}

.customer-ticket-card h2 {
    font-size: 22px;
    color: #102033;
    margin: 10px 0 6px;
}

.customer-ticket-card p,
.customer-ticket-card small {
    color: #667085;
}

.customer-ticket-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 160px;
}

.customer-ticket-side strong,
.customer-pay-card strong {
    font-size: 28px;
    color: #0f766e;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.customer-detail-card h1 {
    margin: 12px 0;
}

.customer-detail-card p {
    color: #667085;
    line-height: 1.65;
    margin-bottom: 18px;
}

.customer-detail-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-detail-card dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 900;
    color: #98a2b3;
    margin-bottom: 4px;
}

.customer-detail-card dd {
    color: #102033;
    font-weight: 700;
}

.ticket-photo-section {
    margin-top: 24px;
}

.ticket-photo-section h2 {
    font-size: 20px;
    color: #102033;
    margin-bottom: 12px;
}

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

.ticket-photo-grid a {
    display: block;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
}

.ticket-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-pay-card {
    display: grid;
    gap: 14px;
}

.customer-pay-card span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #98a2b3;
}

.customer-pay-card p,
.customer-empty p {
    color: #667085;
    line-height: 1.6;
}

.quote-invoice-builder,
.quote-invoice-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #f8fafc;
}

.quote-invoice-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.quote-invoice-builder-head strong,
.quote-invoice-title {
    color: #102033;
    font-size: 14px;
    font-weight: 900;
}

.quote-invoice-builder-head span {
    max-width: 220px;
    text-align: right;
    text-transform: none;
    font-size: 12px;
    color: #667085;
}

.quote-line-items {
    display: grid;
    gap: 8px;
}

.quote-line-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
}

.quote-line-item input {
    width: 100%;
}

.quote-invoice-row,
.quote-invoice-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e5eaf0;
}

.quote-invoice-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.quote-invoice-row span,
.quote-invoice-total span {
    text-transform: none;
    font-size: 14px;
    font-weight: 700;
    color: #475467;
}

.quote-invoice-row strong,
.quote-invoice-total strong {
    white-space: nowrap;
    font-size: 16px;
    color: #102033;
}

.quote-invoice-row-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid #cfd8e3;
}

.quote-invoice-box-customer {
    background: #fff;
}

.quote-invoice-box-admin {
    margin-bottom: 8px;
    padding: 10px;
}

.customer-empty {
    text-align: center;
    padding: 48px 24px;
}

.customer-empty-small {
    padding: 24px;
}

.customer-payments-list {
    display: grid;
    gap: 10px;
}

.customer-payments-list article {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.customer-payments-list strong {
    display: block;
    color: #102033;
    margin-bottom: 4px;
}

.customer-payments-list span {
    color: #667085;
    font-size: 13px;
}

.customer-payments-list b {
    color: #0f766e;
    font-size: 18px;
}

.community-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.community-feed {
    display: grid;
    gap: 14px;
}

.community-post-card {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(20,34,53,0.06);
}

.community-composer-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.community-composer-head h2 {
    margin: 0;
    color: #142235;
}

.community-composer-head p {
    margin: 4px 0 0;
    color: #667085;
}

.community-close-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #142235;
    font-size: 24px;
    cursor: pointer;
}

.community-composer textarea {
    min-height: 130px;
    font-size: 16px;
}

.community-create-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.community-create-tools span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #142235;
    font-size: 13px;
    font-weight: 900;
}

.community-post-head,
.community-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.community-post-head small {
    color: #667085;
    font-weight: 800;
}

.community-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8eef6;
    color: #142235;
    font-weight: 900;
    text-transform: uppercase;
}

.community-author strong {
    display: block;
    color: #142235;
    font-size: 14px;
}

.community-author span {
    color: #667085;
    font-size: 13px;
}

.community-post-card h2 {
    margin: 14px 0 8px;
    color: #142235;
    font-size: 22px;
}

.community-post-card p {
    color: #475467;
    line-height: 1.65;
}

.community-photo-grid {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5eaf0;
}

.community-photo-grid a {
    position: relative;
    display: block;
    min-height: 180px;
    background: #f8fafc;
}

.community-photo-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-photo-grid-1 {
    grid-template-columns: 1fr;
}

.community-photo-grid-1 a {
    aspect-ratio: 4 / 3;
}

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

.community-photo-grid-3,
.community-photo-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-photo-grid-3 a:first-child {
    grid-row: span 2;
}

.community-photo-grid span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(20,34,53,0.62);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
}

.community-post-meta {
    justify-content: flex-start;
    margin-top: 16px;
}

.community-post-meta span {
    padding: 7px 10px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    color: #5f6f83;
    font-size: 12px;
    font-weight: 800;
    background: #f8fafc;
}

.badge-request,
.badge-recommendation,
.badge-notice {
    background: #eef7f6;
    color: #0b766f;
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5eaf0;
}

.community-actions form {
    margin: 0;
}

.community-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #f8fafc;
    color: #142235;
    font-weight: 900;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 13px;
}

.community-like-button span {
    font-size: 18px;
    line-height: 1;
}

.community-like-button.is-liked {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: #0b766f;
}

.community-quote-button {
    background: #142235;
    border-color: #142235;
    color: #fff;
}

.community-comments {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
}

.community-quote-form,
.community-quotes-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #bee3df;
    background: #eef7f6;
}

.community-quote-form > strong,
.community-quotes-box > strong {
    color: #142235;
    font-size: 14px;
}

.community-quote-form div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.community-quote-form .community-invoice-builder,
.community-quote-form .community-invoice-lines,
.community-quote-form .community-invoice-summary,
.community-quote-form .community-invoice-tax {
    display: grid;
    grid-template-columns: 1fr;
}

.community-invoice-builder {
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d8dee8;
}

.community-invoice-head,
.community-invoice-line {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) 74px 110px 72px !important;
    gap: 8px;
    align-items: center;
}

.community-invoice-head {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.community-invoice-line label {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.community-invoice-line label input {
    width: auto;
    min-height: auto;
    padding: 0;
}

.community-invoice-tax label {
    display: grid;
    grid-template-columns: 120px 120px;
    gap: 8px;
    align-items: center;
    color: #142235;
    font-weight: 900;
    font-size: 13px;
}

.community-invoice-summary {
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid #e5eaf0;
}

.community-invoice-summary span,
.community-invoice-view div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #667085;
    font-size: 13px;
}

.community-invoice-summary strong,
.community-invoice-view strong {
    color: #142235;
}

.community-invoice-view {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d8eee9;
    min-width: 330px;
}

.community-invoice-view-total {
    padding-top: 6px;
    border-top: 1px solid #e5eaf0;
    font-weight: 900;
}

.invoice-generator-form {
    gap: 18px;
}

.invoice-generator-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #d8dee8;
    background: #f8fafc;
}

.invoice-generator-head,
.invoice-generator-line {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 86px 130px 76px;
    gap: 8px;
    align-items: center;
}

.invoice-generator-head {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.invoice-generator-lines {
    display: grid;
    gap: 8px;
}

.invoice-generator-line label {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.invoice-generator-line label input {
    width: auto;
    min-height: auto;
    padding: 0;
}

.invoice-generator-tax label {
    display: grid;
    grid-template-columns: 120px 130px;
    gap: 8px;
    align-items: center;
    color: #142235;
    font-weight: 900;
}

.invoice-generator-summary {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #d8dee8;
}

.invoice-generator-summary span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
}

.invoice-generator-summary strong {
    color: #142235;
}

.invoice-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 22px 80px;
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.invoice-document {
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    padding: 42px;
    box-shadow: 0 18px 55px rgba(16,32,51,0.08);
}

.invoice-document-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5eaf0;
}

.invoice-document-head h1 {
    margin: 12px 0 4px;
    color: #102033;
    font-size: 28px;
}

.invoice-document-head p,
.invoice-document-head small,
.invoice-meta-grid p {
    color: #667085;
    line-height: 1.55;
}

.invoice-document-head > div:last-child {
    text-align: right;
}

.invoice-document-head > div:last-child span,
.invoice-meta-grid span {
    display: block;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.invoice-document-head > div:last-child strong {
    display: block;
    margin: 8px 0;
    color: #0b766f;
    font-size: 28px;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.invoice-meta-grid article {
    padding: 18px;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #f8fafc;
}

.invoice-meta-grid strong {
    display: block;
    margin: 7px 0;
    color: #102033;
    font-size: 18px;
}

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

.invoice-table th,
.invoice-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #e5eaf0;
    text-align: left;
}

.invoice-table th {
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.invoice-table td {
    color: #142235;
}

.invoice-total-box {
    width: min(360px, 100%);
    margin-left: auto;
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.invoice-total-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
}

.invoice-total-box strong {
    color: #142235;
}

.invoice-grand-total {
    padding-top: 12px;
    border-top: 2px solid #102033;
    font-size: 22px;
    font-weight: 900;
}

.invoice-notes {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
}

.invoice-notes strong {
    color: #102033;
}

.invoice-notes p {
    margin-top: 8px;
    color: #667085;
    line-height: 1.6;
}

.invoice-ticket-detail {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #e5eaf0;
}

.invoice-ticket-detail .ticket-message-head {
    margin-bottom: 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e7ecf2;
    background: transparent;
}

.detail-field {
    margin-top: 16px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 16px;
}

.detail-field-label {
    margin-bottom: 7px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.detail-field-value {
    color: #344054;
    line-height: 1.55;
}

.ticket-invoice-section {
    margin-top: 24px;
}

.inline-assign-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.inline-assign-form select {
    min-height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--font-ui);
}

.worker-list {
    display: grid;
    gap: 10px;
}

.worker-list article {
    padding: 14px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #f8fafc;
}

.worker-list strong {
    display: block;
    color: #102033;
}

.worker-list span,
.worker-list p {
    color: #667085;
    line-height: 1.45;
}

.ticket-card-invoice-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
}

.ticket-card-invoice-note strong {
    color: #0b766f;
    font-size: 12px;
}

.ticket-card-invoice-note span {
    color: #667085;
    font-size: 12px;
}

.marketplace-calc-box {
    width: min(420px, 100%);
    margin-left: auto;
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    display: grid;
    gap: 9px;
}

.marketplace-calc-box > strong {
    color: #0b766f;
}

.marketplace-calc-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
}

.marketplace-calc-box b {
    color: #102033;
}

.marketplace-calc-box p {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

@media print {
    .invoice-no-print {
        display: none !important;
    }

    body.lead-service-body {
        background: #fff;
    }

    .invoice-page {
        max-width: none;
        padding: 0;
    }

    .invoice-document {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
}

.community-quote-form input,
.community-quote-form textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--font-ui);
}

.community-quote-form input {
    min-height: 42px;
}

.community-quote-form textarea {
    min-height: 72px;
    padding-top: 10px;
    resize: vertical;
}

.community-quotes-box article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #bee3df;
}

.community-quotes-box b {
    display: block;
    color: #142235;
}

.community-quotes-box span {
    color: #667085;
    font-size: 12px;
}

.community-quotes-box p {
    margin: 4px 0 0;
    font-size: 13px;
}

.community-quotes-box article > strong {
    white-space: nowrap;
    color: #0b766f;
}

.community-quote-choice {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 150px;
}

.community-quote-choice strong {
    color: #0b766f;
    font-size: 18px;
}

.community-quote-choice form {
    margin: 0;
}

.community-quote-choice .service-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.provider-profile-hero,
.provider-progress-card {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 32px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20,34,53,0.05);
}

.provider-profile-top {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.provider-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #142235, #0b766f);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
}

.provider-profile-main {
    min-width: 0;
    flex: 1;
}

.provider-profile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.provider-profile-title h1 {
    margin: 0;
    color: #142235;
    font-size: 24px;
}

.provider-profile-title a,
.provider-rating-row a {
    color: #008fd3;
    font-weight: 900;
}

.provider-rating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.provider-stars {
    color: #20b486;
    letter-spacing: 1px;
}

.provider-no-reviews {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d9e1ea;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.provider-profile-main p,
.provider-progress-card p {
    color: #667085;
    line-height: 1.55;
}

.provider-profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
}

.provider-progress-card h2 {
    margin: 6px 0 8px;
    color: #142235;
    font-size: 22px;
}

.provider-score-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 18px;
}

.provider-score-row strong {
    color: #0b766f;
    font-size: 34px;
    line-height: 1;
}

.provider-score-row span {
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}

.provider-progress-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 4px 12px;
}

.provider-progress-track::before,
.provider-progress-track::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    height: 8px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #e5eaf0;
}

.provider-progress-track::after {
    right: auto;
    width: max(0px, calc(var(--progress) - 40px));
    background: #0ea5d7;
    z-index: 1;
}

.provider-progress-track span {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #d9e1ea;
    background: #fff;
    color: #98a2b3;
    box-shadow: 0 2px 8px rgba(20,34,53,0.12);
}

.provider-progress-track span.is-complete {
    border-color: #0ea5d7;
    background: #0ea5d7;
    color: #f2c94c;
}

.provider-progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.provider-progress-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.provider-progress-stats span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.provider-progress-stats strong {
    color: #142235;
    font-size: 20px;
}

.metrics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.metrics-header h1 {
    margin: 6px 0 8px;
    color: #142235;
    font-size: 34px;
}

.metrics-header p {
    color: #667085;
}

.metrics-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.metrics-filter-row select {
    min-width: 220px;
    min-height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    padding: 0 12px;
    font-family: var(--font-ui);
    background: #fff;
}

.metrics-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 38px;
}

.metrics-summary-grid article {
    min-height: 210px;
    padding: 24px;
    border-radius: 8px;
    background: #e8f1fb;
    border: 1px solid #d7e6f8;
}

.metrics-summary-grid span {
    display: block;
    min-height: 34px;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.metrics-summary-grid strong {
    display: block;
    margin: 16px 0 10px;
    color: #142235;
    font-size: 38px;
    line-height: 1;
}

.metrics-summary-grid p,
.metrics-panel p {
    color: #475467;
    line-height: 1.55;
}

.metrics-panel {
    padding: 24px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20,34,53,0.05);
}

.metrics-chart {
    min-height: 250px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    padding: 22px 8px 4px;
    border-bottom: 1px solid #d8dee8;
}

.metrics-week {
    display: grid;
    gap: 10px;
    text-align: center;
}

.metrics-bars {
    height: 170px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
}

.metrics-bars span {
    width: 18px;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    background: #c3dafe;
}

.metrics-bars span:nth-child(2) {
    background: #0ea5d7;
}

.metrics-bars span:nth-child(3) {
    background: #0b766f;
}

.metrics-week strong {
    color: #667085;
    font-size: 12px;
}

.metrics-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.metrics-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metrics-legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #c3dafe;
}

.metrics-legend span:nth-child(2) i {
    background: #0ea5d7;
}

.metrics-legend span:nth-child(3) i {
    background: #0b766f;
}

.metrics-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.metrics-big-number {
    color: #142235;
    font-size: 42px;
    font-weight: 900;
}

.metrics-mini-list,
.metrics-funnel {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.metrics-mini-list div,
.metrics-funnel div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #e5eaf0;
}

.metrics-mini-list strong,
.metrics-funnel strong {
    color: #142235;
}

.metrics-mini-list span,
.metrics-funnel span {
    color: #667085;
    font-size: 13px;
}

.community-comment {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5eaf0;
}

.community-comment:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.community-comment strong {
    color: #142235;
    font-size: 13px;
}

.community-comment span,
.community-no-comments {
    color: #667085;
    font-size: 12px;
}

.community-comment p {
    margin: 4px 0 0;
    color: #475467;
    font-size: 14px;
}

.community-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.community-comment-form input {
    min-height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--font-ui);
}

@media (max-width: 1040px) {
    .worker-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .worker-hero h1 {
        font-size: 36px;
    }

    .worker-checkboxes {
        grid-template-columns: 1fr;
    }

    .customer-ticket-card,
    .customer-detail-grid,
    .customer-account-grid,
    .community-layout {
        grid-template-columns: 1fr;
    }

    .customer-portal-head,
    .customer-payments-list article {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-ticket-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-ticket-side {
        justify-items: start;
        width: 100%;
    }

    .customer-detail-card dl {
        grid-template-columns: 1fr;
    }

    .quote-line-item {
        grid-template-columns: 1fr;
    }

    .community-comment-form {
        grid-template-columns: 1fr;
    }

    .community-quote-form div {
        grid-template-columns: 1fr;
    }

    .community-invoice-head {
        display: none !important;
    }

    .community-invoice-line {
        grid-template-columns: 1fr 1fr !important;
    }

    .community-invoice-line input:first-child {
        grid-column: 1 / -1;
    }

    .invoice-generator-head {
        display: none;
    }

    .invoice-generator-line {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-generator-line input:first-child {
        grid-column: 1 / -1;
    }

    .invoice-document {
        padding: 24px;
    }

    .invoice-document-head,
    .invoice-meta-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .invoice-document-head > div:last-child {
        text-align: left;
    }

    .provider-profile-hero,
    .provider-progress-card {
        padding: 22px;
    }

    .provider-profile-top,
    .provider-profile-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .provider-profile-actions {
        grid-template-columns: 1fr;
    }

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

    .metrics-header {
        flex-direction: column;
    }

    .metrics-filter-row,
    .metrics-legend {
        flex-direction: column;
    }

    .metrics-filter-row select {
        width: 100%;
    }

    .metrics-summary-grid,
    .metrics-lower-grid {
        grid-template-columns: 1fr;
    }

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

    .quote-invoice-builder-head {
        display: grid;
    }

    .quote-invoice-builder-head span {
        max-width: none;
        text-align: left;
    }

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

/* Enterprise service platform refresh */
.lead-service-body {
    --service-ink: #172033;
    --service-muted: #5f6f83;
    --service-line: #d8dee8;
    --service-bg: #eef2f6;
    --service-panel: #ffffff;
    --service-navy: #142235;
    --service-teal: #0b766f;
    --service-lime: #f2c94c;
    --service-red: #b42318;
    background: var(--service-bg);
}

.service-shell,
.landing-shell,
.worker-shell {
    background:
        linear-gradient(90deg, rgba(244,247,251,0.98) 0%, rgba(244,247,251,0.94) 58%, rgba(244,247,251,0.68) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
    border-bottom: 1px solid var(--service-line);
}

.service-nav,
.landing-nav,
.customer-nav {
    max-width: 1220px;
}

.customer-nav {
    background: #fff;
    box-shadow: 0 1px 0 rgba(20,34,53,0.08);
}

.service-brand-mark {
    position: relative;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 10px;
    background:
        linear-gradient(145deg, #142235 0%, #0b766f 100%);
    color: transparent;
    font-size: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.16),
        0 12px 28px rgba(20,34,53,0.20);
}

.service-brand-mark::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 14px;
    width: 20px;
    height: 17px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-radius: 3px 3px 5px 5px;
}

.service-brand-mark::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 9px;
    width: 18px;
    height: 18px;
    border-left: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
    box-shadow: 12px 18px 0 -7px #f2c94c;
}

.service-brand-mark + span {
    min-width: 0;
}

.service-brand strong {
    color: #142235;
    font-weight: 900;
}

.service-brand small,
.landing-form-note,
.customer-portal-head p,
.customer-info-card p,
.customer-ticket-card p,
.customer-ticket-card small,
.customer-detail-card p,
.customer-pay-card p,
.customer-empty p,
.customer-payments-list span,
.worker-hero p,
.landing-hero p,
.landing-proof-grid p,
.landing-process-grid p,
.landing-promise p,
.landing-owner-band p,
.landing-catalog-grid span,
.landing-service-strip span {
    color: var(--service-muted);
}

.service-nav-links {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(216,222,232,0.9);
    border-radius: 8px;
    padding: 4px;
}

.service-nav-links a {
    border-radius: 6px;
    color: #334155;
}

.service-nav-links a:hover {
    background: #eef7f6;
    color: var(--service-teal);
}

.landing-hero,
.worker-hero,
.customer-portal {
    max-width: 1220px;
}

.landing-hero {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: start;
}

.landing-status,
.service-pill {
    border-radius: 6px;
    background: #eef7f6;
    border-color: #bee3df;
    color: var(--service-teal);
}

.landing-status span {
    background: var(--service-teal);
    box-shadow: none;
}

.landing-hero h1,
.worker-hero h1,
.customer-portal h1,
.service-hero h1 {
    color: #142235;
    font-weight: 900;
}

.service-btn {
    border-radius: 6px;
    min-height: 42px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

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

.service-btn-primary {
    background: #0b766f;
    color: #fff;
    box-shadow: 0 10px 22px rgba(11,118,111,0.18);
}

.service-btn-secondary {
    background: #fff;
    color: #142235;
    border-color: #cfd8e3;
}

.landing-form-panel,
.service-request-card,
.customer-auth-card,
.customer-info-card,
.customer-ticket-card,
.customer-detail-card,
.customer-pay-card,
.customer-empty,
.customer-payments-list article,
.landing-catalog-grid article,
.landing-proof-grid article,
.landing-service-strip a,
.worker-checkboxes,
.worker-required-check {
    border-radius: 8px;
    border-color: var(--service-line);
    box-shadow: 0 10px 28px rgba(20,34,53,0.07);
}

.landing-form-panel,
.service-request-card,
.customer-auth-card {
    box-shadow: 0 20px 54px rgba(20,34,53,0.13);
}

.service-form-header span,
.service-section-head span,
.workflow-copy span,
.landing-eyebrow,
.customer-info-card span,
.customer-detail-card dt,
.customer-pay-card span,
.landing-status,
.service-pill {
    letter-spacing: 0.8px;
}

.service-form input,
.service-form select,
.service-form textarea {
    border-radius: 6px;
    border-color: #cfd8e3;
    background: #fbfcfe;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    background: #fff;
    border-color: var(--service-teal);
    box-shadow: 0 0 0 3px rgba(11,118,111,0.12);
}

.landing-metrics div,
.portal-preview-list span {
    background: #fff;
    border-color: var(--service-line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20,34,53,0.05);
}

.landing-service-strip,
.landing-split,
.landing-process,
.landing-catalog,
.landing-owner-band,
.landing-promise {
    max-width: 1220px;
}

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

.landing-catalog-grid article,
.landing-proof-grid article,
.landing-service-strip a {
    background: #fff;
}

.landing-promise,
.landing-process-grid div {
    background: #142235;
}

.landing-promise {
    box-shadow: 0 20px 54px rgba(20,34,53,0.18);
}

.landing-promise .landing-eyebrow,
.landing-process-grid span {
    color: #142235;
    background: #f2c94c;
}

.landing-promise-list span {
    border-radius: 6px;
}

.landing-owner-band {
    background: #fff;
    border-color: var(--service-line);
    box-shadow: 0 14px 34px rgba(20,34,53,0.07);
}

.worker-checkboxes,
.worker-required-check {
    background: #fff;
}

.worker-required-check {
    border-color: #bee3df;
    background: #eef7f6;
}

.customer-auth-page {
    background:
        linear-gradient(90deg, rgba(238,242,246,0.98), rgba(238,242,246,0.92)),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center / cover no-repeat;
}

.login-role-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #f8fafc;
}

.login-role-switch label {
    margin: 0;
    cursor: pointer;
}

.login-role-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-role-switch span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    color: #475467;
    font-weight: 900;
}

.login-role-switch label.is-selected span {
    background: #142235;
    color: #fff;
}

.customer-portal {
    padding-top: 38px;
}

.customer-portal-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--service-line);
}

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

.customer-info-card strong,
.customer-ticket-card h2,
.customer-section-title h2,
.customer-detail-card dd,
.landing-catalog-grid strong,
.landing-service-strip strong,
.landing-proof-grid strong,
.landing-process-grid h3 {
    color: #142235;
}

.customer-ticket-card {
    box-shadow: 0 8px 22px rgba(20,34,53,0.06);
}

.customer-ticket-card:hover,
.landing-catalog-grid article:hover,
.landing-service-strip a:hover {
    border-color: #a9d7d3;
    box-shadow: 0 14px 34px rgba(20,34,53,0.1);
}

.customer-section-title span {
    background: #eef7f6;
    color: var(--service-teal);
}

.customer-ticket-side strong,
.customer-pay-card strong,
.customer-payments-list b {
    color: var(--service-teal);
}

.ticket-photo-grid a {
    border-radius: 6px;
}

.payment-terms-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #bee3df;
    border-radius: 8px;
    background: #eef7f6;
    color: #142235;
}

.payment-terms-box strong {
    font-size: 14px;
    color: #142235;
}

.payment-terms-box ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.payment-terms-box li {
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
}

.customer-ticket-screen {
    max-width: 1160px;
    padding-top: 26px;
}

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

.ticket-app-header h1 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 38px;
    line-height: 1.05;
}

.ticket-app-header p {
    max-width: 720px;
    color: #5f6f83;
    line-height: 1.55;
}

.ticket-progress-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #d8dee8;
    box-shadow: 0 10px 24px rgba(20,34,53,0.06);
}

.ticket-progress-step {
    min-height: 78px;
    background: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-progress-step span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef2f6;
    color: #5f6f83;
    font-weight: 900;
    flex: 0 0 auto;
}

.ticket-progress-step strong {
    color: #344054;
    font-size: 13px;
}

.ticket-progress-step.is-complete span {
    background: #0b766f;
    color: #fff;
}

.ticket-progress-step.is-complete strong {
    color: #142235;
}

.ticket-app-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.ticket-main-card,
.ticket-checkout-card {
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20,34,53,0.08);
}

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

.ticket-info-grid article {
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 16px;
}

.ticket-info-grid span {
    display: block;
    margin-bottom: 7px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ticket-info-grid strong {
    display: block;
    color: #142235;
    line-height: 1.35;
}

.ticket-checkout-card {
    position: sticky;
    top: 82px;
}

.price-option-button {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    min-height: 64px;
    padding: 13px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    color: #142235;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.price-option-button:hover {
    transform: translateY(-1px);
    border-color: #9bd4ce;
    box-shadow: 0 10px 22px rgba(20,34,53,0.08);
}

.price-option-button span {
    color: #142235;
    font-size: 14px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
}

.price-option-button strong {
    color: #142235;
    font-size: 18px;
}

.price-option-button small {
    grid-column: 1 / -1;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.price-option-button.is-selected {
    border-color: #0b766f;
    background: #eef7f6;
    box-shadow: inset 0 0 0 1px rgba(11,118,111,0.18);
}

.price-option-button.is-selected small,
.price-option-button.is-selected strong {
    color: #0b766f;
}

.ticket-checkout-card .payment-terms-box {
    max-height: 260px;
    overflow: auto;
}

.ticket-message-panel {
    margin-top: 24px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ticket-message-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e7ecf2;
    background: #fbfcfe;
}

.ticket-message-head span {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ticket-message-head h2 {
    margin: 0;
    color: #142235;
    font-size: 20px;
}

.ticket-message-list {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
    padding: 16px 18px;
    background: #f8fafc;
}

.ticket-message {
    max-width: 82%;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.ticket-message div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.ticket-message strong {
    color: #142235;
    font-size: 13px;
}

.ticket-message span {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}

.ticket-message p {
    margin: 0;
    color: #344054;
    line-height: 1.45;
    font-size: 14px;
}

.ticket-message-cliente {
    justify-self: start;
}

.ticket-message-subcontratista {
    justify-self: end;
    background: #eef7f6;
    border-color: #bee3df;
}

.ticket-message-admin {
    justify-self: center;
    background: #142235;
    border-color: #142235;
}

.ticket-message-admin strong,
.ticket-message-admin p {
    color: #fff;
}

.ticket-message-empty {
    margin: 0;
    color: #667085;
    text-align: center;
}

.ticket-message-form {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid #e7ecf2;
    background: #fff;
}

.ticket-message-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
}

.ticket-message-form textarea:focus {
    border-color: #0b766f;
    box-shadow: 0 0 0 3px rgba(11,118,111,0.12);
}

.ticket-lightbox-open {
    overflow: hidden;
}

.ticket-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.92);
    padding: 64px 84px;
}

.ticket-lightbox.is-open {
    display: flex;
}

.ticket-lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.ticket-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.ticket-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    transform-origin: center center;
    transition: transform 120ms ease;
    user-select: none;
    cursor: zoom-in;
}

.ticket-lightbox-image.is-zoomed {
    cursor: grab;
    transition: none;
}

.ticket-lightbox-close,
.ticket-lightbox-arrow,
.ticket-lightbox-toolbar button {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 900;
}

.ticket-lightbox-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
}

.ticket-lightbox-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(3,7,18,0.5);
    backdrop-filter: blur(10px);
}

.ticket-lightbox-toolbar button {
    position: static;
    min-width: 44px;
    height: 38px;
    padding: 0 12px;
}

.ticket-lightbox-zoom-reset {
    min-width: 72px;
}

.ticket-lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 74px;
    font-size: 34px;
}

.ticket-lightbox-prev {
    left: 20px;
}

.ticket-lightbox-next {
    right: 20px;
}

.ticket-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 700px) {
    .ticket-lightbox {
        padding: 68px 52px;
    }

    .ticket-lightbox-toolbar {
        top: 18px;
    }

    .ticket-lightbox-toolbar button {
        min-width: 38px;
        height: 34px;
        padding: 0 9px;
    }

    .ticket-lightbox-arrow {
        width: 42px;
        height: 58px;
        font-size: 26px;
    }
}

@media (max-width: 1040px) {
    .customer-account-grid,
    .landing-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-app-grid {
        grid-template-columns: 1fr;
    }

    .ticket-checkout-card {
        position: static;
    }

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

@media (max-width: 700px) {
    .service-nav-links {
        background: transparent;
        border: none;
        padding: 0;
    }

    .customer-account-grid,
    .landing-catalog-grid {
        grid-template-columns: 1fr;
    }

    .ticket-app-header {
        flex-direction: column;
    }

    .ticket-app-header h1 {
        font-size: 30px;
    }

    .ticket-progress-card,
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
}

.customer-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid #d7e2ea;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,247,246,0.92)),
        #fff;
    box-shadow: 0 18px 46px rgba(20,34,53,0.08);
}

.customer-dashboard-hero h1 {
    margin: 7px 0 10px;
    font-size: 40px;
    line-height: 1.05;
}

.customer-dashboard-hero p {
    max-width: 720px;
    color: #5f6f83;
    line-height: 1.55;
}

.customer-dashboard-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.customer-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.customer-metrics-grid article,
.customer-account-strip article {
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(20,34,53,0.06);
}

.customer-metrics-grid span,
.customer-account-strip span {
    display: block;
    margin-bottom: 8px;
    color: #7d8da1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.customer-metrics-grid strong {
    display: block;
    color: #0b766f;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 9px;
}

.customer-metrics-grid p,
.customer-account-strip p {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.customer-account-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 12px;
    margin-bottom: 26px;
}

.customer-account-strip strong {
    display: block;
    color: #142235;
    font-size: 20px;
    margin-bottom: 7px;
}

.customer-profile-edit-section .customer-detail-card {
    box-shadow: 0 8px 22px rgba(20,34,53,0.05);
}

.customer-ticket-card {
    position: relative;
    overflow: hidden;
}

.customer-ticket-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0b766f;
    opacity: 0.7;
}

.customer-ticket-side .service-btn {
    min-width: 124px;
}

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

.worker-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.worker-list article strong {
    display: block;
    color: #142235;
    font-size: 18px;
    margin-bottom: 5px;
}

.worker-list article span,
.worker-list article p {
    color: #667085;
    line-height: 1.45;
}

.worker-actions form {
    margin: 0;
}

.worker-actions .service-btn {
    min-width: 112px;
}

.worker-management-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    align-items: start;
}

.worker-registry-card {
    overflow: hidden;
}

.worker-card {
    width: 100%;
    min-width: 0;
}

.worker-card-main {
    min-width: 0;
    flex: 1;
}

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

.worker-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.worker-status-active {
    background: #ecfdf5;
    color: #0b766f;
    border: 1px solid #99f6e4;
}

.worker-status-inactive {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.worker-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.worker-data-grid div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #ffffff;
}

.worker-data-grid dt {
    margin-bottom: 4px;
    color: #8a97aa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.worker-data-grid dd {
    margin: 0;
    color: #142235;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.worker-data-grid a {
    color: #ff6a00;
}

.worker-note {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

@media (max-width: 980px) {
    .worker-management-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .worker-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .worker-card-head {
        flex-direction: column;
    }

    .worker-data-grid {
        grid-template-columns: 1fr;
    }

    .worker-actions,
    .worker-actions form,
    .worker-actions .service-btn {
        width: 100%;
    }
}

.ranking-page-shell {
    padding-bottom: 26px;
}

.ranking-page-hero {
    max-width: 1220px;
    margin: 26px auto 0;
    padding: 34px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef7f6);
    box-shadow: 0 18px 46px rgba(20,34,53,0.08);
}

.ranking-page-hero h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    color: #142235;
    font-size: 42px;
    line-height: 1.05;
}

.ranking-page-hero p {
    max-width: 720px;
    color: #667085;
    line-height: 1.55;
}

.ranking-page-section {
    padding-top: 24px;
}

.ranking-empty {
    max-width: 780px;
    margin: 32px auto;
}

.review-public-page {
    display: grid;
    place-items: start center;
    padding-top: 42px;
}

.review-public-card {
    max-width: 720px;
}

.review-form {
    margin-top: 18px;
}

.review-stars-field {
    display: grid;
    gap: 9px;
}

.review-stars-field > span,
.recent-review-box > span {
    color: #0b766f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.review-stars-field div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.review-stars-field label {
    margin: 0;
}

.review-stars-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-stars-field strong {
    display: grid;
    place-items: center;
    min-height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    cursor: pointer;
}

.review-stars-field input:checked + strong {
    border-color: #0b766f;
    background: #eef7f6;
    color: #0b766f;
}

.review-link-panel {
    display: grid;
    gap: 16px;
    margin: 18px 0;
    padding: 22px;
    border: 1px solid #bee3df;
    border-radius: 8px;
    background: #eef7f6;
    box-shadow: 0 12px 30px rgba(20,34,53,0.06);
}

.review-link-panel h2 {
    margin: 7px 0 8px;
    color: #142235;
}

.review-link-panel p {
    color: #667085;
    line-height: 1.5;
}

.review-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.review-link-box input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #a9d7d3;
    border-radius: 8px;
    background: #fff;
    color: #142235;
    font-family: var(--font-ui);
    font-weight: 700;
}

.ai-estimate-card {
    display: grid;
    gap: 14px;
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(255,106,0,0.08);
}

.ai-estimate-card span {
    display: block;
    margin-bottom: 7px;
    color: #ff6a00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ai-estimate-card strong {
    display: block;
    color: #082a4d;
    font-size: 18px;
    line-height: 1.2;
}

.ai-estimate-card p {
    margin-top: 7px;
    color: #5d6a7a;
    font-size: 14px;
    line-height: 1.5;
}

.ai-estimate-summary {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #fed7aa;
}

.ai-estimate-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
}

.ai-estimate-summary small {
    color: #5d6a7a;
    font-weight: 800;
}

.ai-estimate-summary div strong {
    font-size: 20px;
}

.recent-review-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.recent-review-box article {
    padding: 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.recent-review-box strong {
    display: block;
    margin-bottom: 6px;
    color: #142235;
}

.recent-review-box p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.ops-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 20px 0 14px;
    padding: 24px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef7f6);
    box-shadow: 0 14px 34px rgba(20,34,53,0.07);
}

.ops-hero-panel span,
.ops-kpi-grid span,
.worker-dashboard-hero span {
    display: block;
    margin-bottom: 8px;
    color: #0b766f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.ops-hero-panel h2 {
    margin: 0 0 8px;
    color: #142235;
    font-size: 28px;
    line-height: 1.08;
}

.ops-hero-panel p,
.ops-kpi-grid p,
.worker-dashboard-hero p {
    color: #667085;
    line-height: 1.5;
}

.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.ops-kpi-grid article {
    min-height: 132px;
    padding: 18px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20,34,53,0.06);
}

.ops-kpi-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #142235;
    font-size: 28px;
    line-height: 1;
}

.ops-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.worker-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 26px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #142235;
    box-shadow: 0 18px 42px rgba(20,34,53,0.16);
}

.worker-dashboard-hero h1 {
    color: #fff;
}

.worker-dashboard-hero p {
    color: rgba(255,255,255,0.72);
}

.worker-dashboard-hero strong {
    padding: 12px 16px;
    border-radius: 8px;
    background: #f2c94c;
    color: #142235;
    white-space: nowrap;
}

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

.ticket-message-trabajador {
    justify-self: end;
    background: #eff6ff;
    border-color: #bfdbfe;
}

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

.invoice-total-box {
    max-width: 420px;
    margin-left: auto;
}

.invoice-logo-img {
    width: 160px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media print {
    .invoice-no-print,
    .service-nav {
        display: none !important;
    }

    .invoice-page {
        padding: 0;
        background: #fff;
    }

    .invoice-document {
        box-shadow: none;
        border: none;
    }
}

@media (max-width: 1040px) {
    .customer-dashboard-hero,
    .customer-account-strip {
        grid-template-columns: 1fr;
    }

    .customer-dashboard-actions {
        justify-content: flex-start;
    }

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

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

    .ops-hero-panel,
    .invoice-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .customer-dashboard-hero {
        padding: 20px;
    }

    .customer-dashboard-hero h1 {
        font-size: 30px;
    }

    .customer-dashboard-actions,
    .customer-dashboard-actions .service-btn {
        width: 100%;
    }

    .customer-metrics-grid {
        grid-template-columns: 1fr;
    }

    .ops-kpi-grid,
    .worker-kpi-grid {
        grid-template-columns: 1fr;
    }

    .worker-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-stars-field div,
    .review-link-box {
        grid-template-columns: 1fr;
    }
}

/* Crewviax web logo adaptation */
.lead-service-body .service-nav {
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.lead-service-body .service-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.lead-service-body .service-brand-logo-full {
    display: block;
    width: auto;
    height: clamp(50px, 6vw, 72px);
    max-width: min(300px, 34vw);
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(8, 42, 77, 0.10));
}

.landing-brand-showcase {
    display: block;
    width: min(520px, 100%);
    margin: 0 0 20px;
}

.landing-brand-showcase img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 18px 32px rgba(8, 42, 77, 0.12));
}

@media (max-width: 980px) {
    .lead-service-body .service-nav {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .lead-service-body .service-brand-logo-full {
        height: 64px;
        max-width: min(330px, 86vw);
    }
}

@media (max-width: 860px) {
    body.lead-service-body {
        scroll-padding-top: 102px;
    }

    .lead-service-body [id] {
        scroll-margin-top: 102px;
    }

    .lead-service-body .service-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 72px;
        padding: 8px 10px;
        gap: 8px;
    }

    .lead-service-body .service-brand-logo-full {
        height: 56px;
        max-width: min(250px, 66vw);
    }

    .service-menu-toggle {
        display: flex;
    }

    .lead-service-body .service-nav-links {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        margin-top: 6px;
        padding: 8px;
        background: #FFFFFF;
        border-color: rgba(8,42,77,0.12);
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .lead-service-body .service-nav.is-menu-open .service-nav-links {
        display: grid;
    }

    .lead-service-body .service-nav-links a {
        width: 100%;
        padding: 12px 14px;
        text-align: left;
    }

    .lead-service-body .service-shell,
    .lead-service-body .landing-shell,
    .lead-service-body .worker-shell {
        padding-top: 96px;
    }

    .landing-hero,
    .worker-hero {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 520px) {
    body.lead-service-body {
        scroll-padding-top: 92px;
    }

    .lead-service-body [id] {
        scroll-margin-top: 92px;
    }

    .lead-service-body .service-nav {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 14px;
    }

    .lead-service-body .service-brand-logo-full {
        height: 48px;
        max-width: 68vw;
    }

    .service-menu-toggle {
        width: 42px;
        height: 40px;
    }

    .lead-service-body .service-shell,
    .lead-service-body .landing-shell,
    .lead-service-body .worker-shell {
        padding-top: 86px;
    }
}

@media (max-width: 560px) {
    .landing-brand-showcase {
        margin-bottom: 14px;
    }

    .landing-brand-showcase img {
        max-height: 170px;
    }

    .lead-service-body .service-brand-logo-full {
        height: 54px;
        max-width: 86vw;
    }
}

/* Crewviax brand colors from final logo */
.lead-service-body {
    --service-ink: #082A4D;
    --service-muted: #5D6A7A;
    --service-line: #D9E2EC;
    --service-bg: #F7FAFD;
    --service-panel: #FFFFFF;
    --service-navy: #082A4D;
    --service-teal: #FF6A00;
    --service-lime: #FFB16A;
    --service-red: #C2410C;
}

.lead-service-body .service-shell,
.lead-service-body .landing-shell,
.lead-service-body .worker-shell {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,247,237,0.92) 58%, rgba(8,42,77,0.10) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
}

.lead-service-body .service-nav-links {
    background: rgba(255,255,255,0.86);
    border-color: rgba(8,42,77,0.12);
}

.lead-service-body .service-nav-links a {
    color: #082A4D;
}

.lead-service-body .service-nav-links a:hover {
    background: #FFF1E7;
    color: #FF6A00;
}

.lead-service-body .landing-status,
.lead-service-body .service-pill {
    background: #FFF1E7;
    border-color: #FED7AA;
    color: #C2410C;
}

.lead-service-body .landing-status span {
    background: #FF6A00;
}

.lead-service-body .service-btn-primary {
    background: #FF6A00;
    border-color: #FF6A00;
    color: #FFFFFF;
    box-shadow: 0 14px 26px rgba(255,106,0,0.22);
}

.lead-service-body .service-btn-primary:hover {
    background: #E85D00;
    border-color: #E85D00;
}

.lead-service-body .service-btn-secondary {
    background: #FFFFFF;
    color: #082A4D;
    border-color: rgba(8,42,77,0.18);
}

.lead-service-body .service-btn-secondary:hover {
    background: #FFF7ED;
    border-color: #FF6A00;
    color: #C2410C;
}

.lead-service-body .landing-service-icon,
.lead-service-body .landing-service-strip .landing-service-icon,
.lead-service-body .landing-catalog-grid .landing-service-icon {
    background: #FFF1E7;
    border-color: #FDBA74;
    color: #FF6A00;
}

.lead-service-body .landing-metrics strong,
.lead-service-body .landing-proof-card strong,
.lead-service-body .landing-process-card strong,
.lead-service-body .landing-catalog-grid strong,
.lead-service-body .landing-service-strip strong {
    color: #082A4D;
}

.lead-service-body .landing-hero h1,
.lead-service-body .landing-section-head h2,
.lead-service-body .landing-owner-band h2 {
    color: #082A4D;
}

/* Crewviax contractor signup page */
.lead-service-body .worker-shell {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,247,237,0.94) 58%, rgba(8,42,77,0.34) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
}

.lead-service-body .worker-hero h1 {
    color: #082A4D;
}

.lead-service-body .landing-eyebrow,
.lead-service-body .service-form-header span,
.lead-service-body .worker-checkboxes legend {
    color: #FF6A00;
}

.lead-service-body .landing-form-panel {
    border-color: rgba(8,42,77,0.16);
    box-shadow: 0 24px 60px rgba(8,42,77,0.12);
}

.lead-service-body .worker-checkboxes,
.lead-service-body .worker-required-check {
    background: #FFF7ED;
    border-color: #FED7AA;
}

.lead-service-body .landing-metrics div {
    border-color: rgba(8,42,77,0.14);
}

.lead-service-body .landing-metrics div:hover,
.lead-service-body .worker-checkboxes:hover,
.lead-service-body .worker-required-check:hover {
    border-color: #FDBA74;
}

/* Crewviax auth/register pages */
.lead-service-body .customer-auth-page {
    background:
        radial-gradient(circle at 20% 30%, rgba(255,106,0,0.10), transparent 32%),
        linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,247,237,0.92)),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center / cover no-repeat;
}

.lead-service-body .customer-auth-card {
    border-color: rgba(8,42,77,0.14);
    box-shadow: 0 24px 80px rgba(8,42,77,0.14);
}

.lead-service-body .customer-auth-card .service-brand {
    margin-bottom: 10px;
}

.lead-service-body .customer-auth-card .service-brand-logo-full {
    height: 66px;
    max-width: 280px;
}

.lead-service-body .customer-auth-card h1 {
    color: #082A4D;
}

.lead-service-body .customer-auth-card .landing-form-note a {
    color: #FF6A00;
    font-weight: 800;
}

/* Crewviax ranking page */
.lead-service-body .service-nav-links a.is-active {
    background: #FF6A00;
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(255,106,0,0.20);
}

.lead-service-body .ranking-page-shell {
    background:
        radial-gradient(circle at 78% 18%, rgba(255,106,0,0.12), transparent 28%),
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,247,237,0.92) 58%, rgba(8,42,77,0.14) 100%),
        url('/static/images/bus-sys-crm-background-clean-3840x2160.png') center right / cover no-repeat;
}

.lead-service-body .ranking-page-hero {
    border-color: rgba(8,42,77,0.14);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF7ED 100%);
    box-shadow: 0 24px 60px rgba(8,42,77,0.12);
}

.lead-service-body .ranking-page-hero h1,
.lead-service-body .landing-ranking-head strong,
.lead-service-body .landing-ranking-list strong {
    color: #082A4D;
}

.lead-service-body .ranking-page-hero .landing-eyebrow,
.lead-service-body .landing-ranking-head > span {
    color: #FF6A00;
}

.lead-service-body .landing-ranking-card {
    border-color: rgba(8,42,77,0.14);
    box-shadow: 0 18px 40px rgba(8,42,77,0.08);
}

.lead-service-body .landing-ranking-head > span {
    background: #FFF1E7;
    border-color: #FDBA74;
}

.lead-service-body .landing-rank-number {
    background: #082A4D;
    color: #FFFFFF;
}

.lead-service-body .landing-ranking-list li {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

.lead-service-body .service-footer strong {
    color: #082A4D;
}

/* Keep Crewviax header visible while navigating sections */
body.lead-service-body {
    scroll-padding-top: 120px;
}

.lead-service-body [id] {
    scroll-margin-top: 120px;
}

.lead-service-body .service-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(1220px, calc(100% - 32px));
    min-height: 76px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(8,42,77,0.12);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(8,42,77,0.14);
    backdrop-filter: blur(14px);
}

.lead-service-body .service-shell,
.lead-service-body .landing-shell,
.lead-service-body .worker-shell {
    padding-top: 112px;
}

.lead-service-body .service-nav .service-nav-links {
    box-shadow: none;
}

@media (max-width: 980px) {
    body.lead-service-body {
        scroll-padding-top: 170px;
    }

    .lead-service-body [id] {
        scroll-margin-top: 170px;
    }

    .lead-service-body .service-nav {
        top: 10px;
        width: calc(100% - 20px);
        align-items: flex-start;
        gap: 10px;
    }

    .lead-service-body .service-shell,
    .lead-service-body .landing-shell,
    .lead-service-body .worker-shell {
        padding-top: 164px;
    }
}

/* Mobile repair: keep the Crewviax landing hero from overlapping the portal card. */
@media (max-width: 860px) {
    html,
    body.lead-service-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .lead-service-body .service-nav {
        max-height: calc(100vh - 18px);
        overflow-y: auto;
    }

    .lead-service-body .service-shell,
    .lead-service-body .landing-shell,
    .lead-service-body .worker-shell,
    .lead-service-body .ranking-page-shell {
        padding-top: 96px;
    }

    .lead-service-body .landing-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
        gap: 18px;
        padding: 18px 16px 42px !important;
        overflow: hidden;
    }

    .lead-service-body .landing-hero-copy,
    .lead-service-body .landing-form-panel {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .lead-service-body .landing-brand-showcase {
        width: 100%;
        max-width: 360px;
        margin-bottom: 12px;
    }

    .lead-service-body .landing-brand-showcase img {
        width: 100%;
        max-height: 150px;
        object-fit: contain;
        object-position: left center;
    }

    .lead-service-body .landing-status {
        width: 100%;
        max-width: 100%;
    }

    .lead-service-body .landing-hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 11vw, 48px) !important;
        line-height: 1.04;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }

    .lead-service-body .landing-hero p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    .lead-service-body .landing-form-panel {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .lead-service-body .portal-preview-list,
    .lead-service-body .landing-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-service-body .landing-actions {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .lead-service-body .service-shell,
    .lead-service-body .landing-shell,
    .lead-service-body .worker-shell,
    .lead-service-body .ranking-page-shell {
        padding-top: 84px;
    }

    .lead-service-body .landing-hero {
        padding: 14px 14px 34px !important;
    }

    .lead-service-body .landing-hero h1 {
        font-size: clamp(32px, 10.5vw, 40px) !important;
    }

    .lead-service-body .landing-brand-showcase img {
        max-height: 120px;
    }

    .lead-service-body .landing-actions {
        flex-direction: column;
    }

    .lead-service-body .service-btn {
        width: 100%;
        justify-content: center;
    }
}
