.customer-portal {
    padding: 88px 20px 56px;
    background: #f6f8fb;
}

.customer-portal-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(2, 31, 65, 0.08);
}

.customer-portal-side {
    padding: 26px 18px;
    border-right: 1px solid #edf0f5;
    background: #fff;
}

.customer-portal-logo img {
    display: block;
    width: 138px;
    height: auto;
    margin-bottom: 24px;
}

.customer-portal-side nav {
    display: grid;
    gap: 6px;
}

.customer-portal-side nav .customer-nav-item {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: 11px;
    color: #14202b;
    font-weight: 800;
    text-decoration: none;
}

.customer-portal-side nav .customer-nav-item span {
    display: inline;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-portal-side nav .customer-nav-item i {
    width: 18px;
    flex: 0 0 18px;
    color: currentColor;
    text-align: center;
}

.customer-nav-badge {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 3px #ffffff;
}

.customer-portal-side .customer-nav-item.active {
    color: #ff871f;
    background: #fff2e4;
}

.customer-portal-side nav.is-locked .customer-nav-item {
    color: #223142;
    cursor: default;
    opacity: 0.72;
}

.customer-portal-main {
    min-height: 560px;
    padding: 36px 40px 44px;
}

.customer-kicker {
    display: block;
    margin-bottom: 8px;
    color: #ff871f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-login-card {
    width: min(560px, 100%);
    margin: 20px auto;
    padding: 34px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
}

.customer-login-card h1,
.customer-dashboard-head h1 {
    margin: 0 0 10px;
    color: #101828;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.customer-login-card p,
.customer-dashboard-head p,
.customer-empty-state p {
    margin: 0;
    color: #667085;
}

.customer-login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.customer-login-form label {
    display: grid;
    gap: 8px;
    color: #14202b;
    font-size: 13px;
    font-weight: 900;
}

.customer-login-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #cdd6e3;
    border-radius: 10px;
    color: #14202b;
    font: inherit;
}

.customer-login-form button,
.customer-resend-form button,
.customer-logout {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #ff871f;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.customer-resend-form {
    margin-top: 14px;
}

.customer-resend-form button {
    background: transparent;
    color: #ff871f;
    border: 1px solid #ffbf83;
}

.customer-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.customer-alert.success {
    color: #067647;
    background: #ecfdf3;
}

.customer-alert.error {
    color: #b42318;
    background: #fef3f2;
}

.customer-dashboard-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px;
}

.customer-trip-list {
    display: grid;
    gap: 16px;
}

.customer-trip-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #fff;
}

.customer-trip-image {
    height: 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #fff2e4;
    color: #ff871f;
    font-size: 30px;
}

.customer-trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-trip-copy span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-trip-copy h2 {
    margin: 5px 0;
    color: #101828;
    font-size: 24px;
    line-height: 1.15;
}

.customer-trip-copy p,
.customer-trip-copy small {
    color: #667085;
}

.customer-trip-status {
    display: grid;
    gap: 9px;
    min-width: 180px;
}

.customer-trip-status strong {
    padding: 9px 12px;
    border-radius: 9px;
    color: #92400e;
    background: #fff7ed;
    font-size: 13px;
}

.customer-trip-status strong.ready {
    color: #067647;
    background: #ecfdf3;
}

.customer-trip-status strong.cancelled {
    color: #b42318;
    background: #fef3f2;
}

.customer-trip-status strong.payment {
    color: #b45309;
    background: #fff2e4;
}

.customer-empty-state {
    padding: 42px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    text-align: center;
    background: #fff;
}

.customer-empty-state i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    color: #ff871f;
    background: #fff2e4;
    font-size: 22px;
}

.customer-empty-state h2 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 26px;
}

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

