/* =========================================================
   VidooHub Account
   ========================================================= */

.vh-account-layout {
	display: flex;
	width: 100%;
	min-height: 600px;
	gap: 24px;
	padding: 24px;
	box-sizing: border-box;
}


/* =========================================================
   Account Sidebar
   ========================================================= */

.vh-account-sidebar {
	width: 190px;
	flex: 0 0 190px;
}

.vh-account-sidebar-inner {
	width: 100%;
}

.vh-account-sidebar-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 20px;
	margin-bottom: 8px;
}

.vh-account-sidebar-avatar {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: block;
	overflow: hidden;
	border-radius: 50%;
}

.vh-account-sidebar-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vh-account-sidebar-user-info {
	min-width: 0;
}

.vh-account-sidebar-user-info strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.3;
}

.vh-account-sidebar-user-info span {
	display: block;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	opacity: .5;
}


/* =========================================================
   Sidebar Navigation
   ========================================================= */

.vh-account-sidebar-nav ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-account-sidebar-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-account-sidebar-nav a,
.vh-account-sidebar-footer a {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 42px;
	padding: 0 14px;
	box-sizing: border-box;
	border-radius: 8px;
	color: #b9b9b9;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition:
		background-color .2s ease,
		color .2s ease;
}

.vh-account-sidebar-nav a:hover,
.vh-account-sidebar-footer a:hover {
	background: rgba(255, 255, 255, .05);
	color: #fff;
}

.vh-account-sidebar-nav li.is-active a {
	background: #ed1c2e;
	color: #fff;
	font-weight: 600;
}

.vh-account-sidebar-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
}

.vh-account-sidebar-icon svg {
	width: 19px;
	height: 19px;
}

.vh-account-sidebar-label {
	white-space: nowrap;
}


/* =========================================================
   Sidebar Footer
   ========================================================= */

.vh-account-sidebar-footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .06);
}


/* =========================================================
   Account Content
   ========================================================= */

.vh-account-content {
	flex: 1;
	min-width: 0;
}

.vh-account-page-content {
	width: 100%;
}


/* =========================================================
   Mobile Account Navigation Container
   ========================================================= */

.vh-account-mobile-nav {
	display: none;
}


/* =========================================================
   Account Header
   ========================================================= */

.vh-account-header {
	width: 100%;
	margin-bottom: 28px;
}

.vh-account-cover {
	position: relative;
	width: 100%;
	height: 230px;
	overflow: hidden;
	border-radius: 14px;
	background: #181818;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.vh-account-cover-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		#181818 0%,
		#252525 50%,
		#151515 100%
	);
}

.vh-account-profile {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	margin-top: -58px;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

.vh-account-avatar {
	width: 112px;
	height: 112px;
	flex: 0 0 112px;
	overflow: hidden;
	border-radius: 50%;
	border: 5px solid #111;
	background: #222;
	box-sizing: border-box;
}

.vh-account-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.vh-account-profile-info {
	flex: 1;
	min-width: 0;
	padding-bottom: 10px;
}

.vh-account-username {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.vh-account-handle {
	font-size: 13px;
	opacity: .6;
}

.vh-account-bio {
	margin: 10px 0 0;
	max-width: 600px;
	line-height: 1.5;
	opacity: .8;
}

.vh-account-profile-action {
	padding-bottom: 12px;
}

.vh-account-edit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
	color: #111;
	transition: opacity .2s ease;
}

.vh-account-edit-button:hover {
	opacity: .85;
}


/* =========================================================
   Statistics
   ========================================================= */

.vh-account-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
	margin-bottom: 28px;
}

.vh-account-stat {
	display: block;
	padding: 16px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .04);
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: background-color .2s ease;
}

.vh-account-stat:hover {
	background: rgba(255, 255, 255, .07);
}

.vh-account-stat strong {
	display: block;
	font-size: 23px;
	line-height: 1.2;
	font-weight: 700;
}

.vh-account-stat span {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	opacity: .65;
}


/* =========================================================
   Page Title
   ========================================================= */

.vh-account-page-title {
	margin: 0 0 20px;
	font-size: 22px;
	line-height: 1.3;
}


