:root {
    --ep-black: #0b0b0f;
    --ep-dark: #141417;
    --ep-gold: #e4ab24;
    --ep-gold-2: #f0b61b;
    --ep-blue: #2d5d94;
    --ep-blue-2: #406c9c;
    --ep-soft: #f6f7fb;
    --ep-text: #232323;
    --ep-muted: #6f7580;
    --ep-border: rgba(0, 0, 0, .08);
    --ep-shadow: 0 18px 55px rgba(0, 0, 0, .08);
    --ep-success: #198754;
    --ep-warning: #f59f00;
    --ep-danger: #dc3545;
    --sidebar-width: 290px;
    --topbar-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ep-text);
    background: var(--ep-soft);
}

.dashboard-app {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f1115 0%, #172130 42%, #20324e 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, .08);
    overflow-y: auto;
    padding: 1.25rem 1rem;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .4rem .35rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 1.2rem;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(228, 171, 36, .25), rgba(228, 171, 36, .08));
    color: var(--ep-gold);
    box-shadow: inset 0 0 0 1px rgba(228, 171, 36, .18);
    flex: 0 0 auto;
}

.brand-block h5 {
    margin: 0;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    font-size: 1.08rem;
}

.brand-block small {
    color: rgba(255, 255, 255, .6);
}

.customer-mini {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
}

.customer-mini .avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-2));
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.customer-mini h6 {
    margin: 0 0 .25rem;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.customer-mini p {
    margin: 0 0 .7rem;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    line-height: 1.6;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, .14);
    border: 1px solid rgba(25, 135, 84, .24);
    color: #d7ffe7;
    font-size: .8rem;
    font-weight: 700;
}

.sidebar-title {
    color: rgba(255, 255, 255, .48);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .6rem .85rem;
    margin-top: .5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.sidebar-menu li {
    margin-bottom: .35rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .95rem 1rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 600;
    transition: .25s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateX(3px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(228, 171, 36, .22), rgba(228, 171, 36, .12));
    color: #fff;
    border: 1px solid rgba(228, 171, 36, .24);
    box-shadow: 0 12px 28px rgba(228, 171, 36, .12);
}

.sidebar-menu i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--ep-gold);
    flex: 0 0 auto;
}

.sidebar-footer {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-footer p {
    margin: 0 0 .8rem;
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
    line-height: 1.7;
}

.btn-gold {
    background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-2));
    border: 0;
    color: #fff;
    font-weight: 700;
    padding: .85rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(228, 171, 36, .24);
}

.btn-gold:hover {
    color: #fff;
    filter: brightness(.98);
}

.btn-light-soft {
    background: #fff;
    border: 1px solid var(--ep-border);
    color: #243041;
    font-weight: 600;
    padding: .85rem 1.1rem;
    border-radius: 14px;
}

.main-wrap {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
}

.top-header {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ep-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-header-inner {
    min-height: var(--topbar-height);
    padding: 0 1.5rem;
}

.mobile-toggle {
    display: none;
}

.search-bar {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.search-bar input {
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--ep-border);
    padding-left: 2.75rem;
    box-shadow: none !important;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8491;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ep-border);
    color: #334155;
    text-decoration: none;
    position: relative;
}

.notify-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ep-gold);
    top: 8px;
    right: 8px;
    border: 2px solid #fff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .35rem .5rem .35rem .35rem;
    border: 1px solid var(--ep-border);
    border-radius: 18px;
    background: #fff;
}

.header-user .avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(228, 171, 36, .22), rgba(64, 108, 156, .12));
    color: var(--ep-blue);
    font-weight: 800;
}

.header-user strong {
    display: block;
    color: #243041;
    line-height: 1.2;
    font-size: .95rem;
}

.header-user small {
    color: var(--ep-muted);
    display: block;
    line-height: 1.2;
}

.content-area {
    padding: 1.5rem;
}

.page-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(228, 171, 36, .14), transparent 22%),
        radial-gradient(circle at 84% 15%, rgba(64, 108, 156, .16), transparent 24%),
        linear-gradient(135deg, #111216 0%, #18212f 45%, #20324e 100%);
    color: #fff;
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    background: rgba(228, 171, 36, .12);
}

.page-hero h1 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: .8rem;
}

.page-hero p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ep-gold);
    flex: 0 0 auto;
}

.glass-box {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    padding: 1.1rem;
    backdrop-filter: blur(10px);
    height: 100%;
}

.glass-box small {
    color: rgba(255, 255, 255, .68);
}

.glass-box strong {
    color: #fff;
    display: block;
    font-size: 1.1rem;
    margin-top: .2rem;
}

.summary-card,
.panel-card,
.mini-card {
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
    transition: .3s ease;
}

.summary-card,
.panel-card,
.mini-card {
    padding: 1.35rem;
    height: 100%;
}

