/**
 * WizSims: Simulation Engine Styles
 * Modern, high-aesthetic design system for interactive STEM & Humanities simulations.
 */

/* ==========================================================================
   Archive & Explorer Layout
   ========================================================================== */
.wizm-sims-archive-container,
.wizm-sim-single-container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 24px 20px 80px;
	color: #f1f5f9;
	font-family: inherit;
}

/* Hero Section */
.wizm-sims-hero {
	text-align: center;
	padding: 48px 20px 40px;
	background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%),
	            linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	margin-bottom: 36px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	position: relative;
	overflow: hidden;
}

.wizm-sims-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
	pointer-events: none;
}

.wizm-sims-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 780px;
	margin: 0 auto;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	background: rgba(99, 102, 241, 0.15);
	border: 1px solid rgba(99, 102, 241, 0.3);
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #a5b4fc;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pulse-dot {
	width: 8px;
	height: 8px;
	background-color: #22c55e;
	border-radius: 50%;
	box-shadow: 0 0 10px #22c55e;
	animation: wizmPulse 2s infinite;
}

@keyframes wizmPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
	font-size: 2.75rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 14px;
}

.hero-subtitle {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #94a3b8;
	margin-bottom: 28px;
}

/* Live Search Box */
.wizm-sims-search-box {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	align-items: center;
}

.wizm-sims-search-box .search-icon {
	position: absolute;
	left: 18px;
	color: #64748b;
	pointer-events: none;
	font-size: 22px;
}

.wizm-sims-search-box input {
	width: 100%;
	padding: 16px 48px 16px 52px;
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	color: #ffffff;
	font-size: 0.9375rem;
	outline: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wizm-sims-search-box input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 8px 30px rgba(0, 0, 0, 0.4);
	background: rgba(15, 23, 42, 0.95);
}

.wizm-sims-search-box input::placeholder {
	color: #64748b;
}

#wizmSimSearchClear {
	position: absolute;
	right: 16px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #94a3b8;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

#wizmSimSearchClear:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
}

/* Breadcrumb Navigation */
.wizm-sims-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	margin-bottom: 28px;
	backdrop-filter: blur(12px);
	overflow-x: auto;
	white-space: nowrap;
}

.crumb-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.crumb-btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.crumb-btn.active {
	color: #38bdf8;
	background: rgba(56, 189, 248, 0.12);
	font-weight: 600;
}

.crumb-sep {
	color: #475569;
	font-size: 0.875rem;
}

/* Common Section Header */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 22px;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 4px;
}

.section-desc {
	font-size: 0.875rem;
	color: #94a3b8;
}

/* ==========================================================================
   LEVEL 1: Subjects Grid
   ========================================================================== */
.subjects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 22px;
}

.subject-card {
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 24px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.subject-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 18px;
	padding: 1px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.subject-card:hover {
	transform: translateY(-4px);
	border-color: rgba(99, 102, 241, 0.4);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.subject-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.subject-icon-box {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.sim-counter-pill {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	color: #e2e8f0;
}

.subject-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
}

.subject-desc {
	font-size: 0.84375rem;
	line-height: 1.5;
	color: #94a3b8;
	flex-grow: 1;
	margin-bottom: 20px;
}

.subject-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.topics-tag {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #cbd5e1;
}

.arrow-btn {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #38bdf8;
	transition: transform 0.2s;
}

.subject-card:hover .arrow-btn {
	transform: translateX(4px);
}

/* ==========================================================================
   LEVEL 2: Topics Grid & Subject Banner
   ========================================================================== */
.subject-banner {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 24px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.subject-banner-info {
	display: flex;
	align-items: center;
	gap: 20px;
}

.banner-icon-box {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.banner-tag {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #818cf8;
}

.banner-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: #94a3b8;
}

.banner-title {
	font-size: 1.625rem;
	font-weight: 800;
	color: #ffffff;
	margin-top: 2px;
	margin-bottom: 4px;
}

.banner-desc {
	font-size: 0.875rem;
	color: #94a3b8;
}

.back-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9999px;
	color: #e2e8f0;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.back-pill-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* Topics Cards */
.topics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.topic-card {
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 22px;
	cursor: pointer;
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
}

.topic-card:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, 0.4);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.topic-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.topic-title {
	font-size: 1.1875rem;
	font-weight: 700;
	color: #ffffff;
}

.subtopics-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 18px;
	flex-grow: 1;
}

.subtopic-mini-chip {
	font-size: 0.71875rem;
	font-weight: 500;
	padding: 3px 9px;
	background: rgba(148, 163, 184, 0.1);
	border-radius: 6px;
	color: #cbd5e1;
}

/* ==========================================================================
   LEVEL 3: Subtopics Ribbon & Simulation Cards
   ========================================================================== */
.topic-header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(30, 41, 59, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 18px 24px;
	margin-bottom: 20px;
}

.topic-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #38bdf8;
}