/* =========================================================
   Video Grid
   ========================================================= */

.vh-account-video-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

.vh-account-video-grid .vh-video-card {
	width: 100%;
	min-width: 0;
}


/* =========================================================
   Empty State
   ========================================================= */

.vh-account-empty {
	width: 100%;
	padding: 60px 20px;
	box-sizing: border-box;
	border-radius: 12px;
	background: rgba(255, 255, 255, .04);
	text-align: center;
}

.vh-account-empty p {
	margin: 0;
	opacity: .65;
}


/* =========================================================
   Edit Profile
   ========================================================= */

.vh-account-profile-form {
	width: 100%;
	max-width: 760px;
}

.vh-profile-media {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 25px;
}

.vh-profile-field {
	margin-bottom: 20px;
}

.vh-profile-field label,
.vh-profile-avatar-field label,
.vh-profile-cover-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.vh-profile-field input,
.vh-profile-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.vh-profile-field textarea {
	resize: vertical;
}

.vh-profile-field small {
	display: block;
	margin-top: 6px;
	opacity: .55;
}

.vh-profile-avatar-preview {
	margin-bottom: 12px;
}

.vh-profile-avatar-preview img {
	display: block;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
}

.vh-profile-cover-preview {
	width: 100%;
	height: 160px;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: 10px;
}

.vh-profile-cover-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vh-profile-password {
	margin-top: 35px;
}

.vh-profile-password h2 {
	margin-bottom: 20px;
}

.vh-account-save-button {
	cursor: pointer;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	font-weight: 600;
}


/* =========================================================
   Settings
   ========================================================= */

.vh-settings-list {
	width: 100%;
	max-width: 760px;
}

.vh-settings-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vh-settings-item strong,
.vh-settings-item span {
	display: block;
}

.vh-settings-item span {
	margin-top: 5px;
	font-size: 13px;
	opacity: .6;
}

.vh-settings-logout {
	text-decoration: none;
}

.vh-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: 0 0 auto;
}

.vh-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.vh-switch-slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	border-radius: 30px;
	background: #444;
	transition: .2s;
}

.vh-switch-slider:before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	border-radius: 50%;
	background: #fff;
	transition: .2s;
}

