/* =============================================================
 * OSINT Workspace — hero + full-width layout.
 *
 * Dark hero header with stats + horizontal tabs,
 * followed by full-width content area.
 * Sharp corners, dark palette, RTL-first.
 * =========================================================== */

/* ---- Page-level ---- */
body.page-template-page-osint {
	background: var(--c-bg-alt);
}
body.page-template-page-osint .eekad-main {
	background: var(--c-bg-alt);
	padding: 0;
}

/* ---- Layout shell ---- */
.osint {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* =============================================================
 * HERO — dark header matching the nav bar
 * =========================================================== */
.osint__hero {
	position: relative;
	overflow: hidden;
	background: var(--c-bg-alt);
	padding: 120px 0 0;
}

/* Background image (file cover) */
.osint__hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	z-index: 0;
	transition: opacity .6s ease;
}
.osint__hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		var(--c-bg-alt) 0%,
		rgba(var(--c-bg-alt-rgb), .6) 40%,
		rgba(var(--c-bg-alt-rgb), .4) 100%
	);
}
.osint__hero.is-revealed .osint__hero-bg {
	opacity: .45;
}

/* Scanline sweep */
.osint__hero-scanline {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(
		to left,
		transparent,
		var(--c-lime, #cdfe64) 40%,
		var(--c-lime, #cdfe64) 60%,
		transparent
	);
	z-index: 5;
	transform: scaleX(0);
	transform-origin: right;
	opacity: 0;
	pointer-events: none;
}
.osint__hero.is-revealed .osint__hero-scanline {
	animation: osint-scanline .7s ease-out .05s forwards;
}
@keyframes osint-scanline {
	0%   { opacity: .9; transform: scaleX(0); }
	50%  { opacity: 1; }
	100% { opacity: 0; transform: scaleX(1); }
}
.osint__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 24px 48px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}
.osint__hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #cdfe64;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.osint__hero-kicker svg {
	width: 18px;
	height: 18px;
}
.osint__hero-title {
	margin: 0 0 12px;
	font-size: 48px;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1.15;
}
.osint__hero-desc {
	margin: 0;
	font-size: 16px;
	color: var(--c-text-3);
	line-height: 1.7;
	max-width: 640px;
}

/* ---- Hero stats ---- */
.osint__hero-stats {
	display: flex;
	gap: 32px;
	flex-shrink: 0;
}
.osint__hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.osint__hero-stat-value {
	font-family: var(--font-mono, monospace);
	font-size: 36px;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1;
}
.osint__hero-stat-label {
	font-size: 12px;
	color: var(--c-text-faint);
	font-weight: 500;
}

/* ---- Horizontal tabs ---- */
.osint__tabs {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2px;
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 24px;
}
.osint__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-text-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
}
.osint__tab svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.osint__tab:hover {
	color: var(--c-text-2);
}
.osint__tab.is-active {
	color: var(--c-lime, #d5fe77);
	border-bottom-color: var(--c-lime, #d5fe77);
}
.osint__tab-sep {
	width: 1px;
	height: 22px;
	background: rgba(var(--c-border-rgb), .08);
	margin-inline: 8px;
	flex-shrink: 0;
}
.osint__tab--inv {
	font-size: 13px;
	color: var(--c-text-faint);
}
.osint__tab--inv.is-active {
	color: #a89cf5;
	border-bottom-color: #7c6ceb;
}
.osint__tab-count {
	font-family: var(--font-mono, monospace);
	font-size: 10px;
	opacity: .5;
}
.osint__tab--clear {
	padding: 12px 8px;
}
.osint__tab--clear svg {
	width: 13px;
	height: 13px;
}

/* Legacy — hide sidebar (replaced by hero tabs) */
.osint__sidebar { display: none; }

/* Investigation active banner */
.osint__inv-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: rgba(88, 81, 207, .08);
	border-bottom: 1px solid rgba(88, 81, 207, .15);
}
.osint__inv-banner > svg {
	width: 14px;
	height: 14px;
	color: #7c6ceb;
	flex-shrink: 0;
}
.osint__inv-banner-label {
	font-size: 12px;
	color: var(--c-text-faint);
}
.osint__inv-banner-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--c-text);
}
.osint__inv-banner-count {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	color: var(--c-text-faint);
	margin-inline-start: auto;
}
.osint__inv-banner-clear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--c-text-faint);
	transition: color .15s;
	flex-shrink: 0;
}
.osint__inv-banner-clear svg {
	width: 14px;
	height: 14px;
}
.osint__inv-banner-clear:hover {
	color: var(--c-text-3);
}

