.customer-app-body,
.customer-login-body {
    min-height: 100vh;
    background: #f4f7fb;
    color: #152033;
    overflow-x: hidden;
}

.customer-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px 18px 96px;
    box-sizing: border-box;
}

.customer-topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 36, .08);
}

.customer-brand,
.customer-account {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.customer-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

.customer-brand span {
    color: #152033;
    font-weight: 800;
}

.customer-account-copy {
    display: grid;
    line-height: 1.2;
    text-align: right;
}

.customer-account-copy strong {
    color: #152033;
    font-size: 14px;
}

.customer-account-copy small {
    color: #66758a;
    font-size: 12px;
}

.customer-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #24c7ad;
    color: #08221d;
    font-weight: 900;
}

.customer-logout {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #e14b4b;
    background: #fff1f1;
}

.customer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px 0 20px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.customer-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 7px;
    color: #66758a;
    font-size: 14px;
    font-weight: 800;
}

.customer-nav a.is-active {
    background: #152033;
    color: #ffffff;
}

.customer-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.customer-hero,
.customer-section {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 36, .06);
    min-width: 0;
}

.customer-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    background: #152033;
    color: #d8e2ef;
}

.customer-hero h1,
.customer-section h2 {
    margin: 0;
    color: inherit;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.customer-hero p {
    margin: 7px 0 0;
    color: #a9b8cb;
}

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

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

.customer-stat,
.customer-action {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 36, .06);
    min-width: 0;
}

.customer-stat span,
.customer-action>i,
.customer-list-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: #e7fbf7;
    color: #149983;
}

.customer-stat small,
.customer-action small,
.customer-list-item small,
.refer-code-section small {
    color: #66758a;
}

.customer-stat strong {
    display: block;
    color: #152033;
    font-size: 25px;
    font-weight: 900;
}

.earning-highlight span {
    background: #fff5dc;
    color: #b77905;
}

.customer-action {
    color: #152033;
}

.customer-action strong {
    display: block;
    color: #152033;
    font-size: 16px;
}

.customer-section {
    padding: 20px;
}

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

.customer-section-head a,
.customer-section-head>span {
    color: #149983;
    font-size: 13px;
    font-weight: 900;
}

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

.customer-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
}

.customer-list-item span:nth-child(2) {
    min-width: 0;
    margin-right: auto;
}

.customer-list-item strong {
    display: block;
    color: #152033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-list-item em {
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7fbf7;
    color: #149983;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.customer-empty {
    padding: 18px;
    color: #66758a;
    background: #f8fafc;
    border: 1px dashed #cbd6e4;
    border-radius: 8px;
    text-align: center;
}

.customer-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-data-table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    color: #152033;
}

.customer-data-table th {
    color: #66758a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.customer-data-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.customer-data-table td small {
    display: block;
    color: #66758a;
    margin-top: 2px;
}

.customer-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7fbf7;
    color: #149983;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-app-body .dataTables_wrapper {
    color: #44546a;
    min-width: 0;
}

.customer-app-body .dataTables_filter input,
.customer-app-body .dataTables_length select {
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    color: #152033;
}

.customer-app-body .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
    row-gap: 10px;
}

.customer-app-body .dataTables_wrapper .dataTables_length,
.customer-app-body .dataTables_wrapper .dataTables_filter,
.customer-app-body .dataTables_wrapper .dataTables_info,
.customer-app-body .dataTables_wrapper .dataTables_paginate {
    white-space: normal;
}

.refer-code-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.refer-code-section strong {
    display: block;
    color: #152033;
    font-size: 28px;
    font-weight: 900;
}

.customer-form {
    display: grid;
    gap: 18px;
    max-width: 100%;
    overflow: hidden;
}

.customer-form .row {
    --bs-gutter-x: .85rem;
    --bs-gutter-y: .85rem;
    margin-left: 0;
    margin-right: 0;
}

