.customer-auth-page,
.customer-account-page {
    padding: 48px 0 72px;
    background:
        radial-gradient(circle at top left, rgba(251, 240, 225, 0.9) 0%, transparent 42%),
        radial-gradient(circle at bottom right, rgba(162, 1, 2, 0.06) 0%, transparent 38%),
        linear-gradient(180deg, #fbf7f1 0%, #fff 100%);
    min-height: calc(100vh - 120px);
}

.customer-auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
    gap: 0;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(61, 44, 30, 0.12);
    border: 1px solid #efe4d6;
}

.customer-auth-shell--wide {
    max-width: 1080px;
    grid-template-columns: minmax(300px, 1fr) minmax(380px, 560px);
}

.customer-auth-side {
    position: relative;
    padding: 40px 36px;
    background: linear-gradient(145deg, #521420 0%, #a20102 55%, #7d2235 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.customer-auth-side__content {
    position: relative;
    z-index: 2;
}

.customer-auth-side__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.customer-auth-side__eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.customer-auth-side h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #fff;
}

.customer-auth-side p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.customer-auth-side__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.customer-auth-side__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.95);
}

.customer-auth-side__list i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.customer-auth-card {
    background: #fff;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
}

.customer-auth-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.customer-auth-card__logo-link {
    display: inline-block;
}

.customer-auth-card__logo {
    max-width: 100px;
    height: auto;
}

.customer-auth-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fbf0e1;
    color: #a20102;
    font-size: 12px;
    font-weight: 600;
}

.customer-auth-card__header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #3d2c1e;
    margin-bottom: 8px;
    line-height: 1.25;
}

.customer-auth-card__header p {
    color: #8a7562;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.customer-auth-card__body {
    margin-top: 28px;
}

.customer-auth-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0e6d8;
    text-align: center;
    color: #8a7562;
    font-size: 0.92rem;
}

.customer-auth-card__footer a {
    color: #a20102;
    font-weight: 600;
    text-decoration: none;
}

.customer-auth-card__footer a:hover {
    text-decoration: underline;
}

.customer-form-section {
    margin-bottom: 22px;
    padding-bottom: 6px;
}

.customer-form-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a20102;
    margin-bottom: 14px;
}

.customer-form-section__title i {
    font-size: 1rem;
}

.customer-field {
    margin-bottom: 0;
}

.customer-field__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d2c1e;
    margin-bottom: 8px;
}

.customer-field__error {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 6px;
}

.customer-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-input-wrap.is-invalid .customer-input-wrap__control {
    border-color: #dc3545;
}

.customer-input-wrap__icon {
    position: absolute;
    left: 14px;
    color: #a20102;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.customer-input-wrap__control {
    padding: 12px 14px 12px 42px !important;
    border: 1px solid #e8d9c8;
    border-radius: 12px !important;
    background: #fffdf9;
    font-size: 0.95rem;
    color: #3d2c1e;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-input-wrap__control:focus {
    border-color: #a20102;
    box-shadow: 0 0 0 3px rgba(162, 1, 2, 0.1);
    background: #fff;
}

.customer-input-wrap__control::placeholder {
    color: #b5a494;
}

.customer-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed #d9c3a3;
    border-radius: 12px;
    background: #fffdf9;
    cursor: pointer;
    color: #6b5b4d;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-bottom: 0;
}

.customer-file-upload:hover {
    border-color: #a20102;
    background: #fbf0e1;
}

.customer-file-upload i {
    color: #a20102;
    font-size: 1.1rem;
}

.customer-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fbf0e1;
    color: #6b5b4d;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 20px 0;
}

.customer-auth-note i {
    color: #a20102;
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.customer-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf6f0;
}

.customer-remember .form-check-input {
    margin: 0;
    border-color: #d9c3a3;
}

.customer-remember .form-check-input:checked {
    background-color: #a20102;
    border-color: #a20102;
}

.customer-remember .form-check-label {
    font-size: 0.9rem;
    color: #3d2c1e;
}

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

