/* TeknoTok AI Translator Admin Layout Styles - v1.1.0 */
:root {
	--teknotok-primary: #6366f1;
	--teknotok-primary-hover: #4f46e5;
	--teknotok-bg-card: #ffffff;
	--teknotok-border: #e2e8f0;
	--teknotok-text: #0f172a;
	--teknotok-text-muted: #64748b;
	--teknotok-radius: 16px;
	--teknotok-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.teknotok-ait-wrap {
	margin: 24px 24px 0 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--teknotok-text);
	max-width: calc(100vw - 200px);
	box-sizing: border-box;
	overflow-x: hidden;
}

.teknotok-ait-wrap h1 {
	font-weight: 800;
	font-size: 28px;
	color: var(--teknotok-text);
	margin-bottom: 24px;
	background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	float: none !important;
}

.teknotok-ait-container {
	margin-top: 24px;
	max-width: 1180px;
}

.teknotok-settings-panel {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	box-shadow: var(--teknotok-shadow);
	margin-bottom: 18px;
	padding: 24px;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: break-word;
}

.teknotok-settings-panel h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.teknotok-settings-panel .subtitle {
	margin: 0 0 12px;
	color: var(--teknotok-text-muted);
}

.teknotok-settings-advanced summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	color: var(--teknotok-text);
}

.teknotok-settings-advanced[open] summary {
	margin-bottom: 12px;
}

.teknotok-settings-advanced:not([open]) > :not(summary) {
	display: none;
}

.teknotok-inline-warning {
	color: #b91c1c;
	font-weight: 600;
	margin-top: 12px;
}

.teknotok-language-warning {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #dc2626;
	border-radius: 8px;
	box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
	color: #7f1d1d;
	font-size: 13px;
	line-height: 1.45;
	padding: 10px 12px;
}

/* Glassmorphic Tabs Navigation */
.teknotok-ait-wrap .nav-tab-wrapper {
	border-bottom: 2px solid var(--teknotok-border);
	margin-bottom: 24px;
	padding-bottom: 0;
	display: flex;
	gap: 8px;
}

.teknotok-ait-wrap .nav-tab {
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-bottom: none;
	color: var(--teknotok-text-muted);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	border-radius: 10px 10px 0 0;
	margin-right: 0;
	transition: all 0.2s ease-in-out;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	bottom: -2px;
}

.teknotok-ait-wrap .nav-tab-active {
	background: var(--teknotok-bg-card);
	border-color: var(--teknotok-border) var(--teknotok-border) transparent;
	color: var(--teknotok-primary-hover);
	font-weight: 700;
	box-shadow: 0 -4px 10px -4px rgba(99, 102, 241, 0.1);
}

.teknotok-ait-wrap .nav-tab-active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #6366f1, #4f46e5);
	border-radius: 10px 10px 0 0;
}

.teknotok-ait-wrap .nav-tab:hover:not(.nav-tab-active) {
	background: #f1f5f9;
	color: var(--teknotok-text);
	border-color: var(--teknotok-border);
}

/* Premium Card Design System */
.teknotok-ait-wrap .tab-content {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	padding: 30px;
	box-shadow: var(--teknotok-shadow);
	margin-bottom: 24px;
}

.teknotok-ait-card {
	background: var(--teknotok-bg-card);
	border: 1px solid var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	box-shadow: var(--teknotok-shadow);
	padding: 24px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
	overflow-wrap: break-word;
}

