/**
 * Premium Knight Online Market Tracker Stylesheet
 * Scoped inside .ko-tracker-wrapper to prevent theme conflicts
 * Overhauled to deliver a premium, high-fidelity dark-themed gaming UI
 */

:root {
	--ko-bg-main: #060814;
	--ko-bg-card: #0c0f24;
	--ko-bg-input: #121636;
	--ko-primary: #7C3AED;
	--ko-primary-glow: rgba(124, 58, 237, 0.4);
	--ko-primary-light: #C084FC;
	--ko-accent-green: #10B981;
	--ko-accent-red: #EF4444;
	--ko-accent-yellow: #F59E0B;
	--ko-text-white: #F8FAFC;
	--ko-text-gray: #94A3B8;
	--ko-text-dim: #64748B;
	--ko-border-glow: rgba(139, 92, 246, 0.2);
	--ko-border-subtle: rgba(148, 163, 184, 0.1);
	--ko-radius-sm: 6px;
	--ko-radius-md: 12px;
	--ko-radius-lg: 20px;
	--ko-font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ko-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Master Wrapper - Dark Gaming Theme */
.ko-tracker-wrapper.ko-dark-theme {
	font-family: var(--ko-font);
	color: var(--ko-text-white);
	background: var(--ko-bg-main);
	border: 1px solid var(--ko-border-glow);
	border-radius: var(--ko-radius-lg);
	box-shadow: var(--ko-shadow), 0 0 40px rgba(124, 58, 237, 0.08);
	padding: 24px;
	margin: 20px auto;
	max-width: 1380px;
	box-sizing: border-box;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.ko-tracker-wrapper.ko-dark-theme * {
	box-sizing: border-box;
}

/* Top Ad Banner Simulation */
.ko-ad-banner-strip {
	background: linear-gradient(90deg, #b91c1c, #ea580c, #b91c1c);
	border-radius: var(--ko-radius-md);
	padding: 10px 16px;
	margin-bottom: 24px;
	box-shadow: 0 0 15px rgba(234, 88, 12, 0.25);
	border: 1px solid rgba(253, 186, 116, 0.3);
}

.ko-ad-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ko-ad-badge {
	background: #111827;
	color: #fbbf24;
	font-size: 11px;
	font-weight: 900;
	padding: 4px 10px;
	border-radius: 4px;
	letter-spacing: 0.5px;
}

.ko-ad-text {
	font-weight: 800;
	font-size: 13px;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	letter-spacing: 0.5px;
}

.ko-ad-btn {
	background: #fff;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 900;
	padding: 6px 14px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.ko-ad-btn:hover {
	transform: scale(1.05);
	background: #fdf2f2;
}

/* Layout Grid Container */
.ko-grid-container {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
}

@media (max-width: 1024px) {
	.ko-grid-container {
		grid-template-columns: 1fr;
	}
}

/* Left Sidebar Panel */
.ko-sidebar-panel {
	background: var(--ko-bg-card);
	border: 1px solid var(--ko-border-glow);
	border-radius: var(--ko-radius-md);
	padding: 20px;
	align-self: start;
	box-shadow: var(--ko-shadow);
}

.ko-sidebar-header {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--ko-border-subtle);
	padding-bottom: 12px;
	margin-bottom: 20px;
}

.ko-sidebar-header h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ko-text-white);
}

.ko-icon-glow {
	color: var(--ko-primary-light);
	filter: drop-shadow(0 0 6px var(--ko-primary));
}

.ko-sidebar-section {
	margin-bottom: 20px;
}

.ko-sidebar-section:last-child {
	margin-bottom: 0;
}

.ko-section-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--ko-text-gray);
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ko-section-title-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	border-bottom: 1px solid var(--ko-border-subtle);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.ko-section-title-toggle h4 {
	font-size: 12px;
	font-weight: 700;
	color: var(--ko-text-gray);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ko-section-title-toggle .dashicons {
	font-size: 14px;
	color: var(--ko-text-dim);
}

/* Sidebar Search inputs */
.ko-sidebar-input-wrapper {
	position: relative;
	width: 100%;
}

.ko-sidebar-input-wrapper .dashicons {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ko-text-dim);
	font-size: 18px;
}

