@import url(font.css);
:root {
	--primary: #eeeeee;
	--secondary: #227c70;
	--green: #82cd47;
	--secondary-light: rgb(34, 124, 112, 0.2);
	--secondary-light-2: rgb(127, 183, 126, 0.1);
	--white: #fff;
	--black: #393e46;

	--shadow: 0px 2px 8px 0px var(--secondary-light);
}

* {
	margin: 0;
	padding: 0;
	list-style-type: none;
	box-sizing: border-box;
	font-family: 'Poppins-Regular';
}
.btn__user {
	position: relative;
}

.profile__dropdown-list {
	position: absolute;
	top: 68px;
	width: 220px;
	left: -100px;
	background-color: var(--black);
	border-radius: 10px;
	box-shadow: var(--shadow);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s;
}
.profile__dropdown-list.active {
	max-height: 500px;
}
.profile__dropdown-list hr {
	border: 0.5px solid var(--green);
}
.profile__dropdown-item {
	padding: 0.5rem 0 0.5rem 1rem;
	transition: background-color 0.3s, padding-left 0.3s;
}
.profile__dropdown-item:hover {
	padding-left: 1.5rem;
	background-color: var(--secondary-light);
}
.profile__dropdown-item a {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--white);
}
.profile__dropdown-item a i {
	margin-right: 1rem;
	font-size: 1.1rem;
	width: 2.3rem;
	height: 2.3rem;
	background-color: #ff9800;
	color: var(--white);
	line-height: 2.3rem;
	text-align: center;
	border-radius: 50%;
}
/* profile edit */
.profile_container {
	margin-top: 70px;
	max-width: 900px;
	width: 100%;
	margin-inline: auto;
}

.profile_title {
	text-align: center;
	margin-bottom: 30px;
	color: #fff;
}

.profile_box {
	background: #181818;
	padding: 30px;
	border-radius: 10px;
	display: flex;
	gap: 30px;
	align-items: center;
}

.profile_left {
	width: 50%;
	text-align: center;
}

.profile_left img {
	width: 100%;
	border-radius: 4px;
	height: 353px;
}

.profile_right {
	width: 50%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

label {
	font-size: 15px;
	color: #bbb;
}

input,
textarea {
	width: 100%;
	padding: 12px;
	background: #222;
	border: none;
	border-radius: 6px;
	color: #fff;
	outline: none;
	resize: none;
}

textarea {
	height: 100px;
}

.btn {
	margin-top: 10px;
	padding: 12px;
	width: 100%;
	background: #393e46;
	border: none;
	border-radius: 6px;
	color: white;
	cursor: pointer;
}
.button_box button {
	background: #ff9800;
	color: #181818;
}

.btn:hover {
	opacity: 0.8;
}

.hide {
	display: none;
}
.coins_box {
	width: 100%;
	background: #ff9800;
	color: #181818;
	padding: 10px 15px;
	border-radius: 10px;
	margin-top: 20px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	transition: 0.2s;
}

.coins_box:hover {
	transform: scale(1.03);
	opacity: 0.9;
}

.coins_box span {
	font-weight: bold;
	font-size: 22px;
}
.button_box {
	display: flex;
	gap: 10px;
}

.save_btn {
	background: #5a33ff;
}

.cancel_btn {
	background: #444;
}

.save_btn,
.cancel_btn {
	flex: 1;
}
.password_box {
	position: relative;
	width: 100%;
}
.password_box input {
	position: relative;
	z-index: 1;
	padding-right: 45px;
	pointer-events: auto;
}
.toggle_pass {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 18px;
	opacity: 0.6;
	user-select: none;
	z-index: 2;
	pointer-events: auto;
}

.toggle_pass:hover {
	opacity: 1;
}
.avatar_box {
	width: 100%;
	height: 353px;
	border-radius: 6px;
	overflow: hidden;
}

.avatar_box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 800px) {
	.profile_box {
		flex-direction: column;
		text-align: center;
	}

	.profile_left {
		width: 100%;
	}

	.profile_left img {
		max-width: 300px;
		max-height: 300px;
		object-fit: cover;

		margin: 0 auto;
		display: block;
	}

	.profile_right {
		width: 100%;
	}

	.btn {
		width: 100%;
	}
	.coins_box {
		font-size: 16px;
	}
	.coins_box span {
		font-size: 20px;
	}
}
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.user-info input {
    flex: 1;
}

.user-id-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #222;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.user-id-box:hover {
    background: #2c2c2c;
}

.copy-icon {
    font-size: 16px;
    opacity: 0.7;
}

.user-id-box:hover .copy-icon {
    opacity: 1;
}
.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5a33ff;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.user_id{
	color: #bbb;
}
.avatar-box {
    
    border-radius: 12px;
    
    display: flex;
    align-items: center;
    justify-content: center;
   
    margin-bottom: 15px;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
		
}

/* Bo‘sh holat */
#profilePlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 48px;
		
}