.teknotok-ait-card:hover {
	box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.teknotok-ait-card h2 {
	margin-top: 0;
	font-weight: 700;
	font-size: 18px;
	color: var(--teknotok-text);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.teknotok-ait-card .subtitle {
	color: var(--teknotok-text-muted);
	font-size: 14px;
	margin-bottom: 24px;
}

/* Select, Inputs Styling */
.teknotok-ait-wrap select,
.teknotok-ait-wrap input[type="text"],
.teknotok-ait-wrap input[type="password"],
.teknotok-ait-wrap input[type="number"],
.teknotok-ait-wrap input[type="url"],
.teknotok-ait-wrap input[type="search"] {
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--teknotok-text);
	background: #f8fafc;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.teknotok-ait-wrap select:focus,
.teknotok-ait-wrap input[type="text"]:focus,
.teknotok-ait-wrap input[type="password"]:focus,
.teknotok-ait-wrap input[type="number"]:focus,
.teknotok-ait-wrap input[type="url"]:focus,
.teknotok-ait-wrap input[type="search"]:focus {
	border-color: var(--teknotok-primary);
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Premium Interactive Toggle Switch (iOS styled) */
.teknotok-toggle-container {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	user-select: none;
}

.teknotok-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.teknotok-toggle-track {
	position: relative;
	width: 48px;
	height: 24px;
	background-color: #cbd5e1;
	border-radius: 20px;
	transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	margin-right: 12px;
	display: inline-block;
	vertical-align: middle;
}

.teknotok-toggle-track::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ffffff;
	top: 3px;
	left: 3px;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.teknotok-toggle-input:checked + .teknotok-toggle-track {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.teknotok-toggle-input:checked + .teknotok-toggle-track::before {
	transform: translateX(24px);
}

.teknotok-toggle-input:focus + .teknotok-toggle-track {
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Custom Primary Buttons */
.teknotok-ait-wrap .button-primary {
	background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
	border: none !important;
	font-weight: 600 !important;
	padding: 10px 24px !important;
	height: auto !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -2px rgba(99, 102, 241, 0.2) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	color: #ffffff !important;
	text-shadow: none !important;
}

.teknotok-ait-wrap .button-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 12px -1px rgba(99, 102, 241, 0.3), 0 4px 8px -2px rgba(99, 102, 241, 0.3) !important;
	background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
}

.teknotok-service-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 22px;
	align-items: center;
	margin-top: 20px;
	border-color: #dbe3ef;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.teknotok-service-content {
	min-width: 0;
}

.teknotok-service-kicker {
	display: inline-flex;
	align-items: center;
	margin-bottom: 8px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
	padding: 6px 9px;
	text-transform: uppercase;
}

.teknotok-service-panel h2 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
}

.teknotok-service-panel p {
	max-width: 720px;
	margin: 0;
	color: var(--teknotok-text-muted);
	font-size: 14px;
	line-height: 1.55;
}

.teknotok-service-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.teknotok-service-actions .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	white-space: nowrap;
}

.teknotok-service-main-link {
	min-width: 160px;
}

.teknotok-widget-designer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	gap: 18px;
	align-items: start;
	max-width: 980px;
}

.teknotok-widget-designer-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.teknotok-widget-designer-controls label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	font-weight: 700;
	color: var(--teknotok-text);
}

.teknotok-widget-designer-controls label > span {
	font-size: 12px;
	color: var(--teknotok-text-muted);
}

.teknotok-widget-toggle {
	flex-direction: row !important;
	align-items: center;
	gap: 8px;
	padding-top: 24px;
}

.teknotok-widget-toggle input {
	margin: 0;
}

.teknotok-widget-colors {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-column: 1 / -1;
	gap: 10px;
}

.teknotok-widget-colors input[type="color"] {
	width: 100%;
	height: 40px;
	padding: 3px;
}

.teknotok-widget-preview {
	position: sticky;
	top: 42px;
}

.teknotok-widget-preview-surface {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) -10px 0/20px 20px,
		linear-gradient(225deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) -10px 0/20px 20px,
		linear-gradient(315deg, rgba(15, 23, 42, 0.06) 25%, transparent 25%) 0 0/20px 20px,
		linear-gradient(45deg, rgba(15, 23, 42, 0.06) 25%, #f8fafc 25%) 0 0/20px 20px;
}

.teknotok-widget-preview .teknotok-ait-switcher-container {
	--teknotok-switcher-bg: rgba(255, 255, 255, 0.92);
	--teknotok-switcher-bg-solid: #ffffff;
	--teknotok-switcher-text: #1e293b;
	--teknotok-switcher-border: #93c5fd;
	--teknotok-switcher-accent: #2563eb;
	--teknotok-switcher-radius: 999px;
	--teknotok-switcher-border-width: 1px;
	position: relative;
	display: inline-block;
	font-size: 14px;
	color: var(--teknotok-switcher-text);
}

.teknotok-widget-preview .teknotok-ait-selected-lang,
.teknotok-widget-preview .teknotok-ait-languages-dropdown {
	background: var(--teknotok-switcher-bg);
	border: var(--teknotok-switcher-border-width) solid var(--teknotok-switcher-border);
	color: var(--teknotok-switcher-text);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.35);
	box-sizing: border-box;
}

.teknotok-widget-preview .teknotok-ait-selected-lang {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: var(--teknotok-switcher-radius);
	font-weight: 700;
}

.teknotok-widget-preview .teknotok-ait-languages-dropdown {
	position: static;
	display: block;
	width: 220px;
	margin: 8px 0 0;
	padding: 4px 0;
	list-style: none;
	border-radius: min(var(--teknotok-switcher-radius), 14px);
}

