/* Route OS interface */
:root {
    --bg-main: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f2f5f9;
    --surface-strong: #0f172a;
    --primary: #2457d6;
    --primary-dark: #183b91;
    --accent: #0f9f7a;
    --warning: #b7791f;
    --danger: #dc2626;
    --text-main: #101828;
    --text-muted: #667085;
    --border: #d9e0ea;
    --border-strong: #c5cfdd;
    --radius-sm: 6px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 40px rgba(16, 24, 40, 0.1);
    --shadow-lg: 0 28px 70px rgba(16, 24, 40, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

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

body {
    min-height: 100vh;
    font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

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

button {
    cursor: pointer;
}

a {
    color: inherit;
}

body:not(.auth-body):not(.lp-body) {
    overflow-x: hidden;
}

.dash-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 30px rgba(16, 24, 40, 0.03);
    transition: transform 0.22s ease;
    z-index: 1000;
}

.sidebar-top {
    display: grid;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-weight: 900;
    font-size: 1.18rem;
    letter-spacing: 0.12em;
    color: var(--primary);
}

.user-profile-sm {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.avatar-circle,
.eng-avatar-lg,
.kpi-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dce8ff;
    color: var(--primary);
}

.user-info {
    min-width: 0;
}

.user-info strong,
.user-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info strong {
    font-size: 0.95rem;
}

.user-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.side-nav,
.sidebar-footer {
    display: grid;
    gap: 6px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: #e9f0ff;
    color: var(--primary);
}

.nav-item:hover {
    transform: translateX(2px);
}

.sign-out {
    width: 100%;
}

.nav-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
}

.nav-item.active .nav-dot,
.nav-item:hover .nav-dot {
    background: #fff;
}

.main-content {
    min-width: 0;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 14px clamp(18px, 3vw, 36px);
    background: rgba(246, 247, 251, 0.86);
    border-bottom: 1px solid rgba(217, 224, 234, 0.82);
    backdrop-filter: blur(16px);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: var(--text-main);
}

.mobile-menu-toggle.hidden,
.mobile-backdrop.hidden,
.hidden {
    display: none !important;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.44);
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 380px;
    min-width: 180px;
    max-width: 680px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.search-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 0.92rem;
}

.search-hidden {
    display: none !important;
}

.search-empty-state {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 220px;
    margin-top: 18px;
    padding: 28px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-muted);
    text-align: center;
}

.search-empty-state h2 {
    color: var(--text-main);
    font-size: 1.08rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

.top-actions > * {
    flex: 0 0 auto;
}

.content-body {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px);
}

.page-header,
.talent-header,
.section-heading,
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.page-header {
    margin-bottom: 24px;
}

.role-hero {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(242,245,249,0.88)),
        radial-gradient(circle at top right, rgba(36,87,214,0.12), transparent 34%);
    box-shadow: var(--shadow-sm);
}

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

.status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -8px 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.section-kicker,
.hero-text .status-badge,
.highlight-label,
.form-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: #e9f0ff;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-header h1 {
    margin-top: 8px;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-header p,
.section-heading p,
.panel-header p {
    max-width: 640px;
    margin-top: 6px;
    color: var(--text-muted);
}

.btn-create,
.btn-secondary,
.btn-text,
.btn-view-profile,
.btn-workspace,
.btn-add-cart,
.btn-deposit,
.btn-edit,
.btn-add-method,
.btn-toggle,
.btn-cancel,
.btn-confirm,
.btn-primary,
.btn-primary-lg,
.btn-outline-lg,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-create,
.btn-view-profile,
.btn-workspace,
.btn-add-cart,
.btn-confirm,
.btn-primary,
.btn-primary-lg {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(36, 87, 214, 0.16);
}

.btn-create {
    padding: 0 18px;
    white-space: nowrap;
}

.btn-secondary,
.btn-outline-lg,
.btn-cancel,
.btn-toggle,
.btn-edit,
.btn-add-method {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}

.btn-secondary {
    padding: 0 16px;
}

.btn-text {
    min-height: auto;
    padding: 0;
    color: var(--primary);
    background: transparent;
}