.customer-auth-card,
.customer-panel,
.customer-profile-card,
.customer-address-card {
    background: #fff;
    border: 1px solid #efe4d6;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(61, 44, 30, 0.06);
}

.customer-auth-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.customer-panel__head h1 {
    font-size: 1.75rem;
    color: var(--shethji-brown, #3d2c1e);
    margin-bottom: 8px;
}

.customer-panel__head p {
    color: #8a7562;
    margin-bottom: 24px;
}

.customer-btn-primary {
    background: #a20102;
    border-color: #a20102;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.customer-btn-primary:hover,
.customer-btn-primary:focus {
    background: #8a0102;
    border-color: #8a0102;
    color: #fff;
    box-shadow: 0 8px 20px rgba(162, 1, 2, 0.25);
}

.customer-btn-primary:active {
    transform: translateY(1px);
}

.customer-btn-outline {
    border: 1px solid #d9c3a3;
    color: #3d2c1e;
    border-radius: 999px;
    padding: 4px 18px;
    background: #fff;
    font-weight: 600;
    font-size: 0.92rem;
}

.customer-btn-outline:hover {
    background: #fbf0e1;
    color: #a20102;
    border-color: #a20102;
}

.customer-link-btn {
    color: #a20102;
    text-decoration: none;
    font-weight: 600;
}

.customer-otp-input {
    letter-spacing: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    padding: 16px 20px !important;
    border: 2px solid #e8d9c8;
    border-radius: 14px !important;
    background: #fffdf9;
    color: #3d2c1e;
}

.customer-otp-input:focus {
    border-color: #a20102;
    box-shadow: 0 0 0 4px rgba(162, 1, 2, 0.1);
}

.customer-otp-hint {
    display: block;
    text-align: center;
    color: #8a7562;
    font-size: 0.82rem;
    margin-top: 10px;
}

.customer-account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.customer-account-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.customer-account-nav-wrap {
    width: 100%;
    max-width: 100%;
}

.customer-account-sidebar {
    background: #fff;
    border: 1px solid #efe4d6;
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
}

.customer-account-user {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #efe4d6;
}

.customer-account-user__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-account-user__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbf0e1;
    color: #a20102;
    font-weight: 700;
    font-size: 1.25rem;
}

.customer-account-user span {
    display: block;
    font-size: 13px;
    color: #8a7562;
}

.customer-account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-account-nav a,
.customer-account-nav__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #3d2c1e;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.customer-account-nav a.is-active,
.customer-account-nav a:hover,
.customer-account-nav__logout:hover {
    background: #fbf0e1;
    color: #a20102;
}

.customer-panel {
    padding: 28px;
}

.customer-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.customer-profile-card {
    padding: 24px;
}

.customer-profile-card__avatar {
    margin-bottom: 20px;
}

.customer-profile-card__avatar img,
.customer-profile-card .customer-account-user__avatar {
    width: 88px;
    height: 88px;
}

.customer-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a7562;
    margin-bottom: 4px;
}

.customer-referral {
    color: #a20102;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Profile page (tablet + desktop) */
.cpf {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cpf-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #5c0001 0%, #a20102 100%);
    box-shadow: 0 14px 30px rgba(162, 1, 2, 0.22);
}

.cpf-hero__identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.cpf-hero__text {
    min-width: 0;
}

.cpf-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fffaf2 0%, #f3dfbf 100%);
    color: #a20102;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid #e2bf7f;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.cpf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpf-kicker {
    margin: 0 0 4px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f3d9a4;
    font-weight: 700;
}

.cpf h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.cpf-hero__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 8px 0 0;
    padding: 0;
    font-size: 0.88rem;
    color: rgba(255, 244, 228, 0.88);
}

.cpf-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    word-break: break-all;
}

.cpf-hero__meta i {
    color: #f3d9a4;
}

.cpf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cpf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(243, 217, 164, 0.5);
    background: rgba(243, 217, 164, 0.14);
    color: #f3d9a4;
    font-size: 0.76rem;
    font-weight: 600;
}

.cpf-chip--ok {
    border-color: transparent;
    background: #fff;
    color: #1f7a3f;
}

