/* === Стили из pages/download_csv.php === */
	/*h2{ text-align: center; }*/
	.btn_Download{
		max-width: 280px;
		padding: 12px 25px;
		border: none;
		border-radius: 18px;
		font-size: 16px;
		text-align: center;
		cursor: pointer;
		background-color: #555;
		transition: background-color 0.1s ease;
		margin: auto;
		margin-top: 35px;
		color: #fff;
	}
	.btn_Download:hover{ background-color: #ff5733; }

/* === Стили из pages/editprofil_foto.php === */
	#photo_modal {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.5);
		justify-content: center;
		align-items: center;
		z-index: 999;
	}
	#photo_modal .modal-content {
		background-color: white;
		padding: 20px;
		border-radius: 5px;
		max-width: 600px;
		width: 90%;
		text-align: center;
	}
	#imagePreview {
		max-width: 100%;
		max-height: 400px;
		margin-bottom: 15px;
	}
	.error {
		color: red;
	}
	.success {
		color: green;
	}
	#photo_modal h3{text-align: center;margin-bottom: 15px;}
	#photo_modal .btn{margin-top: 15px;}

/* === Стили из pages/events.php === */
	.overlay_popaps {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}
	.modal{
		background: #fff;
		border: 2px solid #000;
		border-radius: 12px;
		width: calc(100% - 15px);
		max-width: 570px;
		padding: 20px;
		box-shadow: 0 4px 12px rgba(0,0,0,0.15);
		font-size: 16px;
		line-height: 22px;
		text-align: center;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 1000;
		display: none;

	}
	.wrap_btn{
		width: 100%;
		margin-top: 20px;
		display: flex;
		justify-content: space-between;
	}
	.btn_modal_prizes{ color: #fff; }
	.wrap_btn a{ text-decoration:none; }

/* === Первый блок стилей из pages/page-Create-invitation.php === */
	.error { border: 2px solid red; }
	.error-message { color: red; display: none; }
	.map-link { display: none; margin-top: 5px; }

/* === Второй блок стилей из pages/page-Create-invitation.php === */
    /* crear-un-kazemo */
	.container_Crear{

		padding-bottom: 30px;
	}

	.container_Crear h2{font-size: 20px;}
	.container_Crear label {
		display: block;
		font-weight: bold;
		margin-top: 15px;
		margin-bottom: 5px;
		text-align: left;
		font-size: 16px;
	}
	#label_description{ margin-top: 0; }

	.container_Crear textarea {
		width: 100%;
		height: 80px;
		padding: 10px;
		border-radius: 10px;
		border: 1px solid #ccc;
		resize: none;
	}
	.wrap_label_description{
		width: 100%;
		display: flex;
		justify-content: space-between;
		margin-top: 15px;
	}
	.wrap_label_description label{ margin-top: 0px; }
	.char_count{
		text-align: right;
		font-size: 0.8em;
		line-height: 16px;
		color: #ccc;
		margin-top: 5px;
	}

	.button_group {
		position: relative; /* важно для absolute дочерних элементов */
		display: flex;
		flex-wrap: wrap; /* кнопки переносятся на новую строку */
		gap: 8px; /* расстояние между кнопками */
		border-radius: 10px;
		border: 1px solid #ccc;
		padding: 10px;
		min-height: 40px; /* чтобы место под label не схлопнулось */
	}

	.button_group.voy-con-group, .button_group.invito-a-group{ padding-right: 0px; }

	.container_Crear .button_group button {
		padding: 3px 15px;
		border-radius: 10px;
		border: none;
		background: #969696;
		color: #fff;
		cursor: pointer;
		font-weight: bold;
		flex-shrink: 0; /* чтобы кнопки не сжимались */
	}
	.container_Crear .button_group button.selected{background-color: #ff6200;}

	.container_Crear .button_group .label {
		position: absolute;
		bottom: 5px;
		right: 10px;
		color: #ccc;
		font-size: 12px;
		white-space: nowrap;
	}

	.button_footer{margin-bottom: 30px;}

	.container_Crear .button_footer button{
		color: #fff;
		padding: 10px 22px;
		cursor: pointer;
		border-radius: 10px;
		font-size: 16px;
		line-height: 16px;
		margin-top: 30px;
		text-align: center;
	}
	.container_Crear .btn_secondary{
	   background-color: #666;
		float: left;   
	}
	.container_Crear .btn_primary{
		background-color: #ff6200;
		float: right;
	}
	@media (min-width: 431px) {
		.container_Crear .btn_secondary, .container_Crear .btn_primary{
			width: 170px;
		}
	}

	.form-section .input_adres{
		border-radius: 10px;
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 40px;
	width: 100%;
	}
	/****************/
	.age_range{
		border: 1px solid #ccc;
		border-radius: 10px;
		padding: 0 10px 0 10px;
		width: 100%;
	}
	.age_range_count{
		position: absolute;
		right: 20px;
		margin-top: -27px;
	}

	.age_range_container {
		margin: 20px auto;
		font-family: Arial, sans-serif;
	}

	.age_range_container {

	}

	.form-section {
		margin-bottom: 25px;
	}

	.form-section label {
		display: block;
		font-weight: bold;
		margin-bottom: 10px;
	}

	.section_wrap_slider{
		position: relative;
	}
	.age_range_count{
		position: absolute;
		right: 0px;
		margin-top: -33px;
		font-weight: bold;
	/*    color: #8502b3;*/
	}

	.slider-container {
		width: 100%;
		position: relative;
		height: 40px;
		display: flex;
		align-items: center;
		margin-top: 0px;
	}

	/* Фоновая дорожка */
	.slider-track {
		position: absolute;
		width: 100%;
		height: 8px;
		background: #ddd;
		border-radius: 5px;
		top: 50%;
		transform: translateY(-50%);
	}

	/* Активная область между ползунками */
	.slider-range {
		position: absolute;
		height: 8px;
		background: #ff5733;
		border-radius: 5px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1;
	}

	.slider {
		-webkit-appearance: none;
		width: 100%;
		height: 40px;
		background: transparent;
		outline: none;
		position: absolute;
		top: 0;
		left: 0;
		pointer-events: none;
	}

	.slider::-webkit-slider-thumb {
		-webkit-appearance: none;
		appearance: none;
		width: 22px;
		height: 22px;
		background: #8502b3;
		border-radius: 50%;
		cursor: grab;
		pointer-events: all;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		position: relative;
		z-index: 3;
		border: 2px solid white;
	}

	.slider::-moz-range-thumb {
		width: 22px;
		height: 22px;
		background: #8502b3;
		border-radius: 50%;
		cursor: grab;
		pointer-events: all;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		position: relative;
		z-index: 3;
		border: 2px solid white;
	}

	.slider::-webkit-slider-track {
		background: transparent;
	}

	.slider::-moz-range-track {
		background: transparent;
	}

	.button-footer {
		display: flex;
		justify-content: space-between;
		margin-top: 30px;
	}

	.btn-secondary,
	.btn-primary {
		padding: 12px 25px;
		border: none;
		border-radius: 25px;
		font-size: 16px;
		cursor: pointer;
		font-weight: bold;
		transition: background-color 0.2s, color 0.2s;
	}

	.btn-secondary {
		background-color: #cccccc;
		color: #666666;
	}

	.btn-secondary:hover {
		background-color: #b0b0b0;
	}

	.btn-primary {
		background-color: #ff6b6b;
		color: #ffffff;
	}

	.btn-primary:hover {
		background-color: #e05a5a;
	}

	.wrap_link_GoogleMap{
		margin-top: 10px;
		text-align: right;
	}
	/* crear-un-kazemo */


	/* 14 */
	.container_Crear .dia_group button{
		font-size: 16px;
		line-height: 16px;
		padding: 6px 7px;
	}
	.container_Crear .button_group button.bgr_orang { background-color: #ff5733; }
	.bgr_blue { background-color: #00b7eb; }
	.container_Crear .button_group button.bgr_darc_gray { background-color: #969696; }
	.container_Crear .button_group button.bgr_violet { background-color: #8502b3; }
	.btn_center{
		background-color: #666;
		width: 170px;
	}

	.overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}


	.btn_open_14 {
		padding: 15px 30px;
		background: #ff6200;
		color: white;
		border: none;
		border-radius: 10px;
		font-size: 16px;
		cursor: pointer;
		margin: 50px auto;
		display: block;
	}

	.cleaner {
		clear: both;
	}

	.mostrar_intereses{padding-top: 15px; text-align: left; font-size: 20px;}

	/*************/
	#max_2_section_Intencion{
		text-align: right;
		position: relative;
		font-size: 12px;
		color: #ccc;
		height: 22px;
	}
	#label_Intencion{margin-top: 0;}
	.plus-btn-container a{ text-decoration: none; }
	#div_btn_plus:hover{ background: #e65c00; }

	.wrap_location_option{display: flex; justify-content: space-between;}

/* === Стили из pages/popap_invitationsFilters.php === */
	/* Стили для затемняющего фона */
	.overlay_Filters {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}

	/* Стили формы */
	#form_Filters{ width: 100%; }
	.container_Filters{ width: 100%; }
	.container_Filters h2{font-size: 20px; text-align: center;}

	/* Стили для футера с кнопками */
	#buttons_footer_Filters{
		display: flex;
		justify-content: space-between;
	}
	#buttons_footer_Filters .btn_footer_Filters {
		width: 150px;
	}
	@media (max-width: 540px) {
	    #buttons_footer_Filters {
	      flex-direction: column;
	      align-items: center;
	    }
	    #buttons_footer_Filters .btn_footer_Filters{
	      margin-bottom: 0px;
	      margin-top: 10px;
	    }
	    #buttons_footer_Filters .btn_footer_Filters:last-child {
	      margin-bottom: 20px;
	    }
	}
	/* Стили для выбранных кнопок */
	.button_group_toggle button.selected {
		background-color: #007bff;
		color: white;
	}

	/* Стили для контейнеров слайдеров (возраст и расстояние) */
	#container_Edad_Filters .slider-container,
	#container_Distancia_Filters .slider-container {
		position: relative;
		width: 100%;
		height: 8px;
		background: #ccc;
		border-radius: 5px;
		margin-top: 40px;
		margin-bottom: 15px;
	}

	/* Стили для фона слайдера */
	#container_Edad_Filters .slider-track,
	#container_Distancia_Filters .slider-track {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: transparent;
		border-radius: 5px;
		z-index: 1;
	}

	/* Стили для закрашенной части диапазона */
	#container_Edad_Filters .slider-range,
	#container_Distancia_Filters .slider-range {
		position: absolute;
		top: 4px;
		height: 100%;
		background: #ff6200;
		border-radius: 5px;
		z-index: 2;
	}

	/* Стили для ползунков */
	#container_Edad_Filters .slider,
	#container_Distancia_Filters .slider {
		-webkit-appearance: none;
		width: 100%;
		height: 20px;
		background: transparent;
		outline: none;
		position: absolute;
		top: -6px;
		left: 0;
		pointer-events: none;
		z-index: 3;
		margin: 0;
		padding: 0;
	}

	/* Стили для ползунков в WebKit-браузерах */
	#container_Edad_Filters .slider::-webkit-slider-thumb,
	#container_Distancia_Filters .slider::-webkit-slider-thumb {
		-webkit-appearance: none;
		appearance: none;
		width: 20px;
		height: 20px;
		background: #6a0dad;
		border-radius: 50%;
		cursor: grab;
		pointer-events: all;
	}

	/* Стили для ползунков в Firefox */
	#container_Edad_Filters .slider::-moz-range-thumb,
	#container_Distancia_Filters .slider::-moz-range-thumb {
		width: 20px;
		height: 20px;
		background: #6a0dad;
		border-radius: 50%;
		cursor: grab;
		pointer-events: all;
	}

	/* Стили для отображения значений слайдеров */
	#container_Edad_Filters .age_range_count,
	#container_Distancia_Filters .age_range_count {
		text-align: center;
		margin-bottom: 10px;
		font-weight: bold;
	}

	.modal_polsun .section_Intencion .button_group .label {
        position: absolute;
        width: 100%;
        text-align: right;
        bottom: -20px;
        /*top: 30px;*/
        right: 10px;
        color: #ccc;
        font-size: 12px;
        white-space: nowrap;
    }

