/* ==========================================================================
   CORE FEHIVER — Buscador de Grupos estilo WoW (/buscador-grupos/ · LFG)
   ========================================================================== */

.fhv-lfg-app {
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: #e7eef6;
}

.fhv-lfg-hero {
	padding: 22px 24px 18px;
	border-radius: 12px;
	background:
		radial-gradient(ellipse 75% 100% at 95% 0%, rgba(101, 184, 201, 0.14), transparent 62%),
		radial-gradient(ellipse 60% 80% at 5% 100%, rgba(100, 184, 140, 0.08), transparent 60%),
		linear-gradient(180deg, rgba(16, 24, 35, 0.96), rgba(10, 16, 24, 0.98));
	border: 1px solid rgba(101, 184, 201, 0.28);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fhv-lfg-hero__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.fhv-lfg-kicker-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.fhv-lfg-kicker {
	font-family: var(--fv-font-mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #65b8c9;
}

.fhv-lfg-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	font-family: var(--fv-font-mono, "JetBrains Mono", monospace);
	font-size: 10px;
	font-weight: 700;
}

.fhv-lfg-pill.is-live {
	background: rgba(100, 184, 140, 0.14);
	border: 1px solid rgba(100, 184, 140, 0.36);
	color: #8ee0b4;
}

.fhv-lfg-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 7px currentColor;
}

.fhv-lfg-title {
	margin: 0 0 8px;
	font-size: clamp(23px, 2.8vw, 30px);
	font-weight: 700;
	color: #f3f8fd;
	line-height: 1.18;
}

.fhv-lfg-lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.58;
	color: #b5c7d9;
	max-width: 68ch;
}

.fhv-lfg-hero__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.fhv-lfg-kpis {
	display: flex;
	gap: 8px;
}

.fhv-lfg-kpi {
	min-width: 96px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(8, 13, 21, 0.78);
	border: 1px solid rgba(101, 184, 201, 0.24);
	text-align: center;
}

.fhv-lfg-kpi strong {
	display: block;
	font-family: var(--fv-font-mono, monospace);
	font-size: 19px;
	color: #7fcad9;
}

.fhv-lfg-kpi.is-green strong {
	color: #7ee2ae;
}

.fhv-lfg-kpi span {
	font-size: 11px;
	color: #8ea4ba;
}

/* Filtros */
.fhv-lfg-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(154, 178, 204, 0.14);
}

.fhv-lfg-search-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.fhv-lfg-input,
.fhv-lfg-select {
	padding: 9px 12px !important;
	border-radius: 8px !important;
	background: rgba(8, 13, 20, 0.9) !important;
	border: 1px solid rgba(154, 178, 204, 0.24) !important;
	color: #eef5fc !important;
	font-size: 13.5px !important;
}

.fhv-lfg-input {
	flex: 1 1 260px;
}

.fhv-lfg-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fhv-lfg-chip {
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(16, 24, 34, 0.85);
	border: 1px solid rgba(154, 178, 204, 0.22);
	color: #a8bbd0;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.fhv-lfg-chip:hover,
.fhv-lfg-chip.is-active {
	background: rgba(101, 184, 201, 0.22);
	border-color: #65b8c9;
	color: #f3fbff;
}

/* Demo bar & toast */
.fhv-lfg-demo-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 11px 15px;
	border-radius: 9px;
	background: rgba(226, 189, 116, 0.1);
	border: 1px solid rgba(226, 189, 116, 0.34);
	font-size: 13px;
	color: #f0dfb8;
}

.fhv-lfg-toast {
	padding: 11px 15px;
	border-radius: 8px;
	background: rgba(101, 184, 201, 0.16);
	border: 1px solid rgba(101, 184, 201, 0.45);
	color: #e8f7fc;
	font-size: 13px;
	font-weight: 600;
}

.fhv-lfg-toast.is-error {
	background: rgba(217, 107, 107, 0.16);
	border-color: rgba(217, 107, 107, 0.46);
	color: #ffd5d5;
}