.cpf-chip--wait {
    border-color: transparent;
    background: #fff4df;
    color: #9a6b00;
}

.cpf-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    color: #a20102;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, background 0.2s ease;
}

.cpf-edit:hover {
    background: #FBF0E1;
    color: #8a0102;
    transform: translateY(-1px);
}

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

.cpf-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #efe4d6;
    box-shadow: 0 6px 18px rgba(61, 44, 30, 0.05);
    color: #3d2c1e;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cpf-stat:hover {
    color: #3d2c1e;
    border-color: #e6cfb2;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(61, 44, 30, 0.09);
}

.cpf-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FBF0E1;
    color: #a20102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.cpf-stat:hover .cpf-stat__icon {
    background: #a20102;
    color: #fff;
}

.cpf-stat__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cpf-stat__body strong {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.cpf-stat__body span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #8a7562;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpf-stat__arrow {
    color: #c9b39a;
    font-size: 0.9rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cpf-stat:hover .cpf-stat__arrow {
    color: #a20102;
    transform: translateX(3px);
}

.cpf-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #efe4d6;
    box-shadow: 0 8px 24px rgba(61, 44, 30, 0.05);
}

.cpf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cpf-card__head h2 {
    position: relative;
    margin: 0 0 4px;
    padding-left: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d2c1e;
}

.cpf-card__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: #a20102;
}

.cpf-card__head p {
    margin: 0;
    padding-left: 12px;
    color: #8a7562;
    font-size: 0.85rem;
}

.cpf-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FBF0E1;
    color: #a20102;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cpf-card__link i {
    font-size: 0.7rem;
}

.cpf-card__link:hover {
    background: #a20102;
    color: #fff;
}

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

.cpf-tile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #f1e6d8;
    border-radius: 14px;
    background: #fffaf4;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cpf-tile:hover {
    border-color: #e6cfb2;
    background: #fff;
}

.cpf-tile__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fbf0e1;
    color: #a20102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.cpf-tile__label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a7562;
    margin-bottom: 3px;
    font-weight: 600;
}

.cpf-tile strong {
    display: block;
    color: #3d2c1e;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

.cpf-referral {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff8f0 0%, #fbf0e1 100%);
    border: 1px solid #ead7c0;
}

.cpf-referral__code {
    margin: 2px 0 4px;
    color: #a20102;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.cpf-referral__hint {
    margin: 0;
    color: #8a7562;
    font-size: 0.84rem;
}

.cpf-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cpf-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cpf-order,
.cpf-address {
    flex: 1;
    padding: 16px;
    border-radius: 14px;
    background: #fffaf4;
    border: 1px solid #f1e6d8;
}

.cpf-order {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpf-order__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cpf-order__top strong,
.cpf-address__top strong {
    font-size: 0.95rem;
    color: #3d2c1e;
}

.cpf-order__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #8a7562;
    font-size: 0.84rem;
}

.cpf-order__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #ead9c4;
}

.cpf-order__total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a20102;
}

.cpf-address__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.cpf-address p {
    margin: 0;
    color: #6b5b4d;
    font-size: 0.86rem;
    line-height: 1.55;
}

.cpf-address .cpf-address__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #3d2c1e;
    font-weight: 500;
}

.cpf-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: #f3ebe0;
    color: #6b5b4d;
    font-size: 0.7rem;
    font-weight: 600;
}

.cpf-tag--default {
    background: #fdecec;
    color: #a20102;
}

.cpf-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: 14px;
    border: 1px dashed #e6d4bd;
    background: #fffcf8;
    text-align: center;
}

.cpf-empty__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FBF0E1;
    color: #a20102;
    font-size: 1.2rem;
}

.cpf-empty p {
    margin: 0 0 4px;
    color: #8a7562;
    font-size: 0.86rem;
}

.cpf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d9c3a3;
    background: #fff;
    color: #3d2c1e;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cpf-btn:hover {
    border-color: #a20102;
    background: #FBF0E1;
    color: #a20102;
}

.cpf-btn--solid {
    border-color: #a20102;
    background: #a20102;
    color: #fff;
}