.customer-payment-card {
    padding: 20px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.customer-payment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.customer-payment-head span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-payment-head h2 {
    margin: 5px 0;
    color: #101828;
    font-size: 24px;
    line-height: 1.15;
}

.customer-payment-head p {
    margin: 0;
    color: #667085;
    font-weight: 800;
}

.customer-payment-badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-payment-badge.paid {
    color: #067647;
    background: #ecfdf3;
}

.customer-payment-badge.deposit {
    color: #b45309;
    background: #fff2e4;
}

.customer-payment-badge.pending {
    color: #344054;
    background: #f2f4f7;
}

.customer-payment-badge.review {
    color: #92400e;
    background: #fff7ed;
}

.customer-payment-badge.cancelled {
    color: #b42318;
    background: #fef3f2;
}

.customer-payment-review {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fff7ed;
    color: #92400e;
}

.customer-payment-review i {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #ff871f;
}

.customer-payment-review strong,
.customer-payment-review span {
    display: block;
}

.customer-payment-review strong {
    color: #101828;
    font-size: 17px;
}

.customer-payment-review span {
    margin-top: 3px;
    color: #667085;
    font-weight: 700;
}

.customer-payment-progress {
    height: 10px;
    overflow: hidden;
    margin: 18px 0;
    border-radius: 999px;
    background: #edf0f5;
}

.customer-payment-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff871f;
}

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

.customer-payment-grid div {
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #ffffff;
}

.customer-payment-grid span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-payment-grid strong {
    color: #101828;
    font-size: 20px;
    line-height: 1.1;
}

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

.customer-document-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #ffffff;
}

.customer-document-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff2e4;
    color: #ff871f;
    font-size: 24px;
}

.customer-document-copy span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-document-copy h2 {
    margin: 4px 0;
    color: #101828;
    font-size: 22px;
    line-height: 1.16;
}

.customer-document-copy p {
    margin: 0;
    color: #667085;
    font-weight: 700;
}

.customer-document-action > a,
.customer-document-action > span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-document-action > a {
    background: #ff871f;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(255, 135, 31, 0.22);
}

.customer-document-action > span {
    background: #f2f4f7;
    color: #667085;
}

.customer-document-action a span {
    min-height: auto;
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    white-space: inherit;
}

.customer-messages-list {
    display: grid;
    gap: 16px;
}

.customer-message-card {
    padding: 20px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #ffffff;
}

.customer-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.customer-message-meta span,
.customer-message-meta time {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-message-card h2 {
    margin: 0 0 5px;
    color: #101828;
    font-size: 23px;
    line-height: 1.16;
}

.customer-message-program {
    margin: 0 0 16px;
    color: #ff871f;
    font-weight: 900;
}

.customer-message-body {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: #344054;
    line-height: 1.65;
}

.customer-message-body p {
    margin: 0 0 10px;
}

.customer-message-body p:last-child,
.customer-message-body ul:last-child,
.customer-message-body ol:last-child {
    margin-bottom: 0;
}

.customer-message-body a {
    color: #ff871f;
    font-weight: 900;
}

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

.customer-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fff7ed;
    color: #92400e;
}

.customer-profile-note i {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #ff871f;
}

.customer-profile-note strong,
.customer-profile-note p {
    display: block;
}

.customer-profile-note strong {
    color: #101828;
    font-size: 16px;
}

.customer-profile-note p {
    margin: 4px 0 0;
    color: #667085;
    font-weight: 800;
    line-height: 1.45;
}

.customer-profile-card {
    padding: 22px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #ffffff;
}

.customer-profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 14px;
    margin-bottom: 20px;
}

.customer-profile-head > div > span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-profile-head h2 {
    margin: 5px 0;
    color: #101828;
    font-size: 24px;
    line-height: 1.15;
}

.customer-profile-head p {
    margin: 0;
    color: #667085;
    font-weight: 800;
}