/* Grid de Escuadrones */
.fhv-lfg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
	gap: 16px;
}

@media (max-width: 980px) {
	.fhv-lfg-grid {
		grid-template-columns: 1fr;
	}
}

.fhv-lfg-card {
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(17, 25, 36, 0.96), rgba(11, 17, 26, 0.98));
	border: 1px solid rgba(154, 178, 204, 0.18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.16s ease, transform 0.16s ease;
}

.fhv-lfg-card:hover {
	border-color: rgba(101, 184, 201, 0.45);
	transform: translateY(-1px);
}

.fhv-lfg-card__banner {
	position: relative;
	height: 118px;
	background: linear-gradient(135deg, #101b29 0%, #0b111a 100%);
	overflow: hidden;
}

.fhv-lfg-card__banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.72;
}

.fhv-lfg-card__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 13, 20, 0.18) 0%, rgba(11, 17, 26, 0.96) 100%);
}

.fhv-lfg-card__badges {
	position: absolute;
	top: 10px;
	left: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	flex-wrap: wrap;
}

.fhv-lfg-tag {
	font-family: var(--fv-font-mono, monospace);
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 5px;
	background: rgba(10, 16, 25, 0.85);
	border: 1px solid rgba(101, 184, 201, 0.4);
	color: #8ee0f0;
}

.fhv-lfg-tag.is-red { border-color: rgba(217, 107, 107, 0.55); color: #f49b9b; }
.fhv-lfg-tag.is-amber { border-color: rgba(226, 189, 116, 0.55); color: #f3d287; }
.fhv-lfg-tag.is-green { border-color: rgba(100, 184, 140, 0.55); color: #8ee5b8; }
.fhv-lfg-tag.is-demo { background: rgba(226, 189, 116, 0.2); border-color: #e2bd74; color: #ffe2a0; }

.fhv-lfg-card__ship-lbl {
	position: absolute;
	bottom: 8px;
	left: 14px;
	z-index: 2;
	font-family: var(--fv-font-mono, monospace);
	font-size: 11px;
	font-weight: 700;
	color: #d7e8f6;
}

.fhv-lfg-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 11px;
	flex: 1 1 auto;
}

.fhv-lfg-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #f2f8fe;
	line-height: 1.28;
}

.fhv-lfg-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: 12px;
	color: #95abc1;
}

.fhv-lfg-schedule {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding: 7px 11px;
	border-radius: 7px;
	background: rgba(8, 14, 22, 0.72);
	border: 1px solid rgba(101, 184, 201, 0.2);
	font-size: 12px;
	color: #9cb3c8;
}

.fhv-lfg-schedule strong {
	color: #e4f4fa;
	font-weight: 600;
}

.fhv-lfg-card__desc {
	margin: 0;
	font-size: 13.2px;
	line-height: 1.54;
	color: #b8cada;
}

/* Barra de plazas y roles clicables */
.fhv-lfg-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.fhv-lfg-role-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(101, 184, 201, 0.12);
	border: 1px solid rgba(101, 184, 201, 0.38);
	color: #e6f6fb;
	cursor: pointer;
	transition: all 0.14s ease;
}

.fhv-lfg-role-btn:hover:not(:disabled) {
	background: rgba(101, 184, 201, 0.26);
	border-color: #7fcad9;
}

.fhv-lfg-role-btn.is-full {
	background: rgba(100, 184, 140, 0.1);
	border-color: rgba(100, 184, 140, 0.28);
	color: #8ad3ac;
	cursor: default;
}

body.fehiver-scifi-theme button.fhv-lfg-role-btn.is-mine {
	background: rgba(100, 184, 140, 0.2) !important;
	border-color: #64b88c !important;
	color: #e6fff2 !important;
	cursor: pointer !important;
}

body.fehiver-scifi-theme button.fhv-lfg-role-btn.is-mine:hover:not(:disabled) {
	background: rgba(217, 107, 107, 0.24) !important;
	border-color: #e07b7b !important;
	color: #ffe3e3 !important;
}

