.main.login {
	flex-grow: 1;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	font-weight: 500;
}

#turnstile-container {
	text-align: center;
}
#login-form-container {
	max-width: 400px;
	margin: 0 auto;
	padding-bottom: 20px;
	text-align: center;
}
#login-form-container .form-group .col-md-6 {
	width: 100%;
	padding: 0;
}
#login-form-container input[type="email"] {
	width: 100%;
	box-sizing: border-box;
}

.login_wrapper {
	padding: 20px 10px 20px 10px;
	margin: 0px auto;
	max-width: 400px;
	transition: all 0.25s ease 0s;
}

.login_wrapper .title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.2;
}

.login_wrapper .form-group a {
	color: #1d738b;
}

.login_wrapper label {
	font-size: 18px;
	font-weight: 900;
}

.user-button-container {
	position: relative;
/*	width: 150px;*/
	text-align: right;
	flex-shrink: 0;
	min-height: 35px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	grid-column: 3;
	justify-self: end;
  }

.user-button-container .user-menu {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 5px;
    background: #fff;
    font-weight: 600;
    z-index: 9999;
    position: absolute;
    top: 40px;
    right: 0;
    min-width: 175px;
    min-height: 120px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-button-container .user-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.user-button-container .user-menu li {
    margin: 10px 0;
}

.user-button-container .user-menu li hr {
	margin: 5px 0 5px 0;
	background-color: #13404f;
}

@media screen and (max-width: 768px) {
    .user-button-container .user-menu {
        width: 100%;
        text-align: left;
    }
}

.user-menu a {
    color: #1565c0;
    padding: 8px 12px;
    display: block;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.user-menu a:hover {
    background: #e3e9f2;
    color: #0a2540;
    text-decoration: none;
}


.user-button-container a {
	display: block;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.user-login-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.user-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.user-arrow-down {
	margin-left: -5px;
	padding-left: 0;
}

.user-text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
}

/* Ascunde textul pe mobil */
@media (max-width: 767px) {
  .user-text {
    display: none;
  }
}


.user-button-container .textuser {
	cursor: pointer;
}

/*
.user-button-container .text {
	position: relative;
	padding-left: 40px;
}

.user-button-container .text:before {
	display: inline-block;
	content: url('/static/web/images/user_person_avatar.svg');
	width: 32px;
	height: 32px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
}

.user-button-container .textuser {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
    .user-button-container .text {
        font-size: 0; 
        padding-left: 0;
    }

    .user-button-container .text:before {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.user-button-container .textuser span {
	display: none;
	margin: 0 0 0 3px;
}

@media (min-width: 56.25rem) {
	.user-button-container .textuser span {
		display: inline-block;
	}
}


.user-button-container .user-icon {
	width: 22px;
	height: 22px;
	position: relative;
	top: 50%;
	transform: translateY(30%);
}*/


.header-siteuser .header__logo {
	margin-left: 10px;
	max-width: 140px;
	margin-right: 0;
}

.header-siteuser .header__logo a {
	line-height: 0;
	margin: 0;
	padding: 0;
}


@media (min-width: 22rem) {
	.header-siteuser .header__logo {
		max-width: 170px;
		margin-right: 0;
	}
	.user-button-container .user-icon {
		width: 24px;
		height: 24px;
	}
}

@media (min-width: 24rem) {
	.header-siteuser .header__logo {
		max-width: 200px;
		margin-right: 5px;
	}
	.user-button-container .user-icon {
		width: 28px;
		height: 28px;
	}
}

@media (min-width: 26rem) {
	.header-siteuser .header__logo {
		max-width: 225px;
		margin-right: 10px;
	}
	.user-button-container .user-icon {
		width: 28px;
		height: 28px;
	}
}





	.account-submenu {
		border-bottom: 1px solid #ccc; /* border de bază */
		overflow-x: auto;
		overflow-y: hidden; /* elimină scrollbar vertical */
		-webkit-overflow-scrolling: touch; /* scroll plăcut pe iOS */
	}

	.account-submenu::-webkit-scrollbar {
		display: none;
	}
  
	.account-submenu-wrapper {
		display: flex;
		flex-wrap: nowrap;
	}

	.account-submenu a {
		display: inline-flex;
		align-items: center;
		padding: 12px 16px;
		text-decoration: none;
		color: #333;
		position: relative;
		white-space: nowrap;
	}

	.account-submenu a.is-active::after {
		content: "";
		position: absolute;
		bottom: -1px;
		left: 0;
		right: 0;
		height: 3px;
		background: #007bff;
		border-radius: 2px;
	}
  







.header-siteuser-login .header__inner {
	max-width: 400px;

}

.header-siteuser-login .header__logo {
	margin: 0 auto;
	
}


.header-siteuser-login .header__logo img {
	max-width: 225px;
}

.header-siteuser-login .header__logo {
	max-width: 100%;
}


.login-no-account {
	padding: 0 20px;
	text-align: center;
}

.login-no-account a {
    color: #1d738b;
    font-weight: 700;
}

.verify_email__text_top {

}

#send-code-btn:disabled {
	background: #ccc;
}


#time-remaining {
	display: block;
	margin: 10px 0 10px 0;
	font-size: 15px;
	color: #ccc;
}