.customer-form .row>* {
    min-width: 0;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

.customer-form-label {
    display: block;
    margin-bottom: 7px;
    color: #44546a;
    font-size: 13px;
    font-weight: 900;
}

.customer-form-label small {
    color: #66758a;
    font-weight: 600;
}

.customer-form .form-control,
.customer-form .form-select,
.customer-input-wrap .form-control {
    width: 100%;
    min-height: 44px;
    border-color: #cfd9e6;
    border-radius: 8px;
    color: #152033;
}

.customer-form .form-control:focus,
.customer-form .form-select:focus,
.customer-input-wrap .form-control:focus {
    border-color: #24c7ad;
    box-shadow: 0 0 0 .2rem rgba(36, 199, 173, .14);
}

.customer-form-band {
    padding-top: 18px;
    border-top: 1px solid #e3e9f2;
}

.customer-form-submit,
.customer-submit {
    justify-content: center;
    width: fit-content;
    min-width: 170px;
}

.customer-app-body .btn-primary,
.customer-login-body .btn-primary {
    background: #24c7ad;
    border-color: #24c7ad;
    color: #06241f;
    font-weight: 900;
}

.customer-login-body {
    display: grid;
    place-items: center;
    padding: 18px;
}

.customer-login-shell {
    width: min(100%, 430px);
}

.customer-login-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 36, .12);
}

.customer-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.customer-login-brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.customer-login-brand span {
    color: #149983;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-login-brand h1 {
    margin: 3px 0 0;
    color: #152033;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.customer-input-wrap {
    position: relative;
    margin-bottom: 15px;
}

.customer-input-wrap i {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #66758a;
}

.customer-input-wrap .form-control {
    padding-left: 40px;
}

.customer-otp-wrap small {
    display: block;
    margin: -6px 0 15px;
    color: #66758a;
}

.customer-submit {
    width: 100%;
}

.customer-admin-link {
    display: block;
    margin-top: 18px;
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 800px) {
    .customer-shell {
        padding: 12px 12px 112px;
    }

    .customer-topbar {
        position: static;
    }

    .customer-account-copy {
        display: none;
    }

    .customer-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 30;
        margin: 0 auto;
        max-width: 520px;
        box-shadow: 0 12px 34px rgba(15, 23, 36, .18);
    }

    .customer-nav a {
        flex-direction: column;
        gap: 4px;
        min-height: 54px;
        padding: 5px;
        font-size: 11px;
    }

    .customer-hero,
    .refer-code-section,
    .customer-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-hero .btn,
    .refer-code-section .btn,
    .customer-form-submit {
        width: 100%;
        justify-content: center;
    }

    .customer-stats-grid,
    .customer-action-grid {
        grid-template-columns: 1fr;
    }

    .customer-section {
        padding: 15px;
    }

    .customer-hero {
        margin-top: 12px;
        padding: 18px;
    }

    .customer-brand span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-data-table {
        min-width: 620px;
    }

    .customer-app-body .dataTables_wrapper .row>div {
        width: 100%;
        text-align: left !important;
    }

    .customer-app-body .dataTables_filter label,
    .customer-app-body .dataTables_filter input {
        width: 100%;
    }

    .customer-app-body .dataTables_paginate .pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .customer-login-card {
        padding: 22px;
    }

    .customer-topbar {
        gap: 8px;
        padding: 10px;
    }

    .customer-brand img {
        width: 36px;
        height: 36px;
    }

    .customer-brand span {
        max-width: 132px;
        font-size: 13px;
    }

    .customer-section h2,
    .customer-hero h1 {
        font-size: 20px;
    }

    .refer-code-section strong {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    .customer-stat strong {
        font-size: 22px;
    }
}

@media (min-width: 801px) {
    .customer-main {
        grid-template-columns: repeat(12, 1fr);
    }

    .customer-main>* {
        grid-column: 1 / -1;
    }

    .customer-stats-grid {
        grid-column: 1 / -1;
    }
}