.ko-sidebar-input {
	width: 100%;
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-sm);
	padding: 10px 12px 10px 38px;
	color: #fff;
	font-family: var(--ko-font);
	font-size: 13px;
	outline: none;
	transition: all 0.2s;
}

.ko-sidebar-input:focus {
	border-color: var(--ko-primary);
	box-shadow: 0 0 0 2px var(--ko-primary-glow);
}

/* Custom Checkboxes */
.ko-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ko-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	user-select: none;
}

.ko-checkbox-label input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.ko-checkbox-custom {
	position: relative;
	height: 18px;
	width: 18px;
	background-color: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	border-radius: 4px;
	margin-right: 10px;
	transition: all 0.2s;
}

.ko-checkbox-label:hover input ~ .ko-checkbox-custom {
	border-color: var(--ko-primary-light);
}

.ko-checkbox-label input:checked ~ .ko-checkbox-custom {
	background-color: var(--ko-primary);
	border-color: var(--ko-primary);
	box-shadow: 0 0 8px var(--ko-primary-glow);
}

.ko-checkbox-custom::after {
	content: "";
	position: absolute;
	display: none;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ko-checkbox-label input:checked ~ .ko-checkbox-custom::after {
	display: block;
}

.ko-label-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--ko-text-gray);
}

.ko-checkbox-label input:checked ~ .ko-label-text {
	color: #fff;
}

/* Price range min max inputs */
.ko-price-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ko-price-input {
	width: 100%;
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-sm);
	padding: 8px 10px;
	color: #fff;
	font-family: var(--ko-font);
	font-size: 12px;
	outline: none;
	text-align: center;
	transition: all 0.2s;
}

.ko-price-input:focus {
	border-color: var(--ko-primary);
	box-shadow: 0 0 0 2px var(--ko-primary-glow);
}

.ko-range-divider {
	color: var(--ko-text-dim);
}

/* Main Dashboard column styles */
.ko-main-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Dashboard Header area */
.ko-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.ko-brand-block {
	display: flex;
	flex-direction: column;
}

.ko-brand-logo-container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ko-logo-icon {
	background: linear-gradient(135deg, var(--ko-primary), var(--ko-primary-light));
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	padding: 5px 8px;
	border-radius: 6px;
	box-shadow: 0 0 10px var(--ko-primary-glow);
}

.ko-logo-title {
	font-size: 28px;
	font-weight: 900;
	margin: 0;
	letter-spacing: -0.5px;
	color: #fff;
}

.ko-logo-title span {
	background: linear-gradient(135deg, var(--ko-primary-light), #f472b6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.ko-brand-subtitle {
	font-size: 13px;
	color: var(--ko-text-gray);
	margin: 5px 0 0 0;
}

/* Gold bar rates card style */
.ko-gb-ticker-card {
	background: var(--ko-bg-card);
	border: 1px solid var(--ko-border-glow);
	border-radius: var(--ko-radius-md);
	padding: 12px 18px;
	box-shadow: var(--ko-shadow);
	min-width: 260px;
}

.ko-ticker-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--ko-text-gray);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.ko-pulse-ping {
	width: 6px;
	height: 6px;
	background: var(--ko-accent-green);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: koPulseGlow 1.8s infinite;
}

.ko-ticker-rates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ko-rate-item {
	display: flex;
	flex-direction: column;
}

.ko-rate-item.buy {
	border-right: 1px solid var(--ko-border-subtle);
	padding-right: 8px;
}

.ko-rate-label {
	font-size: 9px;
	font-weight: 800;
	color: var(--ko-text-dim);
}

.ko-rate-value {
	font-family: monospace;
	font-size: 15px;
	font-weight: 800;
	margin-top: 2px;
}

