/**
 * Mobile Mechanic Vegas Theme Layout & Aesthetics
 * 
 * Implements a high-end, premium, sci-fi dark automotive layout.
 * Colors: Carbon Black (#121214), Deep Slate (#1a1a1e), Glowing Crimson (#d7263d)
 * 
 * @package MobileMechanicTheme
 * @since   1.0.0
 */

/* ==========================================================================
   1. Primary Layout & Grids
   ========================================================================== */

/* Main portal page structure */
.portal-main-container {
	max-width: 1560px;
	margin: 0 auto;
	padding: 24px 20px;
	min-height: calc(100vh - 180px);
}

.portal-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media screen and (min-width: 992px) {
	.portal-grid {
		flex-direction: row;
		align-items: stretch;
	}
	
	.services-grid-column {
		flex: 0 0 38%;
		max-width: 38%;
	}
	
	.chat-assistant-column {
		flex: 0 0 62%;
		max-width: 62%;
	}
}

@media screen and (min-width: 1200px) {
	.services-grid-column {
		flex: 0 0 32%;
		max-width: 32%;
	}
	
	.chat-assistant-column {
		flex: 0 0 68%;
		max-width: 68%;
	}
}

/* ==========================================================================
   2. Header Branding & Banner Styling
   ========================================================================== */
.site-header {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 30px 24px;
	border-bottom: 2px solid #27272a;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(18, 18, 20, 0.95) 0%, rgba(18, 18, 20, 0.7) 50%, rgba(215, 38, 61, 0.15) 100%);
	z-index: 1;
}

.header-content-wrapper {
	position: relative;
	z-index: 2;
	max-width: 1520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.header-content-wrapper {
		flex-direction: row;
	}
}

/* Glassmorphic Branding Panel */
.header-branding-card {
	display: flex;
	align-items: center;
	background: rgba(24, 24, 27, 0.65);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 14px 22px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
	max-width: 100%;
}

.header-branding-card:hover {
	transform: translateY(-2px);
	border-color: rgba(215, 38, 61, 0.3);
}

.site-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	gap: 16px;
	max-width: 100%;
}

.site-logo-wrapper {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(215, 38, 61, 0.15);
	border-radius: 12px;
	border: 1px solid rgba(215, 38, 61, 0.3);
	padding: 6px;
	box-shadow: 0 0 15px rgba(215, 38, 61, 0.2);
}

.theme-logo-svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 0 2px rgba(215, 38, 61, 0.5));
	transition: transform 0.3s ease;
}

.theme-logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.header-branding-card:hover .theme-logo-svg,
.header-branding-card:hover .theme-logo-img {
	transform: rotate(-10deg) scale(1.05);
}


.site-title-group {
	min-width: 0;
}

.site-title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.5px;
	color: #ffffff;
	text-transform: uppercase;
}

.accent-red {
	color: #d7263d;
	text-shadow: 0 0 8px rgba(215, 38, 61, 0.4);
}

.site-tagline {
	margin: 4px 0 0 0;
	font-size: 11px;
	color: #a1a1aa;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-weight: 500;
}

/* System status indicators in header */
.header-status-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

@media screen and (min-width: 768px) {
	.header-status-panel {
		align-items: flex-end;
		width: auto;
	}
}

.system-status-indicator {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(24, 24, 27, 0.8);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #93c5fd;
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
	position: relative;
}

.system-status-indicator .status-dot {
	width: 8px;
	height: 8px;
	background-color: #3b82f6;
	border-radius: 50%;
	box-shadow: 0 0 8px #3b82f6;
}

.system-status-indicator .pulse-ring {
	position: absolute;
	left: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid #3b82f6;
	animation: system-pulse 2s infinite ease-out;
}

@keyframes system-pulse {
	0%   { transform: scale(1); opacity: 1; }
	100% { transform: scale(3.5); opacity: 0; }
}