/* =============================================================
 * MAIN PANEL — floating card
 * =========================================================== */
.osint__main {
	flex: 1;
	min-width: 0;
	max-width: 1232px;
	margin: 0 auto;
	padding: 32px 24px 80px;
	width: 100%;
}
.osint__hero--file ~ .osint__main {
	opacity: 0;
	transform: translateY(18px);
	animation: osint-content-reveal .5s ease .35s forwards;
}
@keyframes osint-content-reveal {
	to { opacity: 1; transform: translateY(0); }
}

.osint__panel {
	/* no extra padding — main handles it */
}
.osint__panel--graph {
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 200px);
}

.osint__panel-header {
	margin-bottom: 20px;
}
.osint__panel--graph .osint__panel-header {
	flex-shrink: 0;
}

/* Map view — full-height like graph */
.osint__panel--map {
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 200px);
}
.osint__panel--map .osint__panel-header {
	flex-shrink: 0;
}
.osint__map-canvas {
	flex: 1;
	min-height: 400px;
	background: var(--c-bg-alt);
	border: 1px solid rgba(203,255,0,.1);
}
.osint__panel--map .mapboxgl-popup-content {
	background: transparent;
	padding: 0;
	box-shadow: none;
	border: 0;
	border-radius: 0;
}
.osint__panel--map .mapboxgl-popup-tip {
	border-top-color: var(--c-bg-surface);
	border-bottom-color: var(--c-bg-surface);
}
.osint__panel--map .eekad-home-db__map-popup-card {
	min-width: 240px;
	box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .8);
}
.osint__panel--map .mapboxgl-ctrl-group {
	background: rgba(var(--c-bg-surface-rgb), .9);
	border: 1px solid rgba(var(--c-border-rgb), .08);
	border-radius: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.osint__panel--map .mapboxgl-ctrl-group button {
	background: transparent;
	width: 32px;
	height: 32px;
}
.osint__panel--map .mapboxgl-ctrl-group button + button {
	border-top: 1px solid rgba(var(--c-border-rgb), .06);
}
.osint__panel--map .mapboxgl-ctrl-group button:hover {
	background: rgba(203, 255, 0, .08);
}
.osint__panel--map .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
	filter: invert(1) brightness(.9);
	opacity: .75;
}
.osint__panel--map .mapboxgl-ctrl-group button:hover .mapboxgl-ctrl-icon {
	opacity: 1;
}
.osint__panel--map .mapboxgl-ctrl-attrib {
	background: rgba(var(--c-bg-base-rgb), .75);
	color: var(--c-text-muted);
	font-size: 10px;
}
.osint__panel--map .mapboxgl-ctrl-attrib a {
	color: var(--c-text-3);
}
.osint__panel--map .mapboxgl-ctrl-attrib a:hover {
	color: var(--c-lime);
}
.osint__page-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--c-text);
	margin: 0;
}

/* =============================================================
 * BROWSE — search + schema pills
 * =========================================================== */