.ko-rate-item.buy .ko-rate-value {
	color: var(--ko-accent-green);
}

.ko-rate-item.sell .ko-rate-value {
	color: var(--ko-accent-red);
}

/* Server pill tab buttons strip */
.ko-servers-navigation-strip {
	overflow-x: auto;
	width: 100%;
	padding-bottom: 6px;
}

.ko-server-tab-container {
	display: flex;
	gap: 8px;
	white-space: nowrap;
}

.ko-server-tab-btn {
	background: var(--ko-bg-card);
	color: var(--ko-text-gray);
	border: 1px solid var(--ko-border-subtle);
	font-family: var(--ko-font);
	font-size: 12px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.ko-server-tab-btn:hover {
	border-color: var(--ko-primary);
	color: #fff;
	background: rgba(124, 58, 237, 0.1);
}

.ko-server-tab-btn.active {
	background: var(--ko-primary);
	color: #fff;
	border-color: var(--ko-primary);
	box-shadow: 0 0 15px var(--ko-primary-glow);
	transform: translateY(-1px);
}

/* Horizontal Filters toolbar */
.ko-horizontal-filters-strip {
	background: var(--ko-bg-card);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-md);
	padding: 12px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: var(--ko-shadow);
}

/* Toolbar select boxes */
.ko-filter-select-box {
	position: relative;
}

.ko-toolbar-select {
	background: var(--ko-bg-input);
	color: var(--ko-text-white);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-sm);
	padding: 8px 30px 8px 12px;
	font-family: var(--ko-font);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: all 0.2s;
}

.ko-toolbar-select:focus {
	border-color: var(--ko-primary);
}

.ko-filter-select-box::after {
	content: '\f140';
	font-family: dashicons;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ko-text-dim);
	font-size: 14px;
	pointer-events: none;
}

/* Toolbar Search input box */
.ko-toolbar-search-container {
	position: relative;
	flex: 1;
	min-width: 180px;
}

.ko-toolbar-search-container .dashicons {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ko-text-dim);
	font-size: 16px;
}

.ko-toolbar-search-input {
	width: 100%;
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-sm);
	padding: 8px 10px 8px 34px;
	color: #fff;
	font-family: var(--ko-font);
	font-size: 12px;
	outline: none;
	transition: all 0.2s;
}

.ko-toolbar-search-input:focus {
	border-color: var(--ko-primary);
}

/* Segmented Market switch */
.ko-segmented-market-toggle {
	display: flex;
	background: var(--ko-bg-input);
	padding: 3px;
	border-radius: var(--ko-radius-sm);
	border: 1px solid var(--ko-border-subtle);
}

.ko-market-segment-btn {
	background: none;
	border: none;
	font-family: var(--ko-font);
	font-size: 11px;
	font-weight: 800;
	color: var(--ko-text-gray);
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
}

.ko-market-segment-btn.active {
	background: var(--ko-primary);
	color: #fff;
	box-shadow: 0 0 8px var(--ko-primary-glow);
}

/* Main Listings Stage */
.ko-tracker-main-stage {
	position: relative;
	border: 1px solid var(--ko-border-glow);
	border-radius: var(--ko-radius-md);
	background: var(--ko-bg-card);
	overflow: hidden;
	box-shadow: var(--ko-shadow);
	min-height: 350px;
}

.ko-table-responsive-container {
	width: 100%;
	overflow-x: auto;
}

/* Table grid styles */
.ko-data-grid-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 13px;
}

.ko-data-grid-table th {
	background: rgba(12, 15, 36, 0.95);
	color: var(--ko-text-gray);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 18px;
	border-bottom: 2px solid var(--ko-border-subtle);
	white-space: nowrap;
}

.ko-data-grid-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ko-border-subtle);
	vertical-align: middle;
	color: var(--ko-text-gray);
	transition: all 0.15s ease;
}

/* Row Hover Interactive effects */
.ko-pazar-row {
	transition: all 0.2s;
}