.btn-create:hover,
.btn-view-profile:hover,
.btn-workspace:hover,
.btn-add-cart:hover,
.btn-confirm:hover,
.btn-primary:hover,
.btn-primary-lg:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary:hover,
.btn-outline-lg:hover,
.btn-cancel:hover,
.btn-toggle:hover,
.btn-edit:hover,
.btn-add-method:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi-card,
.eng-card,
.panel,
.workspace-card,
.marketplace-card,
.payment-section,
.highlight-card,
.trust-stat,
.auth-card,
.hero-card-float {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.kpi-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.kpi-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.75rem;
}

.kpi-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kpi-value {
    margin: 7px 0 4px;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 850;
    letter-spacing: 0;
}

.kpi-trend {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.kpi-trend.positive,
.match-indicator {
    color: var(--accent);
}

.overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin-bottom: 30px;
}

.panel {
    padding: 22px;
}

.panel-header h2,
.section-heading h2,
.payment-section h2 {
    font-size: 1.1rem;
    line-height: 1.25;
}

.production-list,
.readiness-bars,
.payment-methods {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.request-list,
.profile-summary-list,
.check-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.request-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.request-card h3 {
    margin-top: 10px;
    font-size: 1.02rem;
}

.request-card p {
    margin-top: 4px;
    color: var(--text-muted);
}

.request-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 280px;
}

.event-meta-stack {
    display: grid;
    justify-items: end;
    gap: 6px;
    white-space: nowrap;
}

.compact-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.compact-profile h3,
.compact-profile p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-profile h3 {
    font-size: 0.96rem;
}

.compact-profile p {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pipeline-column {
    min-width: 150px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.pipeline-column h3 {
    margin-bottom: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pipeline-card {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.profile-panel {
    display: grid;
    gap: 18px;
}

.profile-cover {
    display: flex;
    align-items: center;
    gap: 18px;
}

.eng-avatar-xl {
    display: grid;
    place-items: center;
    width: clamp(82px, 14vw, 128px);
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--surface-strong), var(--primary));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portfolio-grid div {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-weight: 850;
}

.check-list span {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 750;
}

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

.flow-steps div {
    display: grid;
    gap: 10px;
    min-height: 126px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.flow-steps strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

.flow-steps span {
    color: var(--text-muted);
    font-weight: 750;
}

.production-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.production-row h3 {
    font-size: 0.98rem;
}

.production-row p {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.status-pill,
.verified-badge,
.transaction-row .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 850;
    white-space: nowrap;
}

.status-pill.green,
.transaction-row .status.completed {
    background: #e6f6ef;
    color: #067647;
}

.status-pill.amber {
    background: #fff4dc;
    color: var(--warning);
}

.status-pill.blue,
.verified-badge {
    background: #e9f0ff;
    color: var(--primary);
}

.company-badge {
    background: #e6f6ef;
    color: #067647;
}

.bar-row {
    display: grid;
    grid-template-columns: 74px minmax(80px, 1fr) 44px;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
}

.bar-row strong {
    text-align: right;
}

.bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebf2;
}

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

.section-heading {
    margin: 8px 0 16px;
}

.engineer-grid,
.workspace-grid,
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.eng-card,
.workspace-card,
.marketplace-card {
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.eng-card:hover,
.workspace-card:hover,
.marketplace-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.eng-card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 82px;
    margin-bottom: 16px;
}

.eng-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--primary);
}

.eng-name-meta {
    min-width: 0;
}

.eng-name-meta h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.match-indicator {
    font-size: 0.8rem;
    font-weight: 850;
}

.verified-badge {
    position: absolute;
    top: 0;
    right: 0;
}

.eng-card-body {
    margin: 14px 0;
}

.role-loc,
.marketplace-desc,
.workspace-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.eng-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.rate-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.rate-info strong {
    display: block;
    margin-top: 2px;
    font-size: 0.98rem;
}

.btn-view-profile,
.btn-workspace,
.btn-add-cart {
    min-height: 38px;
    padding: 0 14px;
}

.talent-filters,
.marketplace-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px);
    gap: 12px;
    margin-bottom: 22px;
}

.talent-filters {
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(180px, 230px);
}

.filter-input,
.filter-select,
.field input,
.field select,
.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-main);
    padding: 0 14px;
    outline: 0;
}

