:root {
	--primary-gradient: linear-gradient(135deg, #3b82f6 0%, #4338ca 100%);
	--primary-color: #3b82f6;
	--primary-dark: #4338ca;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--error-color: #ef4444;
	--info-color: #3b82f6;
	--text-primary: #1f2937;
	--text-secondary: #6b7280;
	--text-muted: #9ca3af;
	--border-color: #e5e7eb;
	--bg-gray: #f9fafb;
	--bg-white: #ffffff;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
}

.smartpay-profile-edit {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	padding: 40px 20px;
	flex-grow: 1;
}

.smartpay-profile-edit * {
	box-sizing: border-box;
}

.smartpay-profile-edit .profile-container {
	max-width: 1400px;
	margin: 0 auto;
}

.smartpay-profile-edit .dashboard-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	align-items: start;
}

.smartpay-profile-edit .dashboard-sidebar {
	position: sticky;
	top: 40px;
	background: var(--bg-white);
	border-radius: var(--radius-xl);
	padding: 0;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
	overflow: hidden;
	min-height: calc( 100vh - 80px );
	display: flex;
	flex-direction: column;
}

.smartpay-profile-edit .sidebar-profile {
	padding: 30px 24px;
	text-align: center;
	background: var(--bg-white);
	color: var(--text-primary);
	position: relative;
	overflow: hidden;
}

.smartpay-profile-edit .sidebar-profile::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -30%;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.smartpay-profile-edit .sidebar-profile::after {
	content: '';
	position: absolute;
	bottom: -50%;
	left: -30%;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.smartpay-profile-edit .profile-avatar-wrapper {
	position: relative;
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
	z-index: 1;
}

.smartpay-profile-edit .sidebar-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
}

.smartpay-profile-edit .profile-status {
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 16px;
	height: 16px;
	background: var(--success-color);
	border-radius: 50%;
	border: 3px solid white;
}

.smartpay-profile-edit .profile-name {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 4px;
	position: relative;
	z-index: 1;
}

.smartpay-profile-edit .sidebar-profile .profile-email {
	font-size: 0.875rem;
	margin: 0 0 16px;
	opacity: 0.9;
	position: relative;
	z-index: 1;
	word-break: break-word;
}

.smartpay-profile-edit .sidebar-profile .profile-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	font-size: 0.813rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.3);
	position: relative;
	z-index: 1;
}

.smartpay-profile-edit .sidebar-nav {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	justify-content: space-between;
}
.smartpay-profile-edit .sidebar-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.smartpay-profile-edit .sidebar-nav .nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.938rem;
	transition: all 0.2s ease;
	position: relative;
}

.smartpay-profile-edit .sidebar-nav .nav-item:hover {
	background: var(--bg-gray);
	color: var(--text-primary);
}

.smartpay-profile-edit .sidebar-nav .nav-item.active {
	background: #e5e7eb;
	color: var(--text-primary);
}

.smartpay-profile-edit .sidebar-nav .nav-item svg {
	flex-shrink: 0;
}

.smartpay-profile-edit .sidebar-nav .nav-divider {
	height: 1px;
	background: var(--border-color);
	margin: 8px 0;
}

.smartpay-profile-edit .sidebar-nav .nav-logout {
	color: var(--error-color);
}

.smartpay-profile-edit .sidebar-nav .nav-logout:hover {
	background: #fee2e2;
	color: var(--error-color);
}

.smartpay-profile-edit .profile-main {
	min-width: 0;
}

.smartpay-profile-edit .profile-header {
	padding: 4px 0 20px;
	margin-bottom: 20px;
}

.smartpay-profile-edit .profile-header .header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.smartpay-profile-edit .profile-header h1 {
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 8px;
	line-height: 1.2;
}

.smartpay-profile-edit .profile-header .subtitle {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
}

.smartpay-profile-edit .section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-color);
}

.smartpay-profile-edit .section-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.smartpay-profile-edit .profile-tabs {
	padding: 0;
	margin-bottom: 24px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
}

.smartpay-profile-edit .tab-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.938rem;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.smartpay-profile-edit .tab-item:hover {
	background: var(--bg-gray);
	color: var(--text-primary);
}

.smartpay-profile-edit .tab-item.active {
	background: #e5e7eb;
	color: var(--text-primary);
	border-color: transparent;
}

.smartpay-profile-edit .profile-content {
	background: var(--bg-white);
	border-radius: var(--radius-lg);
	padding: 32px;
	border: 1px solid var(--border-color);
}

.smartpay-profile-edit .form-section {
	display: none;
}

.smartpay-profile-edit .form-section.active {
	display: block;
}

.smartpay-profile-edit .form-section .section-header {
	margin-bottom: 30px;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 20px;
}

.smartpay-profile-edit .form-section .section-header h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px;
}

.smartpay-profile-edit .form-section .section-header p {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
}

