.member-wrap {
    position: relative;
    min-height: 640px;
    padding: 56px 0 72px;
    overflow: hidden;
}

.member-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.member-wrap .wrap-content {
    position: relative;
    z-index: 1;
}

.login-wrap {
    display: flex;
    justify-content: center;
}

.login__wrap-bg {
    display: none;
}

.login__wrap-box {
    width: 100%;
    max-width: 480px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login__wrap-inner {
    padding: 40px 36px 32px;
    border-radius: 12px;
    background: #fff;
}

.login__wrap-header {
    margin-bottom: 24px;
    text-align: center;
}

.login__wrap-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border: 1px solid rgba(109, 2, 1, .12);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(109, 2, 1, .12);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login__wrap-logo:hover {
    transform: scale(1.06);
}

.login__wrap-logo img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.login__wrap-title {
    margin: 0;
    color: #6d0201;
    font-family: "Arsenal-B";
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
}

.login__wrap-content {
    margin-bottom: 18px;
}

.login__input {
    margin-bottom: 16px;
}

.login__input label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b4743;
    font-weight: 600;
    text-align: left;
}

.member-wrap .input-group {
    position: relative;
    display: block;
}

.member-wrap .form-control {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 16px;
    border: 1px solid #e4e0dc;
    border-radius: 8px !important;
    color: #222;
    background: #fbfaf8;
    box-shadow: none;
    font-size: 14px;
    transition: all .25s ease;
}

.member-wrap .form-control:hover {
    border-color: #c9c5c0;
    background: #fff;
}

.member-wrap .form-control:focus {
    border-color: #9f0406;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(159, 4, 6, .12);
}

.member-wrap .form-control::placeholder {
    color: #8d8781;
}

.show-pass {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 48px;
    color: #8f0305;
    transition: color .2s ease;
}

.show-pass:hover {
    color: #c5070a;
}

.login__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 18px;
    color: #4b4743;
}

.login__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #9f0406;
}

.login__checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

.login__submit-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 8px;
    color: #6d0201;
    background: #fce26c;
    font-family: "Arsenal-B";
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(252, 226, 108, 0.35);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login__submit-btn:hover {
    color: #fff;
    background: #9f0406;
    box-shadow: 0 6px 16px rgba(159, 4, 6, 0.35);
    transform: translateY(-2px);
}

.login__submit-btn:active {
    transform: translateY(0);
}

.thongbao-form {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(159, 4, 6, .18);
    border-radius: 8px;
    color: #8f0305;
    background: #fff4d0;
    line-height: 1.5;
    font-size: 14px;
    text-align: left;
}

.login__wrap-register {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e4e0dc;
    font-size: 15px;
    color: #555;
    text-align: center;
    line-height: 1.55;
}

.login__wrap-agree {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
    text-align: center;
    line-height: 1.55;
}

.login__wrap-register a,
.login__wrap-forget,
.login__wrap-agree a {
    color: #8f0305;
    font-family: "Arsenal-B";
    text-decoration: none;
    transition: color .2s ease;
}

.login__wrap-register a:hover,
.login__wrap-forget:hover,
.login__wrap-agree a:hover {
    color: #c5070a;
    text-decoration: underline;
}

.login__wrap-forget {
    display: block;
    margin: 10px 0 14px;
    text-align: center;
    font-size: 14px;
}

.member-wrap .invalid-feedback,
.member-wrap .error-feedback {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
    text-align: left;
}

/* ── Section Info User & Dashboard ─────────────────────────────── */
.section-info-user {
    padding: 40px 0 60px;
    background: #fbfaf8;
    min-height: 500px;
}

.box_info {
    width: 100%;
}

.flex_info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.left_info {
    width: 280px;
    flex-shrink: 0;
}

.right_info, .right-info {
    flex-grow: 1;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2ede7;
}

/* Sidebar Styling */
.ac-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2ede7;
}

.ac-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ac-sidebar__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #9f0406;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(159, 4, 6, 0.2);
}

.ac-sidebar__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.ac-sidebar__name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.ac-sidebar__email {
    font-size: 13px;
    color: #777;
    word-break: break-all;
}

.ac-sidebar__level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fff9e6;
    color: #d4a017;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    margin-top: 4px;
}

.ac-sidebar__divider {
    height: 1px;
    background: #f2ede7;
    margin: 16px 0;
}

.ac-sidebar__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-sidebar__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ac-sidebar__nav-link:hover {
    background: #fbfaf8;
    color: #9f0406;
    text-decoration: none;
}

.ac-sidebar__nav-link.is-active {
    background: #fff3f3;
    color: #9f0406;
    font-weight: 600;
}

.ac-sidebar__nav-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
    flex-shrink: 0;
}