.osint__browse-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 24px;
}
.osint__browse-search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .08);
	padding: 10px 16px;
	min-width: 280px;
	transition: border-color .2s;
}
.osint__browse-search:focus-within {
	border-color: var(--c-lime, #d5fe77);
}
.osint__browse-search svg {
	width: 18px;
	height: 18px;
	color: var(--c-text-faint);
	flex-shrink: 0;
}
.osint__browse-search input[type="text"] {
	background: none;
	border: none;
	color: var(--c-text);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	width: 100%;
	min-width: 0;
	padding: 0;
}
.osint__browse-search input[type="text"]::placeholder {
	color: var(--c-text-faint);
}

/* Schema type dropdown */
.osint__schema-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.osint__schema-select {
	appearance: none;
	-webkit-appearance: none;
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .08);
	color: var(--c-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 40px 10px 16px;
	cursor: pointer;
	transition: border-color .2s;
	min-width: 160px;
}
.osint__schema-select:hover {
	border-color: var(--c-text-faint);
}
.osint__schema-select:focus {
	outline: none;
	border-color: var(--c-lime, #d5fe77);
}
.osint__schema-select option {
	background: var(--c-bg-surface);
	color: var(--c-text);
}
.osint__schema-select-arrow {
	position: absolute;
	inset-inline-end: 12px;
	width: 16px;
	height: 16px;
	color: var(--c-text-faint);
	pointer-events: none;
}

.osint__browse-meta {
	padding-bottom: 8px;
}

/* =============================================================
 * DASHBOARD — cards grid
 * =========================================================== */
.osint__dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

/* ---- Card ---- */
.osint__card {
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .06);
	padding: 28px 28px;
}
.osint__card-header {
	font-size: 17px;
	font-weight: 700;
	color: var(--c-text);
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(var(--c-border-rgb), .08);
}

/* Breakdown rows (schema / country lists) */
.osint__breakdown-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 6px;
	font-size: 15px;
	color: var(--c-text-3);
	text-decoration: none;
	transition: background .12s;
}
.osint__breakdown-row:hover {
	background: rgba(var(--c-border-rgb), .04);
}
.osint__breakdown-label {
	flex: 1;
}
.osint__breakdown-count {
	font-family: var(--font-mono, monospace);
	font-size: 14px;
	color: var(--c-lime, #d5fe77);
	font-weight: 600;
}

/* Entity mini rows (recent list) */
.osint__entity-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 6px;
	text-decoration: none;
	color: inherit;
	transition: background .12s;
}
.osint__entity-row:hover {
	background: rgba(var(--c-border-rgb), .04);
}
.osint__entity-row-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: currentColor;
	background: color-mix(in srgb, currentColor 8%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.osint__entity-row-icon svg {
	width: 18px;
	height: 18px;
	opacity: .8;
}
.osint__entity-row-name {
	flex: 1;
	font-size: 15px;
	color: var(--c-text);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.osint__entity-row-country {
	font-family: var(--font-mono, monospace);
	font-size: 12px;
	color: var(--c-text-faint);
	flex-shrink: 0;
}

/* =============================================================
 * BROWSE — entity card grid
 * =========================================================== */
.osint__browse-total {
	font-size: 12px;
	color: var(--c-text-faint);
}

.osint__entity-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.osint__entity-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .04);
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: background .15s, border-color .15s;
}
.osint__entity-card:hover {
	background: var(--c-bg-elevated);
	border-color: rgba(var(--c-border-rgb), .08);
}

.osint__entity-card-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, currentColor 8%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.osint__entity-card-icon svg {
	width: 18px;
	height: 18px;
	opacity: .8;
}

.osint__entity-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.osint__entity-card-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--c-text);
	line-height: 1.3;
}
.osint__entity-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.osint__entity-card-schema {
	font-size: 11px;
	font-weight: 600;
}
.osint__entity-card-country {
	font-size: 11px;
	color: var(--c-text-faint);
}
.osint__entity-card-rels {
	font-size: 11px;
	color: var(--c-text-faint);
}

/* Pagination */
.osint__pagination {
	display: flex;
	gap: 4px;
	margin-top: 20px;
	justify-content: center;
}
.osint__page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 12px;
	color: var(--c-text-faint);
	text-decoration: none;
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .04);
	transition: background .12s, color .12s;
}
.osint__page-link:hover {
	background: var(--c-bg-elevated);
	color: var(--c-text-2);
}
.osint__page-link.is-active {
	background: rgba(213, 254, 119, .08);
	color: var(--c-lime, #d5fe77);
	border-color: rgba(213, 254, 119, .12);
}

/* =============================================================
 * GRAPH
 * =========================================================== */
.osint__graph-canvas {
	flex: 1;
	background: var(--c-bg-alt);
	border: 1px solid rgba(var(--c-border-rgb), .04);
	min-height: 500px;
	transition: opacity .6s ease;
}

/* =============================================================
 * RADAR LOADER
 * =========================================================== */
.eekad-radar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 60px 0;
}
.eekad-radar__disc {
	position: relative;
	width: 120px;
	height: 120px;
}