#code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 20px 0;
}

.code-input {
    width: 200px;
    height: 50px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    border: 2px solid #1d738b;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    padding: 5px 5px 10px 5px;
}

@media (min-width: 26rem) {
	.code-input {
		width: 200px;
		height: 60px;
		font-size: 40px;
	}
}

.code-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


.verify_email {
	text-align: center;
}


#code-inputs input[type=number]::-webkit-outer-spin-button,
#code-inputs input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Elimină săgețile pentru Firefox */
#code-inputs input[type=number] {
    -moz-appearance: textfield;
}


/* avatar */
/* .avatar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 20px;
	justify-items: center;
	max-width: 500px;
	margin: 0 auto;
	margin-top: 10px;
} */

.avatar-option {
	position: relative;
	cursor: pointer;
	border-radius: 50%;
	overflow: hidden;
	transition: 0.3s;
	width: 86px;
	height: 86px;
}

.avatar-option input {
	display: none;
}

.avatar-option img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid transparent;
	transition: 0.3s;
	filter: grayscale(0%);
}

.avatar-option.selected img {
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
	filter: grayscale(0%);
}

.avatar-option.dimmed img {
	filter: grayscale(100%);
	opacity: 0.5;
}

/* Opțiune specială pentru "Fără avatar" */
.no-avatar-option {
    border-radius: 8px;
    overflow: visible;
}

.no-avatar-option .no-avatar-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 10px;
    box-sizing: border-box;
    transition: 0.3s;
    border-radius: 40px;
}

/* Stil similar cu selected pentru highlight */
.avatar-option.selected .no-avatar-box {
    border-color: #007bff;
    background-color: #e6f0ff;
    font-weight: bold;
}

/**/

.account-complete-toast {
    position: fixed;
    max-height: 130px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 600px;
    background-color: #f0f9ff;
    color: #0c5460;
    padding: 16px 24px;
    border-radius: 16px;
    border-left: 6px solid rgb(235, 0, 0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: accountCompleteFade 4s forwards;
    z-index: 9999;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    text-align: left;
}


.account-complete-toast h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
}

.account-complete-toast p {
    margin: 0;
}

.account-complete-toast .toast-close {
    margin-left: 20px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.5;
    transition: 0.2s ease;
}
.account-complete-toast .toast-close:hover {
    opacity: 1;
}


@keyframes accountCompleteFade {
	0%   { opacity: 0; transform: translate(-50%, 20px); }
	10%  { opacity: 1; transform: translate(-50%, 0); }
	90%  { opacity: 1; transform: translate(-50%, 0); }
	100% { opacity: 0; transform: translate(-50%, 20px); }
}

.btn-save {
	background-color: #007BFF;
	padding: 10px 20px;
	color: white;
	border: none;
	border-radius: 5px;
}

.invalid-feedback {
	color: red;
}

.login_wrapper.verify_email label {
	font-size: 16px;
	font-weight: normal;
}

.login_wrapper .text-danger {
	display: block;
	color: red;
}