.cpf-btn--solid:hover {
    border-color: #8a0102;
    background: #8a0102;
    color: #fff;
}

.cpf-help {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8f0 0%, #FBF0E1 100%);
    border: 1px solid #ead7c0;
}

.cpf-help__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    color: #a20102;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(162, 1, 2, 0.1);
}

.cpf-help__text {
    flex: 1;
    min-width: 0;
}

.cpf-help__text strong {
    display: block;
    color: #3d2c1e;
    font-size: 0.95rem;
}

.cpf-help__text span {
    color: #8a7562;
    font-size: 0.84rem;
}

.cpf-help__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cpf-help__links a:not(.cpf-btn) {
    color: #6b5b4d;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.cpf-help__links a:not(.cpf-btn):hover {
    color: #a20102;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .cpf-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .cpf-hero {
        padding: 24px;
    }

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

    .cpf-help {
        flex-wrap: wrap;
    }

    .cpf-help__links {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .cpf-referral {
        flex-direction: column;
        align-items: stretch;
    }

    .cpf-copy {
        width: 100%;
        justify-content: center;
    }
}

.customer-address-card {
    padding: 20px;
    margin-bottom: 16px;
}

.customer-address-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.customer-address-card__type,
.customer-address-card__default {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #f3ebe0;
    color: #6b5b4d;
}

.customer-address-card__default {
    background: #fdecec;
    color: #a20102;
}

.customer-address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #8a7562;
}