/* === Первый блок стилей из pages/popaps_All.php (Общие) === */
	.overlay_popaps {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
	}

	.modal{
		background: #fff;
		border: 2px solid #000;
		border-radius: 12px;
		width: calc(100% - 15px);
		max-width: 570px;
		padding: 20px;
		box-shadow: 0 4px 12px rgba(0,0,0,0.15);
		font-size: 16px;
		line-height: 22px;
		text-align: center;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 1000;
		display: none;

	}
	.btn_modal_ok{
		color: #fff;
		padding: 10px 30px;
		cursor: pointer;
		border-radius: 10px;
		font-size: 16px;
		line-height: 16px;
		margin-top: 10px;
	}
	.modal .btn_Volver{
		padding: 10px 30px;
		cursor: pointer;
		border-radius: 10px;
		font-size: 16px;
		line-height: 16px;
		margin-top: 0px;
	}

/* === Второй блок стилей из pages/popaps_All.php (Модалка отправки жалобы) === */
	#message_Reportar_form{ text-align:center; }
	#message_Reportar_form textarea {
		width: 100%;
		height: 100px;
		margin-bottom: 10px;
		padding: 5px;
		border: 1px solid #ccc;
		border-radius: 5px;
		resize: none;
		margin-top: 20px;
	}
	#btn_send_Reportar{ background-color: #ff6200; }

/* === Третий блок стилей из pages/popaps_All.php (Модалка принятия приглашения) === */
	#modal_3 button, #modal_success .btn_Volver, #modal_error .btn_Volver { background-color: #ff6200; }

/* === Четвертый блок стилей из pages/popaps_All.php (Модалка с сообщениями) === */
	.btn_Verificado{ width: 137px; max-height: 36px; text-align: center; padding: 10px; }
	.mess_card_footer_tags{ width: 100%; display: block;}
	.mess_card_footer_tags .actions{ float: right; margin-top: 10px;}
	#ajax_response .btn_Verificado{ 
		margin-left: 15px; 
		vertical-align: middle; 
		padding: 5px 8px;
		border-radius: 5px;
		font-size: 12px;
		line-height: 12px;
		color: white;
		height: 22px;
		max-width: 101px;
	}
	.modal_Respuestas_flex{
		max-height: 80vh;
		overflow-y: auto;
	}


/******************************************************/
/** Добавление после рефакта ****************/
