:root {
    --wtc-bg: #F8F9FD;
    --wtc-sidebar-bg: #FFFFFF;
    --wtc-card-bg: #FFFFFF;
    --wtc-gfxcard-bg: #FFFFFF;
    --wtc-text-primary: #1A202C;
    --wtc-text-secondary: #718096;
    --wtc-text-positive: #38A169;
    --wtc-text-negative: #E53E3E;
    --wtc-border-color: #E2E8F0;
    --wtc-select-bg: #FFFFFF;
    --wtc-select-text: #1A202C;
    --wtc-select-option-bg: #FFFFFF !important;
    --wtc-select-option-text: #1A202C !important;
    --card-1-bg: #fff;
    --card-1-icon-bg: #EBF8FF;
    --card-1-icon: #3182CE;
    --card-1-border: #BEE3F8;
    --card-2-bg: #fff;
    --card-2-icon-bg: #FAF5FF;
    --card-2-icon: #805AD5;
    --card-2-border: #E9D8FD;
    --card-3-bg: #fff;
    --card-3-icon-bg: #F0FFF4;
    --card-3-icon: #38A169;
    --card-3-border: #C6F6D5;
    --card-4-bg: #fff;
    --card-4-icon-bg: #FFF5F5;
    --card-4-icon: #E53E3E;
    --card-4-border: #FED7D7;
    --wtc-btn-active-bg: #3182CE;
    --wtc-btn-active-color: #FFFFFF;
    --wtc-btn-hover-bg: #F7F7F7;
    --wtc-btn-hover-color: #1A202C;
    --wtc-btn-text-color: #3b3b3b;
    --wtc-avatar-circle-bg: #3182CE;
    --wtc-avatar-circle-bg-to: #2b6cb0;
    --wtc-avatar-border: #d8d8d8;
    --wtc-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --wtc-radius: 14px;
    --wtc-btn-radius: 10px;
    --wtc-card-radius: 14px;
    --wtc-card-min-width: 175px;
}
[data-wtc-theme="dark"] {
    --wtc-bg: #000000;
    --wtc-sidebar-bg: #111111;
    --wtc-card-bg: #111111;
    --wtc-gfxcard-bg: #111111;
    --wtc-text-primary: #FFFFFF;
    --wtc-text-secondary: #A0AEC0;
    --wtc-text-positive: #38A169;
    --wtc-text-negative: #E53E3E;
    --wtc-border-color: #2D3748;
    --wtc-select-bg: #1A1A1A;
    --wtc-select-text: #FFFFFF;
    --wtc-select-option-bg: #1A1A1A !important;
    --wtc-select-option-text: #FFFFFF !important;
    --card-1-bg: #111;
    --card-1-icon-bg: #EBF8FF;
    --card-1-icon: #3182CE;
    --card-1-border: #222;
    --card-2-bg: #111;
    --card-2-icon-bg: #FAF5FF;
    --card-2-icon: #805AD5;
    --card-2-border: #222;
    --card-3-bg: #111;
    --card-3-icon-bg: #F0FFF4;
    --card-3-icon: #38A169;
    --card-3-border: #222;
    --card-4-bg: #111;
    --card-4-icon-bg: #FFF5F5;
    --card-4-icon: #E53E3E;
    --card-4-border: #222;
    --wtc-btn-active-bg: #fff;
    --wtc-btn-active-color: #000;
    --wtc-btn-hover-bg: #000000;
    --wtc-btn-hover-color: #fff;
    --wtc-btn-text-color: #bdbdbd;
    --wtc-avatar-circle-bg: #5c5c5c;
    --wtc-avatar-circle-bg-to: #0e0e0e;
    --wtc-avatar-border: #6d6d6d;
}
.wtc-dashboard-container {
    display: flex !important;
    background: var(--wtc-bg);
    gap: 30px;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: var(--wtc-radius);
    border: 1px solid var(--wtc-border-color);
}
.wtc-sidebar {
    width: 260px !important;
    flex-shrink: 0;
    background: var(--wtc-sidebar-bg);
    border-radius: var(--wtc-card-radius);
    border: 1px solid var(--wtc-border-color);
    padding: 20px;
    box-shadow: var(--wtc-card-shadow);
}
.wtc-sidebar ul,
.wtc-sidebar li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wtc-sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--wtc-text-secondary);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    padding-left: 10px;
}
.wtc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--wtc-btn-text-color);
    text-decoration: none !important;
    border-radius: var(--wtc-card-radius);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.wtc-nav-link .dashicons,