.eekad-radar__ring {
	position: absolute;
	border: 1px solid rgba(213, 254, 119, .1);
	border-radius: 50%;
}
.eekad-radar__ring--1 { inset: 0; }
.eekad-radar__ring--2 { inset: 20%; }
.eekad-radar__ring--3 { inset: 40%; }

.eekad-radar__cross {
	position: absolute;
	background: rgba(213, 254, 119, .06);
}
.eekad-radar__cross--h {
	top: 50%; left: 0; right: 0; height: 1px;
}
.eekad-radar__cross--v {
	left: 50%; top: 0; bottom: 0; width: 1px;
}

.eekad-radar__center {
	position: absolute;
	top: 50%; left: 50%;
	width: 6px; height: 6px;
	margin: -3px 0 0 -3px;
	background: var(--c-lime, #d5fe77);
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(213, 254, 119, .5);
}

.eekad-radar__sweep {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		transparent 300deg,
		rgba(213, 254, 119, .03) 330deg,
		rgba(213, 254, 119, .12) 355deg,
		rgba(213, 254, 119, .25) 360deg
	);
	animation: radar-spin 2.5s linear infinite;
}

.eekad-radar__beam {
	position: absolute;
	top: 50%; left: 50%;
	width: 50%; height: 1px;
	transform-origin: 0% 50%;
	background: linear-gradient(90deg, rgba(213, 254, 119, .6), transparent);
	animation: radar-spin 2.5s linear infinite;
}

@keyframes radar-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.eekad-radar__blip {
	position: absolute;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--c-lime, #d5fe77);
	opacity: 0;
	animation: radar-blip 2.5s ease-out infinite;
}
.eekad-radar__blip--1 { top: 22%; left: 65%; animation-delay: 0s; }
.eekad-radar__blip--2 { top: 60%; left: 28%; animation-delay: .8s; }
.eekad-radar__blip--3 { top: 35%; left: 38%; animation-delay: 1.6s; }

@keyframes radar-blip {
	0%   { opacity: 0; transform: scale(.5); }
	10%  { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(213, 254, 119, .5); }
	60%  { opacity: .3; transform: scale(1); box-shadow: none; }
	100% { opacity: 0; transform: scale(.5); }
}

.eekad-radar__label {
	font-size: 13px;
	color: var(--c-text-faint);
	letter-spacing: .05em;
}

/* =============================================================
 * TIMELINE FILTERS
 * =========================================================== */

/* =============================================================
 * TIMELINE — mirrors the investigation timeline visual language
 * (vertical line, 24px markers, lime accent) but with cards.
 * =========================================================== */
.osint-timeline {
	position: relative;
	padding: 0 0 48px;
	padding-inline-start: 56px;
	max-width: 760px;
}

/* Vertical track — full height, same position as investigation */
.osint-timeline__line {
	position: absolute;
	inset-inline-start: 11px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(var(--c-border-rgb), .18);
	z-index: 0;
}

