:root {
    --green: #3cb54a;
    --green-dark: #2e9a3b;
    --orange: #ff8a00;
    --orange-dark: #e67a00;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f8fa;
    --white: #fff;
    --admin: #1e293b;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar-bar { background: #0b1220; color: #94a3b8; }
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 8px 0; font-size: 13px; border-bottom: 0;
}
.topbar a:hover { color: #fff; }
.topbar .btn-login {
    padding: 6px 16px; font-size: 13px; box-shadow: 0 6px 16px rgba(46,154,59,.28);
    background: linear-gradient(180deg, #3cb54a, #2e9a3b); color: #fff; border-radius: 999px; font-weight: 800;
}
.topbar form { margin: 0; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
    width: 28px; height: 28px; border-radius: 8px; color: #cbd5e1;
    display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12);
}
.topbar-social a:hover { color: #fff; background: #16a34a; border-color: #16a34a; }
.topbar-social .ui-icon { width: 14px; height: 14px; }
.btn-auth-signup {
    color: #fff; font-weight: 800; padding: 6px 4px; letter-spacing: .01em;
}
.btn-auth-signup:hover { color: #86efac; }
.header {
    display: flex; align-items: center; gap: 16px; padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--green);
    color: #fff; display: grid; place-items: center; font-weight: 800;
}
.search {
    flex: 1; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.search input { border: 0; padding: 12px 16px; flex: 1; outline: none; font: inherit; }
.search button, .btn {
    border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 18px; border-radius: 10px; gap: 8px;
}
.btn-dark { background: #111827; color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline-green {
    background: #fff; color: #166534; border: 1.5px solid #22c55e; font-weight: 800;
    box-shadow: 0 6px 16px rgba(34,197,94,.12);
}
.btn-outline-green:hover { background: #f0fdf4; }
.btn-login-head {
    background: linear-gradient(180deg, #3cb54a, #2e9a3b); color: #fff;
    box-shadow: 0 6px 16px rgba(46,154,59,.25); font-weight: 800;
}
.btn-account {
    background: #0b1220; color: #fff; font-weight: 800;
    box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.btn-account .ui-icon { width: 16px; height: 16px; }
.btn:hover { filter: brightness(0.96); }
.nav { background: var(--green); }
.nav .wrap { display: flex; gap: 4px; overflow: auto; }
.nav a {
    color: #fff; padding: 13px 11px; font-weight: 600; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover, .nav a.active { background: var(--green-dark); }
.nav svg, .nav .ui-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }
.icon svg, .icon .ui-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 12px; }
.prose h2 { margin: 28px 0 8px; font-size: 20px; }
.prose p, .prose .rich-content, .prose .rich-content p, .prose .rich-content li { color: var(--muted); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; }
.hero {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .55)),
        #123;
    color: #fff; padding: 64px 0 56px; text-align: center;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; line-height: 1.15; }
.hero h1 span { color: var(--orange); }
.hero p, .hero .rich-content { margin: 0 0 24px; color: #e5e7eb; }
.hero .rich-content p { margin: 0 0 8px; color: inherit; }
.hero .rich-content a { color: #86efac; }
.hero-card {
    background: #fff; color: var(--ink); border-radius: 16px; padding: 12px;
    display: flex; gap: 8px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.hero-card input, .hero-card select {
    flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; font: inherit;
}
.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; font-size: 28px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
}
.card.selected, .choice.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60,181,74,.15); }
.choice { cursor: pointer; text-align: center; }
.choice input { display: none; }
.choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60,181,74,.15); }
.stack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quote-price { font-size: 28px; color: var(--green); font-weight: 800; }
.table-wrap { overflow: auto; }
.pager { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.pager a { color: var(--green); font-weight: 700; }
.side .muted { color: #94a3b8; padding: 0 20px 12px; font-size: 13px; }
.icon { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; background: #ecf8ee; color: var(--green); display: grid; place-items: center; font-weight: 800; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.req-card h3 { margin: 0 0 8px; font-size: 16px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-orange { background: #fff4e5; color: var(--orange-dark); }
.badge-green { background: #ecf8ee; color: var(--green-dark); }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.plan-features { margin: 12px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { padding-left: 18px; position: relative; font-size: 14px; color: #334155; line-height: 1.4; }
.plan-features li:before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--green); }
.footer { background: #111827; color: #d1d5db; padding: 36px 0; }
.footer a:hover { color: #fff; }
.footer-grid {
    display: grid; grid-template-columns: 1.15fr .9fr 1.15fr .95fr; gap: 28px 32px;
}
.footer-col strong { display: block; color: #fff; margin: 0 0 12px; }
.footer-col p { margin: 0; color: #94a3b8; }
.footer-col a { display: block; margin: 0 0 8px; color: #cbd5e1; }
.footer-contact { margin-top: 12px; color: #94a3b8; line-height: 1.6; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
    width: 100%; min-width: 0; max-width: 100%;
    border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 10px;
    cursor: pointer; background: #fff;
}
.pills input {
    appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
    flex: 0 0 18px; border: 2px solid #cbd5e1; border-radius: 5px; background: #fff;
    display: grid; place-content: center;
}
.pills input:checked { background: var(--green); border-color: var(--green); }
.pills input:checked::after {
    content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}
.pills label:has(input:checked) { background: #ecf8ee; border-color: var(--green); color: var(--green-dark); font-weight: 700; }
.steps { display: flex; gap: 8px; justify-content: center; margin: 0 0 28px; flex-wrap: wrap; }
.steps span { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: #f3f4f6; }
.steps span.on { background: var(--green); color: #fff; }
.alert { background: #ecf8ee; color: var(--green-dark); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.errors { color: #b91c1c; font-size: 13px; }
.page { background: var(--bg); min-height: 70vh; padding: 32px 0 56px; }
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.pipeline li { list-style: none; font-size: 13px; padding: 8px 10px; border-radius: 999px; background: #f3f4f6; color: var(--muted); }
.pipeline li.done { background: #ecf8ee; color: var(--green-dark); }
.pipeline li.current { background: var(--green); color: #fff; }
.admin-shell, .panel-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--admin); color: #cbd5e1; padding: 20px 0; }
.side a { display: block; padding: 10px 20px; }
.side a:hover, .side a.active { background: #334155; color: #fff; border-left: 3px solid var(--green); }
.side .brand { color: #fff; font-weight: 800; padding: 0 20px 20px; font-size: 18px; }
.side .brand span { color: var(--green); }
.admin-body { display: flex; flex-direction: column; min-width: 0; }
.admin-top {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: #fff; padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.admin-search { display: flex; flex: 1; max-width: 520px; gap: 8px; }
.admin-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.admin-user { text-align: right; }
.admin-user strong { display: block; }
.main { background: var(--bg); padding: 24px; flex: 1; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; margin-top: 4px; }
.admin-grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.bar-chart { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; align-items: center; font-size: 13px; }
.bar-row .bar { display: block; height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.match-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-body h1 { margin: 0 0 8px; }
.stack select, .stack input, .credits-form input, .credits-form select {
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit;
}
.site-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span { font-size: 11px; font-weight: 600; color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-links { display: flex; align-items: center; gap: 12px; }
.company-logo-card {
    display: flex; flex-direction: column; gap: 10px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); min-height: 220px;
}
.company-logo-card img {
    width: 112px; height: 112px; object-fit: contain; background: #f8fafc;
    border: 1px solid var(--line); border-radius: 18px; padding: 10px;
}
.company-logo-card strong { font-size: 16px; }
.logo-carousel { position: relative; margin-top: 20px; }
.logo-carousel-track {
    display: flex; gap: 16px; overflow: hidden; scroll-behavior: smooth;
}
.logo-carousel-track .company-logo-card {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
}
.logo-carousel-btn {
    position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px;
    transform: translateY(-50%); border: 0; border-radius: 999px;
    background: #334155; color: #fff; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15, 23, 42, .2);
}
.logo-carousel-btn.prev { left: -16px; }
.logo-carousel-btn.next { right: -16px; }
.logo-carousel-btn[hidden] { display: none; }
.logo-carousel-btn .ui-icon { width: 18px; height: 18px; }
.auth-hero {
    background: linear-gradient(180deg, #f4fbf6 0%, #fff 48%, #fff);
    padding: 48px 0 72px; min-height: 70vh;
}
.auth-layout {
    display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 36px; align-items: center;
}
.auth-layout.wide { grid-template-columns: .9fr minmax(360px, 640px); align-items: start; }
.auth-kicker {
    display: inline-block; background: #ecfdf3; color: #166534; font-weight: 800;
    font-size: 12px; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.auth-copy h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.auth-copy p { color: var(--muted); font-size: 16px; }
.auth-card {
    background: #fff; border: 1px solid #e8edf3; border-radius: 22px; padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}
.auth-card h2 { margin: 0 0 6px; }
.auth-card a { color: var(--green); font-weight: 700; }
.auth-submit { width: 100%; border-radius: 12px; padding: 13px 18px; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.firm-join { padding: 28px 0 72px; background: linear-gradient(180deg, #f4fbf6 0%, #eef2f7 42%, #eef2f7 100%); }
.firm-join-hero {
    display: grid; grid-template-columns: 1.15fr auto; gap: 28px; align-items: center;
    background: linear-gradient(135deg, #f7fff9 0%, #fff 46%, #f5f7fb 100%);
    border: 1px solid #e8edf3; border-radius: 22px; padding: 28px 30px 28px 32px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06); position: relative; overflow: hidden;
}
.firm-join-hero:before {
    content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
    border-radius: 99px; background: linear-gradient(#4ade80, #16a34a);
}
.firm-join-kicker {
    margin: 0 0 8px; color: #16a34a; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.firm-join-hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.firm-join-hero p { margin: 8px 0 0; color: #64748b; max-width: 560px; }
.firm-join-steps { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 10px; }
.firm-join-steps div {
    background: rgba(255,255,255,.9); border: 1px solid #e8edf3; border-radius: 16px;
    padding: 12px 14px; min-width: 140px;
}
.firm-join-steps span {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    background: #ecfdf3; color: #166534; font-weight: 800; font-size: 13px; margin-bottom: 8px;
}
.firm-join-steps strong { display: block; font-size: 14px; }
.firm-join-steps small { display: block; color: #64748b; margin-top: 2px; font-size: 12px; }
.firm-join-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.firm-join-card {
    background: linear-gradient(180deg, #fff, #fbfcfe); border: 1px solid #e8edf3;
    border-radius: 18px; padding: 0 18px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.firm-join-card h2 {
    margin: 0 -18px 8px; padding: 13px 18px;
    background: linear-gradient(180deg, #1e293b, #0f172a); color: #fff;
    border-radius: 18px 18px 0 0; font-size: 15px;
}
.firm-join-card > .muted { margin: 0 0 16px; }
.firm-join-card .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.firm-join-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8edf3; border-radius: 18px; padding: 14px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.firm-join-foot p { margin: 0; color: #64748b; }
.firm-join-foot a { color: var(--green); font-weight: 700; }
.firm-join-foot .btn { min-width: 220px; }
.vitrin-band { background: #0b1220; color: #fff; }
.vitrin-band .muted { color: #94a3b8; }
.vitrin-band h2 { color: #fff; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.req-visual {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.req-visual:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.1); }
.req-visual-photo {
    height: 150px; background: #dbe7e0 center/cover no-repeat; position: relative;
}
.req-visual-photo .badge { position: absolute; left: 10px; top: 10px; }
.req-visual-body { padding: 14px 16px 16px; }
.req-visual-body h3 { margin: 0 0 4px; font-size: 16px; }
.req-visual-body p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.req-visual-meta { color: var(--green); font-size: 13px; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) 340px; gap: 20px; }
.listing-hero {
    min-height: 280px; border-radius: 18px; background: #123 center/cover no-repeat;
    position: relative; overflow: hidden;
}
.listing-hero-inner {
    position: absolute; inset: auto 0 0; padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
}
.listing-hero-inner h1 { margin: 8px 0 4px; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-row img { height: 100px; width: 100%; object-fit: cover; border-radius: 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.meta-grid span { display: block; color: var(--muted); font-size: 12px; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-list span { color: var(--muted); }
.contact-map {
    margin: 16px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef4;
    aspect-ratio: 16 / 9;
    min-height: 280px;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}
.contact-map.firm-map { min-height: 200px; aspect-ratio: 4 / 3; margin-top: 14px; }
.contact-map.firm-map iframe { min-height: 200px; }
.meta-grid strong.is-empty { color: #94a3b8; font-weight: 600; }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.region-chips span {
    background: #f3f4f6; color: #334155; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px;
}
.region-chips .is-empty { background: transparent; color: #94a3b8; }
.region-grid {
    max-height: 240px; overflow: auto;
    border: 1px solid var(--line); border-radius: 12px; padding: 10px;
    background: #f8fafc;
}
.field input.is-editable, .field textarea.is-editable { background: #f3f4f6; }
.work-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px;
}
.work-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; background: #e2e8f0; }
.work-photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.work-photo-edit-item { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #475569; }
.work-photo-edit-item img { width: 100%; height: 88px; object-fit: cover; border-radius: 10px; }
.premium-box {
    border: 1px solid #a7f3d0; background: #f0fdf4; border-radius: 16px; padding: 16px;
}
.premium-box-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.premium-box-head strong { color: #047857; }
.premium-box-head span { color: #64748b; font-size: 13px; }
.premium-box.is-locked { background: #f8fafc; border-color: #e2e8f0; }
.blink-cta {
    animation: blink-cta 1.15s ease-in-out infinite;
    background: #fff4e5; color: #c2410c; font-weight: 800; font-size: 14px;
    padding: 12px 14px; border-radius: 10px; border: 2px solid #ff8a00; margin-bottom: 12px;
}
@keyframes blink-cta {
    0%, 100% { opacity: 1; }
    50% { opacity: .28; }
}
.vitrin-cover {
    min-height: 240px; border-radius: 18px; background: #1f3d32 center/cover no-repeat;
    position: relative;
}
.vitrin-logo {
    position: absolute; left: 20px; bottom: -28px; width: 88px; height: 88px;
    border-radius: 16px; background: #fff; object-fit: contain; padding: 8px;
    box-shadow: var(--shadow);
}
.vitrin-verified {
    position: absolute; right: 16px; bottom: 16px; background: #ecf8ee; color: var(--green-dark);
    font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 10px;
}
.account-overlay {
    position: fixed; inset: 0; background: rgba(11,18,32,.55); z-index: 80;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.account-overlay.is-open, body.account-open .account-overlay { display: flex; }
body.account-open { overflow: hidden; }
.account-modal {
    width: min(980px, 100%); max-height: min(86vh, 760px); background: #fff;
    border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 250px 1fr;
    box-shadow: 0 30px 80px rgba(15,23,42,.28);
}
.account-side {
    background: #0b1220; color: #cbd5e1; padding: 22px 16px; display: flex; flex-direction: column; gap: 16px;
}
.account-side-brand { display: flex; gap: 10px; align-items: center; color: #fff; }
.account-avatar {
    width: 42px; height: 42px; border-radius: 12px; background: #22c55e; color: #fff;
    display: grid; place-items: center; font-weight: 800;
}
.account-side-brand small { display: block; color: #86efac; font-size: 12px; }
.account-tabs { display: flex; flex-direction: column; gap: 4px; }
.account-tabs button {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    background: transparent; border: 0; color: #cbd5e1; font: inherit; font-weight: 700;
    padding: 10px 12px; border-radius: 12px; cursor: pointer;
}
.account-tabs button.on, .account-tabs button:hover { background: #22c55e; color: #fff; }
.account-tabs .ui-icon { width: 16px; height: 16px; }
.account-side-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.account-side-actions .btn { width: 100%; }
.account-main { padding: 22px 24px 24px; overflow: auto; background: linear-gradient(#f8fafc, #fff 40%); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.account-kicker {
    margin: 0 0 4px; font-size: 12px; font-weight: 800; color: #16a34a; letter-spacing: .04em; text-transform: uppercase;
}
.account-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.account-close {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    display: grid; place-items: center;
}
.account-pane { display: none; }
.account-pane.on { display: block; }
.account-pane-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.account-pane-title h3 { margin: 0; }
.account-pane-title a { color: var(--green); font-weight: 700; font-size: 13px; }
.account-list { display: flex; flex-direction: column; gap: 8px; }
.account-item {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.account-item small, .account-item em { display: block; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.account-item:hover { border-color: #86efac; }
.auth-overlay {
    position: fixed; inset: 0; background: rgba(11,18,32,.58); z-index: 90;
    display: none; align-items: center; justify-content: center; padding: 18px;
}
.auth-overlay.is-open, body.auth-open .auth-overlay { display: flex; }
body.auth-open { overflow: hidden; }
.auth-popup {
    position: relative; width: min(440px, 100%); max-width: 100%; max-height: min(92vh, 860px);
    background: #fff; border-radius: 24px; overflow-x: hidden; overflow-y: auto;
    box-shadow: 0 32px 80px rgba(15,23,42,.32);
}
.auth-overlay[data-tab="company"] .auth-popup { width: min(640px, 100%); }
.auth-overlay[data-tab="company"] .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-popup-pane .form-grid .field { margin-top: 0; }
.auth-popup-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; display: grid; place-items: center;
}
.auth-popup-pane { display: none; padding: 28px 26px 26px; }
.auth-popup-pane.on { display: block; }
.auth-popup-pane h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-popup-pane .field { margin-top: 12px; }
.auth-popup-pane .auth-submit { margin-top: 16px; width: 100%; }
.auth-popup-pane .muted { margin: 0 0 4px; }
.auth-check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.auth-popup-note { margin-top: 14px; }
.auth-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.auth-alt .btn { width: 100%; }
.text-link {
    border: 0; background: none; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; padding: 0;
}
.menu-toggle { display: none; }
.errors { color: #b91c1c; font-size: 13px; margin: 8px 0 0; }
ul.errors { padding-left: 18px; }
@media (max-width: 900px) {
    .wrap { width: min(1160px, calc(100% - 20px)); }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .header { flex-wrap: wrap; gap: 10px; }
    .search { order: 3; width: 100%; flex: 1 1 100%; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-outline-green,
    .header-actions .btn-orange { display: none; }
    body.menu-open .header-actions .btn-outline-green,
    body.menu-open .header-actions .btn-orange { display: inline-flex; width: 100%; }
    body.menu-open .header-actions { width: 100%; }
    .menu-toggle {
        display: grid; place-items: center; width: 42px; height: 42px;
        border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
    }
    .hero { padding: 36px 0 32px; }
    .hero-card { flex-direction: column; }
    .hero-card input, .hero-card select, .hero-card .btn { width: 100%; min-width: 0; }
    .section { padding: 32px 0; }
    .form-grid, .admin-grid-2, .listing-layout, .auth-layout, .auth-layout.wide, .account-modal, .firm-join-hero, .firm-join-card .form-grid { grid-template-columns: 1fr; }
    .firm-join-steps { grid-template-columns: 1fr; }
    .cards-5, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-carousel-track .company-logo-card { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
    .auth-overlay { align-items: flex-end; padding: 0; }
    .auth-popup, .auth-overlay[data-tab="company"] .auth-popup {
        width: 100%; border-radius: 20px 20px 0 0; max-height: 94vh;
    }
    .auth-overlay[data-tab="company"] .form-grid { grid-template-columns: 1fr; }
    .account-overlay { align-items: flex-end; padding: 0; }
    .account-modal {
        width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0;
        grid-template-columns: 1fr;
    }
    .account-side { flex-direction: row; overflow: auto; gap: 10px; padding: 14px; }
    .account-tabs { flex-direction: row; overflow: auto; }
    .account-tabs button { white-space: nowrap; }
    .account-side-actions { margin: 0; min-width: 180px; }
    .auth-alt { grid-template-columns: 1fr; }
    input, select, textarea, .btn { font-size: 16px; }
}
@media (max-width: 560px) {
    .cards-5, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
    .topbar-social { display: none; }
    .header-actions .btn { font-size: 13px; padding: 10px 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo-carousel-track .company-logo-card { flex-basis: 100%; max-width: 100%; }
    .logo-carousel-btn.prev { left: 6px; }
    .logo-carousel-btn.next { right: 6px; }
}
.brand-logo-img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.footer a { color: #cbd5e1; }
.wide-form, .settings-form, .req-form { width: 100%; max-width: none; }
.wide-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file-drop {
    position: relative; min-height: 132px; border: 1.5px dashed #cbd5e1;
    border-radius: 16px; background: #f8fafc; overflow: hidden;
    display: flex; flex-direction: column;
}
.file-drop.is-drag { border-color: #16a34a; background: #f0fdf4; }
.file-drop-input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
}
.field input.file-drop-input {
    border: 0; padding: 0; border-radius: 0; background: transparent; min-height: 100%;
}
.file-drop-preview { display: none; }
.file-drop.has-file .file-drop-preview {
    display: grid; grid-template-columns: 1fr; flex: 1; min-height: 148px;
    background: #0f172a;
}
.file-drop.is-multi.has-file .file-drop-preview {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 10px;
    background: #f8fafc;
}
.file-drop-preview img, .file-drop-preview video {
    width: 100%; height: 148px; object-fit: cover; display: block; background: #0f172a;
}
.file-drop.is-multi.has-file .file-drop-preview img,
.file-drop.is-multi.has-file .file-drop-preview video { height: 110px; border-radius: 10px; }
.file-drop[data-fit="contain"].has-file .file-drop-preview img {
    object-fit: contain; background: #fff; padding: 10px;
}
.file-drop-logo { min-height: 200px; }
.file-drop-logo.has-file .file-drop-preview img { height: 200px; }
.file-drop-banner { min-height: 200px; }
.file-drop-banner.has-file .file-drop-preview img { height: 200px; }
.file-drop-file {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-height: 148px; padding: 16px; background: #fff; color: #0f172a; text-align: center;
}
.file-drop-file b {
    background: #dc2626; color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 11px; letter-spacing: .04em;
}
.file-drop-file span { font-weight: 700; font-size: 13px; word-break: break-all; }
.file-drop-ui {
    padding: 18px 16px; display: flex; flex-direction: column; gap: 4px;
    pointer-events: none; min-height: 132px; justify-content: center; z-index: 1;
}
.file-drop.has-file .file-drop-ui {
    position: absolute; left: 0; right: 0; bottom: 0; min-height: 0;
    padding: 36px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .82));
}
.file-drop-ui strong { font-size: 14px; }
.file-drop-ui span, .file-drop-names { color: #64748b; font-size: 13px; }
.file-drop.has-file .file-drop-ui strong { color: #fff; }
.file-drop.has-file .file-drop-ui span,
.file-drop.has-file .file-drop-names { color: #e2e8f0; }
.media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.media-row img, .media-row video {
    width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: #0f172a;
}
.media-file {
    display: flex; align-items: center; justify-content: center; min-height: 110px;
    padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
    font-weight: 700; text-align: center; font-size: 13px;
}
@media (max-width: 1200px) {
    .wide-form .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .wide-form .form-grid { grid-template-columns: 1fr; }
}