.customer-profile-head button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #ff871f;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.customer-profile-progress,
.customer-passenger-status {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-profile-progress {
    grid-column: 1;
    grid-row: 2;
    width: fit-content;
}

.customer-profile-head button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.customer-profile-progress.complete,
.customer-passenger-status.complete {
    color: #067647;
    background: #ecfdf3;
}

.customer-profile-progress.pending,
.customer-passenger-status.pending {
    color: #92400e;
    background: #fff7ed;
}

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

.customer-passenger-card {
    padding: 16px;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #f8fafc;
}

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

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

.customer-passenger-title {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.customer-passenger-title strong {
    color: #101828;
    font-size: 18px;
}

.customer-passenger-title small {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.customer-passenger-actions {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    color: #667085;
}

.customer-passenger-actions a {
    color: #ff871f;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.customer-passenger-actions i {
    transition: transform 0.2s ease;
}

.customer-passenger-card[open] .customer-passenger-actions i {
    transform: rotate(180deg);
}

.customer-passenger-card .customer-profile-grid {
    margin-top: 14px;
}

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

.customer-profile-grid label {
    display: grid;
    gap: 7px;
    color: #14202b;
    font-size: 13px;
    font-weight: 900;
}

.customer-profile-grid input,
.customer-profile-grid select {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #cdd6e3;
    border-radius: 10px;
    background: #ffffff;
    color: #14202b;
    font: inherit;
}

.customer-profile-grid input[type="date"],
.customer-profile-grid input[type="file"],
.customer-profile-grid select {
    appearance: auto;
    -webkit-appearance: auto;
}

.customer-file-field {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .customer-portal {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 96px 12px 72px;
    }

    .customer-portal-shell {
        width: 100%;
        grid-template-columns: 1fr;
        overflow: visible;
        border-radius: 16px;
    }

    .customer-portal-side {
        padding: 20px 16px;
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .customer-portal-logo img {
        width: 132px;
        margin-bottom: 18px;
    }

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

    .customer-portal-main {
        min-width: 0;
        padding: 26px 14px 34px;
    }

    .customer-dashboard-head,
    .customer-trip-card,
    .customer-document-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .customer-payment-head,
    .customer-payment-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .customer-trip-status {
        min-width: 0;
    }

    .customer-document-action > a,
    .customer-document-action > span {
        width: 100%;
    }

    .customer-message-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-profile-head,
    .customer-profile-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .customer-profile-progress {
        width: fit-content;
        grid-column: auto;
        grid-row: auto;
    }

    .customer-profile-head button {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .customer-login-form input,
    .customer-profile-grid input,
    .customer-profile-grid select {
        min-width: 0;
        min-height: 50px;
        font-size: 16px;
        line-height: 1.25;
        touch-action: manipulation;
    }

    .customer-profile-grid input[type="date"] {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-inline: 12px;
        text-align: left;
        -webkit-appearance: none;
        appearance: none;
    }

    .customer-profile-grid input[type="file"] {
        min-height: 50px;
        padding: 12px;
        overflow: hidden;
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .customer-portal {
        padding: 86px 8px 78px;
    }

    .customer-portal-shell {
        border-radius: 14px;
    }

    .customer-portal-side {
        padding: 16px 12px;
    }

    .customer-portal-side nav {
        grid-template-columns: 1fr;
    }

    .customer-portal-side nav .customer-nav-item {
        min-width: 0;
        padding: 0 12px;
        font-size: 15px;
    }

    .customer-portal-main {
        padding: 22px 10px 30px;
    }

    .customer-dashboard-head {
        gap: 14px;
        margin-bottom: 22px;
    }

    .customer-login-card,
    .customer-profile-note,
    .customer-profile-card,
    .customer-payment-card,
    .customer-document-card,
    .customer-message-card,
    .customer-empty-state {
        padding: 16px;
        border-radius: 14px;
    }

    .customer-profile-head {
        gap: 14px;
        margin-bottom: 14px;
    }

    .customer-profile-head h2 {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .customer-profile-head p {
        font-size: 15px;
    }

    .customer-passenger-list {
        gap: 12px;
    }

    .customer-passenger-card {
        padding: 14px;
        border-radius: 14px;
    }

    .customer-passenger-card summary {
        align-items: flex-start;
        gap: 10px;
    }

    .customer-passenger-title strong {
        font-size: 19px;
    }

    .customer-passenger-actions {
        flex: 0 0 auto;
        gap: 18px;
        padding-top: 3px;
    }

    .customer-passenger-status {
        display: none;
    }

    .customer-profile-grid {
        gap: 13px;
    }

    .customer-profile-grid label {
        gap: 8px;
        font-size: 15px;
    }

    .customer-profile-grid input,
    .customer-profile-grid select {
        min-height: 54px;
        padding-inline: 14px;
        border-radius: 12px;
    }

    .customer-profile-grid input[type="date"] {
        min-height: 54px;
        padding-inline: 14px;
    }

    .customer-profile-grid input[type="file"] {
        height: auto;
        min-height: 56px;
        padding: 14px;
        white-space: normal;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 18px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 380px) {
    .customer-portal {
        padding-inline: 6px;
    }

    .customer-portal-main {
        padding-inline: 8px;
    }

    .customer-profile-card,
    .customer-passenger-card {
        padding: 12px;
    }
}
