/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    
    --gray-badge: #64748b;
    --gray-badge-bg: #f1f5f9;
    
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.my-acc-container * { box-sizing: border-box; }

/* =========================================
   2. MAIN LAYOUT
   ========================================= */
.my-acc-container {
    display: flex;
    width: 100%;        
    max-width: 100%;    
    margin: 0;          
    gap: 40px;
    padding: 0;         
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

.my-acc-sidebar-wrapper { width: 280px; flex-shrink: 0; }
.my-acc-content-wrapper { flex-grow: 1; width: 100%; min-width: 0; }

/* Header Chung */
.my-acc-page-header { margin-bottom: 25px; }
.my-acc-page-header h1 { margin: 0 0 8px 0; font-size: 28px; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
.my-acc-page-header p { margin: 0; color: var(--text-medium); font-size: 15px; }

/* =========================================
   3. SIDEBAR STYLES
   ========================================= */
.my-acc-sidebar-wrapper {
    background: #fff; padding: 15px; border-radius: var(--radius); border: 1px solid #e2e8f0;
}

.my-acc-user-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding: 10px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.my-acc-avatar-circle {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
    box-shadow: var(--shadow-md); overflow: hidden; flex-shrink: 0;
}
.my-acc-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.my-acc-user-info h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-dark); }
.my-acc-user-info p { margin: 2px 0 0 0; font-size: 13px; color: var(--text-medium); }