.vh-switch input:checked + .vh-switch-slider:before {
	transform: translateX(20px);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

	.vh-account-layout {
		gap: 18px;
		padding: 20px;
	}

	.vh-account-sidebar {
		width: 180px;
		flex-basis: 180px;
	}

	.vh-account-video-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

	/* =====================================================
	   Account Layout
	   ===================================================== */

	.vh-account-layout {
		display: block;
		width: 100%;
		min-height: 0;
		padding: 10px;
		box-sizing: border-box;
	}

	.vh-account-content {
		width: 100%;
	}


	/* =====================================================
	   Hide Original Desktop Sidebar
	   ===================================================== */

	.vh-account-layout > .vh-account-sidebar {
		display: none;
	}


	/* =====================================================
	   Show Mobile Navigation
	   ===================================================== */

	.vh-account-mobile-nav {
		display: block;
		width: 100%;
		margin: 0 0 18px;
	}

	.vh-account-mobile-nav .vh-account-sidebar {
		display: block;
		width: 100%;
		margin: 0;
	}

	.vh-account-mobile-nav .vh-account-sidebar-inner {
		width: 100%;
	}


	/* =====================================================
	   Hide Mobile User + Logout
	   ===================================================== */

	.vh-account-mobile-nav .vh-account-sidebar-user {
		display: none;
	}

	.vh-account-mobile-nav .vh-account-sidebar-footer {
		display: none;
	}


	/* =====================================================
	   Mobile Navigation
	   ===================================================== */

	.vh-account-mobile-nav .vh-account-sidebar-nav {
		width: 100%;
		margin: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav::-webkit-scrollbar {
		display: none;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav ul {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		gap: 0;
		width: max-content;
		min-width: 100%;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav li {
		flex: 0 0 auto;
		margin: 0;
		padding: 0;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav a {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-width: 76px;
		min-height: 60px;
		padding: 8px 10px;
		border-radius: 0;
		background: transparent;
		color: #aaa;
		font-size: 10px;
		font-weight: 500;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav a:hover {
		background: transparent;
		color: #fff;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav li.is-active a {
		background: transparent;
		color: #fff;
		font-weight: 600;
	}

	.vh-account-mobile-nav .vh-account-sidebar-nav li.is-active a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 0;
		height: 2px;
		background: #ed1c2e;
		border-radius: 2px 2px 0 0;
	}

	.vh-account-mobile-nav .vh-account-sidebar-icon {
		width: 22px;
		height: 22px;
		flex: 0 0 22px;
		font-size: 18px;
		line-height: 1;
	}

	.vh-account-mobile-nav .vh-account-sidebar-icon svg {
		width: 21px;
		height: 21px;
	}

	.vh-account-mobile-nav .vh-account-sidebar-label {
		display: block;
		white-space: nowrap;
		font-size: 10px;
		line-height: 1.2;
	}


	/* =====================================================
	   Account Header
	   ===================================================== */

	.vh-account-header {
		margin-bottom: 20px;
	}

	.vh-account-cover {
		height: 160px;
		border-radius: 10px;
	}

	.vh-account-profile {
		align-items: flex-end;
		gap: 10px;
		margin-top: -42px;
		padding: 0 10px;
	}

	.vh-account-avatar {
		width: 82px;
		height: 82px;
		flex: 0 0 82px;
		border-width: 4px;
	}

	.vh-account-profile-info {
		min-width: 0;
		padding-bottom: 6px;
	}

	.vh-account-username {
		font-size: 18px;
		line-height: 1.2;
	}

	.vh-account-handle {
		font-size: 11px;
	}

	.vh-account-bio {
		display: none;
	}

	.vh-account-profile-action {
		padding-bottom: 6px;
	}

	.vh-account-edit-button {
		padding: 7px 10px;
		font-size: 12px;
		white-space: nowrap;
	}


	/* =====================================================
	   Statistics
	   ===================================================== */

	.vh-account-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin-top: 14px;
		margin-bottom: 22px;
	}

	.vh-account-stat {
		padding: 12px 8px;
	}

	.vh-account-stat strong {
		font-size: 20px;
	}

	.vh-account-stat span {
		font-size: 12px;
	}


	/* =====================================================
	   Page Content
	   ===================================================== */

	.vh-account-page-title {
		margin-bottom: 16px;
		font-size: 20px;
	}


	/* =====================================================
	   Video Grid
	   ===================================================== */

	.vh-account-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}


	/* =====================================================
	   Empty State
	   ===================================================== */

	.vh-account-empty {
		padding: 50px 15px;
	}


	/* =====================================================
	   Profile Form
	   ===================================================== */

	.vh-profile-media {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vh-account-profile-form {
		max-width: 100%;
	}


	/* =====================================================
	   Settings
	   ===================================================== */

	.vh-settings-item {
		align-items: flex-start;
	}

}
/* =========================================================
   Edit Profile - Modern UI
   ========================================================= */

.vh-account-edit-profile {
	width: 100%;
	max-width: 1000px;
}

.vh-edit-profile-heading {
	margin-bottom: 24px;
}

.vh-edit-profile-heading .vh-account-page-title {
	margin-bottom: 6px;
}

.vh-edit-profile-heading p {
	margin: 0;
	font-size: 13px;
	opacity: .55;
}


/* =========================================================
   Media Cards
   ========================================================= */

.vh-profile-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.vh-profile-media-card,
.vh-profile-section-card {
	padding: 22px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .06);
	box-sizing: border-box;
}

.vh-profile-media-header h2,
.vh-profile-section-heading h2 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.vh-profile-media-header p,
.vh-profile-section-heading p {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	opacity: .55;
}


/* =========================================================
   Avatar Upload
   ========================================================= */

.vh-profile-avatar-upload {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 20px;
}

.vh-profile-avatar-preview {
	position: relative;
	width: 130px;
	height: 130px;
	flex: 0 0 130px;
	margin: 0;
}

.vh-profile-avatar-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #222;
}

.vh-profile-camera-badge {
	position: absolute;
	right: 2px;
	bottom: 4px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ed1c2e;
	color: #fff;
	border: 3px solid #111;
}

.vh-profile-camera-badge svg {
	width: 18px;
	height: 18px;
}


/* =========================================================
   Upload Info
   ========================================================= */

.vh-profile-upload-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
}