.topic-main-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #ffffff;
}

.subtopics-ribbon-wrap {
	margin-bottom: 24px;
}

.subtopics-ribbon {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
}

.subtopic-pill {
	padding: 8px 18px;
	background: rgba(30, 41, 59, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	color: #cbd5e1;
	font-size: 0.84375rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.subtopic-pill:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
}

.subtopic-pill.active {
	background: #6366f1;
	color: #ffffff;
	border-color: #6366f1;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Simulations Grid */
.simulations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 24px;
}

.sim-card {
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.25s ease;
	overflow: hidden;
}

.sim-card:hover {
	transform: translateY(-4px);
	border-color: rgba(99, 102, 241, 0.4);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.sim-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.sim-subtopic-tag {
	font-size: 0.75rem;
	font-weight: 600;
	color: #38bdf8;
	background: rgba(56, 189, 248, 0.12);
	padding: 3px 10px;
	border-radius: 6px;
}

.sim-difficulty-tag {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
}

.diff-beginner { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.diff-intermediate { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.diff-advanced { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.sim-card-title {
	font-size: 1.1875rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.35;
	margin-bottom: 8px;
}

.sim-card-excerpt {
	font-size: 0.84375rem;
	line-height: 1.55;
	color: #94a3b8;
	flex-grow: 1;
	margin-bottom: 18px;
}

.sim-card-meta-row {
	display: flex;
	gap: 12px;
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 18px;
}

.sim-card-launch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.sim-card-launch-btn:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
	color: #ffffff;
}

/* ==========================================================================
   SINGLE SIMULATION PLAYER & STAGE
   ========================================================================== */
.wizm-sim-single-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding: 12px 18px;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
}

.sim-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84375rem;
	overflow-x: auto;
	white-space: nowrap;
}

.crumb-link {
	color: #94a3b8;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
}

.crumb-link:hover {
	color: #ffffff;
}

.subject-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.crumb-divider {
	color: #475569;
}

.crumb-current {
	color: #38bdf8;
	font-weight: 600;
}

.sim-topbar-actions {
	display: flex;
	gap: 10px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #e2e8f0;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s;
}

.action-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

/* Simulation Header */
.wizm-sim-header {
	margin-bottom: 24px;
}

.sim-header-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.sim-subject-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	border: 1px solid;
}

.meta-pill {
	font-size: 0.75rem;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	color: #94a3b8;
}

.meta-pill strong {
	color: #e2e8f0;
}

.sim-title {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
	margin-bottom: 8px;
}

.sim-description {
	font-size: 1rem;
	line-height: 1.6;
	color: #94a3b8;
}

/* Stage Card */
.wizm-sim-stage-card {
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	margin-bottom: 32px;
}

.wizm-sim-stage-card.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 99999;
	border-radius: 0;
	height: 100vh;
	width: 100vw;
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Stage Toolbar */
.sim-stage-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #1e293b;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-wrap: wrap;
	gap: 12px;
}

.stage-status-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #cbd5e1;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #22c55e;
	box-shadow: 0 0 8px #22c55e;
}