.my-acc-nav-menu { display: flex; flex-direction: column; gap: 5px; }
.my-acc-nav-item {
    display: flex; align-items: center; padding: 12px 16px;
    border-radius: 8px; text-decoration: none !important;
    color: var(--text-medium); font-weight: 500; font-size: 14px;
    transition: all 0.2s ease; border: none; background: transparent;
}
.my-acc-nav-item:hover { background-color: var(--bg-body); color: var(--text-dark); }
.my-acc-nav-item.active { background-color: var(--primary-light); color: var(--primary); font-weight: 600; }
.my-acc-nav-item.logout { color: var(--danger); margin-top: 10px; border-top: 1px dashed #e2e8f0; border-radius: 0; }
.my-acc-nav-item.logout:hover { background-color: #fef2f2; text-decoration: none !important; }

/* =========================================
   4. PROFILE & STATS
   ========================================= */
.my-acc-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.my-acc-stat-box {
    background: var(--bg-white); border: 1px solid #e2e8f0;
    border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    justify-content: space-between; min-height: 100px;
}
.my-acc-stat-box.primary-border { border-color: var(--primary-light); background: #fdfdff; }
.stat-title { font-size: 12px; color: var(--text-medium); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.stat-number { font-size: 24px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; }
.stat-sub { font-size: 12px; margin-top: 5px; font-weight: 500; }

.my-acc-content-card {
    background: var(--bg-white); border-radius: var(--radius);
    padding: 30px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0;
}
.my-acc-section-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.section-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 0; }

/* Avatar Upload & Profile Layout */
.my-acc-profile-flex { display: flex; gap: 40px; align-items: flex-start; }
.my-acc-avatar-upload-section { display: flex; flex-direction: column; align-items: center; width: 140px; flex-shrink: 0; }
.avatar-upload-wrapper { position: relative; width: 120px; height: 120px; margin-bottom: 15px; }
.avatar-preview-big { width: 100%; height: 100%; border-radius: 50%; background: #e2e8f0; object-fit: cover; border: 4px solid white; box-shadow: 0 0 0 2px #e2e8f0; }
.avatar-edit-overlay { position: absolute; bottom: 0; right: 0; width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; border: 3px solid white; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.avatar-edit-overlay:hover { background: var(--primary-hover); transform: scale(1.1); }
.upload-hint { font-size: 12px; color: var(--text-light); text-align: center; line-height: 1.4; }

.profile-info-section { flex-grow: 1; width: 100%; }
.my-acc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-group { margin-bottom: 0; }
.info-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; text-transform: uppercase; }
.info-value { font-size: 16px; font-weight: 500; color: var(--text-dark); padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }

.my-acc-quick-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding-top: 20px; border-top: 1px dashed #e2e8f0; margin-top: 20px; }
.quick-item { text-align: center; }
.quick-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.quick-value { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* =========================================
   5. ORDERS LIST
   ========================================= */
.orders-list-header { display: grid; grid-template-columns: 0.8fr 1.2fr 1.5fr 1.5fr 1.2fr; padding: 0 25px 15px 25px; font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e2e8f0; margin-bottom: 15px; }
.orders-header-item.text-right { text-align: right; }

.order-card {
    background: var(--bg-white); border-radius: var(--radius);
    padding: 20px 25px; margin-bottom: 16px;
    display: grid; grid-template-columns: 0.8fr 1.2fr 1.5fr 1.5fr 1.2fr;
    align-items: center; box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0; transition: all 0.2s ease;
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.order-id b { color: var(--text-dark); font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 4px; }
.order-date { color: var(--text-medium); font-size: 14px; font-weight: 500; }
.order-total { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.item-count { font-weight: 400; font-size: 13px; color: var(--text-light); margin-left: 4px; }
.action-group { display: flex; justify-content: flex-end; gap: 8px; }

/* Nút Mua lại */
.btn-reorder {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important; background-color: #ffffff !important; 
    border: 1px solid #000000 !important; color: #000000 !important;
    padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; 
    transition: all 0.2s ease; white-space: nowrap; cursor: pointer; line-height: 1.4;
}
.btn-reorder:hover { background-color: #000000 !important; border-color: #000000 !important; color: #ffffff !important; transform: translateY(-1px); }
.btn-reorder .dashicons { color: #000000 !important; margin-right: 5px; font-size: 14px; line-height: 1; }
.btn-reorder:hover .dashicons { color: #ffffff !important; }

.btn-view {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important; background: white;
    border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    transition: all 0.2s; white-space: nowrap; line-height: 1.4;
}
.btn-view:hover { border-color: var(--text-dark); background: #f8fafc; }

/* =========================================
   6. BUY AGAIN
   ========================================= */
.tools-bar { 
    display: flex; 
    flex-direction: row;        
    flex-wrap: nowrap;          
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}
.search-wrapper { flex-grow: 1; position: relative; }
.search-input { 
    width: 100%; padding: 10px 15px 10px 40px; border: 1px solid #e2e8f0; 
    border-radius: 8px; font-size: 14px; outline: none; height: 44px; 
    background: #fff; color: var(--text-dark);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; }
.sort-select { 
    width: 220px; flex-shrink: 0; padding: 0 35px 0 15px; 
    border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; 
    color: var(--text-dark); outline: none; cursor: pointer; 
    background: white; height: 44px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: right 10px center; 
}
.products-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; }
.prod-card { 
    background: #fff; border: 1px solid #e2e8f0; 
    border-radius: var(--radius); padding: 20px; 
    display: flex; align-items: flex-start; gap: 20px; 
    transition: all 0.2s; position: relative; 
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); z-index: 1; }
.prod-thumb { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; background: #f8fafc; border: 1px solid #f1f5f9; flex-shrink: 0; }
.prod-info { flex-grow: 1; min-width: 0; }
.prod-name { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 0 0 6px 0; display: block; text-decoration: none !important; line-height: 1.4; }
.prod-name:hover { color: var(--primary); }
.purchase-meta { font-size: 13px; color: var(--text-medium); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.last-buy { color: var(--text-light); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; }
.prod-price { text-align: right; min-width: 120px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
.curr-price { display: block; font-size: 16px; font-weight: 700; color: var(--text-dark); }
.old-price { display: block; font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-bottom: 2px; }
.prod-actions { display: flex; flex-direction: column; gap: 8px; margin-left: 20px; border-left: 1px solid #f1f5f9; padding-left: 20px; min-width: 150px; }
.btn-sm { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none !important; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; line-height: 1.2; }
.btn-add { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-add:hover { background: var(--primary-hover); color: white; border-color: var(--primary-hover); }

/* =========================================
   7. ADDRESS BOOK
   ========================================= */
.address-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.btn-add-new { background-color: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3); text-decoration: none; }
.btn-add-new:hover { background-color: var(--primary-hover); transform: translateY(-1px); color: white; }
.address-list { display: flex; flex-direction: column; gap: 20px; }
.address-card { background: var(--bg-white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 25px; position: relative; transition: all 0.2s; }
.address-card.is-default { border: 1px solid var(--primary); box-shadow: 0 0 0 1px var(--primary-light); background: #fff; }
.default-badge { position: absolute; top: 25px; right: 25px; color: var(--primary); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.addr-info-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; flex-wrap: wrap; }
.addr-name { font-size: 16px; font-weight: 700; color: var(--text-dark); text-transform: uppercase; }
.addr-phone { font-size: 14px; color: var(--text-medium); padding-left: 15px; border-left: 1px solid #cbd5e1; }
.addr-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--bg-body); color: var(--text-medium); font-weight: 600; text-transform: uppercase; }
.addr-text { font-size: 14px; color: var(--text-medium); line-height: 1.6; margin-bottom: 20px; max-width: 90%; }
.addr-actions { display: flex; gap: 15px; align-items: center; font-size: 13px; font-weight: 500; }
.action-link { color: var(--primary); text-decoration: none; cursor: pointer; border: none; background: none; padding: 0; font-weight: 600; }
.action-link:hover { text-decoration: underline; }

/* =========================================
   8. SECURITY PAGE
   ========================================= */
.security-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .form-input { padding-right: 40px; }

/* FIX: Mắt màu đen tuyệt đối */
.toggle-password { 
    position: absolute; right: 10px; background: none !important; border: none !important; 
    cursor: pointer; color: #000000 !important; display: flex; padding: 5px; outline: none !important;
}
.toggle-password:hover { color: #000000 !important; background: none !important; }
/* Đảm bảo icon bên trong cũng màu đen */
.toggle-password .dashicons {
    color: inherit !important;
}

.password-requirements { background-color: #f8fafc; padding: 20px; border-radius: var(--radius); height: fit-content; }
.req-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: block; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-medium); margin-bottom: 8px; }
.check-circle { width: 16px; height: 16px; border-radius: 50%; background: #cbd5e1; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; flex-shrink: 0; }
.req-item.valid .check-circle { background: var(--success); }
.req-item.valid { color: var(--text-dark); }
.two-factor-box { margin-top: 30px; padding-top: 25px; border-top: 1px dashed #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.tfa-info h4 { margin: 0 0 5px 0; font-size: 15px; font-weight: 600; }
.tfa-info p { margin: 0; font-size: 13px; color: var(--text-medium); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* =========================================
   9. MODALS & PAGINATION & BADGES
   ========================================= */
.my-acc-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.my-acc-modal-overlay.active { display: flex; opacity: 1; }
.my-acc-modal-box { background: white; width: 100%; max-width: 550px; border-radius: var(--radius); box-shadow: var(--shadow-md); transform: translateY(20px); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto; }
.my-acc-modal-overlay.active .my-acc-modal-box { transform: translateY(0); }
.modal-header { padding: 20px 25px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 10; }
.modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-dark); }
.close-modal { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-body { padding: 25px; }
.modal-footer { padding: 20px 25px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 10px; background: #f8fafc; border-radius: 0 0 var(--radius) var(--radius); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-input, .form-select { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; box-sizing: border-box; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.btn-cancel { background: white; border: 1px solid #cbd5e1; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--text-dark); }
.btn-save { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.my-acc-pagination { margin-top: 40px; display: flex; justify-content: center; align-items: center; width: 100%; }
.my-acc-pagination ul, .my-acc-pagination .page-numbers { display: flex !important; flex-direction: row !important; padding: 8px 12px !important; margin: 0 !important; list-style: none !important; gap: 8px !important; align-items: center !important; background: #fff; border-radius: 50px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); border: 1px solid #e2e8f0; }
.my-acc-pagination li { margin: 0 !important; padding: 0 !important; }
.my-acc-pagination a, .my-acc-pagination span.page-numbers { display: flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; text-decoration: none !important; font-size: 14px; font-weight: 600; color: #475569; transition: all 0.2s ease; border: 1px solid transparent; background: transparent; }
.my-acc-pagination a:hover { background-color: #f1f5f9; color: #4f46e5; }
.my-acc-pagination span.current { background-color: #4f46e5; color: white !important; box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3); }
.my-acc-btn-outline { display: inline-block; text-decoration: none !important; background: white; border: 1px solid #cbd5e1; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-dark); transition: all 0.2s; cursor: pointer; }
.my-acc-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.my-acc-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; display: inline-block; margin-left: 6px; vertical-align: middle; text-transform: uppercase; line-height: 1; letter-spacing: 0.5px; position: relative; top: -1px; }
.tag-sale { background: #fee2e2; color: #ef4444; }
.tag-oos { background: #f1f5f9; color: #64748b; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.status-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; }
.status-badge.processing { background: var(--primary-light); color: var(--primary); } .status-badge.processing::before { background: var(--primary); }
.status-badge.completed { background: var(--success-bg); color: var(--success); } .status-badge.completed::before { background: var(--success); }
.status-badge.on-hold, .status-badge.pending { background: var(--warning-bg); color: var(--warning); } .status-badge.on-hold::before, .status-badge.pending::before { background: var(--warning); }
.status-badge.cancelled, .status-badge.failed { background: var(--gray-badge-bg); color: var(--gray-badge); } .status-badge.cancelled::before, .status-badge.failed::before { background: var(--gray-badge); }
.prod-card.disabled { opacity: 0.75; background: #fafafa; }
.prod-card.disabled .btn-add { background: #cbd5e1; border-color: #cbd5e1; cursor: not-allowed; color: #fff; }

.my-acc-edit-actions, .info-value-edit { display: none; }
.my-acc-content-card.is-editing .my-acc-view-actions, .my-acc-content-card.is-editing .info-value-view { display: none; }
.my-acc-content-card.is-editing .my-acc-edit-actions { display: flex; gap: 10px; }
.my-acc-content-card.is-editing .info-value-edit { display: block; }
.my-acc-btn-primary { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; }
.my-acc-btn-primary:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); }
.info-value-edit .form-input { padding: 6px 10px; font-size: 14px; margin-top: -4px; width: 100%; }

@media (max-width: 900px) {
    .my-acc-container { flex-direction: column; gap: 20px; padding: 15px; }
    .my-acc-sidebar-wrapper { width: 100%; margin-bottom: 0; }
    .my-acc-nav-menu { flex-direction: row; overflow-x: auto; padding-bottom: 5px; }
    .my-acc-nav-item { white-space: nowrap; flex-shrink: 0; }
    .my-acc-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .my-acc-profile-flex { flex-direction: column; align-items: center; gap: 30px; }
    .my-acc-avatar-upload-section { width: 100%; }
    .my-acc-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .my-acc-quick-info-grid { grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
    .quick-item { text-align: left; }
    .orders-list-header { display: none; }
    .order-card { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
    .label-mobile { display: inline-block; width: 100px; color: var(--text-light); font-size: 13px; font-weight: 500; }
    .order-id, .order-date, .order-total, .order-status { display: flex; align-items: center; justify-content: space-between; }
    .order-action { margin-top: 10px; padding-top: 15px; border-top: 1px dashed #e2e8f0; }
    .action-group { justify-content: space-between; }
    .btn-view, .btn-reorder { flex: 1; text-align: center; }
    .tools-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-wrapper, .sort-select { width: 100%; min-width: 0; }
    .prod-card { flex-wrap: wrap; gap: 15px; }
    .prod-info { width: calc(100% - 110px); }
    .prod-price { text-align: left; width: 100%; margin-top: 0; align-items: baseline; flex-direction: row; gap: 10px; }
    .curr-price { font-size: 18px; }
    .prod-actions { flex-direction: row; width: 100%; margin-left: 0; padding-left: 0; border-left: none; margin-top: 5px; border-top: 1px dashed #e2e8f0; padding-top: 15px; }
    .btn-sm { flex: 1; }
    .address-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-add-new { width: 100%; justify-content: center; }
    .addr-info-row { gap: 8px; }
    .addr-phone { padding-left: 0; border-left: none; width: 100%; }
    .security-layout { grid-template-columns: 1fr; }
    .password-requirements { order: -1; margin-bottom: 20px; }
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* [NEW FIXED] Ép cứng kiểu dáng cho nút Cập nhật mật khẩu để chống Theme ghi đè */
#btn-update-password {
    background-color: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3) !important;
    opacity: 1 !important;
}
#btn-update-password:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

/* =========================================
   10. LAYOUT FIX (Global Layout Standardization)
   ========================================= */
.my-acc-container-fix {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px; /* Standardize padding */
    box-sizing: border-box;
}

.my-acc-container-fix .my-acc-container {
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: flex-start; /* Prevent stretching */
}

/* Ensure content wrapper fills space */
.my-acc-content-wrapper {
    flex-grow: 1;
    width: 100%;
    min-width: 0;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .my-acc-container-fix {
        padding: 0 10px !important;
    }
    .my-acc-container-fix .my-acc-container {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    /* Ensure card padding is comfortable on mobile */
    .my-acc-content-card {
        padding: 20px !important; 
    }
}