.ko-pazar-row:hover {
	background: rgba(139, 92, 246, 0.04);
}

.ko-pazar-row:hover td {
	color: #fff;
}

/* Item details cells */
.ko-item-cell-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ko-item-icon-td {
	background: var(--ko-bg-input);
	border-radius: 6px;
	width: 44px;
	height: 44px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--ko-border-glow);
	flex-shrink: 0;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.ko-item-details-td {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ko-item-name-cell {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	transition: all 0.2s;
}

.ko-pazar-row:hover .ko-item-name-cell {
	color: var(--ko-primary-light);
	transform: translateX(2px);
}

.ko-history-btn {
	background: rgba(192, 132, 252, 0.1);
	border: 1px solid rgba(192, 132, 252, 0.2);
	color: var(--ko-primary-light);
	font-family: var(--ko-font);
	font-size: 10px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	cursor: pointer;
	align-self: start;
	transition: all 0.2s;
}

.ko-history-btn:hover {
	background: var(--ko-primary);
	border-color: var(--ko-primary);
	color: #fff;
	box-shadow: 0 0 6px var(--ko-primary-glow);
}

/* Merchant details wrapper */
.ko-merchant-coords-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ko-merchant-name-label {
	font-weight: 700;
	color: #fff;
	font-size: 13px;
}

.ko-coords-cell-link {
	font-family: monospace;
	font-size: 11px;
	color: var(--ko-accent-green);
	text-decoration: none;
	transition: all 0.2s;
	display: inline-block;
	align-self: start;
	letter-spacing: 0.5px;
}

.ko-coords-cell-link:hover {
	color: #fff;
	text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.ko-success-text {
	color: #34d399;
	font-weight: 900;
}

/* Location Badge styling */
.ko-location-badge {
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.2);
	color: var(--ko-accent-yellow);
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Prices red color cells */
.ko-price-red-cell {
	color: var(--ko-accent-red);
	font-family: monospace;
	font-size: 16px;
	font-weight: 800;
	text-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

/* Date cells styles */
.ko-date-cell-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.ko-date-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--ko-text-white);
}

.ko-time-diff-sub {
	font-size: 10px;
	color: var(--ko-text-dim);
}

/* Loading spin animations overlays */
.ko-loading-overlay-block {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(6, 8, 20, 0.85);
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(4px);
	transition: opacity 0.3s ease;
}

.ko-spinner-loader {
	width: 40px;
	height: 40px;
	position: relative;
	margin-bottom: 12px;
}

.ko-double-bounce-1, .ko-double-bounce-2 {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: var(--ko-primary);
	opacity: 0.6;
	position: absolute;
	top: 0;
	left: 0;
	animation: koBounceAnimation 2.0s infinite ease-in-out;
}

.ko-double-bounce-2 {
	animation-delay: -1.0s;
}

.ko-loader-label {
	color: var(--ko-primary-light);
	font-weight: 700;
	font-size: 13px;
	margin: 0;
}

/* Empty states */
.ko-empty-state-showcase {
	padding: 60px 20px;
	text-align: center;
}

.ko-empty-icon-shield {
	background: rgba(124, 58, 237, 0.1);
	color: var(--ko-primary-light);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
	border: 1px solid var(--ko-border-glow);
}

.ko-empty-icon-shield span {
	font-size: 32px !important;
	width: 32px;
	height: 32px;
}

.ko-empty-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #fff;
}

.ko-empty-message {
	max-width: 420px;
	margin: 0 auto;
	color: var(--ko-text-gray);
	font-size: 13px;
	line-height: 1.5;
}

/* Dashboard Footer block */
.ko-tracker-dashboard-footer {
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--ko-border-subtle);
	padding-top: 15px;
	font-size: 12px;
	color: var(--ko-text-dim);
}

.ko-meta-pill {
	display: inline-flex;
	align-items: center;
	background: var(--ko-bg-input);
	color: var(--ko-text-gray);
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 600;
	border: 1px solid var(--ko-border-subtle);
}

