.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: 10px 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;
}

.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;
    }
}
