/* manage acc */
/* =========================
	View Contact - UI Polish (migrated from mb_viewcontact.php)
	========================= */
/* Top menu */
.viewcontact_menu { display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid #e9ecef; padding: 8px 12px; border-radius: 8px 8px 0 0; }
.viewcontact_menu a { text-decoration: none; }
.postlist_menu_item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: #1a1a1a; background: #f6f7f8; border: 1px solid #edf0f2; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.postlist_menu_item:hover { background: #eef1f5; }
.postlist_menu_item.menu_on { background: #e8f0fe; color: #0b57d0; border-color: #d2e3fc; }
.viewcontact_menu_option a { color: #444; background: #f1f3f4; border: 1px solid #e0e0e0; padding: 6px 10px; border-radius: 8px; }
.viewcontact_menu_option a:hover { background: #e8eaed; }

/* Options panel */
#menuInboxTool { border: 1px solid #e9ecef; border-top: none; background: #fffcec; box-shadow: inset 0 1px 0 rgba(0,0,0,.02); padding-left: 0 !important; padding-right: 15px !important; }
#menuInboxTool input[type="text"] { border: 1px solid #cfd8dc; border-radius: 6px; padding: 6px 8px; }
/* Polished filter panel */
.vc-filter { display:flex; flex-direction:column; gap:10px; padding:6px; }
.vc-filter-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vc-filter-label { font-size:13px; color:#334155; min-width:160px; }
.vc-filter-actions { display:flex; align-items:center; gap:8px; }
.vc-filter-help { font-size:12px; color:#64748b; }

/* Retrofit legacy button styles for a cleaner look */
.buttonRetro { border: 1px solid #e0e0e0; background: #f8f9fa; color: #1a1a1a; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.buttonRetroSmall { padding: 4px 8px; font-size: 13px; }
.buttonGray { background: #f1f3f4; }
.buttonRetro:hover { background: #e8eaed; }

/* Message cards - NEW LAYOUT */
.vc-card {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 16px;
    transition: background .15s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid transparent;
}
.vc-card:hover { background: #f8f9fa; }
.vc-card--unread { background: #eef5ff; border-left-color: #0b57d0; }
.vc-card--unread:hover { background: #e3eefc; }

.vc-card__checkbox {
    flex-shrink: 0;
    padding-top: 18px; /* Align with text */
}

.vc-card__avatar {
    flex-shrink: 0;
}

.vc-card__main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vc-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.vc-card__sender {
    font-weight: 600;
    color: #1a1a1a;
}
.vc-card--unread .vc-card__sender a {
    color: #0b57d0;
}
.vc-card__sender a {
    text-decoration: none;
    color: inherit;
}
.vc-card__sender a:hover {
    text-decoration: underline;
}

.vc-card__time {
    font-size: 13px;
    color: #475569;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.vc-card__status-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .vc-card {
        gap: 12px;
        padding: 12px;
    }
    .vc-card__checkbox {
        padding-top: 22px;
    }
    .vc-card__avatar img {
        width: 50px !important;
        height: 50px !important;
    }
    .vc-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .vc-card__time {
        text-align: left;
        align-items: flex-start;
    }
}

/* OLD STYLES - for reference, can be removed after full migration */
/*
.vc-card { background: #fff; border-bottom: 1px solid #e9ecef; padding: 14px 16px; min-height: 80px; transition: background .15s ease; position: relative; border-left: 5px solid transparent; }
.vc-card:hover { background: #fff; }
.vc-card--unread:hover { background: #bfdbfe; }
.vc-card--unread { background: #bfdbfe; border-left-color: #1e3a8a; }
.vc-card--unread .mediumName { font-weight: 700; color: #0b57d0; }
.vc-actions { display: none; }
*/
/* Left-side selection checkbox */
.vc-select { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:24px; height:24px; display:flex; align-items:center; justify-content:center; }
.vc-checkbox { width:18px; height:18px; cursor:pointer; margin:0; }

/* Footer tools */
.vc-footer { display:flex; align-items:center; gap: 10px; padding: 10px 0; font-size: 13px; color:#444; }

/* Small utilities */
.vc-muted { color:#64748b; }

/* Alerts */
.vc-alert { margin:12px 0; padding:10px 12px; border-radius:8px; border:1px solid transparent; font-size:14px; }
.vc-alert--success { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.vc-alert--error { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.vc-alert--info { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }

/* Badges */
.vc-badge { display:inline-block; font-size:12px; line-height:1; padding:6px 8px; border-radius:999px; margin-right:8px; vertical-align:middle; }
.vc-badge--unread { background:#dbeafe; color:#1e3a8a; border:1px solid #bfdbfe; font-weight:600; }
.vc-badge--read { background:#eef2f7; color:#334155; border:1px solid #e2e8f0; }
/* Place the read/unread badge on the right side inside each row */
/* .vc-card .vc-badge { position:absolute; right:16px; top:12px; margin:0; } */

.dashboard-container {
	max-width: 1200px;	
	margin: 0 auto;
	padding: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.dashboard-content {
	margin-bottom: 15px;
}

@media only screen and (max-width: 650px) {
	.dashboard-container {
		margin: 0px;
	}
	
}
.dashboard-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	margin-top: 0px !important;
	display: flex;
	align-items: center;
	gap: 6px; text-align: center; 
}
.dashboard-subtitle {
	font-size: 13px;
	color: #777;
	margin-bottom: 20px;
}
.dashboard-profile-container {
	width: 1200px;
    max-width: 100%;     
    margin: auto;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.dashboard-profile-header {
	display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-top: 0; /* avoid overlapping the banner */
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 0 0 8px 8px;    
}
.dashboard-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ddd;
	background-color: #fff;
}
.dashboard-profile-info {	
	max-width: 100%;	
	flex: 0 1 auto;
 	width: auto;
	background-color: #fff;
	padding: 10px 5px;
	border-radius: 5px;
}
.dashboard-profile-info h2 {
	margin: 0;
	font-size: 20px;
	background: rgba(255, 255, 255, 0.8); /* nền trắng mờ */
	padding: 2px 6px;
	border-radius: 4px;
	display: inline-block;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* đổ bóng nhẹ */
}
.dashboard-profile-name {
	margin-right: 10px;
}
.dashboard-profile-info .dashboard-status {
	color: #666;
	font-size: 14px;
	margin-top: 10px;
}
.dashboard-vip-badge {
	background-color: gold;
	color: #000;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;	
	margin-right: 10px;
}
.dashboard-quick-tools {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(2, auto);
	gap: 24px;
	margin-top: 20px;
}
.dashboard-tool-card {
    background: #e0e0e0; /* Đậm hơn để tăng tương phản */
    border: 2px solid #ccc; /* Viền xám nhạt đậm hơn */
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600; /* Tăng độ đậm */
    color: #000; /* Black text color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    height: 90px; /* Fixed height for equal cards */
    text-shadow: 0 1px 0 rgba(255,255,255,0.5); /* Stroke nhẹ cho chữ */
}

.dashboard-tool-card:hover {
    background: #c0c0c0; /* Nền đậm hơn */
    border-color: #aaa; /* Border đậm hơn */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Shadow đậm hơn */
}

.dashboard-tool-card:hover span {
    color: #000; /* Black for text on hover */
}

.dashboard-tool-card i {
    font-size: 18px;
    color: #000; /* Black color like the avatar button */
    font-weight: 600; /* Đậm hơn cho icon */
}


.dashboard-package-box {
	margin: 24px 0px 24px 0px;
	padding: 16px;
	background-color: #fffbe5;
	border: 1px solid #f6e27b;
	border-left: 5px solid #f2b91f;
	border-radius: 6px;
}
.dashboard-package-title {
	font-weight: bold;
	margin-bottom: 4px;
}
.dashboard-package-info {
	font-size: 14px;
}
.dashboard-avatar-upload {
	position: absolute;
	left: 100px;
	bottom: 0;
	font-size: 13px;
	color: #007bff;
	cursor: pointer;
}
/* Thêm modal crop ảnh */
.dashboard-cropper-container {
	text-align: center;
}

.dashboard-cropper-container img {
	display: inline-block;
}
.dashboard-modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999;
}
.dashboard-modal-content {
	background: white;
	padding: 20px;
	border-radius: 6px;
	max-width: 90vw;
	max-height: 90vh;
}
.dashboard-modal.show {
		display: flex;
		align-items: center;
		justify-content: center;
}
.dashboard-avatar-wrapper {
	position: relative;
	display: inline-block;
}  
 

.dashboard-avatar-upload-btn i {
	font-size: 14px;
}
.dashboard-avatar-upload-btn input {
	display: none;
}
.dashboard-cover-photo {
    width: 100%;
    /* Keep 3:1 without forcing fixed pixels; allow responsive height */
    aspect-ratio: 3 / 1;
    height: auto;
    max-height: clamp(180px, 28vh, 320px);
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.dashboard-cover-photo img {
    width: 100%;
    height: auto; /* show exactly what was cropped */
}
.dashboard-banner-thumb-box {
	margin-top: 12px;
	display: block;
	align-items: center;
	gap: 10px;
	clear: both;
  }
  .dashboard-banner-thumb {
	width: 240px;
	height: 60px;
	border: 1px solid #ccc;
	object-fit: cover;
	border-radius: 4px;
  }
  .dashboard-banner-upload-btn {
	
	font-size: 13px;
	background: #f8f9fa;
	border: 1px solid #ccc;
	padding: 4px 10px;
	border-radius: 4px;
	color: #333;
	padding: 4px 10px;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
	z-index: 2;
	min-width: 90px;
	max-width: 100%;
  }

.dashboard-banner-upload-btn input {
	display: none;
}

/* LIST VIEW */
.postList.listView {
	display: block;
	background-color: #ffffff; justify-content: center;
}
.postList.listView .headingItem {
	display: block;
}
.postList.listView .postItem {
	padding:3px 5px; border-bottom: 1px solid #f4f4f4; min-height: 170px;	position: relative;
}
.postList.listView .postItem .postItemInner {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex; flex-direction:row; flex-wrap:wrap; 
	margin:0px; 
	padding:10px 5px 10px 5px;
}
.postList.listView .postItem:last-of-type {
	border-bottom: 1px;
}
.postList.listView.account .postItem .postItemInner {
	padding:5px 5px 5px 5px;
}
.postList.listView.account .postItem {		
	margin: 10px 0px; border-top: 1px solid #ccc;
	flex-direction: row; padding: 0px 0px;
}
.postList.listView.account .postItem .postItemInner {
	border: 0px;
}	
.postList.listView.account .postImage {
	max-height: 130px;
}
.postList.listView.account .productName {
	font-size: 14px; line-height: 1.2; color:#000;
}
.postList.listView.account .productName:hover {
	color:#C6511F;
}
.postList.listView.account .postImageWrapper { 
	max-width: 140px; margin-left: 10px;
} 
.postList.listView.account .postInfoWrapper {
	display: block !important;
	width: calc(100% - 160px) !important;
	max-width: calc(100% - 160px) !important;
	padding:10px;
}	
@media only screen and (min-width: 900px) {
	.postList.listView.account .productName {
		font-size: 16px; line-height: 1.2;
	}
	
}
@media only screen and (max-width: 413px) {
	.postList.listView.account .postItem {
		flex-direction: column;
	}
	.postList.listView.account .postImageWrapper { 
		max-width: 100% !important;
		width: 100% !important;
		margin-left: 0px; background-color: #f3f3f3; margin-top: 0px;
	} 
	.postList.listView.account .postInfoWrapper {		
		width: 100% !important;
		max-width: 100% !important;
		padding:0px 10px 10px 10px;
	}	
}




.postList.listView .postItem .postInfoWrapper {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;     /* NEW - Chrome */
	display: flex; flex-direction:row; flex-wrap:wrap; border-bottom: 0px solid #eee; padding-left: 10px;
	background-color: #fff;
}
.postList.listView .postInfoWrapper { padding:5px 0px 5px 5px;}
.postList.listView .listAuthorInfo { 
	text-align:left; max-width: 230px;
	margin-top:0px; margin-left: 10px;
}
.postList.listView .listProductName {
	width: 500px; 
	position:relative;
}
.postList.listView .productName {
	color:#2c2c2c; font-size: 15px; line-height: 1.3;	
	font-family: Helvetica, Arial, sans-serif;
	font-family: "Lexend Deca", Helvetica, 'Roboto', Arial, sans-serif;
}
.postList.listView .productName.product-shop {
	font-weight: bold;
}
.postList.listView .productName.productNew {
	color:#96711a;
}
.postList .productNewBox {
	color: #007300; border-radius: 5px; padding: 2px 3px; margin-right: 5px; display: inline-block; font-size: 13px; border: 1px solid #007300;
}

.postList a.productName:hover {
	color:#C6511F;
}

/* Number of item per row */
@media only screen and (min-width: 1180px) {
	.postListContainer { padding-left: 0px; }
	.postList.gridView .postItem { width: 25%; width: calc(100% / 4 - 10px); flex: 0 0 25%;}	
	.postList.gridView.singleLine .postItem { flex: 0 0 20%;}	
}
@media only screen and (max-width: 1179px) {
	/*.postList.gridView .postItem { width: 33.333333333%; width: calc(100% / 3 - 10px); flex: 0 0 33.3333%;}*/
	/*.postList.gridView.singleLine .postItem { flex: 0 0 40%;}*/
	.postList.gridView .postItem { width: 25%; width: calc(100% / 4 - 10px); flex: 0 0 25%;}	
	.postList.gridView.singleLine .postItem { flex: 0 0 20%;}
	
}
@media only screen and (min-width: 768px) {
	.postListContainer { padding-left: 0px; }	
	
}
@media only screen and (max-width: 575px) {	
	.postList.gridView .postItem .postImageWrapper { 
		width:100%;  background-color: #fff;
	}	
	.postList.gridView .postItem {	
		width: 50% ; width: calc(100% / 2); flex: 0 0 50%;		
		border: 1px solid #ddd;
	}	
	.postList.gridView.singleLine .postItem {
		flex: 0 0 45%;	
	}
}
/* post list item */
@media only screen and (min-width: 1280px) {	
	.postList.listView .postImageWrapper {    		
		text-align: center;
		width:100%;
		max-width: 160px;
	}

	.postList.gridView .postImageWrapper {    		
		text-align: center;
		width:100%;		
		min-height: 130px;	
	}

	.postList.listView .postInfoWrapper {
		width: -webkit-calc(100% - 160px);
   		width: calc(100% - 160px);
		max-width: -webkit-calc(100% - 160px);
		max-width: calc(100% - 160px);	
		padding-right: 0px;
	}
	.postList.listView .listProductName {
		width: -webkit-calc(100% - 300px);
   		width: calc(100% - 300px);
		max-width: -webkit-calc(100%  - 300px);
		max-width: calc(100% - 300px);
		padding-left: 10px;	
	}
	.postList.listView .boxProductName {
		padding-right: 35px;
   	}
	.postList.listView .listAuthorInfo {		
   		max-width:300px;		
	}
	
	.listAuthorLine {
			display:none;
	}	
	

}


@media only screen and (max-width: 1279px) {
	
	.postList.listView .postImageWrapper {    		
		text-align: center;
		width:100%;
		max-width: 160px;
	}

	.postList.gridView .postImageWrapper {    		
		text-align: center;
		width:100%;		
		min-height: 130px;
	}
	.postList.listView .postInfoWrapper {
		width: -webkit-calc(100% - 160px);
   		width: calc(100% - 160px);
		max-width: -webkit-calc(100% - 160px);
		max-width: calc(100% - 160px);	
		padding:5px 8px 5px 8px;
	}
	.postList.listView .listProductName {
		width: -webkit-calc(100% - 280px);
   		width: calc(100% - 280px);
		max-width: -webkit-calc(100%  - 280px);
		max-width: calc(100% - 280px);	
	}
	.postList.listView .boxProductName {
		padding-right: 35px;		
  	}
	.postList.listView .listAuthorInfo {		
   		max-width:260px;	
	}
	
}
@media only screen and (max-width: 1218px) {	
	.postList.listView  .listAuthorAvatar { 
		width:32px; height:32px; margin-right:8px; border-radius: 50%; margin-top: 2px;
	}	
	.postList.listView .boxProductName {
		padding-right: 0px;
  	}
}
@media only screen and (max-width: 1150px) {
	.postList.listView .postInfoWrapper {
		align-content: flex-start;
	}
	.postList.listView .listProductName {
		width: -webkit-calc(100% - 220px);
   		width: calc(100% - 220px);
		max-width: -webkit-calc(100%  - 220px);
		max-width: calc(100% - 220px);	
		
	}
	.postList.listView .listAuthorInfo {		
   		max-width:210px;	
	}
}
@media only screen and (max-width: 1045px) {	
	.postList.listView .postInfoWrapper {		
		padding:5px 5px 5px 15px;
	}
	.postList.listView .listProductName {		
		width: 100%;
		max-width: 100%;
	}
	.postList.listView .listAuthorInfo {		
		flex-grow:1; width: 100%;
		max-width: 100%;
		float: right; padding-top: 5px; margin-left: 0px;
	}	
	.boxDateAdded {text-align: left;}
}
@media only screen and (max-width: 900px) {
	
	.listAuthorColLarge {
		display:none;
	}
	.postList.listView .productName {		
		font-size: 15px;		
	}
	.postList.listView .postImage {
		max-width: 150px;
	}
	.postList.listView .postImageWrapper {    		
		text-align: center;
		width:100%;
		max-width: 150px;		
		
	}	
	.postList.gridView .postImageWrapper {    		
		text-align: center;
		width:100%;		
		min-height: 130px; background-color: #fff;
		
	}	
	.postList.listView .postInfoWrapper {
		width: -webkit-calc(100% - 150px);
   		width: calc(100% - 150px);
		max-width: -webkit-calc(100% - 150px);
		max-width: calc(100% - 150px);	
		padding:5px 10px 5px 15px;
	}	

	
	
	.listRowInSide_1 {
		height:240px;
	}
	
	.listAuthorCol {
		display:none;
	}
	.listAuthorLine {
		display:inline;
	}
}
@media only screen and (max-width: 750px) {	
	.postList.listView .postItem {
		padding: 0px;
	}
	.postList.listView .postImageWrapper { 
				
		padding: 5px;
		text-align: center;
		width:100%;
		max-width: 160px;		
		vertical-align: top;
	}

	.postList.gridView .postImageWrapper {    		
		text-align: center;
		width:100%;		
		min-height: 130px;
	}

	.postList.listView .postInfoWrapper {
		width: -webkit-calc(100% - 160px);
   		width: calc(100% - 160px);
		max-width: -webkit-calc(100% - 160px);
		max-width: calc(100% - 160px);	
		padding:5px 2px 5px 10px;
	}

	.postList.listView  .listAuthorAvatar { 
		display:inline-block; width:32px; height:32px; margin-right:8px; border-radius: 50%;
	}	
	
}

@media only screen and (max-width: 575px) {	
	.postList.listView  .listAuthorAvatar { 
		width:32px; height:32px; margin-right:8px; border-radius: 50%; margin-bottom: 10px;
	}	

}

@media only screen and (max-width: 450px) {
	.postList.listView .productName {		
		font-size: 14px;		
	}
	.postList.listView .postImage {
		max-height: 150px; max-width: 140px;
	}
	.postList.listView .postImageWrapper {    		
		text-align: center;
		max-width: 150px;		
	}
	.postList.gridView .postImageWrapper {    		
		text-align: center;
		width: 130px;
		min-height: 130px;

	}
	.boxDateAdded {text-align: left;}
	.postList.listView .postInfoWrapper {			
		width: -webkit-calc(100% - 150px);
   		width: calc(100% - 150px);
		max-width: -webkit-calc(100% - 150px);
		max-width: calc(100% - 150px);	
	}
	
	
}

.label-post-draft {
	color: #000; padding: 3px 0px;
}
.label-post-wait {
	color: #000; padding: 3px 0px;
}
.label-post-cancel {
	color: #E06666; padding: 3px 0px;
}
.label-post-hide {
	color: #E06666; padding: 3px 0px;
}
.replied_ribbon {
	display: block;
	font-size: 10px;
	font-weight: bold;
	color: #0075F5;
	text-transform: uppercase;
	text-align: center;
	max-width: 100px; top: 90px; border-radius: 3px;
	padding: 5px;
}
.normalComp {
	padding:20px 20px 20px 20px; background:#fff; color:#333; border-bottom: 1px solid #ddd; margin: 10px; clear: both;
}

@media only screen and (max-width: 1015px) {
	.dashboard-container { margin: 10px auto; }
	
}
@media only screen and (max-width: 650px) {
	.dashboard-container { margin: 0 auto; }
	
}
.dashboard-title { letter-spacing: .2px; }
.dashboard-title::before {
	content: "";
	display: inline-block;
	width: 6px; height: 18px;
	background: linear-gradient(to bottom, #ffe396, #f5c844);
	border: 1px solid #d1a734;
	border-radius: 2px;
	margin-right: 6px;
}
.dashboard-quick-tools a { text-decoration: none; }
.dashboard-quick-tools a:focus-visible .dashboard-tool-card {
	outline: none;
	box-shadow: 0 0 0 3px rgba(202, 166, 128, 0.35), 0 2px 6px rgba(0,0,0,0.12);
	border-color: #caa680;
}
.dashboard-tool-card {
	background: #f5f5f5; /* Light gray background */
	border-color: #ddd;
}
.dashboard-tool-card:hover {
	background: #e0e0e0; /* Lighter gray on hover */
	border-color: #ccc;
}
.dashboard-tool-card i { color: #000; }
.dashboard-tool-card span { color: #000; }
.dashboard-vip-badge {
	background: linear-gradient(to bottom, #ffe396, #f5c844);
	color: #1a1a1a;
	padding: 3px 10px;
	border-radius: 14px;
	border: 1px solid #d1a734;
	font-weight: 600;
}
.dashboard-cover-photo::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(255,255,255,0.0), rgba(255,255,255,0.6));
	pointer-events: none;
}

/* Compact service summary chip under profile actions */
.dashboard-service-summary {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(to bottom, #f7ead9, #f1dec6);
	border: 1px solid #d6bfa2;
	color: #2b2b2b;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12.5px;
}
.dashboard-service-summary i { color: #7a1e34; font-size: 14px; }
.dashboard-service-link {
	color: #7a1e34;
	text-decoration: none;
	font-weight: 600;
	margin-left: 2px;
}
.dashboard-service-link:hover { text-decoration: underline; }

/* Dashboard primary action buttons (below account name) */
.dashboard-avatar-upload-btn,
.dashboard-banner-upload-btn {
	font-size: 14px;
	font-weight: bold;
	background: linear-gradient(180deg, #F8EFC6 0%, #E6D7A3 100%);
	border: 1px solid #E6D7A3;
	color: #333;
	padding: 6px 10px;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	min-width: 110px;
	margin-right: 8px;
	transition: background 0.2s ease;
}
.dashboard-avatar-upload-btn i,
.dashboard-banner-upload-btn i { color: currentColor; font-size: 14px; }
.dashboard-avatar-upload-btn:hover,
.dashboard-banner-upload-btn:hover {
	background: linear-gradient(180deg, #D4C793 0%, #C4B583 100%);
	border-color: #D4C793;
}
.dashboard-avatar-upload-btn:active,
.dashboard-banner-upload-btn:active {
	background: linear-gradient(180deg, #C4B583 0%, #B4A573 100%);
}
.dashboard-avatar-upload-btn:focus-visible,
.dashboard-banner-upload-btn:focus-visible {
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 3px rgba(230, 215, 163, 0.5);
}
/* Manage dashboard — pro UX tweaks */
.dashboard-profile-header { flex-wrap: wrap; gap: 12px 18px; border-bottom: 1px solid #eee; }
.dashboard-profile-name { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; }
.dashboard-profile-info a.largeName { text-decoration: none; color: inherit; }
.dashboard-quick-tools a { text-decoration: none; }
.dashboard-tool-card { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; }
.dashboard-service-summary { margin-top: 10px; }

@media only screen and (max-width: 750px) {
	.dashboard-profile-header { margin-top: 0; flex-wrap: nowrap; }
    .dashboard-avatar { width: 64px; height: 64px; flex-shrink: 0; }
	.dashboard-profile-info { padding: 6px 8px; }
}

/* Manage page: ensure banner container height matches image height (no clipping) */
.dashboard-container .dashboard-cover-photo {
    aspect-ratio: auto; /* let content (img) define height */
    height: auto;
    max-height: none;
    overflow: visible; /* avoid clipping bottom */
}
.dashboard-container .dashboard-cover-photo img {
    display: block; /* remove inline-gap and ensure container follows image height */
}
.dashboard-tool-card i {
	margin-bottom: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #000; /* Black color */
}

.pmb-account-result  {
	padding: 20px 25px 15px 20px ; font-size: 16px;
	background-color: #fff;
}
.pmb-account-info  {
	padding:  25px 15px 25px 15px ; font-size: 16px; 
	background-color: #ffffcc;
}

.page-account-common .postList.listView.account .postItem {
	margin: 8px 0; border: 1px solid #e9ecef; border-radius: 10px; background: #fff;
	transition: box-shadow .16s ease, transform .16s ease;
}
.page-account-common .postList.listView.account .postItem .postItemInner { padding: 8px 10px 8px 36px; position: relative; }
.page-account-common .postList.listView.account .postItem:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.page-account-common .postList.listView.account .postImageWrapper { max-width: 140px; margin-left: 0; padding-right: 12px; }
.page-account-common .postList.listView.account .postImage { border-radius: 8px; object-fit: cover; max-height: 100px; }
.page-account-common .postList.listView.account .postInfoWrapper { border-left: 0; padding: 6px; }
.page-account-common .postList.listView.account .fav-select { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.page-account-common .postList.listView.account .fav-select input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.page-account-common .postList.listView.account .productName { color: #0f172a; font-weight: 600; font-size: 15px; }
.page-account-common .postList.listView.account .productName:hover { color: #0b57d0; }
.page-account-common .postList.listView.account .listAuthorInfo { margin-left: 0; padding-top: 6px; border-bottom: 0; }
.page-account-common .postList.listView.account .txt-separator { margin: 0 6px; background: transparent !important; width: auto; height: auto; display: inline; line-height: inherit; }
.page-account-common .postList.listView.account .label-post-cancel { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:600; }
.page-account-common .postList.listView.account .dateValueAdd { color:#475569; font-size: 12.5px; margin: 6px 0; }
.page-account-common .postList.listView.account .boxDateAdded { color:#475569; font-size: 12.5px; margin: 6px 0; }
.page-account-common .postList.listView.account .listProductName,
.page-account-common .postList.listView.account .listProductName .boxProductName,
.page-account-common .postList.listView.account .listProductName .productName,
.page-account-common .postList.listView.account .boxDateAdded { margin-left: 0 !important; padding-left: 0 !important; }
.page-account-common .postList.listView.account .postAction { line-height: 1.6; margin: 4px 0 0 0; padding: 0 0 6px 0 !important; display:flex; flex-wrap:wrap; gap:6px; }
.page-account-common .postList.listView.account .postAction a { margin:0 !important; }

/* Account common page layout */
.page-account-common {
	margin:0px 0px 0px 0px;
}

.page-account-common-inner-form {
	padding-bottom: 5px; 
	margin: 0px; border-top-left-radius: 5px; border-top-right-radius: 5px;
}
.page-account-common-inner {
	background-color:#fff; padding-bottom: 5px; 
	margin: 0px; border-top-left-radius: 5px; border-top-right-radius: 5px;
}
.page-account-common-header {
	font-size: 16px;
    color: #333;
	/* Base padding; left will be adjusted per breakpoint to mirror breadcrumb */
	padding:12px 15px;	
	background-color: #f0f0f0; /* Set a light gray background for better UX */
	font-weight: normal; /* was bold - make lighter per UX */
	padding-left: 15px !important; /* Ensure padding-left is applied */
}
/* Align left offset with breadcrumb margins on laptop/desktop */
@media only screen and (min-width: 750px) {	
	.page-account-common-inner-form { padding-left: 15px; padding-right: 15px; }
	.page-account-common-header { padding-left: 0; margin-left: 0px; }
}
@media only screen and (min-width: 651px) {	
	.page-account-common-inner-form { padding-left: 0px; padding-right: 0px; }
	.page-account-common-header { padding-left: 0; margin-left: 0px; }
}
/* Match smaller breadcrumb offset on narrow screens */
@media only screen and (max-width: 650px) {	
	.page-account-common-inner-form { padding-left: 0px; padding-right: 0px; }
	.page-account-common-header { padding-left: 0px; }
}
.page-account-common-header a {
	font-size: 16px; color:#333; 
}
.page-account-common-header a:hover {
	color:#5E79B5;
}
.page-account-field-label {
	margin-bottom: 5px; color: #666; font-weight: bold;
}
.pageName { 
	background-color:#CCCCFF; padding:15px calc(8px + 1.5625vw); margin-bottom: 10px; color: #000; border-bottom: 1px solid #aaaadd; border-top: 1px solid #aaaadd;  
}
.pageName *{ 
	font-size: 16px;  
}
.pageEditor {
	/* Centered, readable content area for editors
	   - use ch to approximate characters per line (85ch target)
	   - cap width with pixels for very large displays */
	box-sizing: border-box;
	margin: 0 auto 15px auto; /* center horizontally */
	padding: 18px 22px;
	border-radius: 3px;
	background-color: #f2f2f2;
	width: 100%;
	/* wider on large displays while keeping readable line length */
	max-width: min(95ch, 1300px);
}
@media only screen and (max-width: 650px) {	
	.pageEditor {
		padding: 10px 12px;
		max-width: 100%;
	}
}
@media only screen and (max-width: 400px) {	
	.pageEditor {
		padding: 10px 5px; /* keep comfortable padding on very small screens */
		max-width: 100%;
	}
}
.form-insert-image {
	font-size: 13px; background-color: #F3F9FF; padding:10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 3px;
}
.form-insert-image .right-insert-box {
	padding: 5px 0px 0px 10px; border-left: 1px solid #ddd;
}
.boxDateActiveNearExpired {
    background-color: #ffcc00; color:#000;
}
.boxDateActive {
    color:#000; 
}
.boxCommentNormal {
	padding: 3px; margin-top: 3px;display: inline-block;
}
.boxCommentExpired {
    color: #da3333; padding: 3px; margin-top: 3px;display: inline-block;
}
.boxDateExpired {
    background-color: #f1b3b3; color:#000;
}
.boxDateStop {
    background-color: #ccc; color:#000;
}
.boxDateExpiredDeep {
    background-color: #da3333; color:#fff;
}
.fileUploadLabel {	
	display: inline-block;
	padding: 5px;
	cursor: pointer;
	font-size: 14px; 
	background-color: #087cce;	
	color: #fff; border-radius: 3px; border: 1px solid #054a7c;
}
.fileUploadLabel:hover {	
	background-color: #C6511F; 
}
.fileUploadLabel input[type="file"] {
    display: none;
}
.boxUpload {
	margin:5px 5px 5px 0px;float:left;width:120px; height:140px;border:solid 1px #ccc;
}
.boxUploadImg {
	height: 90px; background-color: #f6f6f6; text-align: center; display: block;
}

.boxUploadImgDesc {	
	text-align:center;font-size:12px; background-color:#BBD4EE;color:#000;padding:2px; display: block;
}
.boxUploadTool {
	height: 30px; padding: 3px 0px 0px 10px;  display: block;
}

/* CSS moved from mb_manage.php */
@media only screen and (min-width: 651px) {
  .page-account-common .page-account-common-inner { padding-left: 35px !important; padding-right: 35px !important; margin: 8px 0; }
}

@media only screen and (max-width: 650px) {
  .page-account-common .page-account-common-inner { padding-left: 18px !important; padding-right: 18px !important;margin: 6px 0; }
}
@media only screen and (max-width: 650px) {
  .page-account-common .page-account-common-inner { padding-left: 18px !important; padding-right: 18px !important; margin: 6px 0; }
}

.dashboard-compare { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
@media (min-width: 700px) { .dashboard-compare { grid-template-columns: 1fr 1fr; } }
.dashboard-compare-card { background:#fffdf7; border:1px solid #f6e27b; border-left:5px solid #f2b91f; border-radius:8px; padding:12px 14px; }
.dashboard-compare-card h6 { margin: 0 0 8px 0; font-size: 15px; display:flex; align-items:center; gap:6px; }
.dashboard-compare-card h6 i { color:#BE2829; }
.dashboard-compare-card ul { margin: 6px 0 0 16px; }
.dashboard-compare-cta { margin-top: 10px; }

.dashboard-package-box { background:#fff; border:1px solid #eee; border-radius:8px; padding:12px 14px; margin:10px 0; }
.dashboard-package-title { font-weight: 700; margin-bottom: 8px; display:flex; align-items:center; gap:8px; }
.pkg-card { border:1px solid #f0e5b6; background:#fffef8; border-radius:5px; padding:12px 14px 16px; margin-top:8px; }
.pkg-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pkg-name { font-weight:600; display:flex; align-items:center; gap:8px; }
.pkg-right { display:flex; align-items:center; gap:8px; }
.pkg-meta { color:#555; font-size:13px; margin:6px 0; text-align:left; }
@media (max-width: 790px) {
  .pkg-meta { text-align: center; }
}
.pkg-actions { margin-top:10px; padding-bottom:4px; }
.pkg-badge { padding:4px 8px; border-radius:999px; font-size:12px; border:1px solid transparent; display:inline-block; }
.pkg-badge.boxDateActive { background:#e9f8ef; color:#0b6b3a; border-color:#bfe8cf; }
.pkg-badge.boxDateActiveNearExpired { background:#fff8e6; color:#8a5b00; border-color:#ffe2a8; }
.pkg-badge.boxDateExpired { background:#fdeaea; color:#842029; border-color:#f5c2c7; }
.pkg-badge.boxDateNormal { background:#eef2f7; color:#34495e; border-color:#d0d8e2; }
.pkg-card.pkg-expired { background:#fff7f7; border:1px solid #f5c2c7; border-left:5px solid #e35d6a; }

.dashboard-package-box .buttonEditor {
  background: linear-gradient(180deg, #CC0000 0%, #BE2829 100%);
  color: #fff !important;
  border: 1px solid #B51E1F;
  border-radius: 14px;
  padding: 6px 12px;
}
.dashboard-package-box .buttonEditor:hover { filter: brightness(0.95); box-shadow: 0 2px 0 rgba(0,0,0,0.05); }

/* Banner top-right edit button and menu */
.dashboard-cover-photo { position: relative; }
.banner-edit-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 5;
  background: #fff; color: #000; border: 1px solid #ddd; border-radius: 6px;
  padding: 6px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.banner-edit-btn:hover { background: #f0f0f0; }
.banner-edit-menu {
  position: absolute; right: 8px; top: 100%; z-index: 6; min-width: 180px;
  background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  overflow: hidden; display: none;
}
.banner-edit-menu.show { display: block; }
.banner-edit-menu .menu-item { display: block; width: 100%; text-align: left; background: #fff; border: none; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.banner-edit-menu .menu-item i { margin-right: 8px; }
.banner-edit-menu .menu-item:hover { background: #f6f7f9; }

/* Modal: small banner options */
.dashboard-modal.small-options { display:none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); }
.dashboard-modal.small-options.show { display:block; }
.small-options-content { background:#fff; border-radius:10px; width: min(520px, 92%); margin: 12vh auto; padding: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.small-options-header { font-weight:700; margin-bottom:8px; font-size:16px; }
.small-options-desc { color:#444; font-size:14px; margin-bottom:12px; }
.small-options-actions { display:flex; gap:10px; flex-wrap:wrap; }
.small-options-actions .buttonClassic { flex:1; min-width: 140px; }

/* Unified button styles for dashboard modals */
.dashboard-modal .btn { 
  display:inline-flex; align-items:center; gap:6px;
  padding: 8px 14px; border-radius: 8px; font-weight:600; font-size:14px; 
  border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition: all .2s ease;
}
.dashboard-modal .btn:disabled{ opacity:.6; cursor:not-allowed; }
.dashboard-modal .btn-primary{ 
  background: linear-gradient(180deg, #CC0000 0%, #BE2829 100%);
  color:#fff !important; border-color:#B51E1F;
}
.dashboard-modal .btn-primary:hover{ filter:brightness(.95); box-shadow:0 2px 6px rgba(0,0,0,.12); }
.dashboard-modal .btn-secondary{ 
  background:#f8f9fa; color:#374151 !important; border-color:#d1d5db;
}
.dashboard-modal .btn-secondary:hover{ background:#eef1f4; }
.dashboard-modal .btn-danger{ 
  background:#fff; color:#BE2829 !important; border-color:#e5b3b3;
}
.dashboard-modal .btn-danger:hover{ background:#fff5f5; }

/* Positioning for banner and avatar modals: center horizontally, add top space */
#dashboardBannerModal .dashboard-modal-content,
#dashboardAvatarModal .dashboard-modal-content {
  margin: 6vh auto 0; /* top spacing and centered */
  max-width: min(96%, 900px);
}

/* Medium screen responsive styles (less than 790px) */
@media (max-width: 790px) {
  .pkg-row { flex-direction: column; align-items: center !important; gap: 8px !important; text-align: center; }
  .pkg-name { width: 100%; justify-content: center; }
  .pkg-right { width: 100%; justify-content: center; }
  .pkg-badge { margin-top: 4px; }
  .pkg-actions { text-align: center; margin-top: 12px; }
  .pkg-actions .buttonClassic, .pkg-actions .buttonEditor { 
    font-size: 13px; 
    padding: 8px 16px; 
    display: inline-block; 
    margin: 4px 8px; 
  }
}

/* Mobile responsive styles for iPhone XR and similar devices */
@media (max-width: 414px) {
  .dashboard-package-container { flex-direction: column !important; }
  .pkg-card { flex: 1 1 100% !important; }
  .pkg-row { flex-direction: column; align-items: center !important; gap: 8px !important; text-align: center; }
  .pkg-name { width: 100%; justify-content: center; }
  .pkg-right { width: 100%; justify-content: center; }
  .pkg-badge { margin-top: 4px; }
  .pkg-actions { text-align: center; margin-top: 12px; }
  .pkg-actions .buttonClassic, .pkg-actions .buttonEditor { 
    font-size: 13px; 
    padding: 8px 16px; 
    display: inline-block; 
    margin: 4px 8px; 
  }
}

/* Khi màn hình nhỏ và 2 gói không nằm cùng hàng, hiển thị full width */
@media (max-width: 768px) {
  .dashboard-quick-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-quick-tools {
    grid-template-columns: repeat(2, 1fr);
  }
}