.teknotok-widget-preview .teknotok-ait-languages-dropdown li {
	margin: 4px 6px;
	border-radius: 8px;
}

.teknotok-widget-preview .teknotok-ait-languages-dropdown a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	color: inherit;
	text-decoration: none;
}

.teknotok-widget-preview .teknotok-ait-languages-dropdown li.active {
	background: color-mix(in srgb, var(--teknotok-switcher-accent) 16%, transparent);
	color: var(--teknotok-switcher-accent);
}

.teknotok-widget-preview .teknotok-ait-flag {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	flex: 0 0 auto;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.teknotok-widget-preview .teknotok-ait-arrow {
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 4px;
}

.teknotok-widget-preview .teknotok-ait-referral-item {
	border-top: 1px solid color-mix(in srgb, var(--teknotok-switcher-border) 60%, transparent);
	margin-top: 6px;
	padding-top: 4px;
}

.teknotok-widget-preview .teknotok-ait-referral-title {
	margin: 0 auto;
	color: #94a3b8;
	font-size: 10px;
	font-weight: 700;
}

.teknotok-widget-preview .teknotok-ait-no-flags .teknotok-ait-flag {
	display: none;
}

@media (max-width: 960px) {
	.teknotok-widget-designer {
		grid-template-columns: 1fr;
	}

	.teknotok-widget-preview {
		position: static;
	}
}

@media (max-width: 640px) {
	.teknotok-widget-designer-controls,
	.teknotok-widget-colors {
		grid-template-columns: 1fr;
	}
}

.teknotok-language-picker {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	background: #ffffff;
	overflow: visible;
}

.teknotok-language-picker-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #f8fafc;
	border-bottom: 1px solid var(--teknotok-border);
	color: var(--teknotok-text);
}

.teknotok-language-picker-head > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.teknotok-language-total-count {
	color: var(--teknotok-text-muted);
	font-size: 12px;
	font-weight: 700;
}

.teknotok-selected-languages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 42px;
	padding: 12px;
}

.teknotok-selected-language,
.teknotok-selected-empty {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 30px;
	padding: 6px 10px;
}

.teknotok-selected-language {
	background: #e0f2fe;
	border: 1px solid #7dd3fc;
	color: #075985;
}

.teknotok-selected-empty {
	background: #f8fafc;
	border: 1px dashed var(--teknotok-border);
	color: var(--teknotok-text-muted);
}

.teknotok-language-groups {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
}

.teknotok-language-group {
	background: #ffffff;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	overflow: hidden;
}

.teknotok-language-group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #f8fafc;
	cursor: pointer;
	font-weight: 700;
	color: var(--teknotok-text);
}

.teknotok-language-group[open] summary {
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-language-group-count {
	flex: 0 0 auto;
	color: var(--teknotok-text-muted);
	font-size: 12px;
	font-weight: 600;
}

.teknotok-language-list-card {
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
}

/* Target Languages Grid */
.teknotok-languages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
	padding: 10px;
	max-width: 100%;
}

.teknotok-featured-languages {
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	padding: 10px 12px;
}

.teknotok-languages-grid-simple {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	padding: 12px;
	max-height: min(620px, calc(100vh - 300px));
	overflow-x: hidden;
	overflow-y: scroll;
	scrollbar-color: rgba(79, 70, 229, 0.8) #e2e8f0;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
	overscroll-behavior: contain;
}

.teknotok-languages-grid-simple::-webkit-scrollbar {
	width: 11px;
}

.teknotok-languages-grid-simple::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 999px;
}

.teknotok-languages-grid-simple::-webkit-scrollbar-thumb {
	background: rgba(79, 70, 229, 0.8);
	border: 2px solid #f8fafc;
	border-radius: 999px;
}

.teknotok-languages-grid-simple::-webkit-scrollbar-thumb:hover {
	background: rgba(79, 70, 229, 0.65);
}

.teknotok-lang-checkbox-label {
	display: flex !important;
	align-items: center;
	padding: 8px 10px;
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	font-size: 12px;
	color: var(--teknotok-text);
	user-select: none;
	min-width: 0;
	overflow-wrap: anywhere;
}

.teknotok-lang-checkbox-label.is-filtered-out,
.teknotok-language-group.is-filtered-out {
	display: none !important;
}

.teknotok-lang-checkbox-label:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

.teknotok-lang-checkbox-label input[type="checkbox"] {
	flex: 0 0 auto;
	margin-right: 8px !important;
	border-radius: 4px;
	border-color: #cbd5e1;
}

.teknotok-lang-checkbox-label span {
	min-width: 0;
}

