.b2b-access-page {
    min-height: calc(100vh - 88px);
    display: grid;
    align-items: center;
    padding: clamp(66px, 7vw, 92px) 0 clamp(32px, 4vw, 52px);
}

.b2b-access-page.is-dashboard {
    align-items: start;
    padding-top: clamp(72px, 8vw, 108px);
}

.b2b-auth-shell {
    width: min(1140px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(430px, .9fr);
    gap: clamp(20px, 3.6vw, 38px);
    align-items: center;
    padding: clamp(16px, 2.5vw, 28px);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(255, 138, 29, .08), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(248, 250, 252, .86), rgba(255, 255, 255, .96));
    border: 1px solid rgba(15, 23, 42, .06);
}

.b2b-auth-shell.is-register {
    width: min(1080px, 100%);
    grid-template-columns: minmax(0, .78fr) minmax(440px, .9fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
}

.b2b-auth-copy {
    padding: clamp(8px, 2vw, 20px);
}

.b2b-auth-copy h1 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: clamp(40px, 4.5vw, 66px);
    line-height: 1.02;
    letter-spacing: 0;
}

.b2b-auth-shell.is-register .b2b-auth-copy h1 {
    font-size: clamp(34px, 3.6vw, 52px);
}

.b2b-auth-shell.is-register .b2b-auth-copy p {
    font-size: 15px;
    line-height: 1.6;
}

.b2b-auth-copy p,
.b2b-card p {
    max-width: 520px;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.b2b-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    max-width: 360px;
}

.b2b-auth-shell.is-register .b2b-benefits {
    gap: 9px;
    margin-top: 20px;
}

.b2b-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 138, 29, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #344054;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.b2b-auth-shell.is-register .b2b-benefits span {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.b2b-benefits i {
    color: #ff8a1d;
}

.b2b-auth-card,
.b2b-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .11);
}

.b2b-auth-card {
    padding: clamp(26px, 3vw, 38px);
}

.b2b-auth-shell.is-register .b2b-auth-card {
    padding: clamp(22px, 2.4vw, 30px);
}

.b2b-auth-card h2,
.b2b-card h2 {
    color: #111827;
    margin: 8px 0 20px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.b2b-auth-shell.is-register .b2b-auth-card h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 2.7vw, 34px);
}

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

.b2b-auth-shell.is-register .b2b-form {
    gap: 10px 14px;
}

.b2b-login-form {
    grid-template-columns: 1fr;
}

.b2b-form label,
.b2b-form span {
    display: block;
}

.b2b-form label {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.b2b-form input,
.b2b-form textarea {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    padding: 11px 13px;
    font: inherit;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.b2b-form textarea {
    min-height: 78px;
    resize: vertical;
}

.b2b-auth-shell.is-register .b2b-form textarea {
    min-height: 70px;
}

.b2b-form input:focus,
.b2b-form textarea:focus {
    outline: 3px solid rgba(255, 138, 29, .2);
    border-color: #ff8a1d;
}

.b2b-login-form {
    gap: 18px;
}

.b2b-form .field-wide,
.b2b-form button {
    grid-column: 1 / -1;
}

.b2b-form .primary-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a1d, #ff7a00);
    color: #fff;
    font-weight: 900;
    margin-top: 4px;
    box-shadow: 0 18px 38px rgba(255, 138, 29, .3);
    cursor: pointer;
}

.b2b-form .primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(255, 138, 29, .36);
}

.b2b-auth-switch {
    margin: 14px 0 0;
    color: #667085;
    text-align: center;
    font-weight: 700;
}

.b2b-auth-switch a {
    color: #ff8a1d;
    text-decoration: none;
    font-weight: 900;
}

.b2b-auth-switch a:hover {
    text-decoration: underline;
}

.b2b-status-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
}

.b2b-discount-grid {
    display: flex;
    gap: 12px;
}

