.user-panel {
    /* background: #f4f5f8; */
    min-height: calc(100vh - 180px);
    padding: 36px 0 72px;
}

.user-panel .container {
    max-width: 1180px;
}

.user-panel-page-title {
    font-family: 'Jost', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #1f2026;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.user-panel-page-sub {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 15px;
}

.user-side {
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(24, 28, 42, 0.04);
    margin-bottom: 24px;
}

.user-side-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid #f0f1f5;
    background: linear-gradient(180deg, #faf7fb 0%, #fff 100%);
}

.user-side-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #db3c7a, #3452ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.user-side-name {
    font-weight: 600;
    color: #1f2026;
    font-size: 16px;
    line-height: 1.3;
}

.user-side-meta {
    color: #8a8f9c;
    font-size: 12px;
    line-height: 1.4;
}

.user-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #3a3d48;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.user-side-nav a i {
    width: 18px;
    text-align: center;
    color: #8a8f9c;
    font-size: 15px;
}

.user-side-nav a:hover {
    background: #faf7fb;
    color: #db3c7a;
}

.user-side-nav a:hover i {
    color: #db3c7a;
}

.user-side-nav a.active {
    background: #fdf2f7;
    color: #db3c7a;
    border-left-color: #db3c7a;
    font-weight: 600;
}

.user-side-nav a.active i {
    color: #db3c7a;
}

.user-side-nav a.logout {
    color: #c0392b;
    border-top: 1px solid #f0f1f5;
}

.user-side-nav a.logout i {
    color: #c0392b;
}

.user-main {
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(24, 28, 42, 0.04);
    padding: 17px 17px;
    min-height: 320px;
}

.user-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f1f5;
}

.user-main-head h2,
.user-main-head h3,
.user-main-head h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2026;
}

.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.user-stat {
    display: block;
    background: #f8f6fb;
    border: 1px solid #eeeef4;
    border-radius: 14px;
    padding: 18px 16px;
    color: inherit;
}

.user-stat:hover {
    border-color: #e2b8cb;
    background: #fff;
    color: inherit;
}

.user-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff;
    color: #db3c7a;
    box-shadow: 0 2px 8px rgba(219, 60, 122, 0.12);
}

.user-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    color: #1f2026;
}

.user-stat span {
    font-size: 15px;
    color: #6b7280;
}

.user-panel .form-label {
    font-size: 16px;
    font-weight: 600;
    color: #3a3d48;
    margin-bottom: 6px;
}

.user-panel .form-control,
.user-panel .form-select {
    min-height: 46px;
    border-radius: 10px;
    border-color: #e4e6ee;
    font-size: 16px;
}

.user-panel .form-control:focus,
.user-panel .form-select:focus {
    border-color: #db3c7a;
    box-shadow: 0 0 0 3px rgba(219, 60, 122, 0.12);
}

.user-panel textarea.form-control {
    min-height: 96px;
}

.btn-user-primary {
    background: #db3c7a;
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 22px;
    min-height: 46px;
}

.btn-user-primary:hover {
    background: #c4316c;
    color: #fff;
}

.btn-user-ghost {
    background: #fff;
    border: 1px solid #e4e6ee;
    color: #3a3d48;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
}

.btn-user-ghost:hover {
    border-color: #db3c7a;
    color: #db3c7a;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e4e6ee;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 6px;
}

.user-chip input {
    accent-color: #db3c7a;
}

.user-addr-add {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed #d7b3c4;
    background: #fdf7fa;
    color: #db3c7a;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.user-addr-add:hover {
    background: #faeef4;
    color: #c4316c;
}

.user-addr-add span.plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #db3c7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.user-addr-card {
    border: 1px solid #eceef3;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    position: relative;
}

.user-addr-card .badge-type {
    display: inline-block;
    background: #f3f4f8;
    color: #4b5060;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.user-filter .btn {
    border-radius: 999px;
    font-size: 13px;
    padding: 6px 14px;
}

.user-filter .btn-dark,
.user-filter .btn-user-active {
    background: #1f2026;
    border-color: #1f2026;
}

.user-order-card,
.user-wish-row,
.user-coupon-row {
    border: 1px solid #eceef3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.user-empty {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
}