.teknotok-lang-checkbox-label.is-selected {
	background: #dcfce7;
	border-color: #22c55e;
	color: #166534;
	box-shadow: 0 2px 4px rgba(34, 197, 94, 0.08);
}

.teknotok-language-drawer {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

body.teknotok-language-drawer-open {
	overflow: hidden;
}

.teknotok-language-drawer.is-open {
	display: block;
}

.teknotok-language-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
}

.teknotok-language-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(1120px, calc(100vw - 56px));
	height: 100%;
	background: #ffffff;
	box-shadow: -18px 0 40px rgba(15, 23, 42, 0.22);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.22s ease;
}

.teknotok-language-drawer.is-open .teknotok-language-drawer-panel {
	transform: translateX(0);
}

.teknotok-language-drawer-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 20px;
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-language-drawer-header h3 {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.25;
}

.teknotok-language-drawer-header p {
	margin: 0;
	color: var(--teknotok-text-muted);
	font-size: 13px;
}

.teknotok-close-language-drawer {
	color: var(--teknotok-text-muted);
	line-height: 1;
	min-width: 32px;
}

.teknotok-language-search {
	margin: 14px 20px 8px;
	width: calc(100% - 40px);
}

.teknotok-language-drawer .teknotok-language-groups {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	padding: 10px 20px;
}

.teknotok-language-drawer-footer {
	flex: 0 0 auto;
	padding: 14px 20px;
	background: #ffffff;
	border-top: 1px solid var(--teknotok-border);
	box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}

.teknotok-free-language-warning {
	margin: 6px 20px 8px;
}

.teknotok-max-language-warning {
	margin: 6px 20px 8px;
}

.teknotok-language-empty-search {
	color: var(--teknotok-text-muted);
	font-weight: 700;
	margin: 18px 0;
	text-align: center;
}

/* Form Tables Modern Restructuring */
.teknotok-ait-wrap .form-table th {
	font-weight: 600;
	color: var(--teknotok-text);
	width: 220px;
	padding: 20px 10px 20px 0;
}

.teknotok-ait-wrap .form-table td {
	padding: 15px 10px;
	vertical-align: middle;
	max-width: 100%;
}

.teknotok-ait-wrap .form-table select,
.teknotok-ait-wrap .form-table input[type="text"],
.teknotok-ait-wrap .form-table input[type="password"],
.teknotok-ait-wrap .form-table input[type="number"],
.teknotok-ait-wrap .form-table input[type="url"],
.teknotok-ait-wrap .form-table input[type="search"] {
	max-width: 100%;
}

.teknotok-ait-wrap .form-table tr {
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-ait-wrap .form-table tr:last-child {
	border-bottom: none;
}

/* Translation Progress Bar Widget */
.teknotok-progress-container {
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.teknotok-progress-header {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 14px;
	color: var(--teknotok-text);
	margin-bottom: 10px;
}

.teknotok-progress-track {
	width: 100%;
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.teknotok-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #6366f1, #4f46e5);
	width: 0%;
	border-radius: 6px;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.teknotok-progress-animated::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.15) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.15) 75%,
		transparent 75%,
		transparent
	);
	background-size: 40px 40px;
	animation: progress-bar-stripes 1.5s linear infinite;
}

@keyframes progress-bar-stripes {
	from { background-position: 40px 0; }
	to { background-position: 0 0; }
}

/* Real-time Diagnostics Dashboard */
.teknotok-health-panel {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
	margin: 0 0 22px;
	padding: 24px 26px;
	box-sizing: border-box;
}

.teknotok-health-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.teknotok-health-main h2 {
	margin: 10px 0 5px;
	font-size: 22px;
	line-height: 1.25;
}

.teknotok-health-main p {
	margin: 0;
	color: var(--teknotok-text-muted);
	max-width: 760px;
}

.teknotok-health-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	padding: 5px 11px;
	text-transform: uppercase;
}

.teknotok-health-ready .teknotok-health-badge {
	background: #dcfce7;
	color: #166534;
}

.teknotok-health-working .teknotok-health-badge {
	background: #e0f2fe;
	color: #075985;
}

.teknotok-health-attention .teknotok-health-badge {
	background: #fef3c7;
	color: #92400e;
}

.teknotok-health-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 12px;
	margin-top: 20px;
}

.teknotok-health-item {
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #ffffff;
	padding: 14px 16px;
	min-width: 0;
}

.teknotok-health-item span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--teknotok-text-muted);
	margin-bottom: 5px;
}

.teknotok-health-item strong {
	display: block;
	font-size: 19px;
	line-height: 1.2;
	color: var(--teknotok-text);
	overflow-wrap: anywhere;
}