.b2b-discount-grid span {
    display: grid;
    gap: 4px;
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.b2b-discount-grid strong {
    color: #ff8a1d;
    font-size: 24px;
}

.b2b-net-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.b2b-dashboard {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.b2b-dashboard-hero,
.b2b-panel {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.b2b-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 3vw, 34px);
}

.b2b-dashboard-hero h1,
.b2b-panel h2 {
    margin: 8px 0;
    color: #111827;
    line-height: 1.05;
    letter-spacing: 0;
}

.b2b-dashboard-hero h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.b2b-dashboard-hero p,
.b2b-panel-head p,
.b2b-empty-state p,
.b2b-booking-main p,
.b2b-message-card p {
    margin: 0;
    color: #667085;
}

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

.b2b-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.b2b-dashboard-stats span {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 138, 29, .14);
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
}

.b2b-dashboard-stats strong {
    color: #ff8a1d;
    font-size: 24px;
}

.b2b-panel {
    padding: clamp(18px, 2.5vw, 28px);
}

.b2b-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.b2b-booking-list,
.b2b-message-list {
    display: grid;
    gap: 12px;
}

.b2b-booking-card {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(170px, auto) minmax(330px, .9fr);
    grid-template-areas:
        "main meta finance"
        "ops ops actions";
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
}

.b2b-booking-main {
    grid-area: main;
    min-width: 0;
}

.b2b-booking-main > span,
.b2b-message-card > span {
    color: #ff8a1d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.b2b-booking-main h3,
.b2b-message-card h3 {
    margin: 5px 0 6px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.b2b-booking-meta {
    grid-area: meta;
    display: grid;
    gap: 8px;
    color: #475467;
    font-weight: 800;
    justify-items: start;
}

.b2b-booking-meta > span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.b2b-date-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
}

.b2b-date-pair span {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #f9fafb;
}

.b2b-date-pair i {
    grid-row: 1 / span 2;
}

.b2b-date-pair small {
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.b2b-date-pair strong {
    color: #344054;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
}

.b2b-travelers-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 138, 29, .24);
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.b2b-travelers-trigger small {
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
}

.b2b-travelers-trigger:hover {
    border-color: rgba(255, 138, 29, .44);
    background: #ffedd5;
}

.b2b-booking-meta i {
    color: #ff8a1d;
}

.b2b-booking-finance {
    grid-area: finance;
    display: grid;
    grid-template-columns: repeat(3, minmax(94px, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 138, 29, .16);
    border-radius: 16px;
    background: #fff7ed;
}

.b2b-booking-finance span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.b2b-booking-finance small {
    color: #9a3412;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.b2b-booking-finance strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.b2b-booking-finance span:last-child strong {
    color: #ff7a00;
}

.b2b-operation-grid {
    grid-area: ops;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 8px;
    justify-content: start;
}

.b2b-op-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.b2b-op-pill.ready {
    background: #ecfdf3;
    color: #067647;
}

.b2b-op-pill.pending {
    background: #fff7ed;
    color: #c2410c;
}

.b2b-op-pill.cancelled {
    background: #fef3f2;
    color: #b42318;
}

.b2b-op-pill.muted {
    opacity: .68;
}

.b2b-booking-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
}

.b2b-booking-actions .primary-btn,
.b2b-dashboard-actions .primary-btn,
.b2b-dashboard-actions .secondary-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
}

.b2b-booking-actions .primary-btn {
    min-width: 210px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
}

.b2b-dashboard-actions .secondary-btn {
    border: 1px solid rgba(255, 138, 29, .28);
    color: #c2410c;
    background: #fff;
}

.b2b-muted-action {
    color: #98a2b3;
    font-weight: 900;
    white-space: nowrap;
}

.b2b-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 180px;
    text-align: center;
    color: #667085;
}

.b2b-empty-state.compact {
    min-height: 110px;
}

.b2b-empty-state i {
    color: #ff8a1d;
    font-size: 28px;
}

.b2b-empty-state h3 {
    margin: 0;
    color: #111827;
}

.b2b-message-card {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
}

.b2b-message-card div {
    margin-top: 10px;
    color: #344054;
    line-height: 1.65;
}