/* --- Year marker --- */
.osint-timeline__year-marker {
	position: relative;
	padding: 28px 0 10px;
}
.osint-timeline__year-marker:first-child {
	padding-top: 0;
}
.osint-timeline__year {
	font-family: var(--font-mono, monospace);
	font-size: 18px;
	font-weight: 700;
	color: var(--c-lime, #d5fe77);
	letter-spacing: .08em;
}

/* --- Timeline item --- */
.osint-timeline__item {
	position: relative;
	padding: 0;
	padding-block: 8px;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(16px);
	animation: tl-fade-in .5s ease forwards;
}
.osint-timeline__item:nth-child(2) { animation-delay: .05s; }
.osint-timeline__item:nth-child(3) { animation-delay: .1s; }
.osint-timeline__item:nth-child(4) { animation-delay: .15s; }
.osint-timeline__item:nth-child(5) { animation-delay: .2s; }
.osint-timeline__item:nth-child(6) { animation-delay: .25s; }
.osint-timeline__item:nth-child(7) { animation-delay: .3s; }
.osint-timeline__item:nth-child(8) { animation-delay: .35s; }
.osint-timeline__item:nth-child(n+9) { animation-delay: .4s; }

@keyframes tl-fade-in {
	to { opacity: 1; transform: translateY(0); }
}

/* --- Marker — 14px square on the line --- */
.osint-timeline__dot {
	position: absolute;
	box-sizing: border-box;
	inset-inline-start: -50px;
	top: 18px;
	width: 14px;
	height: 14px;
	border-radius: 0;
	background: var(--c-bg-alt);
	border: 2px solid rgba(var(--c-border-rgb), .25);
	z-index: 2;
	transition:
		border-color .3s ease,
		background .3s ease,
		box-shadow .3s ease,
		transform .3s ease;
}
/* Hover: fill, glow, rotate */
.osint-timeline__item:hover .osint-timeline__dot {
	border-color: var(--c-lime, #d5fe77);
	background: var(--c-lime, #d5fe77);
	box-shadow: 0 0 12px rgba(190, 242, 100, .4);
	transform: rotate(45deg);
}

/* --- Card --- */
.osint-timeline__card {
	background: var(--c-bg-surface);
	border: 1px solid rgba(var(--c-border-rgb), .05);
	padding: 18px 22px;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.osint-timeline__card:hover {
	background: var(--c-bg-elevated);
	border-color: rgba(var(--c-border-rgb), .1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

/* --- Date --- */
.osint-timeline__date {
	display: inline-block;
	font-family: var(--font-mono, monospace);
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--c-text-faint);
	margin-bottom: 8px;
}

/* --- Card body --- */
.osint-timeline__card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* --- Title --- */
.osint-timeline__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s;
}
a.osint-timeline__title:hover {
	color: var(--c-lime, #d5fe77);
}

/* --- Description --- */
.osint-timeline__desc {
	font-size: 14px;
	color: var(--c-text-muted);
	margin: 0;
	line-height: 1.6;
}

/* --- Tags --- */
.osint-timeline__tags {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.osint-timeline__type-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	background: rgba(var(--c-border-rgb), .05);
	color: var(--c-text-muted);
	letter-spacing: .02em;
}

.osint-timeline__entity-tag {
	font-size: 11px;
	font-weight: 500;
	color: var(--c-text-faint) !important;
	transition: color .15s;
}
.osint-timeline__entity-tag:hover {
	color: var(--c-text-3) !important;
}

/* =============================================================
 * FILE SWITCHER — mini cards inside hero to switch files
 * =========================================================== */
.osint__file-switcher {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 20px;
}
.osint__file-mini {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	width: 160px;
	height: 72px;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(var(--c-border-rgb), .08);
	flex-shrink: 0;
	transition: border-color .25s, box-shadow .25s, transform .2s;
	opacity: 0;
	transform: scale(1.15);
	animation: osint-mini-shrink .5s cubic-bezier(.16, 1, .3, 1) forwards;
}
.osint__file-mini:nth-child(1) { animation-delay: .05s; }
.osint__file-mini:nth-child(2) { animation-delay: .1s; }
.osint__file-mini:nth-child(3) { animation-delay: .15s; }
.osint__file-mini:nth-child(4) { animation-delay: .2s; }
.osint__file-mini:nth-child(5) { animation-delay: .25s; }
@keyframes osint-mini-shrink {
	to { opacity: 1; transform: scale(1); }
}
.osint__file-mini:hover {
	border-color: var(--c-text-faint);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
	transform: scale(1.03);
}
.osint__file-mini.is-active {
	border-color: rgba(205, 254, 100, .35);
	box-shadow: 0 0 0 1px rgba(205, 254, 100, .12);
	opacity: 1;
	transform: scale(1);
	animation: none;
}
.osint__file-mini.is-active:hover {
	transform: scale(1);
}

/* Skip intro animation on file-switch reloads */
.osint__file-switcher.no-intro .osint__file-mini {
	opacity: 1;
	transform: scale(1);
	animation: none;
}
/* Smooth active-state swap when switching */
.osint__file-mini.is-leaving {
	border-color: rgba(var(--c-border-rgb), .08) !important;
	box-shadow: none !important;
}
.osint__file-mini.is-leaving .osint__file-mini-name {
	color: var(--c-text-3) !important;
}
.osint__file-mini.is-entering {
	border-color: rgba(205, 254, 100, .35) !important;
	box-shadow: 0 0 0 1px rgba(205, 254, 100, .12) !important;
}
.osint__file-mini.is-entering .osint__file-mini-name {
	color: var(--c-lime, #cdfe64) !important;
}

/* Cover */
.osint__file-mini-cover {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: transform .3s ease;
}
.osint__file-mini:hover .osint__file-mini-cover {
	transform: scale(1.08);
}
.osint__file-mini-cover--empty {
	background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-bg-surface) 100%);
}

/* Overlay */
.osint__file-mini-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(var(--c-bg-base-rgb), .92) 0%,
		rgba(var(--c-bg-base-rgb), .55) 100%
	);
	z-index: 1;
}

/* Name */
.osint__file-mini-name {
	position: relative;
	z-index: 2;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-text-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}
.osint__file-mini.is-active .osint__file-mini-name {
	color: var(--c-lime, #cdfe64);
}
.osint__file-mini:not(.is-active):hover .osint__file-mini-name {
	color: var(--c-text);
}

/* =============================================================
 * HERO — picker variant (no file selected)
 * =========================================================== */
.osint__hero--picker {
	padding-bottom: 0;
}
.osint__hero-inner--picker {
	padding-bottom: 32px;
}

/* Horizontal file cards strip inside hero */
.osint__hero-files {
	position: relative;
	z-index: 1;
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 24px 40px;
}
.osint__hero-files-track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

/* Hero file card */
.osint__hero-file-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 200px;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(var(--c-border-rgb), .08);
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.osint__hero-file-card:hover {
	border-color: rgba(205, 254, 100, .25);
	box-shadow: 0 0 0 1px rgba(205, 254, 100, .1), 0 12px 40px rgba(0, 0, 0, .4);
	transform: translateY(-4px);
}

/* Cover */
.osint__hero-file-card-cover {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: transform .4s ease;
}
.osint__hero-file-card:hover .osint__hero-file-card-cover {
	transform: scale(1.05);
}
.osint__hero-file-card-cover--empty {
	background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-bg-surface) 100%);
}

/* Overlay */
.osint__hero-file-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(var(--c-bg-base-rgb), .95) 0%,
		rgba(var(--c-bg-base-rgb), .75) 50%,
		rgba(var(--c-bg-base-rgb), .25) 100%
	);
	z-index: 1;
}