.emergency-call-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #d7263d 0%, #a21a2c 100%);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	padding: 10px 20px;
	border-radius: 30px;
	box-shadow: 0 4px 15px rgba(215, 38, 61, 0.35);
	transition: all 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
	width: 100%;
	text-align: center;
	justify-content: center;
}

.emergency-call-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(215, 38, 61, 0.5);
	filter: brightness(1.1);
}

.emergency-call-btn:active {
	transform: translateY(0);
}

/* ==========================================================================
   3. Service Menu Navigation Grid (Left Column)
   ========================================================================== */
.service-navigation-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

/* Service cells as expanding containers */
.service-cell {
	position: relative;
	width: 100%;
	height: auto; /* Expandable height */
	border-radius: 12px;
	overflow: hidden;
	background: #18181b;
	border: 1px solid #27272a;
	padding: 0;
	text-align: left;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
	display: block;
}

/* Clicking service header expands card */
.service-cell-header {
	position: relative;
	width: 100%;
	height: 85px; /* Rigid collapsed header height */
	cursor: pointer;
	overflow: hidden;
	display: block;
}

/* Base-images fallback (in case user assets haven't populated yet) */
.cell-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	filter: grayscale(40%) brightness(75%);
}

.cell-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 18, 20, 0.85) 0%, rgba(18, 18, 20, 0.6) 40%, rgba(215, 38, 61, 0.1) 100%);
	z-index: 1;
	transition: background 0.3s ease;
}

.cell-content {
	position: relative;
	z-index: 2;
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.cell-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
	position: relative;
	padding-left: 0;
}