.smartpay-profile-edit .profile-form .form-group-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.smartpay-profile-edit .profile-form .form-group {
	margin-bottom: 24px;
}

.smartpay-profile-edit .profile-form .form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.938rem;
}

.smartpay-profile-edit .profile-form .form-control {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	font-size: 1rem;
	color: var(--text-primary);
	background: var(--bg-white);
	transition: all 0.2s ease;
	font-family: inherit;
}

.smartpay-profile-edit .profile-form .form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.smartpay-profile-edit .profile-form .form-control.error {
	border-color: var(--error-color);
	background: #fef2f2;
}

.smartpay-profile-edit .password-strength-wrapper {
	margin-top: 8px;
	display: none;
}

.smartpay-profile-edit .password-strength-wrapper.show {
	display: block;
}

.smartpay-profile-edit .password-strength {
	height: 4px;
	background: var(--border-color);
	border-radius: 2px;
	display: none;
	overflow: hidden;
	margin-bottom: 6px;
	margin-top: 8px;
}
.smartpay-profile-edit .password-strength.show {
	display: block;
}

.smartpay-profile-edit .password-strength::after {
	content: '';
	display: block;
	height: 100%;
	transition: width 0.3s ease, background 0.3s ease;
}

.smartpay-profile-edit .password-strength.weak::after {
	width: 33%;
	background: var(--error-color);
}

.smartpay-profile-edit .password-strength.medium::after {
	width: 66%;
	background: var(--warning-color);
}

.smartpay-profile-edit .password-strength.strong::after {
	width: 100%;
	background: var(--success-color);
}

.smartpay-profile-edit .strength-text {
	font-size: 0.813rem;
	font-weight: 600;
}

.smartpay-profile-edit .strength-text.weak {
	color: var(--error-color);
}

.smartpay-profile-edit .strength-text.medium {
	color: var(--warning-color);
}

.smartpay-profile-edit .strength-text.strong {
	color: var(--success-color);
}

.smartpay-profile-edit .security-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #eff6ff;
	border-radius: var(--radius-md);
	border: 1px solid #bfdbfe;
}

.smartpay-profile-edit .security-notice svg {
	flex-shrink: 0;
	color: var(--info-color);
}

.smartpay-profile-edit .security-notice span {
	font-size: 0.938rem;
	color: #1e40af;
}

.smartpay-profile-edit .preference-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	background: var(--bg-gray);
	border-radius: var(--radius-lg);
	margin-bottom: 16px;
	border: 1px solid var(--border-color);
}

.smartpay-profile-edit .preference-info h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 4px;
}

.smartpay-profile-edit .preference-info p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
}

.smartpay-profile-edit .preference-note {
	font-size: 0.813rem;
	color: var(--text-secondary);
	font-style: italic;
	margin-left: 12px;
}

.smartpay-profile-edit .switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 28px;
	flex-shrink: 0;
}

.smartpay-profile-edit .switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.smartpay-profile-edit .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: 0.3s;
	border-radius: 28px;
}

.smartpay-profile-edit .slider:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.smartpay-profile-edit input:checked + .slider {
	background-color: var(--primary-color);
}

.smartpay-profile-edit input:checked + .slider:before {
	transform: translateX(24px);
}

.smartpay-profile-edit input:disabled + .slider {
	opacity: 0.5;
	cursor: not-allowed;
}