.summary-card:hover,
.panel-card:hover,
.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ep-shadow);
}

.summary-card-dark {
    background: linear-gradient(135deg, #16314e 0%, #254d78 55%, #101922 100%);
    color: #fff;
    border: 0;
    position: relative;
    overflow: hidden;
}

.summary-card-dark::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(228, 171, 36, .14);
}

.summary-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(228, 171, 36, .15), rgba(64, 108, 156, .12));
    color: var(--ep-blue);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.summary-card-dark .summary-icon {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.summary-label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ep-muted);
    margin-bottom: .35rem;
}

.summary-card-dark .summary-label {
    color: rgba(255, 255, 255, .78);
}

.summary-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: .35rem;
}

.summary-note {
    color: var(--ep-muted);
    font-size: .92rem;
    line-height: 1.7;
}

.summary-card-dark .summary-note {
    color: rgba(255, 255, 255, .74);
}

.section-title-sm {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ep-border);
    color: #1f2937;
    margin-bottom: .9rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .04);
}

.section-heading {
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 800;
    color: #243041;
    margin-bottom: .6rem;
}

.muted-text {
    color: var(--ep-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.panel-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #243041;
}

.panel-subtitle {
    color: var(--ep-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.dashboard-table {
    margin: 0;
    vertical-align: middle;
}

.dashboard-table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6e7683;
    background: #fbfcfe;
    border-bottom: 1px solid var(--ep-border);
    padding: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 1rem;
    border-color: rgba(0, 0, 0, .06);
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .72rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}

.status-paid,
.status-delivered,
.status-reviewed {
    background: rgba(25, 135, 84, .12);
    color: #1f7a45;
    border: 1px solid rgba(25, 135, 84, .14);
}

.status-processing,
.status-pending,
.status-inprocess,
.status-shipped {
    background: rgba(245, 159, 0, .14);
    color: #9b6c00;
    border: 1px solid rgba(245, 159, 0, .16);
}

.status-cancelled {
    background: rgba(220, 53, 69, .10);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, .14);
}

.tracking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.tracking-list::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--ep-gold), rgba(228, 171, 36, .08));
}

.tracking-list li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-left: 2.3rem;
    margin-bottom: 1.3rem;
}

.tracking-list li:last-child {
    margin-bottom: 0;
}

.tracking-list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d7dce3;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, .02);
}

.tracking-list li.done::before {
    background: var(--ep-gold);
    box-shadow: 0 0 0 5px rgba(228, 171, 36, .15);
}

.tracking-list h6 {
    margin: 0 0 .25rem;
    font-weight: 800;
}

.tracking-list p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.7;
    font-size: .94rem;
}

.profile-list,
.quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li,
.quick-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 0;
    border-top: 1px dashed rgba(0, 0, 0, .08);
    font-weight: 600;
    color: var(--ep-muted);
}

.profile-list li:first-child,
.quick-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-list strong,
.quick-list strong {
    color: #243041;
    font-weight: 800;
    text-align: right;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--ep-border);
    border-radius: 18px;
    color: #243041;
    text-decoration: none;
    font-weight: 700;
    transition: .25s ease;
}

.action-btn:hover {
    color: #243041;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
}

.action-btn i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(228, 171, 36, .16), rgba(64, 108, 156, .10));
    color: var(--ep-blue);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.mini-card h6 {
    margin-bottom: .55rem;
    font-weight: 800;
}

.mini-card p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.8;
    font-size: .95rem;
}

@media (max-width: 1199.98px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-wrap {
        margin-left: 0;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .dashboard-table {
        min-width: 920px;
    }

    .content-area {
        padding: 1rem;
    }

    .top-header-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 767.98px) {
    .top-header-inner {
        gap: .75rem;
    }

    .search-bar {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .header-user span {
        display: none;
    }

    .page-hero {
        padding: 1.5rem;
    }

    .product-line {
        flex-direction: column;
      }

      .product-line .line-price {
        margin-left: 0;
        text-align: left;
      }
}

.profile-list,
.quick-list,
.info-list,
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li,
.quick-list li,
.info-list li,
.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 0;
    border-top: 1px dashed rgba(0, 0, 0, .08);
    font-weight: 600;
    color: var(--ep-muted);
}

.profile-list li:first-child,
.quick-list li:first-child,
.info-list li:first-child,
.price-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-list strong,
.quick-list strong,
.info-list strong,
.price-list strong {
    color: #243041;
    font-weight: 800;
    text-align: right;
}

.price-list.total li:last-child,
.price-list .final-total {
    border-top: 1px solid rgba(0, 0, 0, .12);
    margin-top: .3rem;
    padding-top: 1rem;
}

.final-total strong,
.final-total span {
    font-size: 1.08rem;
}