.ko-meta-dot {
	width: 6px;
	height: 6px;
	background: var(--ko-primary);
	border-radius: 50%;
	display: inline-block;
	margin-right: 6px;
}

.ko-footer-branding {
	font-weight: 500;
}

/* Animated ping glow */
@keyframes koPulseGlow {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1.1);
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

@keyframes koBounceAnimation {
	0%, 100% { 
		transform: scale(0.0);
	} 50% { 
		transform: scale(1.0);
	}
}

/* Price history popup modal styles */
.ko-history-modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ko-modal-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(3, 4, 10, 0.85);
	backdrop-filter: blur(5px);
}

.ko-modal-content {
	position: relative;
	background: var(--ko-bg-card);
	border: 1px solid var(--ko-border-glow);
	width: 520px;
	max-width: 95%;
	border-radius: var(--ko-radius-lg);
	box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(139, 92, 246, 0.15);
	overflow: hidden;
	z-index: 10;
	padding: 24px;
	animation: koModalOpen 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes koModalOpen {
	from { opacity: 0; transform: scale(0.95) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.ko-modal-close-btn {
	position: absolute;
	right: 20px;
	top: 15px;
	background: none;
	border: none;
	color: var(--ko-text-gray);
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	transition: all 0.2s;
}

.ko-modal-close-btn:hover {
	color: #fff;
}

.ko-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--ko-border-subtle);
	padding-bottom: 14px;
	margin-bottom: 20px;
}

.ko-modal-header h3 {
	font-size: 18px;
	font-weight: 900;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
}

.ko-modal-item-title-block {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.ko-modal-item-icon {
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-glow);
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.ko-modal-item-title-block h4 {
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 4px 0;
	color: #fff;
}

.ko-modal-badge {
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	color: var(--ko-text-gray);
	font-size: 9px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ko-modal-badge.job {
	background: rgba(124, 58, 237, 0.15);
	border-color: rgba(124, 58, 237, 0.25);
	color: var(--ko-primary-light);
}

/* History Chart Visual SVG graph */
.ko-history-chart-wrapper {
	background: var(--ko-bg-input);
	border: 1px solid var(--ko-border-subtle);
	border-radius: var(--ko-radius-md);
	padding: 16px;
	margin-bottom: 20px;
}

.ko-chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	font-weight: 800;
	color: var(--ko-text-gray);
	margin-bottom: 12px;
	text-transform: uppercase;
}

.ko-chart-header strong {
	color: var(--ko-accent-red);
	font-size: 13px;
	font-family: monospace;
}

.ko-history-trend-svg {
	width: 100%;
	height: 100px;
	overflow: visible;
}

.ko-chart-endpoint {
	animation: koPulseRed 1.8s infinite;
}

@keyframes koPulseRed {
	0% { r: 5; opacity: 1; }
	50% { r: 8; opacity: 0.5; }
	100% { r: 5; opacity: 1; }
}

.ko-chart-labels {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--ko-text-dim);
	margin-top: 8px;
	font-weight: 700;
}

/* History list logger styling */
.ko-history-logs-section h5 {
	font-size: 12px;
	font-weight: 800;
	color: var(--ko-text-gray);
	text-transform: uppercase;
	margin: 0 0 12px 0;
	letter-spacing: 0.5px;
}

.ko-history-logs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 160px;
	overflow-y: auto;
}

.ko-history-logs-list li {
	background: var(--ko-bg-input);
	border-left: 3px solid var(--ko-primary);
	padding: 8px 12px;
	border-radius: 0 6px 6px 0;
	font-size: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.ko-log-user {
	color: #fff;
}

.ko-log-action {
	color: var(--ko-text-gray);
}

.ko-log-price {
	color: var(--ko-accent-red);
	font-family: monospace;
	font-weight: 700;
}

.ko-log-time {
	color: var(--ko-text-dim);
	font-size: 11px;
}

/* Utility classes */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