.form-group textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.filter-input:focus,
.filter-select:focus,
.field input:focus,
.field select:focus,
.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.12);
}

.view-toggles {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.btn-toggle {
    min-height: 34px;
    padding: 0 12px;
    box-shadow: none;
}

.btn-toggle.active {
    background: var(--surface-strong);
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.5);
}

.modal-content {
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.modal-header,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.form-group {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.form-group label,
.field label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-cancel,
.btn-confirm {
    min-width: 110px;
    padding: 0 16px;
}

.workspace-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.workspace-icon,
.marketplace-image,
.plus-icon,
.method-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--primary);
    font-weight: 900;
}

.workspace-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.add-workspace {
    min-height: 220px;
    place-items: center;
    text-align: center;
    border-style: dashed;
    cursor: pointer;
}

.marketplace-card {
    display: grid;
    gap: 10px;
}

.price-tag {
    color: var(--primary);
    font-size: 1.28rem;
    font-weight: 900;
}

.payments-container {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.payment-section {
    padding: 22px;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--surface-strong), #2457d6);
    color: #fff;
}

.balance-label {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.balance-amount {
    display: block;
    margin-top: 5px;
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 900;
}

.btn-deposit {
    min-width: 118px;
    padding: 0 16px;
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

.transactions-table {
    display: grid;
    margin-top: 14px;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 2fr) 1fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    font-size: 0.9rem;
}

.transaction-row.header {
    background: var(--surface-soft);
    color: var(--text-muted);
    font-weight: 850;
}

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

.amount {
    font-weight: 850;
}

.payment-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.method-info {
    min-width: 0;
}

.method-name,
.method-detail {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-name {
    font-weight: 850;
}

.method-detail {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.btn-edit,
.btn-add-method {
    min-height: 36px;
    padding: 0 14px;
    color: var(--primary);
}

.btn-add-method {
    width: 100%;
    margin-top: 4px;
    border-style: dashed;
}

.lp-body,
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(36, 87, 214, 0.14), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(15, 159, 122, 0.1), transparent 25%),
        var(--bg-main);
}

.lp-nav,
.auth-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
}

.lp-nav .logo {
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 750;
}

.nav-links .btn-primary {
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
}

.lp-hero {
    padding: 22px 0 72px;
}

.hero-container {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(30px, 6vw, 72px);
    align-items: center;
    min-width: 0;
}

.hero-text h1,
.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.55rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-text p,
.hero-copy p {
    max-width: 650px;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary-lg,
.btn-outline-lg {
    min-height: 48px;
    padding: 0 22px;
}

.hero-visual {
    min-height: min(60vh, 560px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(36, 87, 214, 0.86)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 54px);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: var(--radius-md);
    background:
        linear-gradient(rgba(255,255,255,0.1) 0 0) 12% 25% / 48% 2px no-repeat,
        linear-gradient(rgba(255,255,255,0.16) 0 0) 12% 46% / 68% 2px no-repeat,
        linear-gradient(rgba(255,255,255,0.12) 0 0) 12% 67% / 56% 2px no-repeat;
}

.hero-card-float {
    position: absolute;
    right: 28px;
    bottom: 28px;
    min-width: 220px;
    padding: 22px;
    border-color: rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.94);
}

.hero-card-float span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-card-float strong {
    display: block;
    margin-top: 8px;
    font-size: 2.2rem;
    font-weight: 900;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 460px);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
    min-height: 100vh;
    padding: 42px 0;
    min-width: 0;
}

.hero-panel {
    display: grid;
    gap: 26px;
}

.hero-kicker {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.highlight-card {
    padding: 18px;
}

.highlight-card h2 {
    margin: 14px 0 8px;
    font-size: 1rem;
    line-height: 1.28;
}

.highlight-card p,
.auth-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.trust-stat {
    padding: 16px;
}

.trust-stat strong {
    display: block;
    font-size: 1.35rem;
}

.trust-stat span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.trust-sep {
    display: none;
}

.auth-form-wrap {
    min-width: 0;
}

.auth-card {
    width: 100%;
    padding: clamp(22px, 4vw, 32px);
    box-shadow: var(--shadow-lg);
}

.glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
}