.vh-profile-upload-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 17px;
	border-radius: 8px;
	background: #ed1c2e;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: opacity .2s ease, transform .2s ease;
}

.vh-profile-upload-button:hover {
	opacity: .9;
	transform: translateY(-1px);
}

.vh-profile-upload-button svg {
	width: 17px;
	height: 17px;
}

.vh-profile-upload-info small,
.vh-profile-cover-actions small {
	font-size: 11px;
	opacity: .5;
}


/* =========================================================
   Cover Upload
   ========================================================= */

.vh-profile-cover-upload {
	margin-top: 20px;
}

.vh-profile-cover-preview {
	position: relative;
	width: 100%;
	height: 145px;
	margin: 0 0 12px;
	overflow: hidden;
	border-radius: 10px;
	background: #181818;
}

.vh-profile-cover-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vh-profile-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #777;
	font-size: 12px;
	background: linear-gradient(
		135deg,
		#181818,
		#252525
	);
}

.vh-profile-cover-camera {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
}

.vh-profile-cover-camera svg {
	width: 21px;
	height: 21px;
}

.vh-profile-cover-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}


/* =========================================================
   Profile Information
   ========================================================= */

.vh-profile-section-card {
	margin-bottom: 18px;
}

.vh-profile-section-heading {
	margin-bottom: 20px;
}

.vh-profile-field {
	margin-bottom: 18px;
}

.vh-profile-field:last-child {
	margin-bottom: 0;
}

.vh-profile-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
}

.vh-profile-field input,
.vh-profile-field textarea {
	width: 100%;
	padding: 12px 13px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 7px;
	background: rgba(255, 255, 255, .035);
	color: #fff;
	outline: none;
	font-family: inherit;
	font-size: 13px;
	transition: border-color .2s ease, background-color .2s ease;
}

.vh-profile-field input:focus,
.vh-profile-field textarea:focus {
	border-color: #ed1c2e;
	background: rgba(255, 255, 255, .05);
}

.vh-profile-field input:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.vh-profile-field textarea {
	min-height: 110px;
	resize: vertical;
	line-height: 1.5;
}

.vh-profile-field small {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	opacity: .5;
}

.vh-profile-bio-counter {
	text-align: right;
}


/* =========================================================
   Password
   ========================================================= */

.vh-profile-password-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.vh-password-input {
	position: relative;
}

.vh-password-input input {
	padding-right: 45px;
}

.vh-password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #999;
	cursor: pointer;
}

.vh-password-toggle:hover {
	color: #fff;
}

.vh-password-toggle svg {
	width: 18px;
	height: 18px;
}


/* =========================================================
   Save Button
   ========================================================= */

.vh-profile-save-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.vh-account-save-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 190px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #ed1c2e;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	transition: opacity .2s ease, transform .2s ease;
}

.vh-account-save-button:hover {
	opacity: .9;
	transform: translateY(-1px);
}

.vh-account-save-button svg {
	width: 17px;
	height: 17px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

	.vh-account-edit-profile {
		width: 100%;
	}

	.vh-edit-profile-heading {
		margin-bottom: 18px;
	}

	.vh-profile-media {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.vh-profile-media-card,
	.vh-profile-section-card {
		padding: 16px;
	}

	.vh-profile-avatar-upload {
		gap: 15px;
	}

	.vh-profile-avatar-preview {
		width: 90px;
		height: 90px;
		flex-basis: 90px;
	}

	.vh-profile-camera-badge {
		width: 30px;
		height: 30px;
		border-width: 2px;
	}

	.vh-profile-camera-badge svg {
		width: 14px;
		height: 14px;
	}

	.vh-profile-cover-preview {
		height: 125px;
	}

	.vh-profile-cover-actions {
		flex-wrap: wrap;
	}

	.vh-profile-password-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.vh-account-save-button {
		width: 100%;
	}

}