.teknotok-health-item.is-ok {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.teknotok-health-item.needs-attention {
	border-color: #fde68a;
	background: #fffbeb;
}

.teknotok-health-quota {
	margin-top: 18px;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #ffffff;
	padding: 15px 16px;
}

.teknotok-health-quota-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--teknotok-text);
}

.teknotok-health-quota-row strong {
	font-size: 13px;
}

.teknotok-health-quota-track {
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-top: 10px;
}

.teknotok-health-quota-bar {
	height: 100%;
	background: linear-gradient(90deg, #6366f1, #4f46e5);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.teknotok-health-quota-bar.is-exhausted {
	background: #ef4444;
}

.teknotok-health-quota p {
	margin: 8px 0 0;
	color: var(--teknotok-text-muted);
	font-size: 12px;
}

.teknotok-health-progress {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #dbe3ef;
}

.teknotok-license-notice {
	max-width: 960px;
	margin-top: 16px;
}

.teknotok-license-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 18px;
	max-width: 1100px;
}

.teknotok-license-main,
.teknotok-license-side {
	margin-top: 18px;
}

.teknotok-license-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: start;
}

.teknotok-license-header h2,
.teknotok-license-side h2 {
	margin: 8px 0 6px;
	font-size: 20px;
	line-height: 1.25;
}

.teknotok-license-header p,
.teknotok-license-side p {
	margin: 0;
	color: var(--teknotok-text-muted);
}

.teknotok-license-status {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	padding: 5px 10px;
	text-transform: uppercase;
}

.teknotok-license-status.is-active {
	background: #dcfce7;
	color: #166534;
}

.teknotok-license-status.is-free {
	background: #dbeafe;
	color: #1d4ed8;
}

.teknotok-license-status.is-warning {
	background: #fef3c7;
	color: #92400e;
}

.teknotok-license-form {
	border-top: 1px solid var(--teknotok-border);
	margin-top: 20px;
	padding-top: 18px;
}

.teknotok-license-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 520px;
}

.teknotok-license-field label,
.teknotok-license-meta span,
.teknotok-license-note strong {
	font-size: 13px;
	font-weight: 800;
	color: var(--teknotok-text);
}

.teknotok-license-field input[type="text"] {
	width: 100%;
	max-width: 100%;
}

.teknotok-license-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
}

.teknotok-license-meta strong {
	color: var(--teknotok-text);
}

.teknotok-license-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.teknotok-license-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.teknotok-license-links .button {
	justify-content: center;
	text-align: center;
}

.teknotok-license-note {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 18px;
	padding: 14px;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	background: #f8fafc;
	color: var(--teknotok-text-muted);
}

.teknotok-quota-stats {
	margin-top: 18px;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
}

.teknotok-quota-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.teknotok-quota-head h3 {
	margin: 0;
	font-size: 14px;
	color: var(--teknotok-text);
}

.teknotok-quota-head strong {
	font-size: 13px;
	color: var(--teknotok-text);
}

.teknotok-quota-track {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin: 10px 0 8px;
}

.teknotok-quota-bar {
	height: 100%;
	border-radius: 999px;
}

.teknotok-quota-foot {
	color: var(--teknotok-text-muted);
	font-size: 12px;
}

.teknotok-quota-warning {
	color: #b91c1c;
	font-weight: 700;
}

@media (max-width: 960px) {
	.teknotok-license-layout {
		grid-template-columns: 1fr;
	}

	.teknotok-license-side {
		margin-top: 0;
	}
}

@media (max-width: 782px) {
	.teknotok-license-header {
		grid-template-columns: 1fr;
	}

	.teknotok-quota-head {
		align-items: flex-start;
		flex-direction: column;
	}
}

.teknotok-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.teknotok-status-card {
	display: flex;
	align-items: center;
	padding: 17px;
	background: #ffffff;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
	min-width: 0;
	box-sizing: border-box;
}

.teknotok-status-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.teknotok-status-card .status-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	margin-right: 14px;
}

.teknotok-status-card .status-icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.teknotok-status-card .status-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.teknotok-status-card .status-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--teknotok-text-muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.teknotok-status-card .status-value {
	font-size: 26px;
	font-weight: 800;
	color: var(--teknotok-text);
	line-height: 1.1;
}