body.fehiver-scifi-theme button.fhv-lfg-role-btn.is-mine.is-owner {
	background: rgba(226, 189, 116, 0.18) !important;
	border-color: rgba(226, 189, 116, 0.55) !important;
	color: #ffe6ae !important;
	cursor: default !important;
}

.fhv-lfg-role-btn small {
	font-family: var(--fv-font-mono, monospace);
	font-size: 10.5px;
	opacity: 0.9;
}

/* Roster de tripulantes */
.fhv-lfg-roster {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px solid rgba(154, 178, 204, 0.12);
}

.fhv-lfg-member {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(8, 13, 20, 0.72);
	border: 1px solid rgba(154, 178, 204, 0.18);
	font-size: 11.5px;
	color: #cfe0ef;
}

.fhv-lfg-member__role {
	font-family: var(--fv-font-mono, monospace);
	font-size: 9.5px;
	color: #65b8c9;
	text-transform: uppercase;
}

.fhv-lfg-cert-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--fv-font-mono, monospace);
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(100, 184, 140, 0.18);
	border: 1px solid rgba(100, 184, 140, 0.45);
	color: #9af0c2;
}

.fhv-lfg-cert-ico {
	width: 15px;
	height: 15px;
	object-fit: contain;
	flex-shrink: 0;
}

.fhv-lfg-guest-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #8cc9d9 !important;
	text-decoration: none !important;
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(101, 184, 201, 0.09);
	border: 1px dashed rgba(101, 184, 201, 0.36);
	transition: border-color 0.15s ease, color 0.15s ease;
}

.fhv-lfg-guest-hint:hover {
	border-color: #65b8c9;
	color: #ffffff !important;
}

.fhv-lfg-time-custom {
	margin-top: 4px;
}

/* Solicitudes pendientes (líder) */
.fhv-lfg-pending {
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(226, 189, 116, 0.08);
	border: 1px solid rgba(226, 189, 116, 0.28);
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.fhv-lfg-pending__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12.5px;
}

.fhv-lfg-card__foot {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(154, 178, 204, 0.12);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* Botones (blindados contra estilos base de BuddyX) */
body.fehiver-scifi-theme .fhv-lfg-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 8px 13px !important;
	border-radius: 7px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	border: 1px solid transparent !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: all 0.15s ease !important;
}

