/* ==========================================================================
   FEHIVER — Misiones de Star Citizen (/misiones/)
   Estética MobiGlas limpia, legible y sin sobrecarga visual
   ========================================================================== */

.fhv-mis-app {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 4px 0 32px;
	color: #e7eef6;
	font-family: var(--fv-font-sans, 'Inter', sans-serif);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fhv-mis-hero {
	background: linear-gradient(135deg, rgba(16, 25, 38, 0.96), rgba(9, 14, 22, 0.98));
	border: 1px solid rgba(101, 184, 201, 0.28);
	border-left: 3px solid #65b8c9;
	border-radius: 10px;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

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

.fhv-mis-kicker {
	display: block;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #65b8c9;
	margin-bottom: 4px;
}

.fhv-mis-title {
	margin: 0;
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 700;
	color: #f2f8fd;
}

.fhv-mis-lead {
	margin: 8px 0 0;
	font-size: 13.8px;
	color: #9cb2c8;
	line-height: 1.55;
	max-width: 72ch;
}

.fhv-mis-hero__right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.fhv-mis-lang-switch {
	display: inline-flex;
	padding: 2px;
	border-radius: 999px;
	background: #080e16;
	border: 1px solid rgba(154, 178, 204, 0.24);
}

.fhv-mis-lang-switch button {
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #8ea6bd;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.fhv-mis-lang-switch button.is-active {
	background: rgba(101, 184, 201, 0.2);
	color: #eef8fc;
}

.fhv-mis-tag--link {
	cursor: pointer;
	border: 1px solid rgba(101, 184, 201, 0.35);
	background: rgba(101, 184, 201, 0.12);
	color: #8ad6e6;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fhv-mis-tag--link:hover {
	background: rgba(101, 184, 201, 0.22);
	border-color: rgba(101, 184, 201, 0.6);
}

button.fhv-mis-bp-pill {
	cursor: pointer;
	font-family: inherit;
}

.fhv-mis-badge-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(101, 184, 201, 0.12);
	border: 1px solid rgba(101, 184, 201, 0.35);
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	font-weight: 700;
	color: #84d3e3;
}

.fhv-mis-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #64b88c;
	box-shadow: 0 0 8px rgba(100, 184, 140, 0.85);
}

/* Filtros */
.fhv-mis-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1.8fr) minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) auto;
	gap: 10px;
	align-items: end;
}

@media (max-width: 1100px) {
	.fhv-mis-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fhv-mis-field--search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.fhv-mis-filters {
		grid-template-columns: 1fr;
	}
}

.fhv-mis-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fhv-mis-field label {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8ea6bd;
}

.fhv-mis-input-wrap {
	position: relative;
}

.fhv-mis-field input,
.fhv-mis-field select {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border-radius: 7px;
	background: #080e16;
	border: 1px solid rgba(154, 178, 204, 0.24);
	color: #eef5fc;
	font-size: 13.5px;
	outline: none;
}

.fhv-mis-field input {
	padding-right: 32px;
}

.fhv-mis-field input:focus,
.fhv-mis-field select:focus {
	border-color: #65b8c9;
	box-shadow: 0 0 0 3px rgba(101, 184, 201, 0.16);
}

.fhv-mis-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 0;
	background: rgba(154, 178, 204, 0.16);
	color: #d7e6f5;
	font-size: 14px;
	cursor: pointer;
	line-height: 1;
}

.fhv-mis-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: 280px;
	overflow-y: auto;
	background: #0b121c;
	border: 1px solid rgba(101, 184, 201, 0.48);
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
	padding: 4px;
}

.fhv-mis-drop-opt {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #e6f0fa;
	text-align: left;
	cursor: pointer;
	font-size: 13px;
}

.fhv-mis-drop-opt:hover,
.fhv-mis-drop-opt.is-hl {
	background: rgba(101, 184, 201, 0.16);
}

.fhv-mis-drop-sub {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	color: #7fcad9;
	white-space: nowrap;
}

.fhv-mis-actions {
	display: flex;
	gap: 7px;
}

.fhv-mis-btn {
	height: 38px;
	padding: 0 14px;
	border-radius: 7px;
	background: rgba(16, 26, 40, 0.92);
	border: 1px solid rgba(154, 178, 204, 0.28);
	color: #dce9f5;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fhv-mis-btn:hover:not(:disabled) {
	border-color: #65b8c9;
	color: #fff;
}

.fhv-mis-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fhv-mis-btn--primary {
	background: linear-gradient(135deg, #65b8c9 0%, #489bb0 100%);
	border-color: #84d6e6;
	color: #061018;
}

.fhv-mis-btn--primary:hover {
	filter: brightness(1.08);
	color: #040b11;
}

.fhv-mis-toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 2px;
}

.fhv-mis-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.8px;
	color: #bdd1e4;
	cursor: pointer;
}

.fhv-mis-toggle input {
	accent-color: #65b8c9;
}

.fhv-mis-givers-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding-top: 10px;
	border-top: 1px solid rgba(154, 178, 204, 0.14);
}

.fhv-mis-chip {
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(10, 16, 25, 0.85);
	border: 1px solid rgba(154, 178, 204, 0.22);
	color: #a9bed2;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

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

.fhv-mis-chip small {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	color: #7fcad9;
	margin-left: 4px;
}

/* Barra resumen */
.fhv-mis-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 12px;
	color: #8ea6bd;
}

/* Grid de tarjetas limpias */
.fhv-mis-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

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