.ac-sidebar__nav-link--logout {
    color: #dc3545;
}

.ac-sidebar__nav-link--logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* Info Form Content Area */
.title-user-info {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2ede7;
    text-align: left;
}

.title-user-info span {
    font-size: 20px;
    font-weight: 700;
    color: #6d0201;
    text-transform: uppercase;
    font-family: "Arsenal-B";
    position: relative;
    display: inline-block;
}

.title-user-info span::after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #9f0406;
    border-radius: 2px;
}

.right_info label, .right-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #4b4743;
    text-align: left;
}

.right_info label span.text-danger, .right-info label span.text-danger {
    margin-left: 3px;
}

.right_info .input-group.input-user, .right-info .input-group.input-user {
    margin-bottom: 20px;
    position: relative;
}

.right_info .form-control, .right-info .form-control {
    width: 100%;
    height: 48px;
    border-radius: 8px !important;
    font-size: 14px;
    border: 1px solid #e4e0dc;
    background: #fbfaf8;
    padding: 0 16px;
    transition: all 0.25s ease;
}

.right_info .form-control:hover, .right-info .form-control:hover {
    border-color: #c9c5c0;
}

.right_info .form-control:focus, .right-info .form-control:focus {
    border-color: #9f0406;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(159, 4, 6, .12);
}

.right_info .form-control[readonly], .right-info .form-control[readonly] {
    background: #f1ede9;
    color: #666;
    cursor: not-allowed;
    border-color: #e4e0dc;
}

.right_info .input-user .show-pass, .right-info .input-user .show-pass {
    position: absolute;
    top: 0;
    right: 0;
    height: 48px;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: #8f0305;
    cursor: pointer;
    transition: color 0.2s ease;
}

.right_info .input-user .show-pass:hover, .right-info .input-user .show-pass:hover {
    color: #c5070a;
}

.right_info .button-user, .right-info .button-user {
    margin-top: 10px;
    text-align: left;
}

.right_info .btn-login, .right-info .btn-login {
    height: 48px;
    padding: 0 36px;
    border: 0;
    border-radius: 8px;
    color: #6d0201;
    background: #fce26c;
    font-family: "Arsenal-B";
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(252, 226, 108, 0.35);
    cursor: pointer;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.right_info .btn-login:hover, .right-info .btn-login:hover {
    color: #fff;
    background: #9f0406;
    box-shadow: 0 6px 16px rgba(159, 4, 6, 0.35);
    transform: translateY(-2px);
}

.right_info .btn-login:active, .right-info .btn-login:active {
    transform: translateY(0);
}

.right_info .invalid-feedback, .right_info .text-danger,
.right-info .invalid-feedback, .right-info .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545;
    text-align: left;
}

/* Flatpickr input alignment */
.right_info .flatpickr-input, .right-info .flatpickr-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 46px;
}