.b2b-passenger-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 14000;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100% - 28px));
    max-height: min(760px, calc(100vh - 48px));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #111827;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .26);
}

.b2b-passenger-dialog:not([open]) {
    display: none;
}

.b2b-passenger-dialog::backdrop {
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px);
}

.b2b-passenger-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(760px, calc(100vh - 48px));
}

.b2b-dialog-head,
.b2b-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.b2b-dialog-head h3 {
    margin: 6px 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.b2b-dialog-head p {
    margin: 0;
    color: #667085;
}

.b2b-dialog-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.b2b-passenger-list {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 18px 22px;
}

.b2b-passenger-card {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 16px;
    background: #fff;
}

.b2b-passenger-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.b2b-passenger-card summary::-webkit-details-marker {
    display: none;
}

.b2b-passenger-card summary span {
    display: grid;
    gap: 3px;
}

.b2b-passenger-card summary strong {
    color: #111827;
}

.b2b-passenger-card summary small {
    color: #667085;
    font-weight: 800;
}

.b2b-passenger-card summary em {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.b2b-passenger-card summary em.complete {
    background: #ecfdf3;
    color: #067647;
}

.b2b-passenger-card summary em.pending {
    background: #fff7ed;
    color: #c2410c;
}

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

.b2b-passenger-grid label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.b2b-passenger-grid input,
.b2b-passenger-grid select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    padding: 10px 12px;
    font: inherit;
}

.b2b-passenger-grid .field-wide {
    grid-column: 1 / -1;
}

.b2b-passenger-grid small {
    color: #667085;
}

.b2b-dialog-actions {
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-bottom: 0;
}

.b2b-dialog-actions .primary-btn,
.b2b-dialog-actions .secondary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.b2b-dialog-actions .secondary-btn {
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    color: #344054;
}

@media (max-width: 920px) {
    .b2b-access-page {
        align-items: start;
        padding-top: 86px;
    }

    .b2b-auth-shell,
    .b2b-auth-shell.is-register,
    .b2b-status-card {
        grid-template-columns: 1fr;
    }

    .b2b-auth-copy {
        text-align: center;
        padding-bottom: 0;
    }

    .b2b-auth-copy p {
        margin: 0 auto;
    }

    .b2b-benefits {
        margin: 22px auto 0;
    }

    .b2b-benefits span {
        width: 100%;
        justify-content: center;
    }

    .b2b-dashboard-hero,
    .b2b-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .b2b-booking-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "meta"
            "finance"
            "ops"
            "actions";
    }

    .b2b-booking-finance {
        max-width: 560px;
    }

    .b2b-operation-grid {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .b2b-booking-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .b2b-access-page {
        padding: 82px 0 44px;
    }

    .b2b-auth-copy h1 {
        font-size: 36px;
    }

    .b2b-auth-card {
        border-radius: 16px;
        padding: 22px;
    }

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

    .b2b-discount-grid {
        flex-direction: column;
    }

    .b2b-dashboard-stats,
    .b2b-operation-grid,
    .b2b-booking-finance,
    .b2b-date-pair {
        grid-template-columns: 1fr;
    }

    .b2b-booking-meta {
        justify-items: stretch;
    }

    .b2b-travelers-trigger {
        width: 100%;
        justify-content: center;
    }

    .b2b-dashboard-actions .primary-btn,
    .b2b-dashboard-actions .secondary-btn,
    .b2b-booking-actions .primary-btn,
    .b2b-dialog-actions .primary-btn,
    .b2b-dialog-actions .secondary-btn {
        width: 100%;
    }

    .b2b-passenger-grid,
    .b2b-dialog-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-passenger-dialog {
        width: calc(100% - 18px);
        max-height: calc(100dvh - 18px);
        border-radius: 18px;
    }

    .b2b-passenger-form {
        max-height: calc(100dvh - 18px);
    }

    .b2b-dialog-head,
    .b2b-dialog-actions {
        padding: 16px;
    }

    .b2b-passenger-list {
        padding: 14px;
    }

    .b2b-passenger-card summary {
        padding: 12px;
    }
}