.customer-empty-state i {
    font-size: 2rem;
    color: #a20102;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 991.98px) {
    .customer-auth-shell,
    .customer-auth-shell--wide {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .customer-auth-side {
        padding: 28px 24px;
    }

    .customer-auth-side h2 {
        font-size: 1.35rem;
    }

    .customer-auth-side__list {
        gap: 10px;
    }

    .customer-auth-card {
        padding: 28px 22px 24px;
    }

    .customer-account-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .customer-account-sidebar,
    .customer-account-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .customer-account-sidebar {
        height: auto;
        overflow: hidden;
    }

    .customer-account-content {
        overflow-x: clip;
        margin-top: 0;
    }

    .customer-account-nav-wrap {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding-bottom: 4px;
    }

    .customer-account-nav::-webkit-scrollbar {
        display: none;
    }

    .customer-account-nav a,
    .customer-account-nav__logout {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        font-size: 0.84rem;
        padding: 8px 12px;
    }

    .customer-account-nav form {
        flex: 0 0 auto;
        margin: 0;
        display: flex;
    }

    .customer-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .customer-panel__head,
    .customer-address-card__top {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .customer-account-page {
        padding: 20px 0 48px;
        overflow-x: clip;
    }

    .customer-account-layout {
        gap: 20px;
    }

    .customer-account-sidebar {
        padding: 14px 14px 12px;
    }

    .customer-account-user {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .customer-account-user strong {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .customer-account-user span {
        font-size: 12px;
        word-break: break-all;
    }

    .customer-account-nav-wrap {
        border-bottom: 1px solid #efe4d6;
        margin: 0;
        padding: 0 0 12px;
    }

    .customer-account-content {
        margin-top: 0;
        padding-top: 0;
    }

    .customer-panel {
        padding: 16px;
        overflow-x: clip;
        margin-top: 0;
    }

    .customer-panel__head {
        margin-bottom: 20px;
    }

    .customer-panel__head h1 {
        font-size: 1.35rem;
        word-break: break-word;
        margin-bottom: 6px;
    }

    .customer-panel__head p {
        margin-bottom: 16px;
        font-size: 0.9rem;
    }

    .customer-panel__head .d-flex {
        width: 100%;
        flex-direction: column;
    }

    .customer-panel__head .btn {
        width: 100%;
        flex: none;
        justify-content: center;
        text-align: center;
        font-size: 0.84rem;
        padding: 10px 12px;
    }
}

/* Account sidebar on desktop: sticky card with icon nav */
@media (min-width: 992px) {
    .customer-account-sidebar {
        position: sticky;
        top: 24px;
        padding: 16px;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(61, 44, 30, 0.06);
    }

    .customer-account-user {
        padding: 14px;
        margin-bottom: 14px;
        border-bottom: none;
        border-radius: 14px;
        background: linear-gradient(135deg, #5c0001 0%, #a20102 100%);
    }

    .customer-account-user__avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        border: 2px solid #e2bf7f;
    }

    .customer-account-user__avatar--placeholder {
        background: linear-gradient(145deg, #fffaf2 0%, #f3dfbf 100%);
    }

    .customer-account-user__info {
        min-width: 0;
    }

    .customer-account-user strong {
        display: block;
        color: #fff;
        font-size: 0.98rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-account-user span {
        color: rgba(255, 244, 228, 0.85);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-account-nav {
        gap: 4px;
    }

    .customer-account-nav a,
    .customer-account-nav__logout {
        gap: 12px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 0.92rem;
        font-weight: 500;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .customer-account-nav a i,
    .customer-account-nav__logout i {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: #fbf7f1;
        color: #8a6a4d;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .customer-account-nav a.is-active {
        font-weight: 600;
        box-shadow: inset 3px 0 0 #a20102;
    }

    .customer-account-nav a.is-active i {
        background: #a20102;
        color: #fff;
    }

    .customer-account-nav a:not(.is-active):hover i {
        background: #fff;
        color: #a20102;
    }

    .customer-account-nav form {
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid #f1e6d8;
    }

    .customer-account-nav__logout,
    .customer-account-nav__logout i {
        color: #a20102;
    }

    .customer-account-nav__logout i {
        background: #fdecec;
    }

    .customer-account-nav__logout:hover {
        background: #fdecec;
    }
}

/* Account sidebar on phones + tablets: compact maroon card + swipeable pill tabs */
.customer-account-user__hub {
    display: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .customer-account-page--hub .customer-account-user {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .customer-account-page {
        padding-top: 14px;
        background: #f7f2ec;
    }

    .customer-account-layout {
        gap: 14px;
    }

    .customer-account-sidebar {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .customer-account-user {
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 12px;
        border-bottom: none;
        border-radius: 18px;
        background: linear-gradient(135deg, #5c0001 0%, #a20102 100%);
        box-shadow: 0 10px 22px rgba(162, 1, 2, 0.22);
    }

    .customer-account-user__avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        border: 2px solid #e2bf7f;
    }

    .customer-account-user__avatar--placeholder {
        background: linear-gradient(145deg, #fffaf2 0%, #f3dfbf 100%);
        font-size: 1.2rem;
    }

    .customer-account-user__info {
        min-width: 0;
        flex: 1;
    }

    .customer-account-user strong {
        display: block;
        color: #fff;
        font-size: 1rem;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-account-user span {
        color: rgba(255, 244, 228, 0.85);
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
    }

    .customer-account-user__hub {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        padding: 6px 10px 6px 12px;
        border-radius: 999px;
        border: 1px solid rgba(243, 217, 164, 0.55);
        background: rgba(243, 217, 164, 0.14);
        color: #f3d9a4;
        font-size: 0.74rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .customer-account-user__hub i {
        font-size: 0.68rem;
    }

    .customer-account-nav-wrap {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 -12px;
        padding: 2px 12px 6px;
        border-bottom: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .customer-account-nav-wrap::-webkit-scrollbar {
        display: none;
    }

    .customer-account-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: max-content;
    }

    .customer-account-nav a,
    .customer-account-nav__logout {
        gap: 6px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid #f0e4d4;
        background: #fff;
        box-shadow: 0 3px 8px rgba(61, 44, 30, 0.04);
        font-size: 0.82rem;
        font-weight: 500;
        color: #3d2c1e;
    }

    .customer-account-nav a i,
    .customer-account-nav__logout i {
        color: #8a6a4d;
    }

    .customer-account-nav a.is-active {
        background: #a20102;
        border-color: #a20102;
        color: #fff;
        box-shadow: 0 6px 14px rgba(162, 1, 2, 0.22);
    }

    .customer-account-nav a.is-active i {
        color: #fff;
    }

    .customer-account-nav a:not(.is-active):hover {
        background: #FBF0E1;
        color: #a20102;
    }

    .customer-account-nav__logout {
        border-color: #f1c9c9;
        color: #a20102;
    }

    .customer-account-nav__logout i {
        color: #a20102;
    }
}

/* Mobile account hub (profile page, phones only) */
.cpm {
    display: none;
}

@media (max-width: 767.98px) {
    .customer-account-page--hub {
        padding: 14px 0 40px;
        background: #f7f2ec;
    }

    .customer-account-page--hub .customer-account-sidebar,
    .customer-account-page--hub .cpf {
        display: none;
    }

    .cpm {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .cpm-hero {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        color: #fff;
        background:
            linear-gradient(135deg, #5c0001 0%, #a20102 100%);
        box-shadow: 0 12px 26px rgba(162, 1, 2, 0.25);
    }

    .cpm-hero__top {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px 18px 18px;
    }

    .cpm-avatar {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        flex-shrink: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #fffaf2 0%, #f3dfbf 100%);
        border: 3px solid #e2bf7f;
        color: #a20102;
        font-size: 1.9rem;
        font-weight: 700;
    }

    .cpm-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cpm-hero__info {
        min-width: 0;
    }

    .cpm-hero__info h1 {
        margin: 0 0 4px;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        word-break: break-word;
    }

    .cpm-hero__info p {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.5;
        color: rgba(255, 244, 228, 0.85);
        word-break: break-all;
    }

    .cpm-hero__edit {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        margin-top: 8px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
    }

    .cpm-hero__edit i {
        font-size: 0.65rem;
    }

    .cpm-hero__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(0, 0, 0, 0.12);
    }

    .cpm-hero__member {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 0.86rem;
        font-weight: 600;
        color: #f3d9a4;
    }

    .cpm-hero__member-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(243, 217, 164, 0.16);
        color: #f3d9a4;
        font-size: 0.95rem;
    }

    .cpm-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 11px;
        border-radius: 999px;
        border: 1px solid rgba(243, 217, 164, 0.55);
        background: rgba(243, 217, 164, 0.14);
        color: #f3d9a4;
        font-size: 0.74rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .cpm-quick {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .cpm-quick__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 6px 12px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #f0e4d4;
        box-shadow: 0 4px 12px rgba(61, 44, 30, 0.04);
        color: #3d2c1e;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .cpm-quick__item:active {
        transform: scale(0.97);
    }

    .cpm-quick__icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #FBF0E1;
        color: #a20102;
        font-size: 1.15rem;
    }

    .cpm-card {
        position: relative;
        padding: 4px 16px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #f0e4d4;
        box-shadow: 0 4px 12px rgba(61, 44, 30, 0.04);
    }

    .cpm-card__title {
        position: relative;
        margin: 0;
        padding: 14px 0 8px;
        font-size: 1rem;
        font-weight: 700;
        color: #3d2c1e;
    }

    .cpm-card__title::before {
        content: "";
        position: absolute;
        left: -16px;
        top: 14px;
        bottom: 8px;
        width: 4px;
        border-radius: 0 4px 4px 0;
        background: #a20102;
    }

    .cpm-row {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border-bottom: 1px solid #f3ebe1;
        color: #3d2c1e;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .cpm-row:last-child {
        border-bottom: none;
    }

    .cpm-row__icon {
        color: #8a6a4d;
        font-size: 1.05rem;
        line-height: 1;
    }

    .cpm-row__label {
        min-width: 0;
        font-weight: 500;
    }

    .cpm-row__value {
        max-width: 160px;
        color: #8a7562;
        font-size: 0.82rem;
        font-weight: 500;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cpm-row__chevron {
        color: #b9a691;
        font-size: 0.85rem;
    }

    .cpm-row--link:active {
        background: #fdf8f2;
    }

    .cpm-logout {
        margin: 2px 0 0;
    }

    .cpm-logout button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 13px 16px;
        border-radius: 14px;
        border: 1px solid #f1c9c9;
        background: #fff;
        color: #a20102;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .cpm-logout button:active {
        background: #fdecec;
    }
}