/* Body */
.osint__hero-file-card-body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	margin-top: auto;
}

/* Status badge */
.osint__hero-file-card-status {
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	padding: 3px 8px;
	background: rgba(205, 254, 100, .1);
	color: var(--c-lime, #cdfe64);
}
.osint__hero-file-card-status--developing {
	background: rgba(234, 179, 8, .1);
	color: #eab308;
}
.osint__hero-file-card-status--archived {
	background: rgba(var(--c-border-rgb), .05);
	color: var(--c-text-faint);
}

/* Name */
.osint__hero-file-card-name {
	font-size: 22px;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1.3;
}

/* Stats */
.osint__hero-file-card-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2px;
}
.osint__hero-file-card-stats > span {
	font-size: 12px;
	color: var(--c-text-faint);
}

/* Hover arrow */
.osint__hero-file-card::after {
	content: '←';
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	z-index: 3;
	font-size: 18px;
	color: var(--c-lime, #cdfe64);
	opacity: 0;
	transform: translateX(6px);
	transition: opacity .2s, transform .2s;
}
.osint__hero-file-card:hover::after {
	opacity: 1;
	transform: translateX(0);
}

/* =============================================================
 * LOCKED TABS + DATABASE STATE (no file selected)
 * =========================================================== */
.osint__tabs--locked {
	pointer-events: none;
	opacity: .25;
}
.osint__locked-state {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0 48px;
}

/* Radar */
.eekad-radar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 60px 0;
}
.eekad-radar__disc {
	position: relative;
	width: 180px;
	height: 180px;
}