.stage-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.deck-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #e2e8f0;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.deck-btn:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.speed-selector {
	display: flex;
	align-items: center;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 2px 4px;
}

.speed-label {
	font-size: 0.6875rem;
	font-weight: 600;
	color: #64748b;
	padding: 0 6px;
}

.speed-btn {
	padding: 4px 8px;
	border: none;
	background: transparent;
	color: #94a3b8;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
}

.speed-btn.active {
	background: #6366f1;
	color: #ffffff;
}

/* Viewport Container & Iframe */
.sim-viewport-container {
	position: relative;
	width: 100%;
	min-height: 560px;
	height: 65vh;
	background: #020617;
}

.wizm-sim-stage-card.is-fullscreen .sim-viewport-container {
	height: calc(100vh - 58px);
	min-height: auto;
	flex-grow: 1;
}

.wizm-sim-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.viewport-loader {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: #94a3b8;
	font-weight: 600;
	z-index: 10;
	transition: opacity 0.3s;
}

/* ==========================================================================
   Tabs Section: Theory, Exercises, Source Code
   ========================================================================== */
.wizm-sim-tabs-section {
	background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 24px;
	margin-bottom: 40px;
}

.tabs-nav-bar {
	display: flex;
	gap: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 16px;
	margin-bottom: 24px;
	overflow-x: auto;
}

.tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	color: #94a3b8;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.tab-btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
	color: #ffffff;
	background: #6366f1;
	border-color: #6366f1;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.tab-panel {
	color: #cbd5e1;
	line-height: 1.7;
}

.tab-panel h2, .tab-panel h3, .tab-panel h4 {
	color: #ffffff;
	margin-top: 20px;
	margin-bottom: 10px;
}

.tab-panel p {
	margin-bottom: 16px;
}

.empty-tab-notice {
	padding: 32px;
	text-align: center;
	color: #64748b;
	background: rgba(15, 23, 42, 0.5);
	border-radius: 12px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Code Explorer */
.code-explorer-wrap {
	border-radius: 12px;
	overflow: hidden;
	background: #0b0f19;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-subtabs {
	display: flex;
	background: #111827;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-subtab-btn {
	padding: 10px 20px;
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.code-subtab-btn.active {
	color: #38bdf8;
	border-bottom-color: #38bdf8;
	background: rgba(56, 189, 248, 0.05);
}

.code-editor-display pre {
	margin: 0;
	padding: 20px;
	max-height: 480px;
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8125rem;
	color: #e2e8f0;
	line-height: 1.6;
}

/* ==========================================================================
   Related Simulations
   ========================================================================== */
.related-sims-section {
	margin-top: 48px;
}

.section-title-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.related-sim-card {
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 18px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
}

.related-sim-card:hover {
	transform: translateY(-3px);
	border-color: rgba(99, 102, 241, 0.4);
}

.rel-badge {
	font-size: 0.6875rem;
	color: #38bdf8;
	font-weight: 600;
	margin-bottom: 8px;
}

.rel-title {
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 14px;
	flex-grow: 1;
}

.rel-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.75rem;
}

.rel-diff {
	color: #94a3b8;
}

.rel-launch {
	color: #818cf8;
	font-weight: 600;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.wizm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.wizm-modal-card {
	background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	width: 100%;
	max-width: 540px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
}

.modal-header .close-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 18px;
	cursor: pointer;
}

.modal-header .close-btn:hover {
	color: #ffffff;
}

.modal-body {
	padding: 24px;
}

.modal-input {
	width: 100%;
	padding: 10px 14px;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #ffffff;
	font-size: 0.8125rem;
	outline: none;
}

.copy-btn {
	padding: 10px 16px;
	background: #6366f1;
	border: none;
	border-radius: 8px;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.copy-btn:hover {
	background: #4f46e5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2rem;
	}
	.sim-title {
		font-size: 1.625rem;
	}
	.sim-stage-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.stage-controls {
		justify-content: space-between;
	}
	.sim-viewport-container {
		height: 480px;
		min-height: 420px;
	}
	.subject-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}