.user-empty h5 {
    color: #1f2026;
    margin-bottom: 6px;
}

.user-alert {
    border-radius: 10px;
    font-size: 15px;
}

@media (max-width: 991px) {
    .user-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-main {
        padding: 18px 16px;
    }
}

@media (max-width: 575px) {
    .user-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
           ORDER TRACKING PAGE
        ========================================================= */

        .order-track-page {
            background: #f7f7f8;
            min-height: calc(100vh - 100px);
            padding: 30px 0 60px;
        }

        /* Header */
        .track-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin-bottom: 22px;
        }

        .track-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .track-back-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: #fff;
            border: 1px solid #e8e8e8;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #222;
            text-decoration: none;
            transition: .2s;
        }

        .track-back-icon:hover {
            background: #111;
            color: #fff;
        }

        .track-title {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #161616;
        }

        .track-order-number {
            font-size: 13px;
            color: #777;
            margin-top: 3px;
        }

        .track-header .btn {
            border-radius: 8px;
            padding: 9px 16px;
            font-size: 13px;
            font-weight: 600;
        }

        /* Main cards */
        .track-card {
            background: #fff;
            border: 1px solid #e8e8e8;
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 18px;
        }

        .track-card-header {
            padding: 18px 22px;
            border-bottom: 1px solid #eeeeee;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .track-card-header h6 {
            margin: 0;
            font-size: 15px;
            font-weight: 700;
            color: #222;
        }

        .track-card-body {
            padding: 22px;
        }

        /* =========================================================
           STATUS PROGRESS
        ========================================================= */

        .track-progress {
            position: relative;
            display: flex;
            justify-content: space-between;
            margin: 8px 15px 35px;
        }

        .track-progress-line {
            position: absolute;
            top: 19px;
            left: 8%;
            right: 8%;
            height: 3px;
            background: #e8e8e8;
            z-index: 0;
            overflow: hidden;
            border-radius: 10px;
        }

        .track-progress-line-active {
            height: 100%;
            background: #111;
            border-radius: 10px;
            transition: width .4s ease;
        }

        .track-progress-step {
            position: relative;
            z-index: 1;
            flex: 1;
            text-align: center;
        }

        .track-progress-dot {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid #d8d8d8;
            margin: 0 auto 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            color: #999;
        }

        .track-progress-step.done .track-progress-dot {
            background: #496708;
            border-color: #496708;
            color: #fff;
        }

        .track-progress-step.current .track-progress-dot {
            background: #fff;
            border-color: #111;
            color: #111;
            box-shadow: 0 0 0 5px #f0f0f0;
        }

        .track-progress-step.failed .track-progress-dot {
            background: #dc3545;
            border-color: #dc3545;
            color: #fff;
        }

        .track-progress-step small {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #777;
            line-height: 1.4;
        }

        .track-progress-step.done small,
        .track-progress-step.current small {
            color: #222;
        }

        /* =========================================================
           RECEIVED BOX
        ========================================================= */

        .received-box {
            padding: 35px 20px !important;
            background: #fafdfb;
            border: 1px solid #dcefe3;
            border-radius: 12px;
        }

        .received-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: #198754;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            font-weight: 700;
            margin-bottom: 13px;
        }

        .received-box h4 {
            font-size: 20px;
            font-weight: 700;
        }

        /* =========================================================
           OUT FOR DELIVERY
        ========================================================= */

        .delivery-action {
            background: #fafafa;
            border: 1px solid #e7e7e7;
            border-radius: 12px;
            padding: 16px 18px;
        }

        .delivery-action-title {
            font-size: 14px;
            font-weight: 700;
            color: #222;
            margin-bottom: 4px;
        }

        .delivery-action-text {
            font-size: 12px;
            color: #777;
            margin: 0;
        }

        .delivery-action .btn {
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            padding: 9px 15px;
        }

        /* =========================================================
           SHIPPING INFO
        ========================================================= */

        .shipping-info {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 22px;
        }

        .shipping-info-box {
            border: 1px solid #eeeeee;
            border-radius: 10px;
            padding: 15px;
            background: #fff;
        }

        .shipping-info-label {
            font-size: 14px;
            text-transform: uppercase;
            /* letter-spacing: .4px; */
            color: #009688;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .shipping-info-value {
            font-size: 15px;
            font-weight: 700;
            color: #333333e0;
            word-break: break-word;
        }

        /* =========================================================
           TIMELINE
        ========================================================= */

        .track-timeline {
            position: relative;
            margin-left: 7px;
            padding-left: 28px;
        }

        .track-timeline:before {
            content: "";
            position: absolute;
            left: 0;
            top: 5px;
            bottom: 5px;
            width: 2px;
            background: #e7e7e7;
        }

        .track-timeline-item {
            position: relative;
            padding-bottom: 24px;
        }

        .track-timeline-item:last-child {
            padding-bottom: 0;
        }

        .track-timeline-item:before {
            content: "";
            position: absolute;
            left: -33px;
            top: 3px;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #111;
            border: 3px solid #fff;
            box-shadow: 0 0 0 1px #111;
        }

        .timeline-title {
            font-size: 15px;
            font-weight: 700;
            color: #222;
            margin-bottom: 4px;
        }

        .timeline-note {
            font-size: 15px;
            color: #777;
            line-height: 1.5;
            margin-bottom: 3px;
        }

        .timeline-location {
            font-size: 11px;
            color: #555;
            margin-bottom: 3px;
        }

        .timeline-date {
            font-size: 14px;
            color: #999;
        }

        .timeline-empty {
            background: #fafafa;
            border: 1px dashed #ddd;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            font-size: 13px;
            color: #888;
        }

        /* =========================================================
           ORDER ITEMS
        ========================================================= */

        .order-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .order-item:first-child {
            padding-top: 0;
        }

        .order-item:last-child {
            border-bottom: 0;
        }

        .order-item-name {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            line-height: 1.4;
        }

        .order-item-status {
            font-size: 13px;
            color: #fff;
            background: #2e6708;
            border-radius: 5px;
            padding: 4px 7px;
            white-space: nowrap;
            height: fit-content;
        }

        .order-total {
            padding-top: 14px;
            margin-top: 4px;
            border-top: 1px solid #e8e8e8;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .order-total-label {
            font-size: 15px;
            color: #555;
            font-weight: 600;
        }

        .order-total-value {
            font-size: 18px;
            font-weight: 800;
            color: #111;
        }

        /* =========================================================
           ADDRESS
        ========================================================= */

        .address-name {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .address-text {
            font-size: 15px;
            color: #666;
            line-height: 1.7;
            margin: 0;
        }

        /* =========================================================
           STATUS BADGE
        ========================================================= */

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 20px;
            padding: 6px 10px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .3px;
        }

        .status-badge.cancelled,
        .status-badge.refunded {
            background: #fff1f1;
            color: #dc3545;
        }

        .status-badge.active {
            background: #f1f8f4;
            color: #198754;
        }

        /* =========================================================
           MOBILE
        ========================================================= */

        @media (max-width: 767px) {

            .order-track-page {
                padding: 20px 0 40px;
            }

            .track-header {
                align-items: flex-start;
            }

            .track-title {
                font-size: 18px;
            }

            .track-order-number {
                font-size: 11px;
            }

            .track-back-icon {
                width: 36px;
                height: 36px;
                border-radius: 9px;
            }

            .track-header .btn {
                font-size: 11px;
                padding: 8px 10px;
            }

            .track-card-header,
            .track-card-body {
                padding: 16px;
            }

            .track-progress {
                margin: 8px 0 30px;
            }

            .track-progress-line {
                left: 8%;
                right: 8%;
                top: 16px;
                height: 2px;
            }

            .track-progress-dot {
                width: 34px;
                height: 34px;
                font-size: 11px;
            }

            .track-progress-step small {
                font-size: 9px;
            }

            .shipping-info {
                grid-template-columns: 1fr;
            }

            .delivery-action {
                padding: 14px;
            }

            .delivery-action .btn {
                width: 100%;
                margin-top: 10px;
            }

            .track-timeline {
                padding-left: 22px;
            }

            .track-timeline-item:before {
                left: -27px;
            }

            .received-box {
                padding: 28px 15px !important;
            }
        }