.status-pending .status-icon { background: #fffbeb; color: #d97706; }
.status-pending { border-top: 4px solid #f59e0b; }

.status-processing .status-icon { background: #eff6ff; color: #2563eb; }
.status-processing { border-top: 4px solid #3b82f6; }

.status-completed .status-icon { background: #ecfdf5; color: #059669; }
.status-completed { border-top: 4px solid #10b981; }

.status-failed .status-icon { background: #fef2f2; color: #dc2626; }
.status-failed { border-top: 4px solid #ef4444; }

.spin {
	animation: spin 1.5s linear infinite;
}

/* Action Rows & Layout Grid */
.teknotok-action-form {
	border-top: 1px solid var(--teknotok-border);
	padding-top: 24px;
	margin-top: 24px;
}

.button-group-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	height: auto !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	border: 1px solid var(--teknotok-border) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.action-btn-danger:hover {
	color: #ef4444 !important;
	border-color: #fca5a5 !important;
	background: #fef2f2 !important;
}

.action-btn-warn:hover {
	color: #d97706 !important;
	border-color: #fde68a !important;
	background: #fffbeb !important;
}

.action-btn-pause:hover {
	color: #2563eb !important;
	border-color: #bfdbfe !important;
	background: #eff6ff !important;
}

.action-btn-resume:hover {
	color: #059669 !important;
	border-color: #a7f3d0 !important;
	background: #ecfdf5 !important;
}

.button-group-divider {
	width: 1px;
	height: 28px;
	background-color: var(--teknotok-border);
	margin: 0 8px;
}

.teknotok-queue-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Environment split dashboard layout */
.teknotok-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 24px;
	max-width: 100%;
	min-width: 0;
}

.teknotok-dashboard-grid > * {
	min-width: 0;
}

@media (max-width: 1100px) {
	.teknotok-dashboard-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.teknotok-health-main {
		display: block;
	}
}

.env-info-list {
	display: flex;
	flex-direction: column;
	margin-top: 20px;
}

.env-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--teknotok-border);
}

.env-item:last-child {
	border-bottom: none;
}

.env-label {
	font-weight: 700;
	font-size: 13px;
	color: var(--teknotok-text);
}

.env-value {
	color: var(--teknotok-text-muted);
	max-width: 100%;
	overflow-wrap: anywhere;
}

.teknotok-advanced-diagnostics {
	padding: 0;
	overflow: hidden;
}

.teknotok-advanced-diagnostics summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	cursor: pointer;
	font-weight: 800;
	color: var(--teknotok-text);
}

.teknotok-advanced-diagnostics summary span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.teknotok-advanced-diagnostics[open] summary {
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-advanced-diagnostics .subtitle,
.teknotok-advanced-diagnostics .env-info-list {
	margin-left: 20px;
	margin-right: 20px;
}

.teknotok-advanced-diagnostics .env-info-list {
	margin-bottom: 18px;
}

.teknotok-advanced-diagnostics-hint {
	flex: 0 0 auto;
	color: var(--teknotok-text-muted);
	font-size: 12px;
	font-weight: 700;
}

.teknotok-support-mode {
	margin-top: 24px;
	padding: 0;
	overflow: hidden;
}

.teknotok-support-mode > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	cursor: pointer;
	font-weight: 800;
	color: var(--teknotok-text);
}

.teknotok-support-mode > summary span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.teknotok-support-mode[open] > summary {
	border-bottom: 1px solid var(--teknotok-border);
}

.teknotok-support-mode-body {
	padding: 20px;
}

.teknotok-support-mode:not([open]) > .teknotok-support-mode-body {
	display: none;
}

.teknotok-support-mode-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.teknotok-support-mode-header .subtitle {
	margin: 0;
}

@media (max-width: 782px) {
	.teknotok-support-mode > summary,
	.teknotok-support-mode-header {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Status Badges */
.badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-secondary { background: #f3e8ff; color: #6b21a8; }

.status-dot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
}

.status-dot::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dot-active { color: #059669; }
.dot-active::before { background-color: #10b981; }

.dot-inactive { color: #dc2626; }
.dot-inactive::before { background-color: #ef4444; }

/* Modern Errors Table */
.errors-container {
	margin-top: 20px;
	height: 100%;
}

.errors-table-scroll {
	max-height: 380px;
	overflow-y: auto;
	overflow-x: auto;
	border: 1px solid var(--teknotok-border);
	border-radius: 12px;
}

.modern-table {
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	width: 100% !important;
	border-collapse: collapse;
	table-layout: auto;
}

.modern-table th {
	background: #f8fafc !important;
	font-weight: 700 !important;
	color: var(--teknotok-text) !important;
	padding: 14px 18px !important;
	border-bottom: 2px solid var(--teknotok-border) !important;
}

.modern-table td {
	padding: 14px 18px !important;
	vertical-align: middle !important;
	border-bottom: 1px solid var(--teknotok-border) !important;
}

.modern-table tr:last-child td {
	border-bottom: none !important;
}

.error-msg-col code {
	background: #fef2f2;
	color: #dc2626;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 12px;
	display: inline-block;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border: 1px solid #fee2e2;
}

.time-col {
	color: var(--teknotok-text-muted);
	font-size: 12px;
	font-weight: 500;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 50px 20px;
	background: #f8fafc;
	border: 2px dashed var(--teknotok-border);
	border-radius: var(--teknotok-radius);
	color: var(--teknotok-text-muted);
	text-align: center;
}

.empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #cbd5e1;
	margin-bottom: 14px;
}

/* Premium Dark-Mode IDE Activity Terminal */
.log-clear-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ef4444 !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.log-clear-btn:hover {
	color: #b91c1c !important;
}

.log-clear-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.terminal-logs-container {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.25);
	margin-top: 20px;
	border: 1px solid #334155;
}

.terminal-header {
	background: #1e293b;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #334155;
}

.terminal-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
}

.red-dot { background: #ef4444; }
.yellow-dot { background: #f59e0b; }
.green-dot { background: #10b981; }

.terminal-title {
	color: #94a3b8;
	font-family: monospace;
	font-size: 12px;
	margin-left: 12px;
	font-weight: 700;
}

.terminal-body {
	background: #0f172a;
	color: #cbd5e1;
	padding: 24px;
	font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
	font-size: 13px;
	line-height: 1.6;
	height: 320px;
	overflow-y: auto;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: #475569 #0f172a;
}

.terminal-body::-webkit-scrollbar {
	width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
	background: #0f172a;
}

.terminal-body::-webkit-scrollbar-thumb {
	background: #334155;
	border-radius: 4px;
	border: 2px solid #0f172a;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
	background: #475569;
}

.log-line {
	margin-bottom: 8px;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
	border-left: 3px solid transparent;
	padding-left: 10px;
}

.log-info { color: #38bdf8; border-color: #38bdf8; }
.log-warning { color: #f59e0b; border-color: #f59e0b; }
.log-error { color: #f87171; border-color: #f87171; }
.log-empty {
	color: #64748b;
	font-style: italic;
	text-align: center;
	padding: 60px 0;
}

/* Translation Memory Editor */
.teknotok-memory-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.teknotok-memory-stat-card {
	background: #ffffff;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 110px;
	box-shadow: var(--teknotok-shadow);
	color: var(--teknotok-text);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.teknotok-memory-stat-card:hover,
.teknotok-memory-stat-card:focus {
	background: #f8fafc;
	border-color: #cbd5e1;
	box-shadow: 0 8px 12px -6px rgba(15, 23, 42, 0.18);
	color: var(--teknotok-text);
	outline: none;
	transform: translateY(-1px);
}

.teknotok-memory-stat-card.is-active {
	background: #eff6ff;
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb, var(--teknotok-shadow);
}

.teknotok-memory-stat-card.is-active strong {
	color: #1e40af;
}

.teknotok-memory-stat-card strong {
	display: block;
	font-size: 18px;
	color: var(--teknotok-text);
}

.teknotok-memory-stat-card span {
	color: var(--teknotok-text-muted);
	font-size: 12px;
}

.teknotok-editor-toolbar {
	background: #ffffff;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 16px;
	box-shadow: var(--teknotok-shadow);
}

.teknotok-editor-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.teknotok-editor-filters input[type="search"] {
	min-width: min(360px, 100%);
}

.teknotok-memory-table-wrap {
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	overflow-x: auto;
	background: #ffffff;
	box-shadow: var(--teknotok-shadow);
}

.teknotok-memory-table .teknotok-memory-source {
	max-width: 300px;
	min-width: 240px;
	white-space: normal;
	word-break: break-word;
	line-height: 1.45;
}

.teknotok-memory-translation {
	min-width: 320px;
}

.teknotok-memory-translation .translation-form {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	gap: 10px;
	align-items: start;
}

.teknotok-memory-translation textarea {
	width: 100%;
	min-height: 78px;
	border: 1px solid var(--teknotok-border);
	border-radius: 8px;
	padding: 10px;
	line-height: 1.4;
	resize: vertical;
	background: #f8fafc;
}

.teknotok-memory-translation textarea:focus {
	background: #ffffff;
	border-color: var(--teknotok-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.teknotok-memory-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 88px;
}

.teknotok-memory-pagination {
	margin-top: 14px;
}

@media (max-width: 900px) {
	.teknotok-memory-translation .translation-form {
		grid-template-columns: 1fr;
	}
	.teknotok-memory-actions {
		flex-direction: row;
	}
}

@media (max-width: 1200px) {
	.teknotok-memory-table th:nth-child(5),
	.teknotok-memory-table td:nth-child(5) {
		display: none;
	}
}

@media (max-width: 782px) {
	.teknotok-ait-wrap {
		margin-right: 12px;
		max-width: calc(100vw - 22px);
	}

	.teknotok-settings-panel {
		padding: 16px;
	}

	.teknotok-ait-wrap .form-table,
	.teknotok-ait-wrap .form-table tbody,
	.teknotok-ait-wrap .form-table tr,
	.teknotok-ait-wrap .form-table th,
	.teknotok-ait-wrap .form-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.teknotok-ait-wrap .form-table th {
		padding: 16px 0 6px;
	}

	.teknotok-ait-wrap .form-table td {
		padding: 0 0 16px;
	}

	.teknotok-toggle-container {
		align-items: flex-start;
	}

	.teknotok-language-picker-head,
	.teknotok-language-group summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.teknotok-language-picker {
		max-width: 100%;
	}

	.teknotok-language-drawer-panel {
		width: 100%;
	}

	.teknotok-service-panel {
		grid-template-columns: 1fr;
	}

	.teknotok-service-actions {
		justify-content: flex-start;
	}

	.teknotok-language-group-count {
		white-space: normal;
	}

	.teknotok-languages-grid {
		grid-template-columns: 1fr;
	}
}

/* Premium Uninstall/Deactivation Modal */
.teknotok-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.teknotok-modal-overlay.active {
	display: flex;
	opacity: 1;
}

.teknotok-modal-window {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
	width: 100%;
	max-width: 480px;
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-sizing: border-box;
}

.teknotok-modal-overlay.active .teknotok-modal-window {
	transform: scale(1) translateY(0);
}

.teknotok-modal-header {
	padding: 24px 28px;
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
	border-bottom: 1px solid var(--teknotok-border);
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
}

.teknotok-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--teknotok-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.teknotok-modal-header .dashicons-warning {
	color: #e11d48;
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
}

.teknotok-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: var(--teknotok-text-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.teknotok-modal-close:hover {
	background: #e2e8f0;
	color: var(--teknotok-text);
}

.teknotok-modal-body {
	padding: 28px;
	color: #334155;
	font-size: 14px;
	line-height: 1.6;
	box-sizing: border-box;
}

.teknotok-modal-body p {
	margin-top: 0;
	margin-bottom: 16px;
}

.teknotok-cleanup-option {
	display: flex;
	align-items: flex-start;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.teknotok-cleanup-option:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.teknotok-cleanup-option.selected {
	border-color: var(--teknotok-primary);
	background: #f5f3ff;
}

.teknotok-cleanup-option input[type="radio"] {
	margin-top: 3px;
	margin-right: 12px;
	flex-shrink: 0;
}

.teknotok-cleanup-option-content {
	display: flex;
	flex-direction: column;
}

.teknotok-cleanup-option-title {
	font-weight: 700;
	color: var(--teknotok-text);
	font-size: 14px;
	margin-bottom: 4px;
	cursor: pointer;
}

.teknotok-cleanup-option-desc {
	font-size: 12px;
	color: var(--teknotok-text-muted);
	line-height: 1.4;
}

.teknotok-modal-footer {
	padding: 20px 28px;
	background: #f8fafc;
	border-top: 1px solid var(--teknotok-border);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	box-sizing: border-box;
}

.teknotok-modal-btn {
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	line-height: 1.2;
}

.teknotok-modal-btn-cancel {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #475569;
}

.teknotok-modal-btn-cancel:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.teknotok-modal-btn-submit {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.teknotok-modal-btn-submit:hover {
	background: linear-gradient(135deg, #4f46e5, #4338ca);
	box-shadow: 0 6px 10px -1px rgba(99, 102, 241, 0.3);
}

.teknotok-modal-btn-submit.loading {
	opacity: 0.7;
	pointer-events: none;
	position: relative;
	color: transparent !important;
}

.teknotok-modal-btn-submit.loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: teknotok-spinner 0.6s linear infinite;
}

@keyframes teknotok-spinner {
	to { transform: rotate(360deg); }
}

/* Header title row and report copy button styling */
.teknotok-header-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

#teknotok-copy-report {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	height: auto;
	transition: all 0.2s ease;
}

#teknotok-copy-report.button-primary {
	background: #10b981;
	border-color: #059669;
	color: #ffffff;
}