.eekad-radar__ring {
	position: absolute;
	border: 1px solid rgba(213, 254, 119, .1);
	border-radius: 50%;
}
.eekad-radar__ring--1 { inset: 0; }
.eekad-radar__ring--2 { inset: 20%; }
.eekad-radar__ring--3 { inset: 40%; }

.eekad-radar__cross {
	position: absolute;
	background: rgba(213, 254, 119, .06);
}
.eekad-radar__cross--h {
	top: 50%; left: 0; right: 0; height: 1px;
}
.eekad-radar__cross--v {
	left: 50%; top: 0; bottom: 0; width: 1px;
}

.eekad-radar__center {
	position: absolute;
	top: 50%; left: 50%;
	width: 6px; height: 6px;
	margin: -3px 0 0 -3px;
	background: var(--c-lime, #d5fe77);
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(213, 254, 119, .5);
}

.eekad-radar__sweep {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		transparent 300deg,
		rgba(213, 254, 119, .03) 330deg,
		rgba(213, 254, 119, .12) 355deg,
		rgba(213, 254, 119, .25) 360deg
	);
	animation: radar-spin 2.5s linear infinite;
}

.eekad-radar__beam {
	position: absolute;
	top: 50%; left: 50%;
	width: 50%; height: 1px;
	transform-origin: 0% 50%;
	background: linear-gradient(90deg, rgba(213, 254, 119, .6), transparent);
	animation: radar-spin 2.5s linear infinite;
}

@keyframes radar-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.eekad-radar__blip {
	position: absolute;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--c-lime, #d5fe77);
	opacity: 0;
	animation: radar-blip 2.5s ease-out infinite;
}
.eekad-radar__blip--1 { top: 22%; left: 65%; animation-delay: 0s; }
.eekad-radar__blip--2 { top: 60%; left: 28%; animation-delay: .8s; }
.eekad-radar__blip--3 { top: 35%; left: 38%; animation-delay: 1.6s; }

@keyframes radar-blip {
	0%   { opacity: 0; transform: scale(.5); }
	10%  { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(213, 254, 119, .5); }
	60%  { opacity: .3; transform: scale(1); box-shadow: none; }
	100% { opacity: 0; transform: scale(.5); }
}

.eekad-radar__label {
	font-size: 13px;
	color: var(--c-text-faint);
	letter-spacing: .05em;
}

/* =============================================================
 * EMPTY STATE
 * =========================================================== */
.osint__empty {
	text-align: center;
	padding: 60px 0;
	color: var(--c-text-faint);
	font-size: 13px;
}

/* =============================================================
 * RESPONSIVE
 * =========================================================== */
@media (max-width: 900px) {
	.osint__hero-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 20px 24px;
	}
	.osint__hero-title { font-size: 32px; }
	.osint__hero-stats { gap: 20px; }
	.osint__hero-stat-value { font-size: 24px; }
	.osint__tabs {
		padding: 0 20px;
		overflow-x: auto;
	}
	.osint__main {
		padding: 20px 20px 48px;
	}
	.osint__panel-header {
		margin-bottom: 16px;
	}
}

@media (max-width: 960px) {
	.osint__entity-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.osint__entity-grid {
		grid-template-columns: 1fr;
	}
	.osint__dashboard-grid {
		grid-template-columns: 1fr;
	}
	.osint__hero-files-track {
		grid-template-columns: 1fr;
	}
}