.user-button-container .textuser {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a854f7 0%, #e83547 100%);
    box-shadow: 0 2px 8px -2px rgba(232, 53, 71, 0.13);
}

.user-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    user-select: none;
}

.user-button-container .user-menu,
.user-button-container .user-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Profil */
.profile-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
  }
  .profile-overview,
  .profile-details {
	background: #fff;
	border: 1px solid #eee;
	padding: 1rem;
	border-radius: 4px;
  }
  .profile-overview {
	flex: 1 1 280px;
	max-width: 100%;
  }
  .profile-details {
	flex: 2 1 400px;
  }
  
  .avatar {
	position: relative;
	width: 120px; height: 120px;
	margin: 0 auto 1rem;
  }
  .profile-img {
	width: 100%; height: 100%;
	border-radius: 50%;
	object-fit: cover;
  }
  .avatar-edit {
	position: absolute;
	bottom: 0; right: 0;
	background: #007bff;
	border-radius: 50%;
	padding: 0.25rem;
	cursor: pointer;
  }
  .avatar-edit input {
	position: absolute;
	width: 100%; height: 100%;
	top:0; left:0;
	opacity: 0;
	cursor: pointer;
  }
  .icon-camera {
	display: inline-block;
	width: 1rem; height:1rem;
	background: url('/icons/camera.svg') no-repeat center;
  }
  
  .name {
	text-align: center;
	margin-bottom: 0.25rem;
  }
  .role {
	text-align: center;
	color: #888;
	margin-bottom: 1rem;
  }
  .bio {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 1rem;
  }
  
  .stats {
	display: flex;
	justify-content: space-between;
	text-align: center;
  }
  .stats div strong {
	display: block;
	font-size: 1.25rem;
  }
  .stats div span {
	font-size: 0.75rem;
	color: #777;
  }
  
 
  .field {
	margin-bottom: 1rem;
  }
  .field label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.25rem;
  }
  .field input,
  .field textarea {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
  }
  .actions {
	text-align: right;
  }
  .actions button {
	padding: 0.5rem 1rem;
	border: none;
	background: #007bff;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
  }
   

  @media (max-width: 768px) {
	.profile-wrapper {
	  flex-direction: column;
	}
  }
  
  .label-optional {
	font-weight: normal;
	color: #888;
	font-size: 0.9em;
	margin-left: 0.25em;
	opacity: 0.7;
  }
  
  .field textarea {
	resize: vertical;
  }
  
  .char-counter {
	display: block;
	text-align: right;
	font-size: 0.8em;
	color: #888;
	margin-top: 0.25em;
  }
  
  /* Toast Success Styling */
  .toast-success {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	animation: toastSlideIn 0.3s ease-out;
	max-width: 350px;
	overflow: hidden;
  }
  
  .toast-content {
	display: flex;
	align-items: center;
	padding: 16px 20px;
  }
  
  .toast-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: #28a745;
	color: white;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	margin-right: 12px;
	flex-shrink: 0;
  }
  
  .toast-text {
	color: #333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
  }
  
  .toast-progress {
	height: 3px;
	background: #28a745;
	animation: toastProgress 5s linear;
  }
  
  .toast-hide {
	animation: toastSlideOut 0.3s ease-in forwards;
  }
  
  @keyframes toastSlideIn {
	0% {
	  opacity: 0;
	  transform: translateX(100%);
	}
	100% {
	  opacity: 1;
	  transform: translateX(0);
	}
  }
  
  @keyframes toastSlideOut {
	0% {
	  opacity: 1;
	  transform: translateX(0);
	}
	100% {
	  opacity: 0;
	  transform: translateX(100%);
	}
  }
  
  @keyframes toastProgress {
	0% { width: 100%; }
	100% { width: 0%; }
  }

.text-danger {
	color: red;
}

.avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a854f7 0%, #e83547 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px -2px rgba(168, 84, 247, 0.13);
    user-select: none;
}

.avatar-hint {
    display: inline-block;
    margin: 8px auto 0 auto;
    padding: 4px 14px;
    font-size: 0.95rem;
    color: #888;
    background: #f5f5f5;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    /* Centrare orizontală */
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}
.avatar-hint:hover {
    background: #ececec;
    color: #a854f7;
}