.smartpay-profile-edit .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.smartpay-profile-edit .btn-primary {
	background: var(--primary-gradient);
	color: white;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.smartpay-profile-edit .btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.smartpay-profile-edit .btn-secondary {
	background: var(--bg-gray);
	color: var(--text-primary);
	border: 2px solid var(--border-color);
}

.smartpay-profile-edit .btn-secondary:hover:not(:disabled) {
	background: #f3f4f6;
	border-color: var(--text-secondary);
}

.smartpay-profile-edit .btn-sm {
	padding: 8px 16px;
	font-size: 0.875rem;
}

.smartpay-profile-edit .btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.smartpay-profile-edit .btn-arrow {
	transition: transform 0.3s ease;
}

.smartpay-profile-edit .btn:hover:not(:disabled) .btn-arrow {
	transform: translateX(4px);
}

.smartpay-profile-edit .input-with-icon {
	position: relative;
}

.smartpay-profile-edit .input-icon {
	position: absolute;
	left: 14px;
	top: 24px;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
	z-index: 1;
}

.smartpay-profile-edit .form-control.with-icon {
	padding-left: 44px;
}

.smartpay-profile-edit .password-input-wrapper {
	position: relative;
}

.smartpay-profile-edit .password-toggle {
	position: absolute;
	right: 12px;
	top: 25px;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--text-muted);
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.smartpay-profile-edit .password-toggle:hover {
	color: var(--text-primary);
}

.smartpay-profile-edit .password-toggle:focus {
	outline: none;
}

.smartpay-profile-edit .required {
	color: var(--error-color);
	margin-left: 2px;
}

.smartpay-profile-edit .help-text {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.smartpay-profile-edit .error-message {
	display: none;
	color: var(--error-color);
	font-size: 0.875rem;
	margin-top: 6px;
	font-weight: 500;
}

.smartpay-profile-edit .form-group select.form-control {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.smartpay-profile-edit .alert {
	padding: 16px 20px;
	border-radius: var(--radius-md);
	font-size: 0.938rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
}

.smartpay-profile-edit .alert-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.smartpay-profile-edit .alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.smartpay-profile-edit .form-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.smartpay-profile-edit .form-actions.margin-0 {
	margin: 0;
}

.smartpay-profile-edit .avatar-upload-section {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding: 32px;
	background: var(--bg-gray);
	border-radius: var(--radius-lg);
	border: 2px dashed var(--border-color);
	margin-bottom: 32px;
	transition: all 0.3s ease;
}

.smartpay-profile-edit .avatar-upload-section.has-preview {
	border-color: var(--primary-color);
	background: var(--bg-gray);
}

.smartpay-profile-edit .avatar-preview-container {
	display: flex;
	gap: 20px;
	flex-shrink: 0;
}

.smartpay-profile-edit .avatar-current,
.smartpay-profile-edit .avatar-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.smartpay-profile-edit .avatar-current .avatar-img,
.smartpay-profile-edit .avatar-preview .avatar-img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--bg-white);
	box-shadow: var(--shadow-md);
	transition: all 0.3s ease;
}

.smartpay-profile-edit .avatar-preview {
	position: relative;
}

.smartpay-profile-edit .avatar-preview .avatar-img {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px var(--primary-color), var(--shadow-lg);
}

.smartpay-profile-edit .avatar-preview::after {
	content: 'NEW';
	position: absolute;
	top: -8px;
	right: -8px;
	padding: 4px 10px;
	background: var(--primary-gradient);
	color: white;
	font-size: 0.688rem;
	font-weight: 700;
	border-radius: 12px;
	letter-spacing: 0.5px;
	box-shadow: var(--shadow-md);
}

.smartpay-profile-edit .avatar-actions {
	flex: 1;
	min-width: 0;
}

.smartpay-profile-edit .avatar-actions h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 4px;
}

.smartpay-profile-edit .avatar-actions p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0 0 20px;
}

.smartpay-profile-edit .avatar-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.smartpay-profile-edit .avatar-buttons .btn {
	animation: fadeIn 0.3s ease;
}

.smartpay-profile-edit .upload-progress {
	margin-top: 16px;
	animation: fadeIn 0.3s ease;
}

.smartpay-profile-edit .progress-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.smartpay-profile-edit .progress-fill {
	height: 100%;
	background: var(--primary-gradient);
	border-radius: 4px;
	width: 0%;
	transition: width 0.3s ease;
	animation: progressPulse 1.5s ease-in-out infinite;
}

.smartpay-profile-edit .progress-text {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.smartpay-profile-edit .progress-text::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid var(--primary-color);
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

.smartpay-profile-edit .avatar-message {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	font-weight: 500;
	display: none;
	animation: slideDown 0.3s ease;
}

.smartpay-profile-edit .avatar-message.show {
	display: block;
}

.smartpay-profile-edit .avatar-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.smartpay-profile-edit .avatar-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.smartpay-profile-edit .avatar-message.info {
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #93c5fd;
}

@keyframes progressPulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
		max-height: 0;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		max-height: 100px;
	}
}

@media (max-width: 1024px) {
	.smartpay-profile-edit .dashboard-layout {
		grid-template-columns: 240px 1fr;
	}
}

@media (max-width: 768px) {
	.smartpay-profile-edit {
		padding: 20px 10px;
	}
	.smartpay-profile-edit .dashboard-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.smartpay-profile-edit .dashboard-sidebar {
		position: static;
	}
	.smartpay-profile-edit .profile-header {
		padding: 24px 20px;
	}
	.smartpay-profile-edit .profile-header .header-content {
		flex-direction: column;
		align-items: flex-start;
	}
	.smartpay-profile-edit .profile-content {
		padding: 24px 20px;
	}
	.smartpay-profile-edit .profile-form .form-group-row {
		grid-template-columns: 1fr;
	}
	.smartpay-profile-edit .form-actions {
		flex-direction: column;
	}
	.smartpay-profile-edit .form-actions .btn {
		width: 100%;
	}
	.smartpay-profile-edit .profile-tabs {
		overflow-x: auto;
	}
	.smartpay-profile-edit .avatar-upload-section {
		flex-direction: column;
		text-align: center;
	}
	.smartpay-profile-edit .avatar-upload-section {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.smartpay-profile-edit .avatar-preview-container {
		justify-content: center;
	}
	.smartpay-profile-edit .avatar-buttons {
		justify-content: center;
	}
}
@media (max-width: 480px) {
	.smartpay-profile-edit .profile-header h1 {
		font-size: 1.5rem;
	}
}
