/* Customer authentication */
.cp-auth-card {
    max-width: 520px;
    margin: 25px auto;
    padding: clamp(24px, 5vw, 42px);
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(17, 35, 60, .08);
}

.cp-auth-card h1,
.cp-welcome h1 {
    color: #152a43;
    font-weight: 800;
    letter-spacing: -.04em;
}

.cp-auth-card p {
    color: #68778a;
}

.cp-auth-card label {
    color: #26384d;
    font-weight: 600;
}

.cp-auth-card .form-control {
    min-height: 48px;
    border-color: #dce3eb;
}

/* Dashboard layout */
.cp-dashboard {
    min-height: 70vh;
    padding: 60px 0 80px;
    background: #f5f7fa;
}

.cp-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.cp-welcome h1 {
    margin: 8px 0;
    font-size: clamp(30px, 4vw, 42px);
}

.cp-welcome p {
    margin: 0;
    color: #68778a;
}

.cp-eyebrow {
    display: block;
    color: #a47c32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.cp-stat {
    height: 100%;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
}

.cp-stat span,
.cp-detail-grid span {
    display: block;
    color: #718096;
    font-size: 13px;
}

.cp-stat strong {
    display: block;
    margin: 6px 0;
    color: #152a43;
    font-size: clamp(22px, 2.2vw, 30px);
    overflow-wrap: anywhere;
}

.cp-stat small {
    color: #8a96a6;
}

.cp-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 38px 0 16px;
}

.cp-section-heading h2 {
    margin: 7px 0 0;
    color: #152a43;
    font-size: 25px;
    font-weight: 800;
}

.cp-product-card {
    margin-bottom: 20px;
    padding: clamp(18px, 3vw, 30px);
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(17, 35, 60, .035);
}

.cp-product-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
}

.cp-product-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 14px;
    background: #eef5f4;
    color: #16816f;
    font-size: 24px;
}

.cp-product-title {
    flex: 1;
    min-width: 0;
}

.cp-product-title h3 {
    margin: 4px 0;
    color: #152a43;
    font-size: 20px;
    font-weight: 800;
}

.cp-product-title p {
    margin: 0;
    color: #8390a1;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.cp-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cp-status.success {
    background: #e7f7ef;
    color: #18764c;
}

.cp-status.pending {
    background: #fff4dc;
    color: #96651a;
}

.cp-status.danger {
    background: #fde8e8;
    color: #a52b2b;
}

.cp-detail-grid {
    padding-top: 20px;
}

.cp-detail-grid strong {
    display: block;
    margin-top: 5px;
    color: #23364b;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cp-detail-grid a,
.cp-payment-table a {
    color: #16816f;
    text-decoration: none;
}

.cp-detail-grid a:hover,
.cp-payment-table a:hover {
    text-decoration: underline;
}

.cp-subsection {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
}

.cp-subsection h4 {
    margin-bottom: 4px;
    color: #20354b;
    font-size: 15px;
    font-weight: 800;
}

.cp-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #f5e5bd;
    border-radius: 10px;
    background: #fff8e8;
    color: #76591e;
    font-size: 13px;
}

.cp-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cp-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
    cursor: pointer;
}

.cp-action-button:hover {
    transform: translateY(-1px);
}

.cp-action-button.primary {
    background: #147d70;
    color: #fff;
}

.cp-action-button.primary:hover {
    background: #10695f;
    color: #fff;
}

.cp-action-button.secondary {
    border-color: #d5dee7;
    background: #fff;
    color: #20354b;
}

.cp-action-button.secondary:hover {
    border-color: #147d70;
    color: #147d70;
}

.cp-payment-table {
    margin: 12px 0 0;
    font-size: 13px;
}

.cp-payment-table thead th {
    border-bottom-color: #e7ebf0;
    color: #748196;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cp-payment-table td {
    color: #34475b;
    vertical-align: middle;
}

.cp-empty {
    padding: 45px 20px;
    border: 1px dashed #cfd8e3;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.cp-empty > i {
    color: #16816f;
    font-size: 42px;
}

.cp-empty h3 {
    margin-top: 12px;
    color: #152a43;
    font-weight: 800;
}

.cp-empty p {
    color: #718096;
}

/* Profile and account security */
.cp-settings-card {
    height: 100%;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 35, 60, .035);
}

.cp-settings-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.cp-settings-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 13px;
    background: #eef5f4;
    color: #147d70;
    font-size: 22px;
}

.cp-settings-heading h3 {
    margin: 0 0 4px;
    color: #152a43;
    font-size: 18px;
    font-weight: 800;
}

.cp-settings-heading p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.cp-settings-card .form-label {
    color: #26384d;
    font-size: 13px;
    font-weight: 700;
}

.cp-settings-card .form-control {
    min-height: 45px;
    border-color: #dce3eb;
    border-radius: 8px;
}

.cp-settings-card .form-control:focus {
    border-color: #147d70;
    box-shadow: 0 0 0 .2rem rgba(20, 125, 112, .12);
}

.cp-settings-card .form-control[readonly] {
    background: #f5f7fa;
}

.cp-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 28px;
    border: 1px solid #dce7e5;
    border-radius: 16px;
    background: #f0f7f6;
}

.cp-support-card h3 {
    margin: 7px 0;
    color: #152a43;
    font-size: 19px;
    font-weight: 800;
}

.cp-support-card p {
    margin: 0;
    color: #68778a;
    font-size: 13px;
}

/* Small screens */
@media (max-width: 575px) {
    .cp-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .cp-product-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cp-product-title {
        min-width: calc(100% - 75px);
    }

    .cp-status {
        margin-left: 0;
    }

    .cp-payment-table {
        min-width: 760px;
    }

    .cp-support-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
}