/* Modal overlay */
body.modal-open {
	overflow: hidden;
}

.ua-modal {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.5);
	padding: 1rem;
	z-index: 1000;
}

  .ua-modal.active {
	display: flex;
	justify-content: center;
	align-items: center;
  }
  
  /* Conținutul modalului */
  .ua-modal-content {
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 450px;
	height: 80vh;
	overflow-y: auto;
	position: relative;
	padding: 1rem;
  }
  
  .ua-modal-close {
	position: absolute;
	top: 0.5rem; right: 0.5rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
  }
  
  .ua-modal-actions button {
	margin: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid #007bff;
	background: #fff;
	cursor: pointer;
	border-radius: 3px;
  }
  .ua-modal-actions button:hover {
	background: #007bff;
	color: #fff;
  }

  
  /* Avatare presetate */
  .avatars-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 1rem;
  }
  .avatar-option {
	width: 83px;
	height: 83px;
	border-radius: 50%;
	cursor: pointer;
	object-fit: cover;
	border: 2px solid transparent;
  }
  .avatar-option:hover {
	border-color: #007bff;
  }
  
  .d-none { display: none; }

  /* filtre sus */
.avatar-filters {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
  }
  .filter-btn {
	padding: 0.4rem 0.8rem;
	border: 1px solid #007bff;
	background: #fff;
	color: #007bff;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9rem;
  }
  .filter-btn.active,
  .filter-btn:hover {
	background: #007bff;
	color: #fff;
  }
  
  .avatars-grid .avatar-option {
	display: inline-block;
	margin: 0.25rem;
  }
  /* buton Salvează în footer */
  .ua-modal-footer {
	text-align: center;
	margin-top: 1rem;
  }
  
.ua-modal-content.initial {
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  transition: height 0.2s;
}
/* ---- DIMENSIUNI CROP MODAL ---- */
#crop-modal .ua-modal-content{
	width:90vw;
	max-width:450px;
	height:80vh;
	max-height:500px;
	display:flex;flex-direction:column;
	overflow:hidden;
  }
  /* ---- CROP CONTAINER ---- */
  .crop-container {
    width: 320px;
    height: 320px;
    max-width: 95vw;
    max-height: 95vw;
    margin: 0 auto;
    position: relative;
    background: #222;
    border: 2px solid #fff; /* border alb pe pătrat */
    overflow: hidden;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .crop-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
  }
  /* Eliminăm complet .crop-circle */
  .crop-circle { display: none !important; }

  /* Ascunde crop box-ul pătrat și overlay-ul implicit Cropper.js */
  .cropper-crop-box,
  .cropper-view-box,
  .cropper-face,
  .cropper-line,
  .cropper-point {
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  .cropper-crop-box {
	border: 2px solid #ffffff;
  }
  .cropper-view-box {
    outline: none !important;
    box-shadow: none !important;
  }
  .cropper-dashed,
  .cropper-center {
    display: none !important;
  }

.toast-error {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  background: #fff0f0;
  border: 1.5px solid #e83547;
  color: #e83547;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(232,53,71,0.13);
  min-width: 220px;
  max-width: 350px;
  padding: 0;
  animation: toastSlideIn 0.3s;
}
.toast-error .toast-icon {
  color: #e83547;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 10px;
}
.toast-error .toast-progress {
  height: 3px;
  background: #e83547;
  width: 100%;
  animation: toastProgress 5s linear;
}
@media (max-width: 600px) {
  .toast-error, .toast-success {
    right: 10px;
    left: 10px;
    min-width: unset;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .profile-wrapper {
    width: 100% !important;
  }
}


.ua-modal-actions{
    display:flex;
    justify-content:center;
    gap:1.25rem;
}

.ua-modal-actions button{
    padding:.55rem 1.2rem;
    border:1px solid #007bff;
    border-radius:4px;
    background:#fff;
    color:#007bff;
    font-weight:600;
    cursor:pointer;
    transition:.15s;
}
.ua-modal-actions button:hover{
    background:#007bff;
    color:#fff;
}

.notification-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
}