body.fehiver-scifi-theme .fhv-lfg-btn--lg { padding: 10px 17px !important; font-size: 13.5px !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--primary { background: #52adc0 !important; border-color: #84d7e8 !important; color: #051018 !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--primary:hover { background: #6cc2d4 !important; color: #040c12 !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--discord { background: rgba(88, 101, 242, 0.24) !important; border-color: rgba(114, 137, 255, 0.62) !important; color: #e2e6ff !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--discord:hover { background: rgba(88, 101, 242, 0.42) !important; color: #ffffff !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--ghost { background: rgba(154, 178, 204, 0.12) !important; border-color: rgba(154, 178, 204, 0.28) !important; color: #d5e4f2 !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--ghost:hover { border-color: #65b8c9 !important; color: #ffffff !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--danger { background: rgba(217, 107, 107, 0.18) !important; border-color: rgba(217, 107, 107, 0.48) !important; color: #ffd2d2 !important; }
body.fehiver-scifi-theme .fhv-lfg-btn--danger:hover { background: rgba(217, 107, 107, 0.34) !important; color: #ffffff !important; }

/* Modal */
.fhv-lfg-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(4, 8, 14, 0.78);
	backdrop-filter: blur(6px);
}

.fhv-lfg-modal[hidden] { display: none !important; }

.fhv-lfg-modal__box {
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 13px;
	background: #0f1722;
	border: 1px solid rgba(101, 184, 201, 0.4);
	padding: 20px 22px;
}

.fhv-lfg-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.fhv-lfg-modal__head h2 { margin: 2px 0 0; font-size: 20px; color: #f2f8fe; }
.fhv-lfg-modal__close { background: transparent; border: 0; color: #9ab2c8; font-size: 24px; cursor: pointer; line-height: 1; }

.fhv-lfg-form { display: flex; flex-direction: column; gap: 12px; }
.fhv-lfg-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) { .fhv-lfg-form-row { grid-template-columns: 1fr; } }

.fhv-lfg-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #b7cadb; min-width: 0; }
.fhv-lfg-field input,
.fhv-lfg-field select,
.fhv-lfg-field textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	padding: 8px 11px !important;
	border-radius: 7px !important;
	background: #09101a !important;
	border: 1px solid rgba(154, 178, 204, 0.25) !important;
	color: #eef5fc !important;
	font-size: 13.5px !important;
}

.fhv-lfg-auto-close-note {
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(226, 189, 116, 0.09);
	border: 1px solid rgba(226, 189, 116, 0.34);
	font-size: 12.2px;
	line-height: 1.5;
	color: #f1dfba;
}

.fhv-lfg-owner-reminder {
	padding: 8px 11px;
	border-radius: 7px;
	background: rgba(226, 189, 116, 0.08);
	border-left: 3px solid #e2bd74;
	font-size: 12px;
	color: #eedab0;
}

/* Recuadro de Filosofía Comunitaria LFG */
.fhv-lfg-manifesto {
	padding: 18px 22px;
	border-radius: 12px;
	background:
		radial-gradient(ellipse 60% 100% at 100% 0%, rgba(100, 184, 140, 0.10), transparent 60%),
		linear-gradient(180deg, rgba(14, 23, 34, 0.94), rgba(10, 16, 24, 0.98));
	border: 1px solid rgba(101, 184, 201, 0.26);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fhv-lfg-manifesto__head h2 {
	margin: 4px 0 6px;
	font-size: 18px;
	color: #f2f8fe;
}

.fhv-lfg-manifesto__head p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.58;
	color: #b7c9dc;
	max-width: 92ch;
}

.fhv-lfg-manifesto__tips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 900px) {
	.fhv-lfg-manifesto__tips { grid-template-columns: 1fr; }
}

.fhv-lfg-tip {
	padding: 11px 13px;
	border-radius: 8px;
	background: rgba(8, 13, 21, 0.78);
	border: 1px solid rgba(154, 178, 204, 0.16);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.5px;
	line-height: 1.48;
	color: #a4b9ce;
}

.fhv-lfg-tip strong { color: #eaf5ff; font-size: 13px; }
.fhv-lfg-tip a { color: #7fcad9; font-weight: 700; text-decoration: none; }
.fhv-lfg-tip a:hover { color: #ffffff; text-decoration: underline; }

.fhv-lfg-ship-link {
	color: #9be8f7 !important;
	text-decoration: none !important;
}
.fhv-lfg-ship-link:hover { text-decoration: underline !important; color: #ffffff !important; }

.fhv-lfg-member__link {
	font-weight: 700;
	color: #e6f4ff !important;
	text-decoration: none !important;
}
.fhv-lfg-member__link:hover { color: #7fcad9 !important; text-decoration: underline !important; }

.fhv-lfg-role-builder {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.fhv-lfg-role-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 7px;
	background: rgba(8, 13, 21, 0.8);
	border: 1px solid rgba(154, 178, 204, 0.18);
	font-size: 12px;
}

.fhv-lfg-role-box input { width: 52px !important; text-align: center; padding: 4px !important; }
.fhv-lfg-checks { display: flex; flex-direction: column; gap: 6px; font-size: 12.8px; color: #bfd1e2; }
.fhv-lfg-form-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.fhv-lfg-loading, .fhv-lfg-empty { grid-column: 1 / -1; padding: 34px; text-align: center; border-radius: 10px; background: rgba(12, 18, 28, 0.8); border: 1px dashed rgba(154, 178, 204, 0.22); color: #9cb3c9; }