.fhv-mis-card {
	background: linear-gradient(180deg, rgba(16, 24, 36, 0.95), rgba(10, 16, 25, 0.98));
	border: 1px solid rgba(154, 178, 204, 0.18);
	border-left: 3px solid #65b8c9;
	border-radius: 10px;
	padding: 17px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: border-color 0.16s ease, transform 0.16s ease;
}

.fhv-mis-card:hover {
	border-color: rgba(101, 184, 201, 0.5);
	transform: translateY(-2px);
}

.fhv-mis-card.is-illegal {
	border-left-color: #e06c75;
}

.fhv-mis-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}

.fhv-mis-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fhv-mis-tag {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 3px 8px;
	border-radius: 5px;
	background: rgba(101, 184, 201, 0.14);
	border: 1px solid rgba(101, 184, 201, 0.34);
	color: #84d3e3;
}

.fhv-mis-tag--giver {
	background: rgba(226, 189, 116, 0.14);
	border-color: rgba(226, 189, 116, 0.38);
	color: #f0cf88;
}

.fhv-mis-tag--illegal {
	background: rgba(224, 108, 117, 0.16);
	border-color: rgba(224, 108, 117, 0.45);
	color: #ff949d;
}

.fhv-mis-tag--legal {
	background: rgba(100, 184, 140, 0.14);
	border-color: rgba(100, 184, 140, 0.36);
	color: #8ee0b4;
}

.fhv-mis-tag--bp {
	background: rgba(168, 130, 255, 0.16);
	border-color: rgba(168, 130, 255, 0.42);
	color: #c9b0ff;
}

.fhv-mis-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: #f3f9ff;
}

/* 2 Cajas destacadas: Bonificación + Reputación */
.fhv-mis-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fhv-mis-kpi {
	padding: 9px 11px;
	border-radius: 7px;
	background: rgba(7, 12, 19, 0.8);
	border: 1px solid rgba(154, 178, 204, 0.14);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.fhv-mis-kpi__lbl {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7d95ad;
}

.fhv-mis-kpi__val {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 13.5px;
	font-weight: 700;
	color: #8ee0b4;
}

.fhv-mis-kpi--rep .fhv-mis-kpi__val {
	color: #f0cf88;
	font-size: 12.5px;
}

.fhv-mis-kpi__sub {
	font-size: 11px;
	color: #8ea6bd;
}

/* Objetivos limpios */
.fhv-mis-objs {
	margin: 0;
	padding-left: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.8px;
	line-height: 1.45;
	color: #b8cbe0;
}

.fhv-mis-objs li::marker {
	color: #65b8c9;
}

.fhv-mis-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;
	gap: 8px;
	flex-wrap: wrap;
}

.fhv-mis-card__flags {
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	color: #88a0b8;
}

/* Paginador y estados */
.fhv-mis-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 12.5px;
	color: #9cb2c8;
}

.fhv-mis-loader,
.fhv-mis-empty {
	grid-column: 1 / -1;
	padding: 36px 20px;
	text-align: center;
	border-radius: 10px;
	background: rgba(12, 19, 29, 0.88);
	border: 1px solid rgba(101, 184, 201, 0.24);
	color: #a9bed2;
}

.fhv-mis-foot {
	font-size: 12px;
	color: #7c93aa;
	text-align: center;
}

.fhv-mis-foot a { color: #7fcad9; }

/* Modal detalle */
.fhv-mis-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.fhv-mis-modal[hidden] { display: none; }

.fhv-mis-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 8, 14, 0.82);
	backdrop-filter: blur(4px);
}

.fhv-mis-modal__panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 780px;
	max-height: 88vh;
	overflow-y: auto;
	background: linear-gradient(180deg, #111b29 0%, #0b121c 100%);
	border: 1px solid rgba(101, 184, 201, 0.45);
	border-radius: 12px;
	padding: 24px 26px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

.fhv-mis-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid rgba(154, 178, 204, 0.25);
	background: rgba(15, 24, 36, 0.9);
	color: #dce9f5;
	font-size: 20px;
	cursor: pointer;
}

.fhv-mis-modal__close:hover {
	border-color: #65b8c9;
	color: #fff;
}

.fhv-mis-detail-sec {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(154, 178, 204, 0.14);
}

.fhv-mis-detail-sec h3 {
	margin: 0 0 8px;
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #65b8c9;
}

.fhv-mis-briefing {
	white-space: pre-line;
	font-size: 13.8px;
	line-height: 1.6;
	color: #d2e1ef;
	background: rgba(7, 12, 19, 0.75);
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid rgba(154, 178, 204, 0.14);
}

.fhv-mis-bp-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.fhv-mis-bp-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(168, 130, 255, 0.14);
	border: 1px solid rgba(168, 130, 255, 0.36);
	color: #dfd0ff;
	font-size: 12px;
	text-decoration: none;
}

.fhv-mis-bp-pill:hover {
	border-color: #c9b0ff;
	color: #fff;
}

.fhv-mis-ladder {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fhv-mis-ladder-step {
	padding: 5px 9px;
	border-radius: 6px;
	background: rgba(8, 13, 21, 0.8);
	border: 1px solid rgba(154, 178, 204, 0.18);
	font-family: var(--fv-font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	color: #a7bcd0;
}

.fhv-mis-ladder-step.is-req {
	border-color: #e2bd74;
	background: rgba(226, 189, 116, 0.16);
	color: #f6dc9b;
}