/* ── Order List Subpage ───────────────────────────────────────── */
.navbar-order {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f2ede7;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.navbar-order a {
    padding: 8px 18px;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fbfaf8;
    border: 1px solid #e4e0dc;
    transition: all 0.25s ease;
}

.navbar-order a:hover {
    color: #9f0406;
    background: #fff3f3;
    border-color: #9f0406;
}

.navbar-order a.active {
    color: #fff;
    background: #9f0406;
    border-color: #9f0406;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(159, 4, 6, 0.2);
}

.item-order {
    border: 1px solid #f2ede7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.item-order:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: #e4e0dc;
}

.item-order p.code {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.item-order p.code a {
    color: #6d0201;
    font-family: "Arsenal-B";
    font-size: 18px;
    text-decoration: none;
}

.item-order p.code a:hover {
    color: #9f0406;
    text-decoration: underline;
}

.item-order .order_status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
}

.item-order .total-price {
    margin-left: auto;
    color: #9f0406;
    font-weight: 700;
    font-size: 18px;
}

.item-order .date-order {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-show-order {
    border-top: 1px solid #f2ede7;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.item-product-order {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pic-product-order {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f2ede7;
    flex-shrink: 0;
}

.pic-product-order img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.in4-product-order {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.name-product-order {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin: 0;
}

.code-product-order {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.quanlity-product-order {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* ── Order Detail Subpage ─────────────────────────────────────── */
.right-info .table, .right_info .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.right-info .table th, .right_info .table th {
    background: #fbfaf8;
    color: #4b4743;
    font-weight: 600;
    border-bottom: 2px solid #f2ede7;
    padding: 12px 16px;
    font-size: 14px;
    border-top: none;
}

.right-info .table td, .right_info .table td {
    padding: 16px;
    border-bottom: 1px solid #f2ede7;
    vertical-align: middle;
    font-size: 14px;
}

.right-info .img-preview, .right_info .img-preview {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e4e0dc;
}

.price-cart-detail span {
    font-weight: 600;
    color: #222;
}

.price-cart-detail .price-new-cart-detail {
    color: #9f0406;
    font-weight: 700;
}

.cast-money-cart-detail {
    font-weight: 600;
    font-size: 15px;
}

.cast-money-cart-detail text-right {
    text-align: right;
}

.cast-money-cart-detail strong.text-danger {
    color: #9f0406 !important;
    font-size: 18px;
    font-weight: 700;
}

.right-info .card, .right_info .card {
    background: #fff;
    border: 1px solid #f2ede7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.right-info .card-header, .right_info .card-header {
    background: #fbfaf8;
    border-bottom: 1px solid #f2ede7;
    padding: 14px 20px;
    text-align: left;
}

.right-info .card-title, .right_info .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #6d0201;
    text-transform: uppercase;
    font-family: "Arsenal-B";
}

.right-info .card-body, .right_info .card-body {
    padding: 20px;
    text-align: left;
}

.right-info .form-group, .right_info .form-group {
    margin-bottom: 14px;
}

.right-info .form-group:last-child, .right_info .form-group:last-child {
    margin-bottom: 0;
}

.right-info .form-label, .right_info .form-label {
    margin: 0;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.right-info .form-label span, .right_info .form-label span {
    color: #222;
    font-weight: 600;
}

.right-info .form-label span.text-primary, .right_info .form-label span.text-primary {
    color: #9f0406 !important;
}

.right-info .form-label span.text-success, .right_info .form-label span.text-success {
    color: #28a745 !important;
}

/* Timeline */
.timeline-container_new {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #f2ede7;
    margin-left: 12px;
    text-align: left;
}

.timeline-container_new--position {
    position: relative;
    margin-bottom: 24px;
}

.timeline-container_new--position:last-child {
    margin-bottom: 0;
}

.timeline-event-contentnew__icon {
    position: absolute;
    left: -35px;
    top: 2px;
    background: #fff;
    padding: 2px 0;
}

.timeline-event-contentnew__icon .icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff3f3;
    color: #9f0406;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #9f0406;
}

.timeline-item-new--border--padding {
    padding: 0;
}

.timeline-new__infomation__time {
    font-size: 13px;
    color: #9f0406;
}

.timeline-new__infomation__message {
    margin-top: 8px;
    background: #fbfaf8;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #f2ede7;
}

.hs-usname {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* ── Viewed Products Subpage ─────────────────────────────────── */
.grid-product {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Pagination Styling */
.right_info .pagination, .right-info .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-left: 0;
}

.right_info .pagination li, .right-info .pagination li {
    list-style: none;
}

.right_info .pagination li a, .right_info .pagination li span,
.right-info .pagination li a, .right-info .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e4e0dc;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.right_info .pagination li a:hover,
.right-info .pagination li a:hover {
    color: #9f0406;
    border-color: #9f0406;
    background: #fff3f3;
}

.right_info .pagination li.active span,
.right-info .pagination li.active span {
    color: #fff;
    background: #9f0406;
    border-color: #9f0406;
    box-shadow: 0 4px 10px rgba(159, 4, 6, 0.2);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .flex_info {
        flex-direction: column;
        gap: 24px;
    }

    .left_info {
        width: 100%;
    }

    .right_info, .right-info {
        width: 100%;
        padding: 24px 20px;
    }
}

@media (max-width: 767px) {
    .member-wrap {
        min-height: auto;
        padding: 34px 0 46px;
    }

    .login__wrap-inner {
        padding: 26px 18px 22px;
    }

    .login__wrap-title {
        font-size: 24px;
    }

    .login__wrap-logo {
        width: 78px;
        height: 78px;
    }

    .section-info-user {
        padding: 20px 0 40px;
    }

    .navbar-order {
        gap: 8px;
    }

    .navbar-order a {
        padding: 6px 12px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}

/* Toggle Order Detail & Coupon Styles */
.order-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.order-coupon-badge i {
    color: #16a34a;
}

.item-order-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    border-top: 1px dashed #e4e0dc;
    padding-top: 12px;
}

.btn-toggle-order-detail {
    background: none;
    border: none;
    color: #6d0201;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

.btn-toggle-order-detail:hover {
    background-color: rgba(109, 2, 1, 0.05);
    color: #9f0406;
}

.btn-toggle-order-detail i {
    transition: transform 0.25s ease;
}

.btn-toggle-order-detail.is-active i {
    transform: rotate(180deg);
}

.properties-product-order {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 6px;
}

.properties-product-order .property-item {
    font-size: 11px;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}