.cell-title::before {
	content: "";
	position: absolute;
	left: -15px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	width: 6px;
	height: 6px;
	background-color: #d7263d;
	border-radius: 50%;
	box-shadow: 0 0 8px #d7263d;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cell-chevron {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.4);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.cell-chevron svg {
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effects on header */
.service-cell-header:hover .cell-bg {
	transform: scale(1.06);
	filter: grayscale(0%) brightness(90%);
}

.service-cell-header:hover .cell-overlay {
	background: linear-gradient(90deg, rgba(18, 18, 20, 0.75) 0%, rgba(18, 18, 20, 0.4) 40%, rgba(215, 38, 61, 0.25) 100%);
}

.service-cell-header:hover .cell-title {
	color: #ffffff;
	transform: translateX(15px);
}

.service-cell-header:hover .cell-title::before {
	transform: translateY(-50%) scale(1.2);
}

.service-cell-header:hover .cell-chevron {
	color: #ffffff;
}

/* Article container styling (accordion effect) */
.service-cell-article {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-inner {
	padding: 20px 24px;
	background: rgba(20, 20, 22, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.article-desc {
	font-family: 'Outfit', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #d1d1d6;
	margin: 0 0 16px 0;
}

.article-features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.article-features li {
	position: relative;
	padding-left: 24px;
	font-size: 13.5px;
	color: #a1a1aa;
	line-height: 1.4;
}

.article-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #d7263d;
	font-weight: 700;
	text-shadow: 0 0 6px rgba(215, 38, 61, 0.5);
}

/* Action button inside article */
.article-actions {
	display: flex;
	justify-content: flex-start;
}

.ask-ai-btn {
	background: linear-gradient(135deg, rgba(215, 38, 61, 0.15) 0%, rgba(215, 38, 61, 0.05) 100%);
	border: 1px solid rgba(215, 38, 61, 0.4);
	color: #ffffff;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	-webkit-appearance: none;
	appearance: none;
}

.ask-ai-btn:hover {
	background: #d7263d;
	border-color: #d7263d;
	box-shadow: 0 0 15px rgba(215, 38, 61, 0.4);
	transform: translateY(-2px);
}

.ask-ai-btn:active {
	transform: translateY(0);
}

/* Expanded state overrides */
.service-cell.expanded {
	border-color: rgba(215, 38, 61, 0.4);
	box-shadow: 0 8px 24px rgba(215, 38, 61, 0.1), 0 0 0 1px rgba(215, 38, 61, 0.2);
}

.service-cell.expanded .service-cell-article {
	max-height: 450px; /* High enough to contain the longest article description */
}

.service-cell.expanded .cell-chevron svg {
	transform: rotate(180deg);
}

.service-cell.expanded .cell-chevron {
	color: #d7263d;
	filter: drop-shadow(0 0 4px rgba(215, 38, 61, 0.5));
}

/* Highlight click effect via JS dynamic class on header */
.service-cell-header.cell-activated {
	animation: cell-activated-flash 0.5s ease-out;
}

@keyframes cell-activated-flash {
	0%   { background-color: rgba(215, 38, 61, 0.25); }
	100% { background-color: transparent; }
}

/* ==========================================================================
   4. High-Tech Chat Chassis & Embedding (Right Column)
   ========================================================================== */
.high-tech-chassis {
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
	height: 750px; /* Rigid, elegant height */
	display: flex;
	flex-direction: column;
	position: relative;
}

.chassis-header-bar {
	background: #202024;
	border-bottom: 1px solid #27272a;
	padding: 10px 18px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

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

.chassis-dot.blue-glow {
	background-color: #3b82f6;
	box-shadow: 0 0 6px #3b82f6;
}

.chassis-dot.red-glow {
	background-color: #d7263d;
	box-shadow: 0 0 6px #d7263d;
}

.chassis-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: #71717a;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-left: 8px;
	flex-grow: 1;
}

.chassis-decoder {
	font-family: monospace;
	font-size: 10px;
	color: rgba(215, 38, 61, 0.3);
	letter-spacing: 1px;
}

.embedded-chat-wrapper {
	flex: 1;
	height: calc(100% - 37px);
	position: relative;
	overflow: hidden;
}

/* ==========================================================================
   5. CRITICAL: Plugin Overrides (Turns Fullscreen/Floating Chat into Native Column Widget)
   ========================================================================== */

/* 1. Neuter the fullscreen takeover */
.chat-assistant-column .mmai-widget-root.mmai-fullscreen {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	height: 100% !important;
	bottom: auto !important;
	right: auto !important;
	z-index: 5 !important;
	background: transparent !important;
}

/* 2. Chat window takes full size of container layout */
.chat-assistant-column .mmai-chat-window {
	position: relative !important;
	bottom: auto !important;
	right: auto !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #18181b !important;
	border: none !important;
	display: flex !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
	visibility: visible !important;
}

/* 3. Hide floating toggle completely */
.chat-assistant-column .mmai-toggle-btn {
	display: none !important;
}

/* 4. Style Chat Header to match deep automotive theme */
.chat-assistant-column .mmai-chat-header {
	background: #1e1e24 !important;
	border-bottom: 1px solid #27272a !important;
	padding: 12px 18px !important;
}

.chat-assistant-column .mmai-chat-title {
	font-family: 'Space Grotesk', sans-serif !important;
	font-weight: 700 !important;
	color: #ffffff !important;
}

.chat-assistant-column .mmai-avatar {
	background: rgba(215, 38, 61, 0.15) !important;
	border: 1px solid rgba(215, 38, 61, 0.3) !important;
	color: #d7263d !important;
}

.chat-assistant-column .mmai-status-dot {
	background: #3b82f6 !important;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* 5. Custom styling for messages body */
.chat-assistant-column .mmai-messages {
	background: #121214 !important;
	padding: 20px !important;
}

/* 6. High-end modern chat bubbles */
.chat-assistant-column .mmai-message-bubble {
	font-family: 'Outfit', sans-serif !important;
	font-size: 14.5px !important;
	line-height: 1.5 !important;
	padding: 12px 16px !important;
	border-radius: 14px !important;
}

.chat-assistant-column .mmai-message-user .mmai-message-bubble {
	background: #d7263d !important; /* Brembo Hot Red */
	color: #ffffff !important;
	border-bottom-right-radius: 4px !important;
	box-shadow: 0 4px 15px rgba(215, 38, 61, 0.25) !important;
}

.chat-assistant-column .mmai-message-bot .mmai-message-bubble {
	background: #1f1f23 !important; /* Deep carbon */
	color: #e4e4e7 !important;
	border-bottom-left-radius: 4px !important;
	border: 1px solid rgba(255, 255, 255, 0.05) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Styling custom typewriter cursor on load */
.typing-cursor {
	display: inline-block;
	width: 6px;
	height: 15px;
	background-color: #d7263d;
	margin-left: 2px;
	vertical-align: middle;
	animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
	0%, 100% { opacity: 0; }
	50%      { opacity: 1; }
}

/* Textarea input area styles override */
.chat-assistant-column .mmai-input-area {
	background: #18181b !important;
	border-top: 1px solid #27272a !important;
	padding: 14px 16px !important;
}

.chat-assistant-column .mmai-input {
	background: #121214 !important;
	border-color: #27272a !important;
	color: #ffffff !important;
	border-radius: 12px !important;
	padding: 10px 14px !important;
}

.chat-assistant-column .mmai-input:focus {
	border-color: #d7263d !important;
	box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.15) !important;
}

.chat-assistant-column .mmai-send-btn {
	background: #d7263d !important;
}

.chat-assistant-column .mmai-send-btn:hover:not(:disabled) {
	background: #b11d2e !important;
}

/* Emergency notice */
.chat-assistant-column .mmai-chat-footer {
	background: #18181b !important;
	border-top: 1px solid #27272a !important;
	color: #52525b !important;
	padding: 8px 12px !important;
}

/* ==========================================================================
   6. Custom AI Core Plugin Error Fallback
   ========================================================================== */
.mmai-plugin-error-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 40px 24px;
	background: #18181b;
}

.error-card {
	text-align: center;
	max-width: 440px;
	background: #121214;
	border: 1px solid #27272a;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.error-card h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 20px;
	margin: 16px 0 8px 0;
	color: #ffffff;
}

.error-card p {
	font-size: 13.5px;
	color: #a1a1aa;
	line-height: 1.5;
	margin: 8px 0;
}

.error-tip {
	background: rgba(215, 38, 61, 0.08);
	border: 1px solid rgba(215, 38, 61, 0.15);
	padding: 10px;
	border-radius: 8px;
	font-size: 12px !important;
	color: #fca5a5 !important;
	margin-top: 18px !important;
}

/* ==========================================================================
   7. Sci-Fi AI Activation Overlay
   ========================================================================== */
.ai-system-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000; /* Over everything including WP admin bar */
	background-color: #0d0d0e;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-system-overlay.deactivated {
	opacity: 0;
	transform: scale(1.05);
	pointer-events: none;
}

.neural-network-bg {
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(circle at 20% 30%, rgba(215, 38, 61, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 45%),
		radial-gradient(circle at 50% 50%, rgba(24, 24, 27, 0.95) 0%, #0d0d0e 100%);
	z-index: 1;
}

.activation-card {
	position: relative;
	z-index: 2;
	max-width: 580px;
	width: calc(100% - 40px);
	text-align: center;
	padding: 48px 36px;
	border-radius: 24px;
	background: rgba(18, 18, 20, 0.75);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
	animation: card-boot 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-boot {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

.system-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 3px;
	margin: 24px 0 4px 0;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.system-subtitle {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 16px;
	color: #3b82f6;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 20px 0;
}

.system-explainer {
	color: #a1a1aa;
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 30px;
}

.engage-ai-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 36px;
	border-radius: 30px;
	background: #ffffff;
	color: #0d0d0e;
	border: none;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.btn-glow {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #d7263d 0%, #3b82f6 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.btn-text {
	position: relative;
	z-index: 2;
	transition: color 0.3s ease;
}

.engage-ai-btn:hover {
	transform: scale(1.03);
	box-shadow: 0 0 40px rgba(215, 38, 61, 0.4);
}

.engage-ai-btn:hover .btn-glow {
	opacity: 1;
}

.engage-ai-btn:hover .btn-text {
	color: #ffffff;
}

.engage-ai-btn:active {
	transform: scale(0.98);
}

.audio-notice {
	font-size: 13px;
	color: #52525b;
	margin-top: 16px;
}

/* Orb & Emblem animations */
.ai-core-emblem {
	position: relative;
	width: 90px;
	height: 90px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gemma-orb {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #ff4d6d, #d7263d 60%, #5c0612);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 25px rgba(215, 38, 61, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.4);
	position: relative;
	z-index: 5;
}

.orb-inner {
	width: 14px;
	height: 14px;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-shadow: 0 0 12px #fff;
	filter: blur(1px);
	animation: orb-flare 4s infinite ease-in-out;
}

@keyframes orb-flare {
	0%, 100% { transform: scale(1); opacity: 0.7; }
	50%      { transform: scale(1.3); opacity: 1; }
}

.core-ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(215, 38, 61, 0.15);
}

.core-ring-1 {
	width: 90px;
	height: 90px;
	border-top-color: rgba(215, 38, 61, 0.6);
	border-bottom-color: rgba(59, 130, 246, 0.5);
	animation: ring-spin-cw 12s infinite linear;
}

.core-ring-2 {
	width: 76px;
	height: 76px;
	border-left-color: rgba(215, 38, 61, 0.5);
	border-right-color: rgba(59, 130, 246, 0.4);
	animation: ring-spin-ccw 8s infinite linear;
}

.core-ring-3 {
	width: 62px;
	height: 62px;
	border-top-color: rgba(255, 255, 255, 0.2);
	border-left-color: rgba(215, 38, 61, 0.7);
	animation: ring-spin-cw 5s infinite linear;
}

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

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

/* ==========================================================================
   8. Standard Fallback Generic Styles (For Blog/Standard Pages)
   ========================================================================== */
.generic-page-main {
	background: #121214;
	padding: 60px 20px;
}

.generic-container {
	max-width: 800px;
	margin: 0 auto;
}

.generic-article-card {
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.entry-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 24px 0;
	border-bottom: 2px solid #27272a;
	padding-bottom: 12px;
}

.entry-content {
	font-size: 16px;
	line-height: 1.7;
	color: #d4d4d8;
}

.entry-content p {
	margin: 0 0 20px 0;
}

/* ==========================================================================
   9. Footer Design System
   ========================================================================== */
.site-footer {
	background: #0f0f11;
	border-top: 1px solid #27272a;
	padding: 60px 24px 30px;
	font-size: 13.5px;
	color: #71717a;
}

.footer-grid {
	max-width: 1520px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #1f1f23;
}

@media screen and (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

.footer-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px 0;
	text-transform: uppercase;
}

.footer-description {
	line-height: 1.6;
	color: #a1a1aa;
}

.footer-subtitle {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 16px 0;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 8px;
	color: #a1a1aa;
}

.footer-contact a {
	color: #3b82f6;
	text-decoration: none;
}

.footer-contact a:hover {
	text-decoration: underline;
}

.footer-blessing {
	font-style: italic;
	color: #52525b;
	margin-top: 16px;
	font-size: 12px;
}

.footer-bottom {
	max-width: 1520px;
	margin: 20px auto 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

@media screen and (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
	}
}

.footer-copyright p {
	margin: 4px 0;
}

.footer-developer {
	color: #3f3f46;
}

.footer-developer a {
	color: inherit;
}

/* ==========================================================================
   10. Mobile Responsiveness Adjustments
   ========================================================================== */

/* Hide redundant plugin "Tap to start" overlay globally */
#mmai-tap-to-start,
.mmai-tap-to-start {
	display: none !important;
}

@media screen and (max-width: 991px) {
	.portal-main-container {
		padding: 16px 12px;
	}
	
	.portal-grid {
		flex-direction: column-reverse !important;
	}
	
	.service-cell {
		height: auto !important; /* Resolves mobile accordion collapse bug */
	}
	
	.service-cell-header {
		height: 75px !important; /* Keeps the collapsed headers neat and compact on mobile */
	}
	
	.high-tech-chassis {
		height: 550px;
	}
}