.wtc-nav-link .wtc-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.wtc-nav-item:hover .wtc-nav-link {
    background: var(--wtc-btn-hover-bg);
    color: var(--wtc-btn-hover-color);
}
.wtc-nav-item.active .wtc-nav-link {
    background: var(--wtc-btn-active-bg);
    color: var(--wtc-btn-active-color) !important;
}
.wtc-nav-item.active .wtc-nav-link .dashicons,
.wtc-nav-item.active .wtc-nav-link .wtc-icon {
    color: var(--wtc-btn-active-color) !important;
}
.wtc-dashboard-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.wtc-dashboard-content .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.wtc-dash-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 30px;
    gap: 15px;
}
.wtc-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}
.wtc-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wtc-avatar-circle-bg) 0%, var(--wtc-avatar-circle-bg-to) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(49, 130, 206, 0.3);
    flex-shrink: 0;
    text-transform: uppercase;
    border: 2px solid var(--wtc-avatar-border);
}
.wtc-welcome {
    font-size: 13px;
    color: var(--wtc-text-secondary);
    display: block;
    margin-bottom: 2px;
}
.wtc-username {
    font-size: 20px;
    font-weight: 800;
    color: var(--wtc-text-primary);
    margin: 0;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .wtc-dash-header {
        justify-content: flex-start;
    }
    .wtc-user-info {
        text-align: left;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
}
.wtc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--wtc-card-min-width), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.wtc-stat-card {
    background: #fff;
    border-radius: var(--wtc-card-radius);
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    box-shadow: var(--wtc-card-shadow);
    transition: transform 0.2s;
    height: 100px;
    border: 1px solid transparent;
}
.wtc-stat-card:hover {
    transform: translateY(-3px);
}
.card-spend {
    background: var(--card-1-bg);
    border-color: var(--card-1-border);
}
.card-spend:hover {
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.15);
}
.card-spend .wtc-icon-box {
    background: var(--card-1-icon-bg);
    color: var(--card-1-icon);
}
.card-orders {
    background: var(--card-2-bg);
    border-color: var(--card-2-border);
}
.card-orders:hover {
    box-shadow: 0 0 15px rgba(128, 90, 213, 0.15);
}
.card-orders .wtc-icon-box {
    background: var(--card-2-icon-bg);
    color: var(--card-2-icon);
}
.card-points {
    background: var(--card-3-bg);
    border-color: var(--card-3-border);
}
.card-points:hover {
    box-shadow: 0 0 15px rgba(72, 187, 120, 0.2);
}
.card-points .wtc-icon-box {
    background: var(--card-3-icon-bg);
    color: var(--card-3-icon);
}
.card-coupons {
    background: var(--card-4-bg);
    border-color: var(--card-4-border);
}
.card-coupons:hover {
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.15);
}
.card-coupons .wtc-icon-box {
    background: var(--card-4-icon-bg);
    color: var(--card-4-icon);
}
.wtc-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wtc-icon-box .dashicons,
.wtc-icon-box .wtc-icon {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    line-height: 1 !important;
}
.wtc-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wtc-label {
    font-size: 11px;
    color: var(--wtc-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.wtc-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--wtc-text-primary);
}
.wtc-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.wtc-orders-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--wtc-text-primary);
}
.wtc-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.wtc-status-tabs {
    background: var(--wtc-sidebar-bg) !important;
    padding: 4px;
    border-radius: var(--wtc-btn-radius);
    display: inline-flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--wtc-border-color);
}
.wtc-tab {
    border: none !important;
    background: transparent !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--wtc-btn-text-color) !important;
    border-radius: var(--wtc-btn-radius) !important;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: auto;
    line-height: normal;
}
.wtc-tab:hover {
    color: var(--wtc-btn-hover-color) !important;
}
.wtc-tab.active {
    background: var(--wtc-btn-active-bg) !important;
    color: var(--wtc-btn-active-color) !important;
}
.wtc-select {
    padding: 6px 30px 6px 10px !important;
    border-radius: var(--wtc-btn-radius) !important;
    border: 1px solid var(--wtc-border-color) !important;
    font-size: 12px !important;
    width: auto !important;
    min-width: 120px;
    background-color: var(--wtc-select-bg) !important;
    color: var(--wtc-select-text) !important;
    line-height: normal !important;
}
.wtc-select option {
    background-color: var(--wtc-select-option-bg) !important;
    color: var(--wtc-select-option-text) !important;
}
.wtc-order-row {
    background: var(--wtc-card-bg) !important;
    border-radius: var(--wtc-card-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--wtc-border-color);
    transition: all 0.2s;
    flex-wrap: nowrap;
}
.wtc-order-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.wtc-order-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid var(--wtc-border-color);
}
.wtc-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wtc-more-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-top-left-radius: 6px;
}
.wtc-order-details {
    flex: 2;
    min-width: 120px;
}
.wtc-order-id a {
    font-weight: 700;
    color: var(--wtc-text-primary);
    text-decoration: none;
}
.wtc-order-date {
    font-size: 12px;
    color: var(--wtc-text-secondary);
    display: block;
}
.wtc-order-status {
    flex: 1.5;
    text-align: center;
}
.wtc-order-total {
    flex: 1;
    font-weight: 700;
    color: var(--wtc-text-primary);
    text-align: right;
    margin-right: 15px;
}
.wtc-status-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.status-completed {
    background: #C8E5D5;
    color: #38A169;
}
.status-processing {
    background: #EBF8FF;
    color: #3182CE;
}
.status-on-hold {
    background: #FFFFF0;
    color: #D69E2E;
    border: 1px solid #F6E05E;
}
.status-pending {
    background: #E6FFFA;
    color: #319795;
}
.status-cancelled {
    background: #FFF5F5;
    color: #E53E3E;
}
.status-failed {
    background: #FFF5F5;
    color: #C53030;
}
.status-shipped {
    background: #f5d501;
    color: #312a00;
}
.status-refund-requested {
    background: #e6b1ff;
    color: #1c0029;
}
.status-refunded {
    background: #ff2f2f;
    color: #ffffff;
}
.status-refund-rejected {
    background: #e5e5e5;
    color: #454545;
}
.status-refund-cancelled {
    background: #e5e5e5;
    color: #454545;
}
.status-requested {
    background: #8eff8e;
    color: #004b00;
}
.status-draft {
    background: #EDF2F7;
    color: #718096;
}
.wtc-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.wtc-page-link {
    padding: 8px 12px !important;
    border: 1px solid var(--wtc-border-color) !important;
    border-radius: var(--wtc-btn-radius) !important;
    text-decoration: none !important;
    color: var(--wtc-btn-text-color) !important;
    font-size: 13px;
    font-weight: 600;
    background-color: var(--wtc-sidebar-bg) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    margin-bottom: auto;
    line-height: normal;
}
.wtc-page-link:hover {
    background-color: var(--wtc-btn-hover-bg) !important;
    color: var(--wtc-btn-hover-color) !important;
}
.wtc-page-link.current {
    background-color: var(--wtc-btn-active-bg) !important;
    color: var(--wtc-btn-active-color) !important;
    border-color: var(--wtc-border-color) !important;
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.4);
    margin-bottom: auto;
    line-height: normal;
}
.wtc-btn-view {
    width: 36px;
    height: 36px;
    border-radius: var(--wtc-btn-radius);
    background: var(--wtc-sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wtc-btn-text-color);
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid var(--wtc-border-color);
    padding: 8px;
}
.wtc-btn-view:hover {
    background: var(--wtc-btn-active-bg);
    color: var(--wtc-btn-active-color);
    border-color: var(--wtc-border-color);
}
.wtc-btn-view:hover .dashicons,
.wtc-btn-view:hover .wtc-icon {
    color: inherit !important;
}
.wtc-no-orders .wtc-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}
.wtc-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--wtc-gfxcard-bg);
    border-radius: var(--wtc-card-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--wtc-border-color);
}
.wtc-chart-container {
    flex: 1;
    height: 180px;
    position: relative;
    max-width: 70%;
}
@media (max-width: 991px) {
    .wtc-dashboard-container {
        flex-direction: column;
        padding: 10px;
    }
    .wtc-sidebar {
        width: 100% !important;
        margin-bottom: 20px;
        padding: 15px;
    }
    .wtc-nav-list {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch;
    }
    .wtc-nav-item {
        flex-shrink: 0;
    }
    .wtc-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    .wtc-dash-header {
        flex-direction: column-reverse !important;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
    .wtc-user-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    .wtc-user-text {
        order: 2;
    }
    .wtc-avatar-circle {
        order: 1;
        margin: 0 auto 10px;
    }
    .wtc-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
        padding: 0;
    }
    .wtc-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .wtc-stat-card {
        padding: 15px 10px;
        height: auto;
        min-height: 80px;
    }
    .wtc-icon-box {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .wtc-value {
        font-size: 15px;
    }
    .wtc-order-row {
        display: grid !important;
        grid-template-columns: 60px 1fr auto;
        grid-template-areas:
            "thumb details status"
            "total total action";
        gap: 12px;
        padding: 15px;
        align-items: center;
    }
    .wtc-order-thumb {
        grid-area: thumb;
        width: 60px;
        height: 60px;
    }
    .wtc-order-details {
        grid-area: details;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .wtc-order-status {
        grid-area: status;
        text-align: right;
        border-top: none;
        padding-top: 0;
        margin: 0;
    }
    .wtc-order-total {
        grid-area: total;
        text-align: left;
        font-size: 16px;
        font-weight: bold;
    }
    .wtc-order-actions {
        grid-area: action;
        text-align: right;
        display: flex;
        justify-content: flex-end;
    }
    .wtc-btn-view {
        position: static !important;
        max-width: 80px;
        height: 35px !important;
        background: var(--wtc-btn-active-bg) !important;
        color: var(--wtc-btn-active-color) !important;
        border-radius: 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }
    .wtc-status-badge {
        width: auto;
        display: inline-block;
        font-size: 12px;
        padding: 8px 12px;
    }
}