.form-top h2 {
    margin-top: 12px;
    font-size: clamp(1.75rem, 4vw, 2.3rem);
}

.form-top p {
    margin: 8px 0 22px;
    color: var(--text-muted);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
}

.eye-toggle {
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-muted);
}

.forgot-row {
    margin: -2px 0 18px;
}

.forgot-link,
.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 850;
}

.inline-link {
    border: 0;
    background: transparent;
}

.submit-btn {
    width: 100%;
    min-height: 50px;
    gap: 10px;
    background: var(--surface-strong);
    color: #fff;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.58);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-msg {
    min-height: 1.25rem;
    margin-top: 12px;
    color: var(--danger);
    font-size: 0.9rem;
}

.form-msg.success {
    color: var(--accent);
}

.mode-switch,
.auth-note {
    margin-top: 18px;
}

.mode-switch {
    color: var(--text-muted);
}

.bg-grid,
.bg-noise,
.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(16,24,40,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,24,40,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.bg-noise {
    opacity: 0.18;
}

.glow.g1,
.glow.g2 {
    display: none;
}

.signup-only.hidden,
.login-only.hidden {
    display: none !important;
}

@media (max-width: 1120px) {
    .dash-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 14px;
    }

    .top-bar {
        gap: 12px;
    }

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

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

    .hero-highlights {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 920px) {
    .dash-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(300px, 84vw);
        transform: translateX(-104%);
        box-shadow: 22px 0 50px rgba(16, 24, 40, 0.18);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .top-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        flex: 0 0 42px;
    }

    .search-wrap {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .top-actions {
        margin-left: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .top-actions > * {
        min-width: max-content;
    }

    .hero-container,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        min-height: auto;
        padding: 28px 0;
    }

    .hero-panel {
        padding-top: 10px;
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-text h1,
    .hero-copy h1 {
        font-size: clamp(2.25rem, 10vw, 4rem);
    }
}

@media (max-width: 720px) {
    .lp-nav,
    .auth-shell,
    .hero-container {
        width: min(100% - 28px, 1180px);
    }

    .lp-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a {
        flex: 1 1 140px;
        text-align: center;
    }

    .hero-container {
        min-height: auto;
        padding-bottom: 34px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .top-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
    }

    .top-actions > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .btn-secondary {
        display: none;
    }

    .page-header,
    .talent-header,
    .section-heading,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .role-actions,
    .request-actions {
        width: 100%;
        justify-content: stretch;
    }

    .role-actions > *,
    .request-actions > * {
        flex: 1 1 150px;
    }

    .page-header > .btn-create,
    .talent-header .view-toggles {
        width: 100%;
    }

    .kpi-grid,
    .engineer-grid,
    .workspace-grid,
    .marketplace-grid,
    .talent-filters,
    .marketplace-filters,
    .trust-row {
        grid-template-columns: 1fr;
    }

    .kpi-card,
    .eng-card,
    .workspace-card,
    .marketplace-card,
    .payment-section,
    .panel,
    .highlight-card,
    .auth-card {
        padding: 18px;
    }

    .eng-card-header {
        padding-right: 0;
        align-items: flex-start;
    }

    .verified-badge {
        position: static;
        margin-left: auto;
    }

    .eng-card-footer,
    .balance-card,
    .production-row,
    .request-card,
    .profile-cover {
        align-items: stretch;
        flex-direction: column;
    }

    .request-card {
        display: flex;
    }

    .compact-profile {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .compact-profile .status-pill {
        grid-column: 1 / -1;
        width: 100%;
    }

    .event-meta-stack {
        justify-items: stretch;
    }

    .pipeline-board,
    .flow-steps,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .btn-view-profile,
    .btn-workspace,
    .btn-add-cart,
    .btn-deposit {
        width: 100%;
    }

    .transaction-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .transaction-row.header {
        display: none;
    }

    .transaction-row span:nth-child(1)::before {
        content: "Date: ";
        color: var(--text-muted);
        font-weight: 800;
    }

    .transaction-row span:nth-child(2)::before {
        content: "Description: ";
        color: var(--text-muted);
        font-weight: 800;
    }

    .transaction-row span:nth-child(3)::before {
        content: "Amount: ";
        color: var(--text-muted);
        font-weight: 800;
    }

    .transaction-row span:nth-child(4)::before {
        content: "Status: ";
        color: var(--text-muted);
        font-weight: 800;
    }

    .payment-method {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .payment-method .btn-edit {
        grid-column: 1 / -1;
        width: 100%;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 18px 14px 28px;
    }

    .top-bar {
        padding: 12px 14px;
    }

    .top-actions .btn-create {
        flex: 1;
    }

    .search-wrap {
        height: auto;
        min-height: 44px;
    }

    .search-wrap input {
        font-size: 0.88rem;
    }

    .page-header h1 {
        font-size: 1.65rem;
    }

    .role-hero {
        padding: 18px;
    }

    .hero-btns,
    .form-actions {
        flex-direction: column;
    }

    .btn-primary-lg,
    .btn-outline-lg,
    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }

    .hero-card-float {
        right: 16px;
        bottom: 16px;
        left: 16px;
        min-width: 0;
    }

    .hero-visual {
        min-height: 320px;
    }

    .eng-card-header {
        padding-right: 0;
        align-items: flex-start;
    }

    .verified-badge {
        position: static;
        margin-left: auto;
    }

    .bar-row {
        grid-template-columns: 60px minmax(80px, 1fr) 40px;
    }
}

@media (max-width: 380px) {
    .content-body {
        padding-inline: 12px;
    }

    .top-bar {
        padding-inline: 12px;
    }

    .top-actions {
        flex-direction: column;
    }

    .top-actions > *,
    .role-actions > *,
    .request-actions > * {
        width: 100%;
    }

    .kpi-card,
    .eng-card,
    .workspace-card,
    .marketplace-card,
    .payment-section,
    .panel,
    .auth-card {
        padding: 16px;
    }

    .hero-text h1,
    .hero-copy h1 {
        font-size: 2.05rem;
    }
}

/* Professional UI refresh */
body:not(.auth-body):not(.lp-body) {
    background:
        linear-gradient(180deg, #f8fafc 0%, var(--bg-main) 48%, #eef3f8 100%);
}

.dash-shell {
    grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
    gap: 20px;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(197, 207, 221, 0.78);
    box-shadow: 8px 0 32px rgba(16, 24, 40, 0.04);
}

.logo {
    min-height: 40px;
    padding-inline: 4px;
    color: var(--surface-strong);
    letter-spacing: 0.14em;
}

.logo::before {
    content: "";
    width: 10px;
    height: 24px;
    margin-right: 10px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.user-profile-sm {
    padding: 12px;
    background: linear-gradient(180deg, #fff, #f6f8fb);
    border-color: rgba(197, 207, 221, 0.86);
}

.side-nav,
.sidebar-footer {
    gap: 4px;
}

.nav-item {
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid transparent;
    color: #4b5565;
    font-size: 0.9rem;
    font-weight: 760;
}

.nav-item:hover,
.nav-item.active {
    border-color: #dbe5f5;
    background: #f2f6ff;
    color: var(--primary);
    transform: none;
}

.nav-item.active {
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-dot {
    width: 30px;
    height: 30px;
    background: #eef3f9;
    color: #334155;
}

.nav-item.active .nav-dot,
.nav-item:hover .nav-dot {
    background: #fff;
    color: var(--primary);
}

.main-content {
    background:
        radial-gradient(circle at 95% 0%, rgba(36, 87, 214, 0.08), transparent 30%),
        transparent;
}

.top-bar {
    min-height: 70px;
    padding: 13px clamp(18px, 3vw, 34px);
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: rgba(197, 207, 221, 0.72);
}

.search-wrap {
    height: 42px;
    max-width: 620px;
    border-color: rgba(197, 207, 221, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.1);
}

.content-body {
    width: min(100%, 1280px);
    padding: clamp(22px, 3vw, 38px);
}

.page-header,
.role-hero {
    border-radius: var(--radius-md);
}

.role-hero {
    align-items: center;
    padding: clamp(22px, 3vw, 32px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96)),
        linear-gradient(90deg, rgba(36, 87, 214, 0.08), rgba(15, 159, 122, 0.08));
    border-color: rgba(197, 207, 221, 0.82);
    box-shadow: 0 14px 42px rgba(16, 24, 40, 0.06);
}

.section-kicker,
.hero-text .status-badge,
.highlight-label,
.form-eyebrow {
    background: #eef5ff;
    color: var(--primary-dark);
    letter-spacing: 0.08em;
}

.page-header h1 {
    color: var(--surface-strong);
    font-weight: 880;
}

.page-header p,
.section-heading p,
.panel-header p {
    color: #64748b;
}

.btn-create,
.btn-secondary,
.btn-view-profile,
.btn-workspace,
.btn-add-cart,
.btn-confirm,
.btn-primary,
.btn-primary-lg,
.btn-outline-lg,
.btn-cancel,
.btn-toggle,
.btn-edit,
.btn-add-method {
    min-height: 38px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-create,
.btn-view-profile,
.btn-workspace,
.btn-add-cart,
.btn-confirm,
.btn-primary,
.btn-primary-lg {
    background: #1f4fc8;
    box-shadow: 0 8px 18px rgba(36, 87, 214, 0.14);
}

.btn-secondary,
.btn-outline-lg,
.btn-cancel,
.btn-toggle,
.btn-edit,
.btn-add-method {
    background: #fff;
    border-color: rgba(197, 207, 221, 0.95);
}

.kpi-grid {
    gap: 14px;
}

.kpi-card,
.eng-card,
.workspace-card,
.marketplace-card,
.payment-section,
.panel,
.highlight-card,
.trust-stat,
.auth-card {
    border-color: rgba(197, 207, 221, 0.82);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.kpi-card {
    padding: 18px;
}

.kpi-card::after {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.kpi-icon,
.workspace-icon,
.marketplace-image,
.method-icon,
.eng-avatar-lg {
    background: #eef3f9;
    color: var(--primary-dark);
}

.kpi-value {
    color: var(--surface-strong);
}

.overview-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.panel {
    padding: 20px;
}

.panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(217, 224, 234, 0.8);
}

.production-list,
.readiness-bars,
.payment-methods,
.request-list,
.profile-summary-list,
.check-list {
    margin-top: 14px;
}

.production-row,
.request-card,
.compact-profile,
.payment-method,
.pipeline-column,
.flow-steps div {
    border-color: rgba(197, 207, 221, 0.78);
    background: #f8fafc;
}

.production-row:hover,
.request-card:hover,
.compact-profile:hover,
.payment-method:hover {
    border-color: var(--border-strong);
    background: #fff;
}

.engineer-grid,
.workspace-grid,
.marketplace-grid {
    gap: 16px;
}

.eng-card,
.workspace-card,
.marketplace-card {
    padding: 18px;
}

.eng-card:hover,
.workspace-card:hover,
.marketplace-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.tag,
.check-list span {
    background: #eef3f9;
    color: #475569;
}

.transactions-table {
    border-color: rgba(197, 207, 221, 0.82);
}

.transaction-row {
    background: #fff;
}

.transaction-row.header {
    background: #f1f5f9;
}

.modal-content {
    border: 1px solid rgba(197, 207, 221, 0.86);
}

.lp-body,
.auth-body {
    background:
        radial-gradient(circle at 8% 8%, rgba(36, 87, 214, 0.1), transparent 26%),
        radial-gradient(circle at 92% 12%, rgba(15, 159, 122, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fafc, #eef3f8);
}

.hero-visual {
    border-color: rgba(197, 207, 221, 0.9);
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1120px) {
    .dash-shell {
        grid-template-columns: 232px minmax(0, 1fr);
    }

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

@media (max-width: 920px) {
    .dash-shell {
        display: block;
    }

    .sidebar {
        width: min(308px, 86vw);
    }

    .top-bar {
        gap: 10px;
    }

    .content-body {
        padding-top: 24px;
    }
}

@media (max-width: 720px) {
    .role-hero {
        align-items: stretch;
    }

    .panel-header {
        padding-bottom: 12px;
    }

    .kpi-card,
    .eng-card,
    .workspace-card,
    .marketplace-card,
    .payment-section,
    .panel {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 18px 12px 28px;
    }

    .top-bar {
        min-height: auto;
    }

    .page-header h1 {
        font-size: 1.55rem;
    }

    .section-kicker {
        font-size: 0.68rem;
    }
}
