/**
 * Dizi Tools Pro - SaaS Interactive Tool Workspace Styles
 * Drag & drop, sliders, calculators, converters, preview cards, results.
 */

.dizi-tool-workspace-section {
	margin: 20px 0 40px;
}

.dizi-saas-workspace {
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-card-border);
	border-radius: var(--dizi-radius);
	box-shadow: var(--dizi-shadow-lg);
	overflow: hidden;
	transition: var(--dizi-transition);
}

/* SaaS App Window Bar */
.dizi-saas-appbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: rgba(0, 0, 0, 0.02);
	border-bottom: 1px solid var(--dizi-border);
}

[data-theme="dark"] .dizi-saas-appbar {
	background: rgba(255, 255, 255, 0.02);
}

.dizi-saas-appbar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-saas-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

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

.dizi-saas-status-label {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--dizi-text-muted);
	margin-left: 8px;
}

.dizi-saas-reset-btn,
#diziWorkspaceReset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dizi-saas-reset-btn svg,
#diziWorkspaceReset svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 2.2;
	flex-shrink: 0;
}

.dizi-saas-reset-btn:hover,
#diziWorkspaceReset:hover {
	background: rgba(239, 68, 68, 0.3) !important;
	border-color: #f87171 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
}

.dizi-saas-reset-btn:active,
#diziWorkspaceReset:active {
	transform: translateY(0);
	background: rgba(239, 68, 68, 0.5) !important;
}

/* SaaS Body */
.dizi-saas-body {
	padding: 32px;
	min-height: 380px;
}

@media (max-width: 640px) {
	.dizi-saas-body {
		padding: 20px;
	}
}

.dizi-engine-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	gap: 16px;
	color: var(--dizi-text-muted);
}

.dizi-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(79, 70, 229, 0.2);
	border-top-color: var(--dizi-primary);
	border-radius: 50%;
	animation: dizi-spin 0.8s linear infinite;
}

@keyframes dizi-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Drag & Drop Zone
   ========================================================================== */
.dizi-dropzone {
	border: 2px dashed var(--dizi-border);
	border-radius: var(--dizi-radius);
	background: var(--dizi-bg);
	padding: 50px 24px;
	text-align: center;
	cursor: pointer;
	transition: var(--dizi-transition);
	position: relative;
}

.dizi-dropzone:hover, .dizi-dropzone.dragover {
	border-color: var(--dizi-primary);
	background: var(--dizi-primary-light);
	transform: scale(1.01);
}

.dizi-dropzone-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: var(--dizi-primary);
}

.dizi-dropzone h3 {
	font-size: 1.25rem;
	margin-bottom: 6px;
}

.dizi-dropzone p {
	font-size: 0.9rem;
	margin-bottom: 18px;
}

.dizi-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Tool Controls Grid & Panels
   ========================================================================== */
.dizi-tool-controls {
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 24px;
	margin: 24px 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.dizi-tool-controls {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	}
}

.dizi-control-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-control-group label {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--dizi-text-main);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.dizi-range-slider {
	width: 100%;
	accent-color: var(--dizi-primary);
	cursor: pointer;
}

.dizi-slider-val {
	color: var(--dizi-primary);
	font-weight: 800;
}

.dizi-input-field, .dizi-select-field {
	padding: 10px 14px;
	border-radius: var(--dizi-radius-sm);
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-main);
	outline: none;
	font-size: 0.95rem;
}

.dizi-input-field:focus, .dizi-select-field:focus {
	border-color: var(--dizi-primary);
}

/* ==========================================================================
   Preview & Results Layout
   ========================================================================== */
.dizi-results-panel {
	margin-top: 28px;
	border-top: 1px solid var(--dizi-border);
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dizi-preview-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) {
	.dizi-preview-split {
		grid-template-columns: 1fr 1fr;
	}
}

.dizi-preview-box {
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dizi-preview-box h4 {
	font-size: 0.95rem;
	margin-bottom: 12px;
	color: var(--dizi-text-muted);
}

.dizi-preview-box img, .dizi-preview-box canvas {
	max-height: 240px;
	border-radius: 8px;
	object-fit: contain;
	background: repeating-conic-gradient(#f1f5f9 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

.dizi-stat-pill {
	display: inline-block;
	background: var(--dizi-card-bg);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-top: 12px;
}

.dizi-stat-reduction {
	background: rgba(16, 185, 129, 0.15);
	color: #059669;
	border-color: rgba(16, 185, 129, 0.3);
}

.dizi-action-row {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 10px;
}

/* ==========================================================================
   Calculators & Converters UI
   ========================================================================== */
.dizi-calc-form {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-calc-result-card {
	background: linear-gradient(135deg, var(--dizi-primary-light), var(--dizi-secondary-light));
	border: 1px solid var(--dizi-primary);
	border-radius: var(--dizi-radius);
	padding: 28px;
	text-align: center;
	margin-top: 24px;
}

.dizi-calc-result-value {
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--dizi-primary);
	line-height: 1.1;
	margin: 10px 0;
}

.dizi-calc-breakdown {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 16px;
}

.dizi-calc-item label {
	font-size: 0.78rem;
	color: var(--dizi-text-muted);
	display: block;
}

.dizi-calc-item strong {
	font-size: 1.1rem;
	color: var(--dizi-text-main);
}

/* ==========================================================================
   Text & Code Tools UI (Word Count, Case, JSON)
   ========================================================================== */
.dizi-text-workspace {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-textarea {
	width: 100%;
	padding: 16px;
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	background: var(--dizi-bg);
	color: var(--dizi-text-main);
	font-size: 1rem;
	font-family: inherit;
	min-height: 180px;
	resize: vertical;
	outline: none;
}

.dizi-textarea:focus {
	border-color: var(--dizi-primary);
}

.dizi-text-stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
}

.dizi-stat-box {
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 12px;
	text-align: center;
}

.dizi-stat-box .count {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--dizi-primary);
	display: block;
}

.dizi-stat-box .label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--dizi-text-muted);
	text-transform: uppercase;
}

.dizi-button-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* QR Code Generator Modern SaaS Layout */
.dizi-qr-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 860px) {
	.dizi-qr-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-qr-type-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--dizi-border);
}

.dizi-qr-tab-btn {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 20px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-bg);
	color: var(--dizi-text-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-qr-tab-btn:hover {
	background: var(--dizi-border);
	color: var(--dizi-text);
}

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

.dizi-qr-preview-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	position: sticky;
	top: 90px;
}

.dizi-qr-preview-box {
	background: #ffffff;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid var(--dizi-border);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 250px;
	height: 250px;
	margin-bottom: 18px;
	position: relative;
	overflow: hidden;
}

.dizi-qr-preview-box img,
.dizi-qr-preview-box canvas {
	max-width: 100%;
	height: auto !important;
	display: block;
}

.dizi-qr-color-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-qr-color-picker {
	width: 44px;
	height: 42px;
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	cursor: pointer;
	padding: 2px;
	background: transparent;
}

.dizi-qr-canvas-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--dizi-bg);
	border-radius: var(--dizi-radius-sm);
	margin-top: 20px;
}

.dizi-qr-canvas-wrap svg, .dizi-qr-canvas-wrap canvas {
	box-shadow: var(--dizi-shadow);
	border-radius: 8px;
}

/* Barcode Generator Modern SaaS Layout */
.dizi-barcode-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 880px) {
	.dizi-barcode-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-barcode-preview-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	position: sticky;
	top: 90px;
}

.dizi-barcode-preview-box {
	background: #ffffff;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid var(--dizi-border);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 180px;
	margin-bottom: 18px;
	overflow-x: auto;
}

.dizi-barcode-preview-box svg,
.dizi-barcode-preview-box canvas {
	max-width: 100%;
	height: auto !important;
	display: block;
}

.dizi-barcode-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #ef4444;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Password Box */
.dizi-password-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dizi-bg);
	border: 2px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 16px 20px;
	margin-bottom: 20px;
}

.dizi-password-string {
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--dizi-primary);
	overflow-x: auto;
}

.dizi-strength-meter {
	height: 6px;
	background: var(--dizi-border);
	border-radius: 4px;
	margin-top: 10px;
	overflow: hidden;
}

.dizi-strength-bar {
	height: 100%;
	width: 85%;
	background: var(--dizi-success);
	transition: width 0.3s ease, background 0.3s ease;
}

/* Enhanced Password Generator Styles */
.dizi-password-box-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dizi-pass-mode-tabs {
	display: flex;
	gap: 8px;
	background: var(--dizi-bg, #f8fafc);
	padding: 5px;
	border-radius: 12px;
	margin-bottom: 20px;
	border: 1px solid var(--dizi-border);
}

.dizi-pass-mode-btn {
	flex: 1;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 9px;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.dizi-pass-mode-btn:hover {
	color: var(--dizi-text, #1e293b);
}

.dizi-pass-mode-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dizi-password-output-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--dizi-bg, #f8fafc);
	border: 2px solid var(--dizi-border);
	border-radius: 12px;
	padding: 12px 18px;
	transition: border-color 0.2s;
}

.dizi-password-output-wrap:focus-within {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-password-text {
	font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
	background: transparent;
	border: none;
	outline: none;
	width: 100%;
	letter-spacing: 0.05em;
	padding: 4px 0;
}

.dizi-password-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.dizi-btn-icon-action {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-btn-icon-action:hover {
	background: var(--dizi-bg, #f1f5f9);
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-btn-icon-action.spin svg {
	animation: dizi-spin 0.5s ease;
}

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

.dizi-pass-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 13.5px;
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.dizi-pass-copy-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.dizi-pass-copy-btn.copied {
	background: #10b981 !important;
	color: #ffffff !important;
}

.dizi-strength-wrapper {
	margin-top: 16px;
}

.dizi-strength-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-strength-badge {
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dizi-strength-badge.very-weak { background: #fee2e2; color: #dc2626; }
.dizi-strength-badge.weak { background: #ffedd5; color: #ea580c; }
.dizi-strength-badge.fair { background: #fef3c7; color: #d97706; }
.dizi-strength-badge.strong { background: #dcfce7; color: #16a34a; }
.dizi-strength-badge.very-strong { background: #d1fae5; color: #059669; }

.dizi-strength-segments {
	display: flex;
	gap: 6px;
	height: 7px;
	border-radius: 4px;
	overflow: hidden;
}

.dizi-strength-seg {
	flex: 1;
	height: 100%;
	background: #e2e8f0;
	border-radius: 3px;
	transition: background 0.3s ease;
}

.dizi-strength-seg.seg-red { background: #ef4444; }
.dizi-strength-seg.seg-orange { background: #f97316; }
.dizi-strength-seg.seg-amber { background: #f59e0b; }
.dizi-strength-seg.seg-green { background: #10b981; }
.dizi-strength-seg.seg-emerald { background: #059669; }

.dizi-strength-extra-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-pass-presets {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.dizi-preset-pill {
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 20px;
	cursor: pointer;
	color: var(--dizi-text-secondary, #64748b);
	transition: all 0.2s ease;
}

.dizi-preset-pill:hover,
.dizi-preset-pill.active {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-pass-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 12px;
	margin-top: 18px;
}

.dizi-pass-check-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--dizi-text);
	cursor: pointer;
	padding: 12px 16px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	transition: all 0.2s ease;
	user-select: none;
}

.dizi-pass-check-label:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.03);
}

.dizi-pass-check-label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
}

.dizi-pass-bulk-section {
	margin-top: 24px;
	border-top: 1px solid var(--dizi-border);
	padding-top: 20px;
}

.dizi-pass-bulk-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.dizi-pass-bulk-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-pass-bulk-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	padding: 8px 14px;
	font-family: 'JetBrains Mono', 'Consolas', monospace;
	font-size: 13px;
	color: var(--dizi-text);
}

.dizi-pass-bulk-copy {
	background: none;
	border: none;
	color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
}
.dizi-pass-bulk-copy:hover {
	background: rgba(99, 102, 241, 0.1);
}

/* Progress bar inside workspace */
.dizi-progress-container {
	height: 8px;
	background: var(--dizi-border);
	border-radius: 4px;
	overflow: hidden;
	margin: 20px 0;
	display: none;
}

.dizi-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--dizi-primary), var(--dizi-secondary));
	transition: width 0.2s ease;
}

/* Background Remover Tool Styles */
.dizi-bg-opt-btn {
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dizi-bg-opt-btn:hover {
	transform: scale(1.12);
}

.dizi-bg-opt-btn.active {
	border-color: var(--dizi-primary) !important;
	border-width: 2.5px !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.dizi-sample-btn:hover {
	background: rgba(99, 102, 241, 0.08) !important;
	border-style: solid !important;
}

/* Background Remover Advanced Interactive Workspace */
.dizi-bg-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 20px;
	border: 1.5px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-muted);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-bg-tab-btn:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
}

.dizi-bg-tab-btn.active {
	background: var(--dizi-primary);
	border-color: var(--dizi-primary);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.dizi-brush-cursor-circle {
	position: fixed;
	pointer-events: none;
	border: 2px solid var(--dizi-primary);
	background: rgba(99, 102, 241, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	display: none;
}

.dizi-split-compare-box {
	position: relative;
	width: 100%;
	height: 380px;
	overflow: hidden;
	border-radius: var(--dizi-radius);
	user-select: none;
	touch-action: none;
	background-image: repeating-conic-gradient(#cbd5e1 0% 25%, #ffffff 0% 50%);
	background-size: 16px 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dizi-split-layer {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.dizi-split-layer img,
.dizi-split-layer canvas {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.dizi-split-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: #ffffff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	z-index: 10;
	cursor: ew-resize;
	transform: translateX(-50%);
}

.dizi-split-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: 2.5px solid var(--dizi-primary);
	color: var(--dizi-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Interactive Zoom & Pan Controls */
.dizi-zoom-bar {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-border);
	border-radius: 8px;
	padding: 3px 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	user-select: none;
}

.dizi-zoom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--dizi-text-main);
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
	font-family: inherit;
}

.dizi-zoom-btn:hover {
	background: rgba(99, 102, 241, 0.12);
	color: var(--dizi-primary);
}

.dizi-zoom-btn:active {
	transform: scale(0.94);
}

.dizi-zoom-btn.active {
	background: var(--dizi-primary);
	color: #ffffff;
}

#bgSideResultContainer,
#bgSideWrapper .dizi-preview-box div[style*="min-height"] {
	overflow: hidden !important;
	user-select: none;
}

#bgSideResultCanvas,
#bgOrigImgSide,
#bgResultCanvas,
#bgBeforeImg {
	transition: transform 0.05s ease-out;
	will-change: transform;
}

/* ==========================================================================
   Image Resizer Engine Styles
   ========================================================================== */
.dizi-resizer-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 18px;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	margin-bottom: 20px;
}

.dizi-resizer-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.88rem;
}

.dizi-resizer-tabs {
	display: flex;
	gap: 6px;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 20px;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
}

.dizi-resizer-tab {
	padding: 8px 18px;
	border-radius: 7px;
	border: none;
	background: transparent;
	color: var(--dizi-text-muted);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-resizer-tab:hover {
	color: var(--dizi-text-main);
}

.dizi-resizer-tab.active {
	background: var(--dizi-primary);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

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

.dizi-dim-box {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 6px 12px;
	transition: border-color 0.2s ease;
}

.dizi-dim-box:focus-within {
	border-color: var(--dizi-primary);
}

.dizi-dim-box input[type="number"] {
	width: 90px;
	border: none;
	background: transparent;
	color: var(--dizi-text-main);
	font-weight: 700;
	font-size: 1.05rem;
	outline: none;
}

.dizi-dim-box span.dizi-dim-unit {
	color: var(--dizi-text-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.dizi-dim-sep {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--dizi-text-muted);
}

.dizi-ratio-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--dizi-radius-sm);
	border: 1.5px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-muted);
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.dizi-ratio-toggle-btn.locked {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
	background: rgba(79, 70, 229, 0.08);
}

.dizi-ratio-toggle-btn:hover {
	border-color: var(--dizi-primary);
}

.dizi-pct-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.dizi-pct-chip {
	padding: 5px 12px;
	border-radius: 16px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-muted);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-pct-chip:hover {
	color: var(--dizi-primary);
	border-color: var(--dizi-primary);
}

.dizi-pct-chip.active {
	background: var(--dizi-primary);
	color: #ffffff;
	border-color: var(--dizi-primary);
}

.dizi-dim-reset-btn {
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px dashed var(--dizi-border);
	background: transparent;
	color: var(--dizi-text-muted);
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-dim-reset-btn:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
}

/* ==========================================================================
   Bulk Image Resizer Queue & Cards Styles
   ========================================================================== */
.dizi-bulk-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	margin-bottom: 20px;
}

.dizi-bulk-stats {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.dizi-bulk-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--dizi-primary-light);
	color: var(--dizi-primary);
	font-weight: 800;
	font-size: 0.86rem;
	padding: 5px 14px;
	border-radius: 20px;
	border: 1px solid rgba(79, 70, 229, 0.25);
}

.dizi-bulk-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-bulk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 16px;
	margin-top: 20px;
	margin-bottom: 24px;
}

.dizi-bulk-card {
	background: var(--dizi-bg);
	border: 1.5px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	transition: all 0.2s ease;
}

.dizi-bulk-card:hover {
	border-color: var(--dizi-primary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.dizi-bulk-card-top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.dizi-bulk-thumb-wrap {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: repeating-conic-gradient(#f1f5f9 0% 25%, transparent 0% 50%) 50% / 12px 12px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--dizi-border);
}

.dizi-bulk-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dizi-bulk-details {
	flex: 1;
	min-width: 0;
	padding-right: 24px;
}

.dizi-bulk-name {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--dizi-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	margin-bottom: 4px;
}

.dizi-bulk-meta {
	font-size: 0.78rem;
	color: var(--dizi-text-muted);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-bulk-meta-tag {
	display: inline-block;
	font-weight: 700;
	color: var(--dizi-primary);
}

.dizi-bulk-card-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	transition: all 0.15s ease;
}

.dizi-bulk-card-remove:hover {
	background: #ef4444;
	color: #ffffff;
}

.dizi-bulk-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px dashed var(--dizi-border);
	gap: 8px;
}

.dizi-bulk-single-dl {
	font-size: 0.8rem;
	padding: 5px 12px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	background: var(--dizi-primary);
	color: #ffffff;
	font-weight: 600;
}

.dizi-bulk-single-dl:hover {
	opacity: 0.9;
	color: #ffffff;
}

.dizi-bulk-status-badge {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 10px;
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.dizi-bulk-summary-bar {
	background: var(--dizi-bg);
	border: 1.5px solid var(--dizi-border);
	border-radius: var(--dizi-radius);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 24px;
}

/* ==========================================================================
   Image Cropper Engine Styles
   ========================================================================== */
.dizi-cropper-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	align-items: start;
	margin-bottom: 24px;
}

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

.dizi-cropper-sidebar-card {
	background: var(--dizi-card-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-md);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dizi-cropper-preview-container {
	background: #0f172a;
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	max-height: 290px;
	overflow: hidden;
}

.dizi-cropper-preview-container img {
	max-width: 100%;
	max-height: 240px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dizi-cropper-stage-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #0f172a;
	border-radius: var(--dizi-radius-sm);
	padding: 24px;
	overflow: hidden;
	margin-bottom: 24px;
	min-height: 380px;
	position: relative;
	user-select: none;
}

.dizi-cropper-stage {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	overflow: hidden;
}

.dizi-cropper-stage img {
	display: block;
	max-width: 100%;
	max-height: 520px;
	width: auto;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.dizi-crop-backdrop {
	position: absolute;
	background: rgba(0, 0, 0, 0.65);
	pointer-events: none;
	z-index: 10;
}

.dizi-crop-box {
	position: absolute;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
	cursor: move;
	touch-action: none;
	z-index: 20;
	box-sizing: border-box;
}

.dizi-crop-box.circle {
	border-radius: 50%;
	border: 2px dashed #ffffff;
}

.dizi-crop-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.dizi-crop-grid-h, .dizi-crop-grid-v {
	position: absolute;
	background: rgba(255, 255, 255, 0.4);
}

.dizi-crop-grid-h1 { top: 33.33%; left: 0; right: 0; height: 1px; }
.dizi-crop-grid-h2 { top: 66.66%; left: 0; right: 0; height: 1px; }
.dizi-crop-grid-v1 { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.dizi-crop-grid-v2 { left: 66.66%; top: 0; bottom: 0; width: 1px; }

.dizi-crop-handle {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #ffffff;
	border: 2px solid var(--dizi-primary);
	border-radius: 2px;
	box-sizing: border-box;
	z-index: 30;
	touch-action: none;
}

.dizi-crop-handle.handle-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.dizi-crop-handle.handle-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.dizi-crop-handle.handle-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.dizi-crop-handle.handle-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.dizi-crop-handle.handle-n  { top: -6px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.dizi-crop-handle.handle-s  { bottom: -6px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.dizi-crop-handle.handle-w  { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.dizi-crop-handle.handle-e  { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }

.dizi-crop-dimension-badge {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	pointer-events: none;
	white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.dizi-cropper-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 16px;
}

.dizi-cropper-btn-group {
	display: inline-flex;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 3px;
	gap: 3px;
	flex-wrap: wrap;
}

.dizi-crop-ratio-btn {
	padding: 6px 14px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--dizi-text-muted);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-crop-ratio-btn:hover {
	color: var(--dizi-text-main);
}

.dizi-crop-ratio-btn.active {
	background: var(--dizi-primary);
	color: #ffffff;
}

.dizi-cropper-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--dizi-radius-sm);
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-main);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-cropper-action-btn:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
}

/* Crop Size Controls */
.dizi-crop-size-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-crop-dim-input-box {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 2px 8px;
}

.dizi-crop-size-input {
	width: 58px;
	height: 28px;
	padding: 2px 4px;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	border-radius: 4px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--dizi-text-main);
	outline: none;
	transition: all 0.15s ease;
}

.dizi-crop-size-input:focus {
	border-color: var(--dizi-primary);
	background: var(--dizi-card-bg);
}

.dizi-crop-size-input::-webkit-outer-spin-button,
.dizi-crop-size-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.dizi-crop-size-input[type=number] {
	-moz-appearance: textfield;
}

.dizi-crop-size-sep {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--dizi-text-muted);
}

.dizi-crop-size-unit {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--dizi-text-muted);
}

.dizi-crop-apply-btn {
	background: var(--dizi-primary) !important;
	color: #ffffff !important;
	border: 1px solid var(--dizi-primary) !important;
	font-weight: 700;
}

.dizi-crop-apply-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Image Converter Format Chips */
.dizi-format-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.dizi-format-chip {
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-bg);
	color: var(--dizi-text-muted);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-format-chip:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-text-main);
}

.dizi-format-chip.active {
	background: var(--dizi-primary);
	border-color: var(--dizi-primary);
	color: #ffffff;
}

/* ==========================================================================
   JPG to PDF Converter Engine Styles
   ========================================================================== */
.dizi-jpg2pdf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 16px;
	margin: 20px 0;
}

.dizi-jpg2pdf-card {
	position: relative;
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-card-border);
	border-radius: var(--dizi-radius-sm);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: all 0.2s ease;
	box-shadow: var(--dizi-shadow-sm);
}

.dizi-jpg2pdf-card:hover {
	border-color: var(--dizi-primary);
	box-shadow: var(--dizi-shadow-md);
	transform: translateY(-2px);
}

.dizi-jpg2pdf-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 5;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.dizi-jpg2pdf-thumb-wrap {
	width: 100%;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dizi-bg);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.dizi-jpg2pdf-thumb {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.25s ease;
}

.dizi-jpg2pdf-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-jpg2pdf-title {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--dizi-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dizi-jpg2pdf-meta {
	font-size: 0.75rem;
	color: var(--dizi-text-muted);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-jpg2pdf-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	border-top: 1px dashed var(--dizi-border);
}

.dizi-jpg2pdf-btn-group {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dizi-jpg2pdf-icon-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-bg);
	color: var(--dizi-text-main);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	padding: 0;
}

.dizi-jpg2pdf-icon-btn:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
	background: var(--dizi-card-bg);
}

.dizi-jpg2pdf-icon-btn.btn-delete:hover {
	border-color: #ef4444;
	color: #ef4444;
	background: rgba(239, 68, 68, 0.08);
}

.dizi-jpg2pdf-icon-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ==========================================================================
   PDF Compressor Engine Styles
   ========================================================================== */
.dizi-comp-preset-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 20px 0 24px;
}

@media (max-width: 768px) {
	.dizi-comp-preset-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-comp-preset-card {
	background: var(--dizi-card-bg);
	border: 2px solid var(--dizi-border);
	border-radius: var(--dizi-radius);
	padding: 20px 18px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-comp-preset-card:hover {
	border-color: var(--dizi-primary);
	transform: translateY(-2px);
	box-shadow: var(--dizi-shadow-md);
}

.dizi-comp-preset-card.active {
	border-color: var(--dizi-primary);
	background: rgba(99, 102, 241, 0.05);
	box-shadow: 0 0 0 1px var(--dizi-primary);
}

.dizi-comp-badge {
	position: absolute;
	top: -10px;
	right: 14px;
	background: var(--dizi-primary);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 12px;
	letter-spacing: 0.3px;
}

.dizi-comp-preset-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-comp-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--dizi-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.dizi-comp-preset-card.active .dizi-comp-radio {
	border-color: var(--dizi-primary);
}

.dizi-comp-radio::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dizi-primary);
	display: none;
}

.dizi-comp-preset-card.active .dizi-comp-radio::after {
	display: block;
}

.dizi-comp-preset-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--dizi-text-main);
	margin: 0;
}

.dizi-comp-preset-desc {
	font-size: 0.8rem;
	color: var(--dizi-text-muted);
	margin: 0;
	line-height: 1.4;
}

/* Results Hero Card */
.dizi-comp-result-card {
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-border);
	border-radius: var(--dizi-radius);
	padding: 28px;
	text-align: center;
	margin-top: 24px;
	box-shadow: var(--dizi-shadow-md);
}

.dizi-comp-result-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.dizi-comp-stat-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 22px;
	background: var(--dizi-bg);
	border-radius: var(--dizi-radius-sm);
	border: 1px solid var(--dizi-border);
	min-width: 140px;
}

.dizi-comp-stat-box.success {
	background: rgba(16, 185, 129, 0.08);
	border-color: rgba(16, 185, 129, 0.3);
}

.dizi-comp-stat-box.saved {
	background: rgba(99, 102, 241, 0.08);
	border-color: rgba(99, 102, 241, 0.3);
}

.dizi-comp-stat-label {
	font-size: 0.78rem;
	color: var(--dizi-text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dizi-comp-stat-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--dizi-text-main);
}

.dizi-comp-stat-box.success .dizi-comp-stat-val {
	color: #059669;
}

.dizi-comp-stat-box.saved .dizi-comp-stat-val {
	color: var(--dizi-primary);
}

/* ==========================================================================
   PDF Merger Engine Styles
   ========================================================================== */
.dizi-merge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 16px;
	margin: 20px 0;
}

.dizi-merge-card {
	position: relative;
	background: var(--dizi-card-bg);
	border: 1.5px solid var(--dizi-card-border);
	border-radius: var(--dizi-radius-sm);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: all 0.2s ease;
	box-shadow: var(--dizi-shadow-sm);
}

.dizi-merge-card:hover {
	border-color: var(--dizi-primary);
	box-shadow: var(--dizi-shadow-md);
	transform: translateY(-2px);
}

.dizi-merge-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 5;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.dizi-merge-thumb-wrap {
	width: 100%;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dizi-bg);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.dizi-merge-thumb {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}

.dizi-merge-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-merge-title {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--dizi-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dizi-merge-meta {
	font-size: 0.75rem;
	color: var(--dizi-text-muted);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-merge-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
	border-top: 1px dashed var(--dizi-border);
}

/* ==========================================================================
   PDF Splitter Engine Styles
   ========================================================================== */
.dizi-split-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.dizi-split-card {
	position: relative;
	background: var(--dizi-card-bg);
	border: 2px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.dizi-split-card:hover {
	border-color: var(--dizi-primary);
	transform: translateY(-2px);
}

.dizi-split-card.selected {
	border-color: var(--dizi-primary);
	background: rgba(99, 102, 241, 0.05);
	box-shadow: 0 0 0 2px var(--dizi-primary);
}

.dizi-split-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 5;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}

.dizi-split-check {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: all 0.15s ease;
}

.dizi-split-card.selected .dizi-split-check {
	background: var(--dizi-primary);
	border-color: #ffffff;
}

.dizi-split-thumb-wrap {
	width: 100%;
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dizi-bg);
	border-radius: 4px;
	overflow: hidden;
}

.dizi-split-thumb {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dizi-quick-btn {
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg);
	color: var(--dizi-text-main);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-quick-btn:hover {
	border-color: var(--dizi-primary);
	color: var(--dizi-primary);
}

/* ==========================================================================
   PDF Converter Engine Styles
   ========================================================================== */
.dizi-conv-format-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin: 16px 0 24px;
}

.dizi-conv-format-card {
	background: var(--dizi-card-bg);
	border: 2px solid var(--dizi-border);
	border-radius: var(--dizi-radius-sm);
	padding: 16px 14px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-conv-format-card:hover {
	border-color: var(--dizi-primary);
	transform: translateY(-2px);
	box-shadow: var(--dizi-shadow-sm);
}

.dizi-conv-format-card.active {
	border-color: var(--dizi-primary);
	background: rgba(99, 102, 241, 0.05);
	box-shadow: 0 0 0 1px var(--dizi-primary);
}

.dizi-conv-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-conv-icon-box {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.dizi-conv-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--dizi-text-main);
	margin: 0;
}

.dizi-conv-desc {
	font-size: 0.78rem;
	color: var(--dizi-text-muted);
	margin: 0;
	line-height: 1.35;
}

.dizi-conv-preview-box {
	max-height: 250px;
	overflow-y: auto;
	background: var(--dizi-bg);
	border: 1px solid var(--dizi-border);
	border-radius: 6px;
	padding: 14px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--dizi-text-main);
	white-space: pre-wrap;
	text-align: left;
	margin: 16px 0;
}

/* ==========================================================================
   JSON Formatter & Validator Engine Styles
   ========================================================================== */
.dizi-json-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.dizi-json-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	padding: 12px 18px;
}

.dizi-json-controls-left,
.dizi-json-controls-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-json-select {
	padding: 7px 12px;
	border-radius: 8px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-bg, #f8fafc);
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text);
	cursor: pointer;
}

.dizi-json-btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text);
	cursor: pointer;
	transition: all 0.2s;
}

.dizi-json-btn-pill:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

.dizi-json-status-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.dizi-json-status-banner.valid {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.dizi-json-status-banner.invalid {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.dizi-json-status-banner.empty {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-json-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 900px) {
	.dizi-json-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-json-pane {
	display: flex;
	flex-direction: column;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-json-pane-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-json-pane-tabs {
	display: flex;
	gap: 4px;
	background: #e2e8f0;
	padding: 3px;
	border-radius: 6px;
}

.dizi-json-tab-btn {
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.dizi-json-tab-btn.active {
	background: #ffffff;
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dizi-json-editor-body {
	position: relative;
	height: 480px;
	display: flex;
	flex-direction: column;
}

.dizi-json-textarea {
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	padding: 16px;
	font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--dizi-text, #0f172a);
	background: var(--dizi-card-bg, #ffffff);
	resize: none;
	white-space: pre;
	tab-size: 2;
}

.dizi-json-output-pre {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 16px;
	font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
	font-size: 13.5px;
	line-height: 1.5;
	background: #f8fafc;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-all;
	user-select: text;
}

/* Syntax Highlighting */
.json-key { color: #0284c7; font-weight: 600; }
.json-string { color: #16a34a; }
.json-number { color: #ea580c; font-weight: 600; }
.json-boolean { color: #9333ea; font-weight: 600; }
.json-null { color: #dc2626; font-weight: 600; }

/* Interactive Tree View */
.dizi-json-tree-container {
	width: 100%;
	height: 100%;
	overflow: auto;
	padding: 16px;
	background: #f8fafc;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 13px;
	line-height: 1.6;
}

.tree-node {
	margin-left: 18px;
}

.tree-toggler {
	cursor: pointer;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: var(--dizi-text);
}

.tree-toggler::before {
	content: '▾';
	display: inline-block;
	font-size: 11px;
	transition: transform 0.15s;
}

.tree-collapsed > .tree-node {
	display: none;
}

.tree-collapsed > .tree-toggler::before {
	transform: rotate(-90deg);
}

.tree-badge {
	font-size: 10px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #e2e8f0;
	color: #475569;
	margin-left: 6px;
}

.dizi-json-actions-footer {
	display: flex;
	gap: 10px;
	padding: 12px 16px;
	background: var(--dizi-bg, #f8fafc);
	border-top: 1px solid var(--dizi-border);
	flex-wrap: wrap;
}

/* ==========================================================================
   Base64 & URL Encoder / Decoder Styles
   ========================================================================== */
.dizi-b64-container {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

.dizi-b64-header-tabs {
	display: flex;
	gap: 8px;
	background: var(--dizi-bg, #f8fafc);
	padding: 5px;
	border-radius: 12px;
	border: 1px solid var(--dizi-border);
}

.dizi-b64-tab-btn {
	flex: 1;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s;
}

.dizi-b64-tab-btn:hover {
	color: var(--dizi-text, #1e293b);
}

.dizi-b64-tab-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dizi-b64-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	padding: 12px 18px;
}

.dizi-b64-options-group {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.dizi-b64-radio-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: var(--dizi-text);
	user-select: none;
}

.dizi-b64-radio-pill input[type="radio"],
.dizi-b64-radio-pill input[type="checkbox"] {
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
}

.dizi-b64-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 16px;
	align-items: center;
}

@media (max-width: 900px) {
	.dizi-b64-grid {
		grid-template-columns: 1fr;
	}
	.dizi-b64-swap-col {
		order: 2;
		margin: -6px 0;
	}
}

.dizi-b64-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
}

.dizi-b64-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-b64-textarea {
	width: 100%;
	height: 320px;
	border: none;
	outline: none;
	padding: 14px 16px;
	font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--dizi-text, #0f172a);
	background: var(--dizi-card-bg, #ffffff);
	resize: none;
	word-break: break-all;
	white-space: pre-wrap;
}

.dizi-b64-swap-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	margin: 0 auto;
}

.dizi-b64-swap-btn:hover {
	transform: scale(1.1) rotate(180deg);
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-bg, #f1f5f9);
}

.dizi-b64-actions-bar {
	display: flex;
	gap: 10px;
	padding: 10px 16px;
	background: var(--dizi-bg, #f8fafc);
	border-top: 1px solid var(--dizi-border);
	align-items: center;
	justify-content: space-between;
}

.dizi-b64-file-drop {
	border: 2px dashed var(--dizi-border);
	border-radius: 12px;
	padding: 36px 20px;
	text-align: center;
	background: var(--dizi-bg, #f8fafc);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-b64-file-drop:hover,
.dizi-b64-file-drop.dragover {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.03);
}

.dizi-b64-preview-card {
	margin-top: 16px;
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	padding: 14px 18px;
	background: var(--dizi-card-bg, #ffffff);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.dizi-b64-param-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 13px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	overflow: hidden;
}

.dizi-b64-param-table th,
.dizi-b64-param-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--dizi-border);
	text-align: left;
}

.dizi-b64-param-table th {
	background: var(--dizi-bg, #f8fafc);
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-b64-param-table code {
	font-family: 'JetBrains Mono', monospace;
	background: var(--dizi-bg, #f1f5f9);
	padding: 2px 6px;
	border-radius: 4px;
}

/* ==========================================================================
   Text Formatter & Cleaner Workspace
   ========================================================================== */
.dizi-cleaner-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.dizi-cleaner-preset-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 16px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-cleaner-preset-group {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-cleaner-preset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text);
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-cleaner-preset-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
}

.dizi-cleaner-preset-btn.highlight {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
	color: var(--dizi-primary, #6366f1);
	border-color: rgba(99, 102, 241, 0.3);
}

.dizi-cleaner-preset-btn.highlight:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-cleaner-preset-btn.btn-danger {
	color: #ef4444;
}

.dizi-cleaner-preset-btn.btn-danger:hover {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
}

.dizi-cleaner-options-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	padding: 14px 16px;
}

.dizi-cleaner-options-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-cleaner-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 10px;
}

.dizi-cleaner-check-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--dizi-text);
	cursor: pointer;
	user-select: none;
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.dizi-cleaner-check-label:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-cleaner-check-label input[type="checkbox"] {
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	width: 15px;
	height: 15px;
}

.dizi-cleaner-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 900px) {
	.dizi-cleaner-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-cleaner-card {
	display: flex;
	flex-direction: column;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-cleaner-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border);
	font-size: 13px;
	font-weight: 600;
}

.dizi-cleaner-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dizi-text);
}

.dizi-cleaner-meta {
	font-size: 12px;
	font-weight: 500;
	color: var(--dizi-text-secondary, #64748b);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-cleaner-reduction-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(16, 185, 129, 0.12);
	color: #10b981;
}

.dizi-cleaner-reduction-pill.neutral {
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-cleaner-textarea {
	width: 100%;
	min-height: 380px;
	padding: 14px;
	border: none;
	outline: none;
	resize: vertical;
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
	font-size: 13.5px;
	line-height: 1.6;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
	box-sizing: border-box;
}

.dizi-cleaner-textarea:focus {
	outline: none;
}

.dizi-cleaner-textarea[readonly] {
	background: rgba(248, 250, 252, 0.6);
}

[data-theme="dark"] .dizi-cleaner-textarea[readonly] {
	background: rgba(30, 41, 59, 0.4);
}

.dizi-cleaner-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid var(--dizi-border);
	background: var(--dizi-bg, #f8fafc);
	flex-wrap: wrap;
	gap: 8px;
}

.dizi-cleaner-footer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-cleaner-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
}

.dizi-cleaner-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-cleaner-btn.primary {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-cleaner-btn.primary:hover {
	background: #4f46e5;
	border-color: #4f46e5;
	transform: translateY(-1px);
}

.dizi-cleaner-badge-info {
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
}

/* ==========================================================================
   Advanced Multi-Currency EMI Calculator Workspace
   ========================================================================== */
.dizi-emi-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.dizi-emi-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-emi-pill-group {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-emi-pill-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-right: 4px;
}

.dizi-emi-currency-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text);
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-emi-currency-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-emi-currency-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.dizi-emi-preset-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dizi-text);
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-emi-preset-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
}

.dizi-emi-preset-btn.active {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	font-weight: 700;
}

.dizi-emi-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 20px;
}

@media (max-width: 960px) {
	.dizi-emi-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-emi-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-emi-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border);
}

.dizi-emi-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-emi-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-emi-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dizi-text);
}

.dizi-emi-input-box {
	display: flex;
	align-items: center;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	max-width: 200px;
}

.dizi-emi-input-box:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-emi-prefix {
	padding: 8px 12px;
	font-weight: 700;
	font-size: 14px;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	border-right: 1px solid var(--dizi-border);
	min-width: 32px;
	text-align: center;
}

.dizi-emi-field {
	border: none;
	outline: none;
	background: transparent;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	color: var(--dizi-text);
	width: 100%;
	text-align: right;
}

.dizi-emi-field::-webkit-inner-spin-button,
.dizi-emi-field::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dizi-emi-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: #e2e8f0;
	outline: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

[data-theme="dark"] .dizi-emi-slider {
	background: #334155;
}

.dizi-emi-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dizi-primary, #6366f1);
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 0.1s ease;
}

.dizi-emi-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.dizi-emi-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dizi-primary, #6366f1);
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.dizi-emi-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-emi-chip {
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px;
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border);
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-emi-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-emi-tenure-toggle {
	display: inline-flex;
	padding: 2px;
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border);
	border-radius: 6px;
	gap: 2px;
}

.dizi-emi-tenure-btn {
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 700;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	border-radius: 4px;
	cursor: pointer;
}

.dizi-emi-tenure-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Results Box */
.dizi-emi-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.06));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-emi-hero-box {
	text-align: center;
	padding: 16px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-emi-hero-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 6px;
}

.dizi-emi-hero-val {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.dizi-emi-hero-sub {
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 4px;
}

.dizi-emi-stats-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-emi-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	font-size: 13px;
}

.dizi-emi-stat-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dizi-text);
	font-weight: 500;
}

.dizi-emi-stat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.dizi-emi-stat-val {
	font-weight: 700;
	color: var(--dizi-text);
}

/* Visual Bar */
.dizi-emi-visual-bar-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-emi-visual-bar-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-emi-visual-bar {
	width: 100%;
	height: 14px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	background: #e2e8f0;
}

.dizi-emi-bar-principal {
	background: #0ea5e9;
	height: 100%;
	transition: width 0.3s ease;
}

.dizi-emi-bar-interest {
	background: #f59e0b;
	height: 100%;
	transition: width 0.3s ease;
}

.dizi-emi-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-emi-action-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-emi-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-emi-action-btn.primary {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-emi-action-btn.primary:hover {
	background: #4f46e5;
}

/* Schedule Table */
.dizi-emi-schedule-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-emi-schedule-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
}

.dizi-emi-table-wrap {
	overflow-x: auto;
	max-height: 400px;
}

.dizi-emi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: right;
}

.dizi-emi-table th,
.dizi-emi-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--dizi-border);
	white-space: nowrap;
}

.dizi-emi-table th {
	background: var(--dizi-bg, #f8fafc);
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	position: sticky;
	top: 0;
	z-index: 1;
}

.dizi-emi-table th:first-child,
.dizi-emi-table td:first-child {
	text-align: left;
}

.dizi-emi-table tr:hover td {
	background: rgba(99, 102, 241, 0.04);
}

/* ==========================================================================
   Advanced GST / Tax Calculator Workspace
   ========================================================================== */
.dizi-gst-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.dizi-gst-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-gst-mode-switch {
	display: inline-flex;
	background: var(--dizi-bg, #f1f5f9);
	padding: 3px;
	border-radius: 10px;
	border: 1px solid var(--dizi-border);
	gap: 4px;
}

.dizi-gst-mode-btn {
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 700;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-gst-mode-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dizi-gst-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 20px;
}

@media (max-width: 960px) {
	.dizi-gst-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-gst-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-gst-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border);
}

.dizi-gst-slabs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 8px;
}

.dizi-gst-slab-btn {
	padding: 8px 6px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	color: var(--dizi-text);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-gst-slab-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-gst-slab-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.dizi-gst-tax-type-toggle {
	display: flex;
	gap: 12px;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
}

.dizi-gst-radio-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text);
	cursor: pointer;
}

.dizi-gst-radio-label input[type="radio"] {
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
}

/* Result Card */
.dizi-gst-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-gst-hero-box {
	text-align: center;
	padding: 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-gst-hero-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 6px;
}

.dizi-gst-hero-val {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.dizi-gst-hero-sub {
	font-size: 12.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 5px;
}

.dizi-gst-stats-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-gst-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 8px;
	font-size: 13.5px;
}

.dizi-gst-stat-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dizi-text);
	font-weight: 500;
}

.dizi-gst-stat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.dizi-gst-stat-val {
	font-weight: 700;
	color: var(--dizi-text);
}

.dizi-gst-bar-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-gst-bar-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-gst-visual-bar {
	width: 100%;
	height: 14px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	background: #e2e8f0;
}

.dizi-gst-bar-net {
	background: #0ea5e9;
	height: 100%;
	transition: width 0.3s ease;
}

.dizi-gst-bar-tax {
	background: #10b981;
	height: 100%;
	transition: width 0.3s ease;
}

.dizi-gst-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-gst-action-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-gst-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-gst-action-btn.primary {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-gst-action-btn.primary:hover {
	background: #4f46e5;
}

/* ==========================================================================
   Advanced Multi-Mode Percentage Calculator Workspace
   ========================================================================== */
.dizi-percent-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.dizi-percent-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 8px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
	scrollbar-width: thin;
}

.dizi-percent-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.dizi-percent-tab-btn:hover {
	color: var(--dizi-primary, #6366f1);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-percent-tab-btn.active {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.dizi-percent-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 20px;
}

@media (max-width: 960px) {
	.dizi-percent-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-percent-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-percent-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border);
}

.dizi-percent-sentence-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dizi-text);
	padding: 16px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-percent-num-input {
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 700;
	border: 1.5px solid var(--dizi-border);
	border-radius: 8px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text);
	width: 110px;
	text-align: center;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dizi-percent-num-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-percent-num-input::-webkit-inner-spin-button,
.dizi-percent-num-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Right Column / Results */
.dizi-percent-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-percent-hero-box {
	text-align: center;
	padding: 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-percent-hero-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 6px;
}

.dizi-percent-hero-val {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.dizi-percent-hero-sub {
	font-size: 12.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 5px;
}

.dizi-percent-math-box {
	padding: 14px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-percent-math-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 2px;
}

.dizi-percent-formula-code {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	background: var(--dizi-bg, #f1f5f9);
	padding: 6px 10px;
	border-radius: 6px;
	color: var(--dizi-primary, #6366f1);
	font-weight: 600;
}

.dizi-percent-badge-change {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
}

.dizi-percent-badge-change.increase {
	background: rgba(16, 185, 129, 0.12);
	color: #10b981;
}

.dizi-percent-badge-change.decrease {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
}

.dizi-percent-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-percent-chip {
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 6px;
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border);
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-percent-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* ==========================================================================
   Advanced BMI & Body Mass Index Calculator Workspace
   ========================================================================== */
.dizi-bmi-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.dizi-bmi-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-bmi-unit-switch {
	display: inline-flex;
	background: var(--dizi-bg, #f1f5f9);
	padding: 3px;
	border-radius: 10px;
	border: 1px solid var(--dizi-border);
	gap: 4px;
}

.dizi-bmi-unit-btn {
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 700;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-bmi-unit-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dizi-bmi-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 20px;
}

@media (max-width: 960px) {
	.dizi-bmi-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-bmi-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-bmi-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border);
}

.dizi-bmi-gender-toggle {
	display: flex;
	gap: 10px;
}

.dizi-bmi-gender-btn {
	flex: 1;
	padding: 9px 12px;
	font-size: 13.5px;
	font-weight: 700;
	border: 1.5px solid var(--dizi-border);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 10px;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.dizi-bmi-gender-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-text, #1e293b);
}

.dizi-bmi-gender-btn.active {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-bmi-gender-btn.active.male {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.18));
	border-color: #3b82f6;
	color: #2563eb;
	box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.dizi-bmi-gender-btn.active.female {
	background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.18));
	border-color: #ec4899;
	color: #db2777;
	box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

[data-theme="dark"] .dizi-bmi-gender-btn.active.male {
	color: #60a5fa;
	border-color: #3b82f6;
}

[data-theme="dark"] .dizi-bmi-gender-btn.active.female {
	color: #f472b6;
	border-color: #ec4899;
}

/* Results & Gauge */
.dizi-bmi-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-bmi-hero-box {
	text-align: center;
	padding: 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 12px;
}

.dizi-bmi-hero-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 4px;
}

.dizi-bmi-hero-val {
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.dizi-bmi-category-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 700;
	margin-top: 6px;
}

.dizi-bmi-category-badge.underweight { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.dizi-bmi-category-badge.normal { background: rgba(16, 185, 129, 0.15); color: #059669; }
.dizi-bmi-category-badge.overweight { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.dizi-bmi-category-badge.obese { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

/* Visual Multi-Segment Gauge */
.dizi-bmi-gauge-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
	padding: 8px 0;
}

.dizi-bmi-gauge-bar {
	height: 14px;
	border-radius: 8px;
	display: flex;
	overflow: hidden;
	background: #e2e8f0;
	position: relative;
}

.dizi-bmi-gauge-seg {
	height: 100%;
}
.dizi-bmi-gauge-seg.underweight { background: #38bdf8; width: 22%; }
.dizi-bmi-gauge-seg.normal { background: #10b981; width: 33%; }
.dizi-bmi-gauge-seg.overweight { background: #f59e0b; width: 25%; }
.dizi-bmi-gauge-seg.obese { background: #ef4444; width: 20%; }

.dizi-bmi-needle {
	position: absolute;
	top: 0;
	width: 4px;
	height: 30px;
	background: #0f172a;
	border-radius: 2px;
	transform: translateX(-50%);
	transition: left 0.3s ease;
	box-shadow: 0 0 6px rgba(0,0,0,0.4);
	z-index: 2;
}

[data-theme="dark"] .dizi-bmi-needle {
	background: #ffffff;
}

.dizi-bmi-gauge-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

/* Insight Cards */
.dizi-bmi-insight-box {
	padding: 14px 16px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dizi-bmi-insight-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-bmi-insight-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text);
}

/* WHO Table */
.dizi-bmi-who-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border);
	border-radius: 10px;
	overflow: hidden;
}

.dizi-bmi-who-table th,
.dizi-bmi-who-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--dizi-border);
	text-align: left;
}

.dizi-bmi-who-table th {
	background: var(--dizi-bg, #f8fafc);
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-bmi-who-table tr.active-row td {
	background: rgba(99, 102, 241, 0.1);
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
}

/* BMI Healthy Tips & Recommendations */
.dizi-bmi-tips-section {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dizi-bmi-dynamic-advice {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: var(--dizi-radius-lg, 16px);
	padding: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.dizi-bmi-dynamic-advice::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--dizi-primary, #6366f1);
	border-radius: 4px 0 0 4px;
}

.dizi-bmi-advice-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.dizi-bmi-advice-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-bmi-advice-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.dizi-bmi-advice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
}

.dizi-bmi-advice-item {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	gap: 14px;
}

.dizi-bmi-advice-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.dizi-bmi-advice-content h4 {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-bmi-advice-content p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--dizi-text-secondary, #64748b);
}

/* 6 Pillar Wellness Cards */
.dizi-bmi-pillars-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: var(--dizi-radius-lg, 16px);
	padding: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.dizi-bmi-pillars-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-bmi-pillars-subtitle {
	font-size: 13px;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 20px;
}

.dizi-bmi-pillars-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px;
}

.dizi-bmi-pillar-card {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: all 0.2s ease;
}

.dizi-bmi-pillar-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.05);
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-bmi-pillar-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dizi-bmi-pillar-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	flex-shrink: 0;
}

.dizi-bmi-pillar-head h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-bmi-pillar-body {
	font-size: 13px;
	line-height: 1.55;
	color: var(--dizi-text-secondary, #64748b);
	margin: 0;
}

.dizi-bmi-pillar-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 3px 8px;
	border-radius: 6px;
	align-self: flex-start;
	margin-top: 4px;
}

/* ==========================================================================
   Meta Tag & SEO Generator Workspace Styles
   ========================================================================== */
.dizi-seo-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.dizi-seo-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 12px 18px;
}

.dizi-seo-presets {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-seo-preset-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	margin-right: 4px;
}

.dizi-seo-preset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-seo-preset-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
	transform: translateY(-1px);
}

.dizi-seo-actions-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-seo-sync-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	user-select: none;
}

.dizi-seo-sync-badge input {
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
}

.dizi-seo-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

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

/* Form Panel */
.dizi-seo-form-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-seo-nav-tabs {
	display: flex;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	overflow-x: auto;
	scrollbar-width: none;
}

.dizi-seo-nav-tabs::-webkit-scrollbar {
	display: none;
}

.dizi-seo-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	border: none;
	background: transparent;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.dizi-seo-tab-btn:hover {
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.04);
}

.dizi-seo-tab-btn.active {
	color: var(--dizi-primary, #6366f1);
	border-bottom-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
}

.dizi-seo-tab-content {
	display: none;
	padding: 22px;
}

.dizi-seo-tab-content.active {
	display: block;
}

.dizi-seo-field-group {
	margin-bottom: 18px;
}

.dizi-seo-field-group:last-child {
	margin-bottom: 0;
}

.dizi-seo-field-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.dizi-seo-label {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-seo-char-pill {
	font-size: 11.5px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-secondary, #64748b);
	transition: all 0.2s;
}

.dizi-seo-char-pill.pill-optimal {
	background: #ecfdf5;
	color: #059669;
}

.dizi-seo-char-pill.pill-warning {
	background: #fffbeb;
	color: #d97706;
}

.dizi-seo-char-pill.pill-danger {
	background: #fef2f2;
	color: #dc2626;
}

.dizi-seo-input,
.dizi-seo-textarea,
.dizi-seo-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 9px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dizi-seo-input:focus,
.dizi-seo-textarea:focus,
.dizi-seo-select:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dizi-seo-textarea {
	resize: vertical;
	min-height: 85px;
	line-height: 1.5;
}

.dizi-seo-bar {
	height: 4px;
	width: 100%;
	background: var(--dizi-border, #e2e8f0);
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}

.dizi-seo-bar-fill {
	height: 100%;
	width: 0%;
	transition: width 0.2s, background-color 0.2s;
}

.dizi-seo-bar-fill.bar-green { background: #10b981; }
.dizi-seo-bar-fill.bar-amber { background: #f59e0b; }
.dizi-seo-bar-fill.bar-red { background: #ef4444; }

.dizi-seo-hint {
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 4px;
	display: block;
}

.dizi-seo-field-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 640px) {
	.dizi-seo-field-row-2 {
		grid-template-columns: 1fr;
	}
}

.dizi-seo-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.dizi-seo-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	padding: 8px 12px;
	transition: all 0.2s ease;
}

.dizi-seo-checkbox-label:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-seo-checkbox-label input {
	accent-color: var(--dizi-primary, #6366f1);
	width: 16px;
	height: 16px;
}

/* Preview & Output Pane */
.dizi-seo-preview-pane {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-seo-preview-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-seo-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 18px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-seo-preview-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-seo-p-tab {
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 7px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-seo-p-tab:hover {
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
}

.dizi-seo-p-tab.active {
	background: var(--dizi-card-bg, #ffffff);
	border-color: var(--dizi-border, #e2e8f0);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dizi-seo-p-body {
	padding: 20px;
}

/* Device toggle for Google */
.dizi-google-device-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 6px;
	padding: 2px;
}

.dizi-device-btn {
	padding: 4px 8px;
	font-size: 11.5px;
	font-weight: 700;
	border: none;
	background: transparent;
	border-radius: 4px;
	cursor: pointer;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-device-btn.active {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

/* Google SERP Simulation */
.dizi-serp-box {
	background: #ffffff;
	border: 1px solid #dfe1e5;
	border-radius: 10px;
	padding: 16px 20px;
	max-width: 600px;
	font-family: Arial, sans-serif;
	color: #202124;
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
}

[data-theme="dark"] .dizi-serp-box {
	background: #202124;
	border-color: #3c4043;
	color: #e8eaed;
}

.dizi-serp-box.mobile-mode {
	max-width: 360px;
	padding: 14px;
	margin: 0 auto;
}

.dizi-serp-url-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.dizi-serp-favicon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f1f3f4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.dizi-serp-site-info {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	line-height: 1.3;
}

.dizi-serp-site-name {
	font-weight: 600;
	color: #202124;
}

[data-theme="dark"] .dizi-serp-site-name {
	color: #e8eaed;
}

.dizi-serp-url {
	color: #4d5156;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

[data-theme="dark"] .dizi-serp-url {
	color: #bdc1c6;
}

.dizi-serp-title {
	font-size: 20px;
	line-height: 1.3;
	color: #1a0dab;
	font-weight: 400;
	margin: 0 0 6px 0;
	cursor: pointer;
	word-break: break-word;
	text-decoration: none;
}

[data-theme="dark"] .dizi-serp-title {
	color: #8ab4f8;
}

.dizi-serp-title:hover {
	text-decoration: underline;
}

.dizi-serp-desc {
	font-size: 14px;
	line-height: 1.57;
	color: #4d5156;
	margin: 0;
	word-break: break-word;
}

[data-theme="dark"] .dizi-serp-desc {
	color: #bdc1c6;
}

/* Facebook / OpenGraph Card Simulation */
.dizi-fb-card {
	background: #ffffff;
	border: 1px solid #ced0d4;
	border-radius: 10px;
	overflow: hidden;
	max-width: 520px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dizi-fb-card {
	background: #242526;
	border-color: #3e4042;
}

.dizi-fb-img-wrap {
	width: 100%;
	aspect-ratio: 1.91 / 1;
	background: #f0f2f5;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

[data-theme="dark"] .dizi-fb-img-wrap {
	background: #3a3b3c;
}

.dizi-fb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dizi-fb-meta {
	padding: 12px 16px;
	background: #f0f2f5;
	border-top: 1px solid #e4e6eb;
}

[data-theme="dark"] .dizi-fb-meta {
	background: #242526;
	border-top-color: #3e4042;
}

.dizi-fb-domain {
	font-size: 11.5px;
	text-transform: uppercase;
	color: #65676b;
	margin-bottom: 4px;
	letter-spacing: 0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

[data-theme="dark"] .dizi-fb-domain {
	color: #b0b3b8;
}

.dizi-fb-title {
	font-size: 16px;
	font-weight: 700;
	color: #050505;
	margin: 0 0 4px 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-theme="dark"] .dizi-fb-title {
	color: #e4e6eb;
}

.dizi-fb-desc {
	font-size: 13.5px;
	color: #65676b;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-theme="dark"] .dizi-fb-desc {
	color: #b0b3b8;
}

/* Twitter / X Card Simulation */
.dizi-tw-card {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #cfd9de;
	background: #ffffff;
	max-width: 520px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dizi-tw-card {
	background: #000000;
	border-color: #2f3336;
}

.dizi-tw-img-wrap {
	width: 100%;
	aspect-ratio: 2 / 1;
	background: #eff3f4;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

[data-theme="dark"] .dizi-tw-img-wrap {
	background: #16181c;
}

.dizi-tw-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dizi-tw-domain-pill {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	backdrop-filter: blur(4px);
}

.dizi-tw-meta {
	padding: 12px 16px;
}

.dizi-tw-domain-text {
	font-size: 13px;
	color: #536471;
	margin-bottom: 2px;
}

[data-theme="dark"] .dizi-tw-domain-text {
	color: #71767b;
}

.dizi-tw-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f1419;
	margin: 0 0 4px 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-theme="dark"] .dizi-tw-title {
	color: #e7e9ea;
}

.dizi-tw-desc {
	font-size: 13.5px;
	color: #536471;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-theme="dark"] .dizi-tw-desc {
	color: #71767b;
}

/* Compact summary style for Twitter */
.dizi-tw-summary-layout {
	display: flex;
}

.dizi-tw-summary-img-wrap {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	background: #eff3f4;
	overflow: hidden;
}

/* WhatsApp Simulation */
.dizi-wa-bubble {
	max-width: 380px;
	margin: 0 auto;
	background: #d9fdd3;
	border-radius: 10px 10px 2px 10px;
	padding: 6px;
	box-shadow: 0 1px 2px rgba(11, 20, 26, 0.13);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] .dizi-wa-bubble {
	background: #005c4b;
	color: #e9edef;
}

.dizi-wa-card {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	overflow: hidden;
}

[data-theme="dark"] .dizi-wa-card {
	background: rgba(0, 0, 0, 0.2);
}

.dizi-wa-img-wrap {
	width: 100%;
	aspect-ratio: 1.8 / 1;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.dizi-wa-meta {
	padding: 10px;
}

.dizi-wa-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #111b21;
	margin: 0 0 3px 0;
	line-height: 1.3;
}

[data-theme="dark"] .dizi-wa-title {
	color: #e9edef;
}

.dizi-wa-desc {
	font-size: 12.5px;
	color: #667781;
	margin: 0 0 4px 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

[data-theme="dark"] .dizi-wa-desc {
	color: #8696a0;
}

.dizi-wa-url {
	font-size: 11.5px;
	color: #00a884;
}

[data-theme="dark"] .dizi-wa-url {
	color: #25d366;
}

/* SEO Audit / Score Widget */
.dizi-seo-audit-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-seo-score-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	margin-bottom: 12px;
}

.dizi-seo-score-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dizi-seo-score-dial {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.dizi-seo-score-details h4 {
	margin: 0 0 2px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-seo-score-details p {
	margin: 0;
	font-size: 12.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-seo-checklist {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dizi-seo-check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--dizi-text, #1e293b);
}

.dizi-check-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.check-pass {
	background: #ecfdf5;
	color: #059669;
}

.check-warn {
	background: #fffbeb;
	color: #d97706;
}

.check-fail {
	background: #fef2f2;
	color: #dc2626;
}

/* Code Output Box */
.dizi-seo-code-box {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-seo-code-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	flex-wrap: wrap;
	gap: 8px;
}

.dizi-seo-code-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-seo-code-actions {
	display: flex;
	gap: 8px;
}

.dizi-seo-code-pre {
	margin: 0;
	padding: 16px;
	font-family: "Fira Code", Monaco, Consolas, "Courier New", monospace;
	font-size: 12.5px;
	line-height: 1.6;
	background: #0f172a;
	color: #e2e8f0;
	max-height: 380px;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

.dizi-seo-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.dizi-seo-btn-sm:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-seo-btn-sm.btn-primary {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-seo-btn-sm.btn-primary:hover {
	background: var(--dizi-primary-hover, #4f46e5);
}

/* ==========================================================================
   Universal Unit Converter Engine Styles
   ========================================================================== */
.dizi-unit-container {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.dizi-unit-categories {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 10px 2px;
	scrollbar-width: thin;
}

.dizi-unit-categories::-webkit-scrollbar {
	height: 6px;
}

.dizi-unit-categories::-webkit-scrollbar-thumb {
	background: var(--dizi-border, #cbd5e1);
	border-radius: 4px;
}

.dizi-unit-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 700;
	border-radius: 10px;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}

.dizi-unit-cat-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
}

.dizi-unit-cat-btn.active {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.dizi-unit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

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

/* Main Conversion Card */
.dizi-unit-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dizi-unit-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-unit-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-unit-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-unit-precision {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-unit-precision select {
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
}

/* Dual Conversion Boxes Row */
.dizi-unit-convert-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
}

@media (max-width: 640px) {
	.dizi-unit-convert-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.dizi-unit-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dizi-unit-box:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-unit-box-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-unit-input {
	width: 100%;
	font-size: 24px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	background: transparent;
	border: none;
	outline: none;
	padding: 0;
	font-family: inherit;
}

.dizi-unit-select {
	width: 100%;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 600;
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	outline: none;
}

.dizi-unit-select:focus {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-unit-swap-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	align-self: center;
	margin: 0 auto;
}

.dizi-unit-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: rotate(180deg) scale(1.08);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Formula & Equivalent Bar */
.dizi-unit-formula-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.06));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 10px;
	padding: 12px 16px;
}

.dizi-unit-formula-text {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-unit-formula-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-unit-formula-copy-btn {
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s;
}

.dizi-unit-formula-copy-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* Quick Category Presets Chips */
.dizi-unit-presets-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-unit-presets-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-unit-chips-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-unit-chip {
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-unit-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
	transform: translateY(-1px);
}

/* All Units Comparison Matrix Card (Right Column) */
.dizi-unit-matrix-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-unit-matrix-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-unit-matrix-title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-unit-matrix-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 480px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.dizi-unit-matrix-list::-webkit-scrollbar {
	width: 5px;
}

.dizi-unit-matrix-list::-webkit-scrollbar-thumb {
	background: var(--dizi-border, #cbd5e1);
	border-radius: 4px;
}

.dizi-unit-matrix-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	transition: all 0.2s ease;
}

.dizi-unit-matrix-item:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	transform: translateX(2px);
}

.dizi-unit-matrix-item.is-active-unit {
	border-color: var(--dizi-primary, #6366f1);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
}

.dizi-unit-item-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-unit-item-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-unit-item-sym {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-unit-item-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-unit-item-val {
	font-size: 15px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	font-family: inherit;
	word-break: break-all;
	text-align: right;
}

.dizi-unit-copy-chip {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-secondary, #64748b);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
}

.dizi-unit-copy-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
}

/* ==========================================================================
   Currency Converter & Live Forex Exchange Styles
   ========================================================================== */
.dizi-curr-container {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.dizi-curr-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

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

.dizi-curr-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dizi-curr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-curr-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-curr-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
}

.dizi-curr-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: diziPulseGreen 2s infinite;
}

@keyframes diziPulseGreen {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* Currency Input Row */
.dizi-curr-convert-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
}

@media (max-width: 640px) {
	.dizi-curr-convert-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.dizi-curr-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dizi-curr-box:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-curr-box-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-curr-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-curr-sym {
	font-size: 22px;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
}

.dizi-curr-input {
	width: 100%;
	font-size: 24px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	background: transparent;
	border: none;
	outline: none;
	padding: 0;
	font-family: inherit;
}

.dizi-curr-select {
	width: 100%;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 600;
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	outline: none;
}

.dizi-curr-select:focus {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-curr-swap-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	align-self: center;
	margin: 0 auto;
}

.dizi-curr-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: rotate(180deg) scale(1.08);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Quick Amount Pills */
.dizi-curr-amt-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-curr-amt-btn {
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.2s;
}

.dizi-curr-amt-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* Exchange Rate Bar */
.dizi-curr-rate-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.06));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 10px;
	padding: 12px 16px;
}

.dizi-curr-rate-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-curr-rate-headline {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
}

.dizi-curr-rate-inverse {
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-curr-refresh-btn {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.dizi-curr-refresh-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-curr-refresh-btn.spinning svg {
	animation: diziSpin 1s linear infinite;
}

@keyframes diziSpin {
	100% { transform: rotate(360deg); }
}

/* Forex Pairs Chips */
.dizi-curr-pairs-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-curr-pairs-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-curr-chips-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-curr-pair-chip {
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.dizi-curr-pair-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
	transform: translateY(-1px);
}

/* Multi-Currency Matrix Card (Right Column) */
.dizi-curr-matrix-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-curr-matrix-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-curr-matrix-title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-curr-matrix-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 480px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.dizi-curr-matrix-list::-webkit-scrollbar {
	width: 5px;
}

.dizi-curr-matrix-list::-webkit-scrollbar-thumb {
	background: var(--dizi-border, #cbd5e1);
	border-radius: 4px;
}

.dizi-curr-matrix-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	transition: all 0.2s ease;
}

.dizi-curr-matrix-item:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	transform: translateX(2px);
}

.dizi-curr-matrix-item.is-selected-to {
	border-color: var(--dizi-primary, #6366f1);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.08));
}

.dizi-curr-matrix-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-curr-matrix-flag {
	font-size: 22px;
	line-height: 1;
}

.dizi-curr-matrix-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-curr-matrix-code {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
}

.dizi-curr-matrix-name {
	font-size: 11.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-curr-matrix-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-curr-matrix-val {
	font-size: 15px;
	font-weight: 800;
	color: var(--dizi-text, #1e293b);
	text-align: right;
}

.dizi-curr-copy-chip {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-secondary, #64748b);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
}

.dizi-curr-copy-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
}

/* Cheat Sheet Table (Below Converter) */
.dizi-curr-sheet-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-curr-sheet-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 768px) {
	.dizi-curr-sheet-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-curr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dizi-curr-table th,
.dizi-curr-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	text-align: left;
}

.dizi-curr-table th {
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-curr-table tr:hover td {
	background: rgba(99, 102, 241, 0.03);
}

/* ==========================================================================
   Time & Timezone Converter Engine Styles
   ========================================================================== */
.dizi-time-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: inherit;
}

/* Tabs Bar */
.dizi-time-tabs-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 6px;
}

.dizi-time-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: none;
	background: transparent;
	color: var(--dizi-text-secondary, #64748b);
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-time-tab:hover {
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

.dizi-time-tab.active {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Preset Chips */
.dizi-time-presets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.dizi-time-presets-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-right: 4px;
}

.dizi-tz-preset-chip,
.dizi-unit-preset-chip {
	padding: 6px 12px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-tz-preset-chip:hover,
.dizi-unit-preset-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.06);
	transform: translateY(-1px);
}

/* Two-Column Grid */
.dizi-time-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: stretch;
	gap: 16px;
}

@media (max-width: 900px) {
	.dizi-time-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-time-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-time-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-time-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-time-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(99, 102, 241, 0.1);
	font-size: 16px;
}

.dizi-live-clock-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #065f46;
	font-variant-numeric: tabular-nums;
}

.dizi-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	animation: diziPulse 1.8s infinite;
}

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

.dizi-time-toggle-btn {
	padding: 5px 12px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 12px;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-time-toggle-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* Field Controls */
.dizi-time-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-time-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-time-select,
.dizi-time-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dizi-time-select:focus,
.dizi-time-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-time-row-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 500px) {
	.dizi-time-row-2col {
		grid-template-columns: 1fr;
	}
}

.dizi-input-with-action {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-time-action-btn {
	padding: 10px 12px;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.dizi-time-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* 24-Hour Timeline Scrubber */
.dizi-timeline-scrubber {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-timeline-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-timeline-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-timeline-badge {
	font-size: 13px;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 3px 8px;
	border-radius: 6px;
	font-variant-numeric: tabular-nums;
}

.dizi-hour-slider {
	width: 100%;
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	margin: 6px 0;
}

.dizi-timeline-ticks {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #94a3b8);
}

.dizi-quick-hours {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.dizi-qhour-btn {
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 6px;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-qhour-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* Swap Column */
.dizi-time-swap-col {
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-time-swap-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	font-size: 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.dizi-time-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: rotate(180deg) scale(1.08);
}

/* Target Result Box */
.dizi-time-result-box {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
	border: 1.5px solid rgba(99, 102, 241, 0.2);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dizi-result-time {
	font-size: 34px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	letter-spacing: -0.5px;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.dizi-result-date {
	font-size: 14px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-result-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.dizi-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.dizi-badge-same {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.dizi-badge-next {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.dizi-badge-prev {
	background: #fff7ed;
	color: #9a3412;
	border: 1px solid #fed7aa;
}

.dizi-work-active {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.dizi-work-warn {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.dizi-work-night {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.dizi-time-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.dizi-btn-action-primary,
.dizi-btn-action-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-btn-action-primary {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border: none;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.dizi-btn-action-primary:hover {
	background: #4f46e5;
	transform: translateY(-1px);
}

.dizi-btn-action-secondary {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	border: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-btn-action-secondary:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* World Hubs Grid */
.dizi-world-hubs-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-world-hubs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-hubs-legend {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-dot-active,
.dizi-dot-warn,
.dizi-dot-night {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 4px;
}

.dizi-dot-active { background: #10b981; }
.dizi-dot-warn { background: #f59e0b; }
.dizi-dot-night { background: #ef4444; }

.dizi-world-hubs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 14px;
}

.dizi-hub-card {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.2s ease;
}

.dizi-hub-card:hover {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
	transform: translateY(-2px);
}

.dizi-hub-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-hub-flag-name {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-hub-flag {
	font-size: 22px;
	line-height: 1;
}

.dizi-hub-city {
	font-size: 14px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	display: block;
}

.dizi-hub-country {
	font-size: 11px;
	color: var(--dizi-text-secondary, #64748b);
	display: block;
}

.dizi-hub-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dizi-hub-time-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 4px;
}

.dizi-hub-time {
	font-size: 20px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	font-variant-numeric: tabular-nums;
}

.dizi-hub-offset {
	font-size: 11px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-hub-date-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-hub-day-tag {
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 10px;
}

.dizi-hub-copy-btn {
	margin-top: 4px;
	padding: 5px 10px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.dizi-hub-copy-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* Unit Converter Styles */
.dizi-unit-calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 800px) {
	.dizi-unit-calc-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-unit-selects-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.dizi-unit-primary-result {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
	border: 1.5px solid rgba(99, 102, 241, 0.2);
	border-radius: 10px;
	padding: 16px;
	margin-top: 10px;
}

.dizi-unit-res-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	display: block;
	margin-bottom: 6px;
}

.dizi-unit-res-val {
	font-size: 22px;
	color: var(--dizi-text, #0f172a);
	word-break: break-all;
}

.dizi-duration-box {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-duration-text {
	font-size: 18px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
}

.dizi-duration-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dizi-dtag {
	padding: 4px 10px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text, #334155);
}

.dizi-unit-matrix-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 10px;
}

.dizi-matrix-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
}

.dizi-matrix-unit {
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-matrix-val-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-matrix-val {
	font-size: 13px;
	color: var(--dizi-text, #0f172a);
	font-variant-numeric: tabular-nums;
}

.dizi-matrix-copy-btn {
	padding: 3px 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	color: var(--dizi-text, #1e293b);
	transition: all 0.15s ease;
}

.dizi-matrix-copy-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* Date Diff Styles */
.dizi-diff-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
	border: 1.5px solid rgba(99, 102, 241, 0.2);
	border-radius: 12px;
	padding: 20px;
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-diff-primary-val {
	font-size: 24px;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
}

.dizi-diff-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

@media (max-width: 600px) {
	.dizi-diff-metrics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.dizi-diff-metric-box {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.dizi-diff-metric-num {
	font-size: 20px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	font-variant-numeric: tabular-nums;
}

.dizi-diff-metric-lbl {
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 4px;
}

/* ==========================================================================
   Temperature Converter Engine Styles
   ========================================================================== */
.dizi-temp-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-family: inherit;
}

/* Gauge Card */
.dizi-temp-gauge-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dizi-gauge-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.dizi-gauge-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-gauge-icon {
	font-size: 26px;
	line-height: 1;
}

.dizi-temp-state-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1.5px solid #10b981;
	background: var(--dizi-bg, #f8fafc);
	font-size: 13px;
	font-weight: 700;
	color: #10b981;
	transition: all 0.3s ease;
}

.dizi-temp-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	animation: diziPulse 1.8s infinite;
}

.dizi-mercury-track {
	width: 100%;
	height: 14px;
	background: var(--dizi-bg, #e2e8f0);
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dizi-mercury-fill {
	height: 100%;
	width: 45%;
	border-radius: 20px;
	background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}

.dizi-mercury-scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	flex-wrap: wrap;
	gap: 4px;
}

/* 2-Column Grid */
.dizi-temp-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 900px) {
	.dizi-temp-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-temp-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-temp-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-temp-precision-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
	font-weight: 600;
}

.dizi-temp-select-sm {
	padding: 4px 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 12px;
	color: var(--dizi-text, #1e293b);
	outline: none;
	cursor: pointer;
}

.dizi-temp-convert-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dizi-temp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-temp-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-temp-input-group {
	display: flex;
	gap: 8px;
	align-items: center;
}

.dizi-temp-input {
	flex: 1;
	padding: 12px 16px;
	font-size: 20px;
	font-weight: 700;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-variant-numeric: tabular-nums;
}

.dizi-temp-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-temp-output {
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-primary, #6366f1);
	border-color: rgba(99, 102, 241, 0.25);
}

.dizi-temp-select-unit {
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	outline: none;
	cursor: pointer;
	min-width: 140px;
	transition: border-color 0.15s ease;
}

.dizi-temp-select-unit:focus {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-temp-steppers {
	display: flex;
	gap: 6px;
}

.dizi-step-btn {
	padding: 4px 10px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-step-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

.dizi-temp-swap-wrap {
	display: flex;
	justify-content: center;
	margin: -4px 0;
}

.dizi-temp-swap-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.dizi-temp-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: rotate(180deg) scale(1.08);
}

.dizi-temp-action-btn {
	padding: 10px 14px;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.dizi-temp-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* Formula Breakdown Card */
.dizi-temp-formula-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
	border: 1.5px solid rgba(99, 102, 241, 0.2);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-formula-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-formula-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 3px 8px;
	border-radius: 4px;
}

.dizi-formula-copy-btn {
	border: none;
	background: transparent;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	text-decoration: underline;
}

.dizi-formula-rule {
	font-size: 15px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
}

.dizi-formula-calc {
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	font-variant-numeric: tabular-nums;
}

/* All Scales Matrix */
.dizi-temp-matrix-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-temp-matrix-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	transition: all 0.15s ease;
}

.dizi-temp-matrix-item:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.03);
}

.dizi-temp-matrix-item.active-scale {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	box-shadow: 0 0 0 1px var(--dizi-primary, #6366f1);
}

.dizi-matrix-item-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-scale-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-scale-sym {
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-card-bg, #ffffff);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-matrix-item-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-matrix-val {
	font-size: 16px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	font-variant-numeric: tabular-nums;
}

/* Benchmarks Grid */
.dizi-temp-benchmarks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 12px;
}

.dizi-benchmark-card {
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-benchmark-card:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
	transform: translateY(-2px);
}

.dizi-bm-icon-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-bm-icon {
	font-size: 20px;
}

.dizi-bm-c {
	font-size: 13px;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
}

.dizi-bm-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	margin-top: 2px;
}

.dizi-bm-equiv {
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-bm-desc {
	font-size: 11px;
	color: var(--dizi-text-secondary, #94a3b8);
	margin-top: 2px;
}

/* Reference Table */
.dizi-temp-table-scroll {
	overflow-x: auto;
}

.dizi-temp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dizi-temp-table th,
.dizi-temp-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	text-align: left;
}

.dizi-temp-table th {
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-temp-table tr:hover td {
	background: rgba(99, 102, 241, 0.02);
}

.dizi-table-tag {
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
}

/* ==========================================================================
   Length & Distance Converter Engine Styles
   ========================================================================== */
.dizi-length-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-family: inherit;
}

/* Physical Scale Card */
.dizi-length-scale-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 18px 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dizi-lscale-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.dizi-lscale-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dizi-lscale-icon {
	font-size: 28px;
	line-height: 1;
}

.dizi-lscale-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: rgba(99, 102, 241, 0.08);
	border: 1px solid rgba(99, 102, 241, 0.25);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
	font-variant-numeric: tabular-nums;
}

/* 2-Column Grid */
.dizi-length-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 18px;
	align-items: stretch;
}

@media (max-width: 900px) {
	.dizi-length-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-length-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-length-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-length-precision-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
	font-weight: 600;
}

.dizi-length-select-sm {
	padding: 4px 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 12px;
	color: var(--dizi-text, #1e293b);
	outline: none;
	cursor: pointer;
}

.dizi-length-convert-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dizi-length-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-length-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-length-input-group {
	display: flex;
	gap: 8px;
	align-items: center;
}

.dizi-length-input {
	flex: 1;
	padding: 12px 16px;
	font-size: 20px;
	font-weight: 700;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-variant-numeric: tabular-nums;
}

.dizi-length-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dizi-length-output {
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-primary, #6366f1);
	border-color: rgba(99, 102, 241, 0.25);
}

.dizi-length-select-unit {
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	outline: none;
	cursor: pointer;
	min-width: 170px;
	max-width: 220px;
	transition: border-color 0.15s ease;
}

.dizi-length-select-unit:focus {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-length-steppers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.dizi-lstep-btn {
	padding: 4px 10px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-lstep-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

.dizi-length-swap-wrap {
	display: flex;
	justify-content: center;
	margin: -4px 0;
}

.dizi-length-swap-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.dizi-length-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
	transform: rotate(180deg) scale(1.08);
}

.dizi-length-action-btn {
	padding: 10px 14px;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.dizi-length-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

/* Feet & Inches Composite Card */
.dizi-feet-inches-card {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-fi-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-fi-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #166534;
}

.dizi-fi-copy-btn {
	border: none;
	background: transparent;
	font-size: 11px;
	font-weight: 700;
	color: #16a34a;
	cursor: pointer;
	text-decoration: underline;
}

.dizi-fi-val {
	font-size: 20px;
	font-weight: 800;
	color: #14532d;
	font-variant-numeric: tabular-nums;
}

.dizi-fi-sub {
	font-size: 11.5px;
	color: #4b5563;
}

/* Formula Card */
.dizi-length-formula-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
	border: 1.5px solid rgba(99, 102, 241, 0.2);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-lformula-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-lformula-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 3px 8px;
	border-radius: 4px;
}

.dizi-lformula-copy-btn {
	border: none;
	background: transparent;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	text-decoration: underline;
}

.dizi-lformula-rule {
	font-size: 15px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
}

.dizi-lformula-calc {
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	font-variant-numeric: tabular-nums;
}

/* All Units Matrix */
.dizi-length-matrix-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 480px;
	overflow-y: auto;
	padding-right: 4px;
}

.dizi-length-matrix-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	transition: all 0.15s ease;
}

.dizi-length-matrix-item:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.03);
}

.dizi-length-matrix-item.active-unit {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	box-shadow: 0 0 0 1px var(--dizi-primary, #6366f1);
}

.dizi-lunit-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-lunit-sym {
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-card-bg, #ffffff);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-lmatrix-val {
	font-size: 14px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	font-variant-numeric: tabular-nums;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dizi-lmatrix-copy-btn {
	padding: 3px 8px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	color: var(--dizi-text, #1e293b);
	transition: all 0.15s ease;
}

.dizi-lmatrix-copy-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

/* Presets Grid */
.dizi-length-presets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 12px;
}

.dizi-lpreset-card {
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-lpreset-card:hover {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
	transform: translateY(-2px);
}

.dizi-lp-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-lp-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

.dizi-lp-val {
	font-size: 11px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 2px 6px;
	border-radius: 4px;
}

.dizi-lp-desc {
	font-size: 11px;
	color: var(--dizi-text-secondary, #64748b);
	margin-top: 2px;
}

/* Table */
.dizi-length-table-scroll {
	overflow-x: auto;
}

.dizi-length-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dizi-length-table th,
.dizi-length-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	text-align: left;
}

.dizi-length-table th {
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-length-table tr:hover td {
	background: rgba(99, 102, 241, 0.02);
}

/* ==========================================================================
   Passport Photo Maker Engine Styles
   ========================================================================== */
.dizi-passport-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: inherit;
}

.dizi-pass-drop-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(99, 102, 241, 0.1);
	color: var(--dizi-primary, #6366f1);
	margin-bottom: 10px;
}

.dizi-pass-workspace {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-pass-grid {
	display: grid;
	grid-template-columns: minmax(min(100%, 320px), 430px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

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

.dizi-pass-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.dizi-pass-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-guide-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-guide-toggle-btn.active {
	background: #ecfdf5;
	border-color: #10b981;
	color: #065f46;
}

/* Canvas Area */
.dizi-pass-canvas-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #0f172a;
	border-radius: 12px;
	padding: 16px;
	min-height: 440px;
	position: relative;
	overflow: hidden;
}

.dizi-pass-canvas {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	border-radius: 4px;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.dizi-pass-hint {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 10px;
	text-align: center;
}

/* Toolbar */
.dizi-pass-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 12px 16px;
}

.dizi-pass-tool-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-pass-tool-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
	min-width: 90px;
}

.dizi-ptool-btn {
	padding: 5px 10px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-ptool-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-pass-slider {
	flex: 1;
	min-width: 0;
	width: 100%;
	accent-color: var(--dizi-primary, #6366f1);
	cursor: pointer;
	box-sizing: border-box;
}

.dizi-pass-num-badge {
	font-size: 11px;
	font-weight: 800;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 2px 6px;
	border-radius: 4px;
	font-variant-numeric: tabular-nums;
	min-width: 36px;
	text-align: center;
	flex-shrink: 0;
}

/* Preview Bar */
.dizi-pass-preview-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
}

.dizi-pass-preview-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-pass-preview-info strong {
	font-size: 13px;
	color: var(--dizi-text, #0f172a);
}

.dizi-pass-preview-info span {
	font-size: 11.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-pass-mini-preview {
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	line-height: 0;
	flex-shrink: 0;
}

/* Form Controls */
.dizi-pass-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-pass-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-pass-select,
.dizi-pass-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	outline: none;
	transition: border-color 0.15s ease;
}

.dizi-pass-select:focus,
.dizi-pass-input:focus {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-pass-custom-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Background Color Chips */
.dizi-pass-bg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dizi-bg-color-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-bg-color-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-bg-color-btn.active {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	color: var(--dizi-primary, #6366f1);
}

.dizi-color-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

/* Sliders */
.dizi-pass-sliders-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	min-width: 0;
}

@media (max-width: 580px) {
	.dizi-pass-sliders-grid {
		grid-template-columns: 1fr;
	}
}

.dizi-slider-head {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	margin-bottom: 4px;
}

/* Layout Cards */
.dizi-pass-layout-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-layout-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 14px;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	background: var(--dizi-bg, #f8fafc);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-layout-card:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-layout-card.active {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

.dizi-layout-card input[type="radio"] {
	margin-top: 3px;
	accent-color: var(--dizi-primary, #6366f1);
}

.dizi-layout-card-inner {
	display: flex;
	flex-direction: column;
}

.dizi-layout-card-inner strong {
	font-size: 13px;
	color: var(--dizi-text, #0f172a);
}

.dizi-layout-card-inner span {
	font-size: 11px;
	color: var(--dizi-text-secondary, #64748b);
}

/* Photo Quantity Stepper & Presets */
.dizi-qty-stepper-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.dizi-qty-stepper {
	display: inline-flex;
	align-items: center;
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dizi-qty-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--dizi-text, #1e293b);
	font-size: 18px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}

.dizi-qty-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-qty-btn:active {
	transform: scale(0.92);
}

.dizi-pass-qty-input {
	width: 60px;
	height: 36px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	outline: none;
	-moz-appearance: textfield;
}

.dizi-pass-qty-input::-webkit-outer-spin-button,
.dizi-pass-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dizi-qty-presets-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.dizi-qty-preset-btn {
	padding: 5px 11px;
	border-radius: 7px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-qty-preset-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}

.dizi-qty-preset-btn.active {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

/* Real-Time Sheet & Page Status Card */
.dizi-sheet-calc-card {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(99, 102, 241, 0.05);
	border: 1.5px solid rgba(99, 102, 241, 0.22);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-sheet-calc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
}

.dizi-sheet-calc-label {
	color: var(--dizi-text-secondary, #64748b);
	font-weight: 600;
}

.dizi-sheet-calc-value {
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
}

.dizi-sheet-multipage-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 7px;
	background: #eff6ff;
	color: #1e40af;
	font-size: 11.5px;
	font-weight: 700;
	border: 1px solid #bfdbfe;
	margin-top: 4px;
}

/* Modal Page Navigation Bar */
.dizi-modal-page-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 8px 14px;
	background: #f1f5f9;
	border-radius: 8px;
	margin-bottom: 12px;
	width: 100%;
	box-sizing: border-box;
}

.dizi-page-nav-btn {
	padding: 6px 14px;
	border-radius: 7px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 12.5px;
	font-weight: 700;
	color: #1e293b;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-page-nav-btn:hover:not(:disabled) {
	background: #6366f1;
	color: #ffffff;
	border-color: #6366f1;
}

.dizi-page-nav-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.dizi-page-nav-info {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

/* Actions */
.dizi-pass-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
}

.dizi-btn-sheet-preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border-radius: 10px;
	border: 1.5px solid var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	color: var(--dizi-primary, #6366f1);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dizi-btn-sheet-preview:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
	transform: translateY(-1px);
}

.dizi-btn-action-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 18px;
	border-radius: 10px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-btn-action-secondary:hover {
	border-color: var(--dizi-text, #0f172a);
	background: var(--dizi-bg, #f8fafc);
	transform: translateY(-1px);
}

.dizi-btn-action-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border-radius: 10px;
	border: none;
	background: linear-gradient(135deg, var(--dizi-primary, #4f46e5) 0%, var(--dizi-primary-hover, #4338ca) 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dizi-btn-action-primary:hover {
	filter: brightness(1.08);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
	transform: translateY(-1px);
}

/* Printable Sheet Preview Modal */
.dizi-sheet-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 999999;
	display: flex;
	align-items: flex-start; /* Changed from center to allow scrolling */
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto; /* Allow scrolling if modal is taller than screen */
	animation: diziModalFadeIn 0.2s ease-out;
}

@keyframes diziModalFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.dizi-sheet-modal {
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	width: 100%;
	max-width: 960px;
	margin: auto; /* Keeps it centered vertically if there's space */
	display: flex;
	flex-direction: column;
	animation: diziModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid var(--dizi-border, #e2e8f0);
}

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

.dizi-sheet-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 22px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-sheet-modal-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dizi-sheet-modal-title h3 {
	margin: 0 0 2px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
}

.dizi-sheet-modal-close {
	background: transparent;
	border: none;
	font-size: 18px;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.dizi-sheet-modal-close:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

/* Modal In-Window Studio Toolbar */
.dizi-modal-toolbar {
	padding: 12px 20px;
	background: #f8fafc;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-modal-toolbar-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.dizi-modal-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-modal-group-label {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin: 0;
}

.dizi-modal-pill-group {
	display: inline-flex;
	align-items: center;
	background: #e2e8f0;
	border-radius: 8px;
	padding: 3px;
	gap: 3px;
	flex-wrap: wrap;
}

.dizi-modal-tab-btn,
.dizi-modal-orient-btn {
	border: none;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	background: transparent;
	color: #475569;
	transition: all 0.15s ease;
	line-height: 1.2;
}

.dizi-modal-tab-btn:hover,
.dizi-modal-orient-btn:hover {
	background: rgba(255, 255, 255, 0.6);
	color: #0f172a;
}

.dizi-modal-tab-btn.active {
	background: #6366f1;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.dizi-modal-orient-btn.active {
	background: #059669;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.dizi-modal-qty-preset-btn {
	border: none;
	padding: 4px 7px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	background: transparent;
	color: #475569;
	transition: all 0.15s ease;
	min-width: 26px;
	text-align: center;
}

.dizi-modal-qty-preset-btn:hover {
	background: rgba(255, 255, 255, 0.7);
	color: #0f172a;
}

.dizi-modal-qty-preset-btn.active {
	background: #4f46e5;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.dizi-modal-waste-badge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 11.5px;
	color: #065f46;
}

.dizi-sheet-modal-body {
	padding: 24px;
	background: #090d16;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 380px;
}

.dizi-sheet-preview-paper {
	background: #ffffff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	max-width: 100%;
	max-height: 54vh;
	object-fit: contain;
	display: block;
}

.dizi-sheet-modal-info-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 22px;
	background: var(--dizi-card-bg, #ffffff);
	border-top: 1px solid var(--dizi-border, #e2e8f0);
	font-size: 12px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-sheet-modal-info-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-sheet-modal-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px;
	background: var(--dizi-bg, #f8fafc);
	border-top: 1px solid var(--dizi-border, #e2e8f0);
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.dizi-sheet-modal-head {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.dizi-sheet-modal-head > div:last-child {
		justify-content: space-between;
		width: 100%;
	}
	.dizi-modal-toolbar {
		padding: 10px 14px;
	}
	.dizi-modal-toolbar-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.dizi-modal-group {
		width: 100%;
		justify-content: space-between;
	}
	.dizi-modal-pill-group {
		width: 100%;
		justify-content: stretch;
	}
	.dizi-modal-pill-group button {
		flex: 1 1 auto;
		text-align: center;
	}
	.dizi-sheet-modal-foot {
		justify-content: stretch;
	}
	.dizi-sheet-modal-foot button {
		flex: 1 1 100%;
	}
}

/* Printable Sheet Custom Photo Quantity & Multi-Sheet System */
.dizi-pass-qty-section {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	box-sizing: border-box;
}

.dizi-qty-stepper {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dizi-qty-stepper-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: none;
	background: #f1f5f9;
	color: #1e293b;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	line-height: 1;
}

.dizi-qty-stepper-btn:hover {
	background: #6366f1;
	color: #ffffff;
	transform: scale(1.05);
}

.dizi-qty-stepper-btn:active {
	transform: scale(0.95);
}

.dizi-qty-input {
	flex: 1;
	width: 100%;
	border: none;
	background: transparent;
	font-size: 18px;
	font-weight: 800;
	text-align: center;
	color: var(--dizi-text, #0f172a);
	outline: none;
	padding: 2px;
	-moz-appearance: textfield;
}

.dizi-qty-input::-webkit-outer-spin-button,
.dizi-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dizi-qty-presets {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.dizi-qty-preset-btn {
	flex: 1 1 auto;
	min-width: 36px;
	padding: 5px 8px;
	border-radius: 7px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #0f172a);
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}

.dizi-qty-preset-btn:hover {
	border-color: #6366f1;
	color: #6366f1;
	background: #f5f3ff;
}

.dizi-qty-preset-btn.active {
	background: #6366f1;
	border-color: #6366f1;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.dizi-sheet-calc-card {
	margin-top: 10px;
	padding: 10px 12px;
	background: #ffffff;
	border-radius: 9px;
	border: 1px solid #e2e8f0;
	font-size: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.dizi-sheet-calc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.dizi-sheet-calc-label {
	color: #64748b;
	font-weight: 500;
}

.dizi-sheet-calc-value {
	color: #0f172a;
	font-weight: 700;
	text-align: right;
}

.dizi-sheet-multipage-badge {
	margin-top: 4px;
	padding: 6px 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	color: #1e40af;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 600;
}

.dizi-modal-sheet-pager button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Photo Border Styles */
.dizi-border-preset-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dizi-border-preset-btn {
	padding: 6px 4px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: all 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.dizi-border-preset-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-border-preset-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-border-color-chips {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-bcolor-chip {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	padding: 0;
}

.dizi-bcolor-chip:hover {
	transform: scale(1.15);
}

.dizi-bcolor-chip.active {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
	transform: scale(1.1);
}

.dizi-border-picker {
	width: 26px;
	height: 24px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
	background: transparent;
}

/* Formal Attire / Suit Changer Styles */
.dizi-attire-nav {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.dizi-attire-tab-btn {
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 700;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-attire-tab-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-attire-tab-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-attire-scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.dizi-attire-card {
	flex: 0 0 82px;
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 7px 5px;
	background: var(--dizi-card-bg, #ffffff);
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
	user-select: none;
}

.dizi-attire-card:hover {
	border-color: var(--dizi-primary, #6366f1);
	transform: translateY(-2px);
}

.dizi-attire-card.active {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.dizi-attire-icon {
	width: 58px;
	height: 50px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: #0f172a;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 5px;
}

.dizi-attire-icon svg {
	width: 100%;
	height: auto;
	display: block;
}

.dizi-attire-name {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--dizi-text, #0f172a);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.dizi-suit-fit-panel {
	margin-top: 10px;
	padding: 12px;
	background: var(--dizi-bg, #f8fafc);
	border-radius: 10px;
	border: 1px dashed var(--dizi-border, #cbd5e1);
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dizi-suit-fit-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dizi-suit-fit-row-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dizi-suit-fit-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	min-width: 70px;
	flex-shrink: 0;
}

.dizi-layer-order-btn {
	padding: 5px 9px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	user-select: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.dizi-layer-order-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
}

.dizi-layer-order-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.dizi-chroma-tuning-box {
	background: rgba(99, 102, 241, 0.05);
	border: 1px solid rgba(99, 102, 241, 0.22);
	border-radius: 9px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.dizi-chroma-tuning-box .dizi-suit-fit-label {
	min-width: 82px;
	font-size: 11px;
}

.dizi-chroma-tuning-box .dizi-chroma-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	cursor: pointer;
	font-weight: 600;
	color: var(--dizi-text, #0f172a);
	user-select: none;
}

/* ==========================================================================
   Shipping Label Cropper Styles (Flipkart, Amazon, Meesho, Thermal Print)
   ========================================================================== */
.dizi-label-workspace {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-label-grid {
	display: grid;
	grid-template-columns: minmax(min(100%, 360px), 1.12fr) minmax(min(100%, 320px), 0.88fr);
	gap: 20px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

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

.dizi-label-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.dizi-label-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	flex-wrap: wrap;
	gap: 8px;
}

/* Channel Navigation */
.dizi-channel-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
}

.dizi-channel-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 9px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #1e293b);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}

.dizi-channel-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
}

.dizi-channel-btn.active {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dizi-channel-btn.channel-flipkart.active {
	border-color: #2874f0;
	background: rgba(40, 116, 240, 0.1);
	color: #2874f0;
	box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.25);
}

.dizi-channel-btn.channel-amazon.active {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
	color: #d97706;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.dizi-channel-btn.channel-meesho.active {
	border-color: #e11d48;
	background: rgba(225, 29, 72, 0.1);
	color: #e11d48;
	box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.25);
}

/* Canvas & Crop Box Workspace */
.dizi-label-canvas-container {
	position: relative;
	width: 100%;
	background: #0f172a;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 440px;
	max-height: 600px;
	user-select: none;
	touch-action: none;
	padding: 14px;
	box-sizing: border-box;
}

.dizi-label-canvas-inner {
	position: relative;
	display: inline-block;
	max-width: 100%;
	max-height: 100%;
	line-height: 0;
}

.dizi-label-source-canvas {
	display: block;
	max-width: 100%;
	max-height: 520px;
	width: auto;
	height: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
	border-radius: 2px;
}

/* Crop Box Overlay */
.dizi-label-crop-box {
	position: absolute;
	border: 2px solid #3b82f6;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
	cursor: move;
	box-sizing: border-box;
	touch-action: none;
	z-index: 10;
}

.dizi-crop-badge {
	position: absolute;
	top: -24px;
	left: 0;
	background: #3b82f6;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px 4px 0 0;
	white-space: nowrap;
	pointer-events: none;
}

/* Crop Handle Points */
.dizi-crop-handle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #ffffff;
	border: 2px solid #3b82f6;
	border-radius: 50%;
	box-sizing: border-box;
}

.dizi-handle-tl { top: -5px; left: -5px; cursor: nwse-resize; }
.dizi-handle-tr { top: -5px; right: -5px; cursor: nesw-resize; }
.dizi-handle-bl { bottom: -5px; left: -5px; cursor: nesw-resize; }
.dizi-handle-br { bottom: -5px; right: -5px; cursor: nwse-resize; }
.dizi-handle-t  { top: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.dizi-handle-b  { bottom: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.dizi-handle-l  { top: calc(50% - 5px); left: -5px; cursor: ew-resize; }
.dizi-handle-r  { top: calc(50% - 5px); right: -5px; cursor: ew-resize; }

/* Multi-Page Pagination Bar */
.dizi-page-nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	flex-wrap: wrap;
	gap: 10px;
}

.dizi-page-btn {
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #0f172a);
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-page-btn:hover:not(:disabled) {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Quick Crop Ratios Row */
.dizi-quick-crop-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-quick-crop-btn {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	cursor: pointer;
	transition: all 0.15s ease;
	color: var(--dizi-text, #1e293b);
}

.dizi-quick-crop-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-quick-crop-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

/* Canvas Hide/Unhide Toggle Button */
.dizi-canvas-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-main, #334155);
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.dizi-canvas-toggle-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
}

.dizi-canvas-toggle-btn.canvas-is-hidden {
	border-color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.15);
	color: var(--dizi-primary, #4338ca);
}

[data-theme="dark"] .dizi-canvas-toggle-btn {
	background: #1e293b;
	border-color: #475569;
	color: #e2e8f0;
}

[data-theme="dark"] .dizi-canvas-toggle-btn:hover {
	border-color: #818cf8;
	color: #818cf8;
	background: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .dizi-canvas-toggle-btn.canvas-is-hidden {
	border-color: #818cf8;
	background: rgba(99, 102, 241, 0.25);
	color: #a5b4fc;
}

/* Thermal Options Card */
.dizi-thermal-tuning-box {
	background: rgba(249, 115, 22, 0.05);
	border: 1px solid rgba(249, 115, 22, 0.25);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: all 0.2s ease;
}

[data-theme="dark"] .dizi-thermal-tuning-box {
	background: rgba(249, 115, 22, 0.08);
	border-color: rgba(249, 115, 22, 0.35);
}

.dizi-thermal-title {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
	display: flex;
	align-items: center;
	gap: 6px;
}

[data-theme="dark"] .dizi-thermal-title {
	color: #f8fafc !important;
}

.dizi-thermal-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text-main, #334155);
}

[data-theme="dark"] .dizi-thermal-label {
	color: #e2e8f0 !important;
}

.dizi-thermal-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	cursor: pointer;
}

[data-theme="dark"] .dizi-thermal-toggle-wrap {
	color: #f8fafc !important;
}

.dizi-thermal-val-badge {
	font-weight: 800;
	font-size: 11.5px;
	padding: 2px 8px;
	border-radius: 5px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #cbd5e1);
	color: var(--dizi-text-main, #0f172a);
	min-width: 38px;
	text-align: center;
}

[data-theme="dark"] .dizi-thermal-val-badge {
	background: #0f172a;
	border-color: rgba(249, 115, 22, 0.45);
	color: #fb923c !important;
}

/* Paper Size Radio Grid */
.dizi-paper-format-heading {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
}

[data-theme="dark"] .dizi-paper-format-heading {
	color: #f8fafc !important;
}

.dizi-paper-size-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

@media (max-width: 580px) {
	.dizi-paper-size-grid {
		grid-template-columns: 1fr;
	}
	.dizi-paper-size-card.card-full {
		grid-column: span 1 !important;
	}
}

/* Base Card */
.dizi-paper-size-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 9px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	position: relative;
}

.dizi-paper-size-card.card-full {
	grid-column: span 2;
}

.dizi-paper-size-card .dizi-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 6px;
}

.dizi-paper-size-card .dizi-card-title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.dizi-paper-size-card .dizi-card-title {
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	line-height: 1.3;
}

.dizi-paper-size-card .dizi-card-icon {
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
}

.dizi-paper-size-card .dizi-card-sub {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.35;
	display: block;
}

/* Format Badges */
.dizi-paper-size-card .dizi-format-badge {
	font-size: 9.5px;
	font-weight: 800;
	padding: 2.5px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
}

.dizi-thermal-badge-hot {
	background: linear-gradient(135deg, #ea580c, #f97316) !important;
	color: #ffffff !important;
	font-size: 9.5px;
	font-weight: 800;
	padding: 2.5px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	display: inline-block;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(234, 88, 12, 0.35);
}

/* =========================================================
   LIGHT THEME: Paper Card Color Themes
   ========================================================= */

/* 1. Thermal Cards (4x6 & 3x2) - Warm Amber/Orange */
.dizi-paper-size-card.card-thermal {
	background: #fffbf5;
	border-color: #fdba74;
}

.dizi-paper-size-card.card-thermal .dizi-card-title {
	color: #9a3412;
}

.dizi-paper-size-card.card-thermal .dizi-card-sub {
	color: #7c2d12;
}

.dizi-paper-size-card.card-thermal .badge-mini {
	background: #ffedd5;
	border: 1px solid #fdba74;
	color: #c2410c;
}

.dizi-paper-size-card.card-thermal:hover {
	border-color: #ea580c;
	background: #fff7ed;
	transform: translateY(-1px);
}

.dizi-paper-size-card.card-thermal.active {
	border-color: #ea580c !important;
	background: #fff7ed !important;
	box-shadow: 0 0 0 1.5px #ea580c, 0 4px 12px rgba(234, 88, 12, 0.15);
}

/* 2. Laser / A4 Cards (2-Up & 4-Up) - Crisp Sapphire / Indigo */
.dizi-paper-size-card.card-laser {
	background: #f0f7ff;
	border-color: #93c5fd;
}

.dizi-paper-size-card.card-laser .dizi-card-title {
	color: #1e3a8a;
}

.dizi-paper-size-card.card-laser .dizi-card-sub {
	color: #2563eb;
}

.dizi-paper-size-card.card-laser .badge-laser {
	background: #dbeafe;
	border: 1px solid #93c5fd;
	color: #1d4ed8;
}

.dizi-paper-size-card.card-laser .badge-grid {
	background: #e0e7ff;
	border: 1px solid #a5b4fc;
	color: #4338ca;
}

.dizi-paper-size-card.card-laser:hover {
	border-color: #2563eb;
	background: #eff6ff;
	transform: translateY(-1px);
}

.dizi-paper-size-card.card-laser.active {
	border-color: #2563eb !important;
	background: #eff6ff !important;
	box-shadow: 0 0 0 1.5px #2563eb, 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* 3. Exact Fit Card - Fresh Emerald */
.dizi-paper-size-card.card-fit {
	background: #f0fdf4;
	border-color: #86efac;
}

.dizi-paper-size-card.card-fit .dizi-card-title {
	color: #065f46;
}

.dizi-paper-size-card.card-fit .dizi-card-sub {
	color: #059669;
}

.dizi-paper-size-card.card-fit .badge-fit {
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #15803d;
}

.dizi-paper-size-card.card-fit:hover {
	border-color: #10b981;
	background: #ecfdf5;
	transform: translateY(-1px);
}

.dizi-paper-size-card.card-fit.active {
	border-color: #10b981 !important;
	background: #ecfdf5 !important;
	box-shadow: 0 0 0 1.5px #10b981, 0 4px 12px rgba(16, 185, 129, 0.18);
}

/* =========================================================
   DARK THEME: High-Contrast Distinct Color Themes
   ========================================================= */

/* Dark Theme - 1. Thermal Cards */
[data-theme="dark"] .dizi-paper-size-card.card-thermal {
	background: rgba(249, 115, 22, 0.08);
	border-color: rgba(249, 115, 22, 0.38);
}

[data-theme="dark"] .dizi-paper-size-card.card-thermal .dizi-card-title {
	color: #fed7aa !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-thermal .dizi-card-sub {
	color: #fdba74 !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-thermal .badge-mini {
	background: rgba(249, 115, 22, 0.24);
	border: 1px solid rgba(249, 115, 22, 0.55);
	color: #fed7aa;
}

[data-theme="dark"] .dizi-paper-size-card.card-thermal:hover {
	border-color: #ea580c;
	background: rgba(249, 115, 22, 0.15);
}

[data-theme="dark"] .dizi-paper-size-card.card-thermal.active {
	border-color: #f97316 !important;
	background: rgba(249, 115, 22, 0.22) !important;
	box-shadow: 0 0 0 1.5px #f97316, 0 4px 16px rgba(249, 115, 22, 0.35);
}

/* Dark Theme - 2. Laser / A4 Cards (High-Contrast Sapphire/Sky) */
[data-theme="dark"] .dizi-paper-size-card.card-laser {
	background: rgba(30, 58, 138, 0.25);
	border-color: rgba(96, 165, 250, 0.45);
}

[data-theme="dark"] .dizi-paper-size-card.card-laser .dizi-card-title {
	color: #dbeafe !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-laser .dizi-card-sub {
	color: #93c5fd !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-laser .badge-laser {
	background: rgba(37, 99, 235, 0.32);
	border: 1px solid rgba(96, 165, 250, 0.65);
	color: #eff6ff;
}

[data-theme="dark"] .dizi-paper-size-card.card-laser .badge-grid {
	background: rgba(99, 102, 241, 0.32);
	border: 1px solid rgba(129, 140, 248, 0.65);
	color: #e0e7ff;
}

[data-theme="dark"] .dizi-paper-size-card.card-laser:hover {
	border-color: #60a5fa;
	background: rgba(30, 58, 138, 0.35);
}

[data-theme="dark"] .dizi-paper-size-card.card-laser.active {
	border-color: #60a5fa !important;
	background: rgba(37, 99, 235, 0.32) !important;
	box-shadow: 0 0 0 1.5px #60a5fa, 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Dark Theme - 3. Exact Fit Card (High-Contrast Emerald) */
[data-theme="dark"] .dizi-paper-size-card.card-fit {
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(52, 211, 153, 0.45);
}

[data-theme="dark"] .dizi-paper-size-card.card-fit .dizi-card-title {
	color: #a7f3d0 !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-fit .dizi-card-sub {
	color: #6ee7b7 !important;
}

[data-theme="dark"] .dizi-paper-size-card.card-fit .badge-fit {
	background: rgba(16, 185, 129, 0.28);
	border: 1px solid rgba(52, 211, 153, 0.65);
	color: #d1fae5;
}

[data-theme="dark"] .dizi-paper-size-card.card-fit:hover {
	border-color: #34d399;
	background: rgba(16, 185, 129, 0.18);
}

[data-theme="dark"] .dizi-paper-size-card.card-fit.active {
	border-color: #34d399 !important;
	background: rgba(16, 185, 129, 0.26) !important;
	box-shadow: 0 0 0 1.5px #34d399, 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Thermal Printer Guide Box */
.dizi-thermal-guide-box {
	background: #fffbeb;
	border: 1.5px solid #fde68a;
	border-radius: 9px;
	padding: 12px 14px;
	margin-top: 10px;
	font-size: 12px;
	color: #78350f;
	line-height: 1.6;
	transition: all 0.2s ease;
}

.dizi-thermal-guide-box .dizi-guide-title {
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
	font-size: 12.5px;
	color: #9a3412;
}

.dizi-thermal-guide-box .dizi-guide-text {
	color: #1e293b;
}

.dizi-thermal-guide-box b {
	color: #0f172a;
}

[data-theme="dark"] .dizi-thermal-guide-box {
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.3);
	color: #fde68a;
}

[data-theme="dark"] .dizi-thermal-guide-box .dizi-guide-title {
	color: #f59e0b !important;
}

[data-theme="dark"] .dizi-thermal-guide-box .dizi-guide-text {
	color: #e2e8f0 !important;
}

[data-theme="dark"] .dizi-thermal-guide-box b {
	color: #fef08a !important;
}

/* Coordinates & Live Preview Boxes */
.dizi-coord-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 14px;
	margin-bottom: 12px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 9px;
	font-size: 12px;
	color: var(--dizi-text-main, #0f172a);
	transition: all 0.2s ease;
}

[data-theme="dark"] .dizi-coord-panel {
	background: #111827;
	border-color: #374151;
	color: #f3f4f6;
}

.dizi-coord-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	cursor: pointer;
}

[data-theme="dark"] .dizi-coord-label {
	color: #f3f4f6 !important;
}

.dizi-coord-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--dizi-card-bg, #ffffff);
	padding: 3px 8px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 6px;
	font-family: monospace;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-main, #0f172a);
}

[data-theme="dark"] .dizi-coord-pill {
	background: #1f2937;
	border-color: #374151;
	color: #f3f4f6;
}

.dizi-coord-tag {
	color: var(--dizi-text-muted, #64748b);
}

[data-theme="dark"] .dizi-coord-tag {
	color: #9ca3af !important;
}

.dizi-coord-num-input {
	width: 48px;
	border: none;
	outline: none;
	font-weight: 700;
	background: transparent;
	padding: 0;
	text-align: right;
	font-family: inherit;
}

[data-theme="dark"] .dizi-coord-num-input {
	color: #60a5fa !important;
}

.dizi-live-preview-box {
	background: var(--dizi-bg, #f8fafc);
	border: 1px dashed var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.2s ease;
}

[data-theme="dark"] .dizi-live-preview-box {
	background: #111827;
	border-color: #374151;
}

.dizi-preview-card-title {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
}

[data-theme="dark"] .dizi-preview-card-title {
	color: #f3f4f6 !important;
}

.dizi-card-thermal-btn {
	color: var(--dizi-primary, #4f46e5);
	border-color: var(--dizi-primary, #4f46e5);
	font-weight: 700;
	background: var(--dizi-primary-light, rgba(79, 70, 229, 0.08));
}

[data-theme="dark"] .dizi-card-thermal-btn {
	color: #818cf8 !important;
	border-color: #818cf8 !important;
	background: rgba(99, 102, 241, 0.18) !important;
}

/* Dark Mode Overrides for Navigation and Preset Buttons */
[data-theme="dark"] .dizi-page-btn {
	background: #1f2937;
	border-color: #374151;
	color: #f3f4f6;
}

[data-theme="dark"] .dizi-page-btn:hover:not(:disabled) {
	border-color: #818cf8;
	color: #818cf8;
}

[data-theme="dark"] .dizi-quick-crop-btn {
	background: #1f2937;
	border-color: #374151;
	color: #f3f4f6;
}

[data-theme="dark"] .dizi-quick-crop-btn:hover {
	border-color: #818cf8;
	color: #818cf8;
}

[data-theme="dark"] .dizi-quick-crop-btn.active {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
}

[data-theme="dark"] .dizi-page-nav-bar {
	background: #111827;
	border-color: #374151;
	color: #f3f4f6;
}

[data-theme="dark"] .dizi-channel-btn {
	background: #1f2937;
	border-color: #374151;
	color: #e5e7eb;
}

[data-theme="dark"] .dizi-channel-btn:hover {
	border-color: #818cf8;
	color: #818cf8;
}

/* Print Media Specific for 4x6 inch thermal roll */
@media print {
	#diziPrintThermalContainer {
		display: block !important;
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.dizi-thermal-print-page {
		width: 100mm !important;
		height: 150mm !important;
		page-break-after: always !important;
		break-after: page !important;
		margin: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.dizi-thermal-print-page img {
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
	}
}

/* Print Queue Bar & Filmstrip */
.dizi-print-queue-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
	border: 1.5px solid rgba(249, 115, 22, 0.25);
	border-radius: 12px;
	margin-top: 10px;
	margin-bottom: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dizi-queue-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dizi-queue-count-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--dizi-text, #0f172a);
}

.dizi-queue-total {
	background: #ea580c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 999px;
	letter-spacing: 0.3px;
}

.dizi-queue-chips {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-qchip {
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid transparent;
}

.qchip-flipkart {
	background: rgba(40, 116, 240, 0.12);
	color: #1d4ed8;
	border-color: rgba(40, 116, 240, 0.3);
}

.qchip-meesho {
	background: rgba(225, 29, 72, 0.12);
	color: #be123c;
	border-color: rgba(225, 29, 72, 0.3);
}

.qchip-amazon {
	background: rgba(245, 158, 11, 0.12);
	color: #b45309;
	border-color: rgba(245, 158, 11, 0.3);
}

.qchip-other {
	background: rgba(100, 116, 139, 0.12);
	color: #475569;
	border-color: rgba(100, 116, 139, 0.3);
}

.dizi-queue-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-btn-print-queue {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border: none !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
	transition: all 0.2s ease;
}

.dizi-btn-print-queue:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

.dizi-btn-download-queue {
	background: var(--dizi-card-bg, #ffffff) !important;
	color: var(--dizi-text, #0f172a) !important;
	border: 1.5px solid var(--dizi-border, #cbd5e1) !important;
	font-weight: 700 !important;
	padding: 8px 14px !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-btn-download-queue:hover {
	border-color: #ea580c !important;
	color: #ea580c !important;
}

.dizi-btn-clear-queue {
	background: transparent !important;
	color: #dc2626 !important;
	border: 1px solid rgba(220, 38, 38, 0.3) !important;
	font-weight: 600 !important;
	padding: 7px 12px !important;
	border-radius: 8px !important;
	cursor: pointer;
	font-size: 11.5px !important;
}

.dizi-btn-clear-queue:hover {
	background: rgba(220, 38, 38, 0.08) !important;
}

/* Filmstrip / Queue Items Strip */
.dizi-queue-filmstrip-wrap {
	width: 100%;
	overflow-x: auto;
	padding: 6px 0 10px 0;
	scrollbar-width: thin;
}

.dizi-queue-filmstrip {
	display: flex;
	gap: 10px;
	align-items: center;
}

.dizi-queue-card {
	flex: 0 0 auto;
	width: 84px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	padding: 4px;
	text-align: center;
	position: relative;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-queue-card:hover, .dizi-queue-card.active {
	border-color: #ea580c;
	box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
	transform: translateY(-2px);
}

.dizi-queue-card img {
	width: 100%;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
}

.dizi-queue-card-meta {
	font-size: 10px;
	font-weight: 700;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.dizi-queue-card-del {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #dc2626;
	color: #ffffff;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
	cursor: pointer;
	display: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dizi-queue-card:hover .dizi-queue-card-del {
	display: block;
}

.dizi-channel-qbadge {
	margin-left: 4px;
	font-size: 10.5px;
	background: #ea580c;
	color: #ffffff;
	padding: 1px 6px;
	border-radius: 999px;
	font-weight: 800;
}

/* Thermal 4x6 Print Preview Modal */
.dizi-thermal-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.dizi-thermal-modal {
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 14px;
	max-width: 540px;
	width: 100%;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: diziModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes diziModalPop {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.dizi-thermal-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-thermal-modal-close {
	background: transparent;
	border: none;
	font-size: 20px;
	color: var(--dizi-text-secondary, #64748b);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}

.dizi-thermal-modal-close:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #dc2626;
}

.dizi-thermal-modal-body {
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #1e293b;
}

.dizi-thermal-roll-sheet {
	width: 300px;
	height: 450px; /* 4x6 aspect ratio 2:3 */
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	box-sizing: border-box;
	position: relative;
}

.dizi-thermal-roll-sheet img, .dizi-thermal-roll-sheet canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.dizi-thermal-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-top: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
}








/* Tool Tab Buttons */
.dizi-tab-btn { padding: 7px 16px; border-radius: 8px; border: 1.5px solid var(--dizi-border, #cbd5e1); background: var(--dizi-card-bg, #ffffff); color: var(--dizi-text-main, #334155); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.dizi-tab-btn.active, .dizi-tab-btn:hover { background: var(--dizi-primary, #4338ca); color: #ffffff; border-color: var(--dizi-primary, #4338ca); }
[data-theme='dark'] .dizi-tab-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #e2e8f0; }
[data-theme='dark'] .dizi-tab-btn:hover { background: rgba(99, 102, 241, 0.25); border-color: #818cf8; color: #ffffff; }
/* Studio Top Bar Controls (View Modes, Zoom & Actions) */
.dizi-view-mode-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 15px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	user-select: none;
	outline: none;
}
.dizi-view-mode-btn:hover {
	background: rgba(99, 102, 241, 0.25);
	border-color: #818cf8;
	color: #ffffff;
	transform: translateY(-1px);
}
.dizi-view-mode-btn.active {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
	border-color: #a5b4fc !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5) !important;
}
body:not([data-theme='dark']) .dizi-view-mode-btn {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #334155;
}
body:not([data-theme='dark']) .dizi-view-mode-btn:hover {
	background: #eef2ff;
	border-color: #818cf8;
	color: #4338ca;
}
body:not([data-theme='dark']) .dizi-view-mode-btn.active {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
	border-color: #4338ca !important;
	color: #ffffff !important;
}

/* Zoom Toolbar */
.dizi-zoom-toolbar {
	display: inline-flex;
	align-items: center;
	background: rgba(15, 23, 42, 0.85);
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	border-radius: 9px;
	padding: 3px 5px;
	gap: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
body:not([data-theme='dark']) .dizi-zoom-toolbar {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dizi-zoom-step-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 1.15rem;
	font-weight: 800;
	cursor: pointer;
	line-height: 1;
	transition: all 0.15s ease;
}
.dizi-zoom-step-btn:hover {
	background: rgba(99, 102, 241, 0.35);
	border-color: #818cf8;
	color: #ffffff;
	transform: scale(1.05);
}
body:not([data-theme='dark']) .dizi-zoom-step-btn {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #1e293b;
}
body:not([data-theme='dark']) .dizi-zoom-step-btn:hover {
	background: #eef2ff;
	border-color: #6366f1;
	color: #4338ca;
}

.dizi-zoom-reset-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 8px;
	min-width: 48px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid #38bdf8;
	background: rgba(14, 165, 233, 0.18);
	color: #38bdf8;
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.15s ease;
}
.dizi-zoom-reset-btn:hover {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff;
	transform: translateY(-1px);
}
body:not([data-theme='dark']) .dizi-zoom-reset-btn {
	background: #f0f9ff;
	border-color: #0284c7;
	color: #0369a1;
}

.dizi-zoom-pan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 3px 9px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #f1f5f9;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.dizi-zoom-pan-btn:hover {
	background: rgba(245, 158, 11, 0.25);
	border-color: #f59e0b;
	color: #ffffff;
}
.dizi-zoom-pan-btn.active {
	background: linear-gradient(135deg, #f59e0b, #d97706) !important;
	border-color: #fcd34d !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5) !important;
}
body:not([data-theme='dark']) .dizi-zoom-pan-btn {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #334155;
}

.dizi-zoom-fit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 3px 9px;
	height: 28px;
	border-radius: 6px;
	border: 1.5px solid #818cf8;
	background: rgba(99, 102, 241, 0.18);
	color: #a5b4fc;
	font-size: 0.76rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.dizi-zoom-fit-btn:hover {
	background: #6366f1;
	border-color: #818cf8;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
	transform: translateY(-1px);
}
body:not([data-theme='dark']) .dizi-zoom-fit-btn {
	background: #eef2ff;
	border-color: #6366f1;
	color: #4338ca;
}

/* Upload Another Image Button */
.dizi-upload-another-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	font-size: 0.82rem;
	font-weight: 700;
	border-radius: 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	outline: none;
}
.dizi-upload-another-btn:hover {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	border-color: #a5b4fc;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
	transform: translateY(-1px);
}
body:not([data-theme='dark']) .dizi-upload-another-btn {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #1e293b;
}
body:not([data-theme='dark']) .dizi-upload-another-btn:hover {
	background: #eef2ff;
	border-color: #6366f1;
	color: #4338ca;
}

/* Touch-up Suite Container */
.dizi-touchup-suite {
	background: rgba(99, 102, 241, 0.05);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color 0.2s ease;
}
[data-theme='dark'] .dizi-touchup-suite {
	background: rgba(15, 23, 42, 0.75);
	border-color: rgba(255, 255, 255, 0.15);
}

/* Touch-up Action Pills (Holes, Undo) */
.dizi-touchup-tool-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1.5px solid;
}
.dizi-pill-holes {
	background: rgba(2, 132, 199, 0.14);
	border-color: #0284c7;
	color: #0284c7;
}
[data-theme='dark'] .dizi-pill-holes {
	background: rgba(14, 165, 233, 0.22);
	border-color: #38bdf8;
	color: #38bdf8;
}
.dizi-pill-holes:hover {
	background: #0284c7 !important;
	border-color: #0284c7 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
}
.dizi-pill-undo {
	background: rgba(239, 68, 68, 0.14);
	border-color: #ef4444;
	color: #ef4444;
}
[data-theme='dark'] .dizi-pill-undo {
	background: rgba(239, 68, 68, 0.22);
	border-color: #f87171;
	color: #fca5a5;
}
.dizi-pill-undo:hover {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

/* 4 Brush Mode Buttons (Hair, Wand, Erase, Restore) */
.dizi-touch-mode-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 10px;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1.5px solid;
	user-select: none;
	outline: none;
}

/* 1. Hair Brush */
.dizi-mode-hair {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}
[data-theme='dark'] .dizi-mode-hair {
	background: rgba(99, 102, 241, 0.18);
	border-color: rgba(129, 140, 248, 0.5);
	color: #c7d2fe;
}
.dizi-mode-hair:hover {
	background: #6366f1;
	border-color: #818cf8;
	color: #ffffff;
	transform: translateY(-1px);
}
.dizi-mode-hair.active {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
	border-color: #a5b4fc !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5) !important;
}

/* 2. Magic Wand */
.dizi-mode-wand {
	background: #f0f9ff;
	border-color: #bae6fd;
	color: #0284c7;
}
[data-theme='dark'] .dizi-mode-wand {
	background: rgba(14, 165, 233, 0.18);
	border-color: rgba(56, 189, 248, 0.5);
	color: #7dd3fc;
}
.dizi-mode-wand:hover {
	background: #0284c7;
	border-color: #38bdf8;
	color: #ffffff;
	transform: translateY(-1px);
}
.dizi-mode-wand.active {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
	border-color: #7dd3fc !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5) !important;
}

/* 3. Erase */
.dizi-mode-erase {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}
[data-theme='dark'] .dizi-mode-erase {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(248, 113, 113, 0.5);
	color: #fca5a5;
}
.dizi-mode-erase:hover {
	background: #ef4444;
	border-color: #f87171;
	color: #ffffff;
	transform: translateY(-1px);
}
.dizi-mode-erase.active {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
	border-color: #fca5a5 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5) !important;
}

/* 4. Restore */
.dizi-mode-restore {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #059669;
}
[data-theme='dark'] .dizi-mode-restore {
	background: rgba(16, 185, 129, 0.18);
	border-color: rgba(52, 211, 153, 0.5);
	color: #6ee7b7;
}
.dizi-mode-restore:hover {
	background: #10b981;
	border-color: #34d399;
	color: #ffffff;
	transform: translateY(-1px);
}
.dizi-mode-restore.active {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	border-color: #6ee7b7 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
}

/* Main Action Toggle Button */
.dizi-touchup-main-action {
	padding: 9px 14px;
	font-size: 0.82rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid #6366f1;
	background: rgba(99, 102, 241, 0.15);
	color: #4338ca;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme='dark'] .dizi-touchup-main-action {
	background: rgba(99, 102, 241, 0.25);
	border-color: #818cf8;
	color: #e2e8f0;
}
.dizi-touchup-main-action:hover {
	background: rgba(99, 102, 241, 0.38);
	color: #ffffff;
	transform: translateY(-1px);
}

/* Quick Size Presets (12px, 28px, 55px) */
.dizi-brush-preset {
	padding: 5px 9px !important;
	font-size: 0.74rem !important;
	font-weight: 700 !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	background: #f1f5f9 !important;
	border: 1.5px solid #cbd5e1 !important;
	color: #334155 !important;
}
[data-theme='dark'] .dizi-brush-preset {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
	color: #e2e8f0 !important;
}
.dizi-brush-preset:hover {
	border-color: #818cf8 !important;
	background: rgba(99, 102, 241, 0.25) !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
}
.dizi-brush-preset.active {
	background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
	border-color: #a5b4fc !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.5) !important;
}

/* Checkerboard & Badges */
.dizi-checkerboard { background-image: repeating-conic-gradient(#cbd5e1 0% 25%, #ffffff 0% 50%); background-size: 16px 16px; }
[data-theme='dark'] .dizi-checkerboard { background-image: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%); background-size: 16px 16px; }
.dizi-bg-split-container { position: relative; overflow: hidden; border-radius: 14px; border: 1.5px solid var(--dizi-border, #e2e8f0); user-select: none; display: flex; align-items: center; justify-content: center; max-height: 520px; margin-bottom: 22px; }
.dizi-bg-feature-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.dizi-bg-feature-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: var(--dizi-card-bg, #ffffff); border: 1px solid var(--dizi-border, #e2e8f0); color: var(--dizi-text-muted, #64748b); }

/* ==========================================================================
   Voice Typing & Text to Speech Studio (Mobile-Friendly & SaaS Grade)
   ========================================================================== */
.dizi-voice-workspace, .dizi-tts-workspace {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

/* Top Control Bar */
.dizi-voice-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 14px 18px;
}

.dizi-voice-lang-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
	min-width: 240px;
}

.dizi-voice-lang-group label {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dizi-voice-select {
	flex: 1;
	min-width: 180px;
	max-width: 320px;
	padding: 9px 14px;
	border-radius: 10px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text-main, #0f172a);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}

.dizi-voice-select:focus {
	border-color: var(--dizi-primary, #4338ca);
	box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

.dizi-voice-toggles {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.dizi-voice-toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
	user-select: none;
}

.dizi-voice-toggle-label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--dizi-primary, #4338ca);
	cursor: pointer;
}

/* Mic Interactive Hub */
.dizi-voice-mic-hub {
	background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
	border: 1.5px dashed var(--dizi-border, #cbd5e1);
	border-radius: 20px;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	position: relative;
	text-align: center;
	transition: all 0.3s ease;
}

.dizi-voice-mic-hub.listening-active {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.08) 100%);
	border-color: #ef4444;
	border-style: solid;
	box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.25);
}

/* Big Interactive Round Mic Button */
.dizi-voice-mic-btn {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #4338ca, #3b82f6);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(67, 56, 202, 0.35);
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.dizi-voice-mic-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 12px 28px rgba(67, 56, 202, 0.45);
}

.dizi-voice-mic-btn:active {
	transform: scale(0.96);
}

.dizi-voice-mic-btn svg {
	width: 34px;
	height: 34px;
	stroke: #ffffff;
	stroke-width: 2.2;
}

.dizi-voice-mic-btn.is-listening {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
	animation: diziMicPulse 1.6s infinite;
}

@keyframes diziMicPulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
	}
	70% {
		transform: scale(1.06);
		box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
}

/* Soundwave animation bars */
.dizi-voice-soundwave {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 28px;
}

.dizi-voice-soundwave.active {
	display: flex;
}

.dizi-voice-soundwave span {
	display: block;
	width: 4px;
	background: #ef4444;
	border-radius: 4px;
	animation: diziWave 1s ease-in-out infinite alternate;
}

.dizi-voice-soundwave span:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.dizi-voice-soundwave span:nth-child(2) { height: 20px; animation-delay: 0.3s; }
.dizi-voice-soundwave span:nth-child(3) { height: 26px; animation-delay: 0.15s; }
.dizi-voice-soundwave span:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.dizi-voice-soundwave span:nth-child(5) { height: 10px; animation-delay: 0.25s; }

@keyframes diziWave {
	0% { height: 5px; transform: scaleY(0.4); }
	100% { height: 28px; transform: scaleY(1); }
}

.dizi-voice-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--dizi-card-bg, #ffffff);
	padding: 6px 16px;
	border-radius: 30px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--dizi-text-main, #1e293b);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dizi-voice-pulse-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #10b981;
}

.dizi-voice-pulse-dot.dot-listening {
	background: #ef4444;
	animation: diziDotFlash 1s infinite alternate;
}

@keyframes diziDotFlash {
	0% { opacity: 0.3; transform: scale(0.8); }
	100% { opacity: 1; transform: scale(1.2); }
}

/* Interim Live Transcript Stream Box */
.dizi-voice-interim-box {
	width: 100%;
	box-sizing: border-box;
	background: rgba(239, 68, 68, 0.06);
	border: 1px dashed rgba(239, 68, 68, 0.3);
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 0.95rem;
	color: #991b1b;
	font-style: italic;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: fadeIn 0.2s ease;
}

[data-theme='dark'] .dizi-voice-interim-box {
	background: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
	border-color: rgba(239, 68, 68, 0.4);
}

.dizi-voice-interim-badge {
	background: #ef4444;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 6px;
	letter-spacing: 0.5px;
	font-style: normal;
}

/* Textarea Area */
.dizi-voice-editor {
	width: 100%;
	min-height: 250px;
	padding: 18px;
	border-radius: 14px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	font-size: 1.05rem;
	line-height: 1.7;
	font-family: inherit;
	resize: vertical;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dizi-voice-editor:focus {
	border-color: var(--dizi-primary, #4338ca);
	box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

/* Mobile Punctuation & Formatting Bar */
.dizi-voice-punct-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px 12px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
}

.dizi-voice-punct-label {
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--dizi-text-muted, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 4px;
}

.dizi-punct-btn {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dizi-text-main, #1e293b);
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	user-select: none;
}

.dizi-punct-btn:hover {
	background: var(--dizi-primary, #4338ca);
	color: #ffffff;
	border-color: var(--dizi-primary, #4338ca);
	transform: translateY(-1px);
}

.dizi-punct-btn:active {
	transform: translateY(1px);
}

/* Live Stats Bar */
.dizi-voice-stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
}

.dizi-voice-stat-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 12px 14px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dizi-voice-stat-card .val {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--dizi-primary, #4338ca);
	line-height: 1.1;
}

.dizi-voice-stat-card .lbl {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--dizi-text-muted, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* Actions Toolbar */
.dizi-voice-actions-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-voice-actions-left, .dizi-voice-actions-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-action-btn-primary {
	background: linear-gradient(135deg, var(--dizi-primary, #4338ca), #3b82f6);
	color: #ffffff !important;
	border: none;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 3px 10px rgba(67, 56, 202, 0.25);
	transition: all 0.2s ease;
}

.dizi-action-btn-primary:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(67, 56, 202, 0.35);
}

.dizi-action-btn-secondary {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #1e293b);
	border: 1px solid var(--dizi-border, #cbd5e1);
	padding: 9px 15px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.dizi-action-btn-secondary:hover {
	background: var(--dizi-bg, #f8fafc);
	border-color: var(--dizi-primary, #4338ca);
	color: var(--dizi-primary, #4338ca);
}

.dizi-action-btn-danger {
	background: transparent;
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.dizi-action-btn-danger:hover {
	background: #ef4444;
	color: #ffffff;
}

.dizi-action-btn-outline {
	background: transparent;
	color: var(--dizi-text-main, #1e293b);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	padding: 9px 15px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.dizi-action-btn-outline:hover {
	background: rgba(67, 56, 202, 0.08);
	border-color: var(--dizi-primary, #4338ca);
	color: var(--dizi-primary, #4338ca);
}

[data-theme='dark'] .dizi-action-btn-outline {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.18);
	color: #f1f5f9;
}

[data-theme='dark'] .dizi-action-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #38bdf8;
	color: #38bdf8;
}

/* Studio Voice Polish & Humanizer Box */
.dizi-voice-polish-box {
	background: linear-gradient(135deg, rgba(67, 56, 202, 0.06) 0%, rgba(245, 158, 11, 0.06) 100%);
	border: 1.5px solid rgba(67, 56, 202, 0.2);
	border-radius: 16px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

[data-theme='dark'] .dizi-voice-polish-box {
	background: linear-gradient(135deg, rgba(67, 56, 202, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
	border-color: rgba(67, 56, 202, 0.35);
}

.dizi-polish-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.dizi-polish-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
}

.dizi-polish-title .sparkle-icon {
	color: #f59e0b;
	font-size: 1.1rem;
}

.dizi-humanizer-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dizi-text-main, #1e293b);
	user-select: none;
}

.dizi-humanizer-toggle-wrap input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #f59e0b;
	cursor: pointer;
}

.dizi-studio-tones-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.dizi-studio-tone-btn {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-align: left;
}

.dizi-studio-tone-btn:hover {
	border-color: #f59e0b;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.dizi-studio-tone-btn.active {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(67, 56, 202, 0.08));
	border-color: #f59e0b;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.dizi-studio-tone-btn .tone-title {
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
	display: flex;
	align-items: center;
	gap: 5px;
}

.dizi-studio-tone-btn .tone-desc {
	font-size: 0.72rem;
	color: var(--dizi-text-muted, #64748b);
	font-weight: 600;
}

/* Text to Speech Voice Settings Grid (Spacious & Professional) */
.dizi-tts-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	width: 100%;
}

.dizi-tts-voice-selector-box {
	grid-column: 1 / -1;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-tts-voice-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.dizi-tts-voice-header label {
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-tts-lang-badge {
	font-size: 0.78rem;
	font-weight: 700;
	background: rgba(67, 56, 202, 0.1);
	color: var(--dizi-primary, #4338ca);
	padding: 3px 10px;
	border-radius: 20px;
	border: 1px solid rgba(67, 56, 202, 0.2);
}

.dizi-tts-slider-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dizi-tts-slider-card:hover, .dizi-tts-slider-card:focus-within {
	border-color: var(--dizi-primary, #4338ca);
	box-shadow: 0 4px 16px rgba(67, 56, 202, 0.08);
}

.dizi-tts-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dizi-tts-card-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-tts-value-pill {
	font-size: 0.85rem;
	font-weight: 800;
	background: var(--dizi-primary, #4338ca);
	color: #ffffff;
	padding: 2px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(67, 56, 202, 0.25);
}

.dizi-tts-slider-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dizi-tts-slider {
	flex: 1;
	height: 8px;
	border-radius: 6px;
	background: var(--dizi-border, #cbd5e1);
	accent-color: var(--dizi-primary, #4338ca);
	cursor: pointer;
	outline: none;
}

.dizi-tts-presets {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-preset-pill {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	color: var(--dizi-text-muted, #64748b);
	font-size: 0.76rem;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-preset-pill:hover, .dizi-preset-pill.active {
	background: var(--dizi-primary, #4338ca);
	color: #ffffff;
	border-color: var(--dizi-primary, #4338ca);
}

/* Real-Time Live Word / Karaoke Teleprompter Display */
.dizi-tts-karaoke-stream {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 14px;
	padding: 16px 20px;
	max-height: 180px;
	overflow-y: auto;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--dizi-text-main, #0f172a);
	word-break: break-word;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.dizi-tts-word-span {
	display: inline-block;
	padding: 1px 3px;
	border-radius: 4px;
	transition: all 0.1s ease;
}

.dizi-tts-word-span.is-speaking-word {
	background: #facc15;
	color: #0f172a !important;
	font-weight: 800;
	box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
	transform: scale(1.08);
}

[data-theme='dark'] .dizi-tts-word-span.is-speaking-word {
	background: #f59e0b;
	color: #0f172a !important;
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

/* Fallback Warning Box */
.dizi-voice-notice-alert {
	background: #fffbeb;
	border: 1px solid #f59e0b;
	color: #92400e;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

[data-theme='dark'] .dizi-voice-notice-alert {
	background: rgba(245, 158, 11, 0.15);
	color: #fde68a;
	border-color: rgba(245, 158, 11, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.dizi-voice-topbar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		gap: 12px;
	}
	.dizi-voice-lang-group {
		min-width: 100%;
	}
	.dizi-voice-select {
		max-width: 100%;
		width: 100%;
	}
	.dizi-voice-mic-hub {
		padding: 22px 14px;
	}
	.dizi-voice-mic-btn {
		width: 68px;
		height: 68px;
	}
	.dizi-voice-stats-bar {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.dizi-voice-stat-card {
		padding: 10px 8px;
	}
	.dizi-voice-stat-card .val {
		font-size: 1.15rem;
	}
	.dizi-voice-actions-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.dizi-voice-actions-left, .dizi-voice-actions-right {
		width: 100%;
		justify-content: stretch;
	}
	.dizi-voice-actions-left button, .dizi-voice-actions-right button {
		flex: 1;
		justify-content: center;
		padding: 11px 12px;
	}
	.dizi-punct-btn {
		padding: 6px 10px;
		font-size: 0.8rem;
		min-height: 34px;
	}
}

/* ==========================================================================
   Mobile Camera to PDF Scanner (Multi-Page CamScanner Studio)
   ========================================================================== */
.dizi-cam-workspace {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

/* Landing Hero Box */
.dizi-cam-hero-box {
	background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
	border: 2px dashed var(--dizi-border, #cbd5e1);
	border-radius: 20px;
	padding: 45px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
	transition: all 0.25s ease;
}

.dizi-cam-hero-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4338ca 0%, #06b6d4 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.4);
}

.dizi-cam-hero-icon svg {
	width: 36px;
	height: 36px;
}

.dizi-cam-hero-title {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
	margin: 0;
}

.dizi-cam-hero-desc {
	font-size: 0.95rem;
	color: var(--dizi-text-muted, #64748b);
	max-width: 580px;
	margin: 0;
	line-height: 1.6;
}

/* Camera Launch Action Buttons (Unified, Premium & Responsive) */
.dizi-cam-actions-deck {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
	width: 100%;
}

.dizi-cam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 11px 20px;
	border-radius: 12px;
	font-size: 0.93rem;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	margin: 0;
	box-sizing: border-box;
	line-height: 1.4;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dizi-cam-btn-icon {
	font-size: 1.15rem;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* 1. Primary Scanner Button */
.dizi-cam-btn-primary {
	background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.dizi-cam-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
	opacity: 0.96;
}

.dizi-cam-btn-primary:active {
	transform: translateY(0);
}

/* 2. Secondary Camera & Gallery Buttons */
.dizi-cam-btn-secondary {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dizi-cam-btn-secondary:hover {
	transform: translateY(-2px);
	border-color: var(--dizi-primary, #4338ca);
	color: var(--dizi-primary, #4338ca);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.dizi-cam-btn-secondary:active {
	transform: translateY(0);
}

[data-theme='dark'] .dizi-cam-btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
	color: #f1f5f9;
	box-shadow: none;
}

[data-theme='dark'] .dizi-cam-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

/* 3. Sample Accent Button */
.dizi-cam-btn-sample {
	background: #f5f3ff;
	border: 1.5px solid #c7d2fe;
	color: #4f46e5;
}

.dizi-cam-btn-sample:hover {
	transform: translateY(-2px);
	background: #ede9fe;
	border-color: #818cf8;
	color: #3730a3;
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.dizi-cam-btn-sample:active {
	transform: translateY(0);
}

[data-theme='dark'] .dizi-cam-btn-sample {
	background: rgba(99, 102, 241, 0.14);
	border-color: rgba(99, 102, 241, 0.35);
	color: #c7d2fe;
}

[data-theme='dark'] .dizi-cam-btn-sample:hover {
	background: rgba(99, 102, 241, 0.24);
	border-color: #a5b4fc;
	color: #ffffff;
	box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.dizi-cam-privacy-badge {
	font-size: 0.82rem;
	font-weight: 700;
	color: #10b981;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.25);
	padding: 5px 14px;
	border-radius: 20px;
	margin-top: 6px;
}

/* Live Camera Viewfinder Overlay (Mobile First & Immersive) */
.dizi-cam-viewfinder-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #000000;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}

.dizi-cam-viewfinder-inner {
	width: 100%;
	height: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Top Camera Controls */
.dizi-cam-topbar {
	height: 64px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	z-index: 10;
}

.dizi-cam-tool-btn {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.dizi-cam-tool-btn.danger {
	background: rgba(239, 68, 68, 0.2);
	border-color: #ef4444;
	color: #fca5a5;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	padding: 0;
	justify-content: center;
	font-size: 1.1rem;
}

.dizi-cam-pages-pill {
	background: rgba(67, 56, 202, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Camera Video Container & Guide Frame */
.dizi-cam-video-container {
	flex: 1;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000000;
}

#diziCamVideo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Document Alignment Guide Frame with Auto-Fit Mask */
.dizi-cam-scan-frame {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 86%;
	max-width: 440px;
	aspect-ratio: 1 / 1.414; /* Standard A4 Paper Ratio */
	max-height: 76%;
	border: 2px solid #06b6d4;
	border-radius: 14px;
	pointer-events: none;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65); /* Dark mask: excludes everything outside */
	z-index: 5;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, aspect-ratio 0.25s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dizi-cam-scan-frame.mode-card {
	aspect-ratio: 1.58 / 1; /* Standard ID / Credit / Business Card */
	max-height: 60%;
}

.dizi-cam-scan-frame.mode-wide {
	aspect-ratio: 4 / 3;
	max-height: 72%;
}

.dizi-cam-scan-frame.detected {
	border-color: #10b981;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.5);
}

.dizi-cam-corner {
	position: absolute;
	width: 26px;
	height: 26px;
	border-color: #06b6d4;
	border-style: solid;
	transition: border-color 0.25s ease;
}

.dizi-cam-scan-frame.detected .dizi-cam-corner {
	border-color: #10b981;
}

.dizi-cam-corner.top-left {
	top: -2px; left: -2px;
	border-width: 4px 0 0 4px;
	border-top-left-radius: 12px;
}

.dizi-cam-corner.top-right {
	top: -2px; right: -2px;
	border-width: 4px 4px 0 0;
	border-top-right-radius: 12px;
}

.dizi-cam-corner.bottom-left {
	bottom: -2px; left: -2px;
	border-width: 0 0 4px 4px;
	border-bottom-left-radius: 12px;
}

.dizi-cam-corner.bottom-right {
	bottom: -2px; right: -2px;
	border-width: 0 4px 4px 0;
	border-bottom-right-radius: 12px;
}

.dizi-cam-laser-line {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #06b6d4, #10b981, transparent);
	box-shadow: 0 0 14px #06b6d4;
	animation: camLaserSweep 2.2s infinite ease-in-out;
}

@keyframes camLaserSweep {
	0% { top: 2%; opacity: 0.3; }
	50% { top: 96%; opacity: 1; }
	100% { top: 2%; opacity: 0.3; }
}

.dizi-cam-frame-hint {
	position: absolute;
	bottom: 12px;
	left: 8px;
	right: 8px;
	text-align: center;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
	background: rgba(0, 0, 0, 0.45);
	padding: 4px 10px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	display: inline-block;
	margin: 0 auto;
}

/* Auto-Fit Status Pill in Viewfinder */
.dizi-cam-status-pill {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(6, 182, 212, 0.4);
	color: #ffffff;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	z-index: 6;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
	pointer-events: none;
	white-space: nowrap;
}

.dizi-cam-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #06b6d4;
	box-shadow: 0 0 8px #06b6d4;
	animation: camPulse 1.4s infinite ease-in-out;
}

@keyframes camPulse {
	0%, 100% { opacity: 0.4; transform: scale(0.9); }
	50% { opacity: 1; transform: scale(1.25); background: #10b981; box-shadow: 0 0 10px #10b981; }
}

/* Flash Screen Animation */
.dizi-cam-flash-effect {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #ffffff;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.1s ease;
	z-index: 8;
}

.dizi-cam-flash-effect.flash-active {
	opacity: 0.9;
}

/* Bottom Shutter & Controls Bar */
.dizi-cam-bottom-bar {
	height: 110px;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0 20px;
	z-index: 10;
}

.dizi-cam-thumb-preview {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid #ffffff;
	background: #1e293b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.dizi-cam-thumb-preview:hover {
	transform: scale(1.05);
}

.dizi-cam-thumb-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shutter Button with Auto-Snap Circular Progress Ring */
.dizi-cam-shutter-btn {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-cam-shutter-ring {
	position: relative;
	width: 86px;
	height: 86px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-cam-progress-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 86px;
	height: 86px;
	transform: rotate(-90deg);
	pointer-events: none;
}

.dizi-cam-progress-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.15);
	stroke-width: 4;
}

.dizi-cam-progress-bar {
	fill: none;
	stroke: #10b981;
	stroke-width: 4.5;
	stroke-dasharray: 238.76; /* 2 * PI * 38 */
	stroke-dashoffset: 238.76;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.12s ease-out;
	filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
}

.dizi-cam-shutter-outer {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 3.5px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
	transition: transform 0.1s;
}

.dizi-cam-shutter-inner {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: linear-gradient(135deg, #06b6d4, #4338ca);
	box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4);
	transition: all 0.1s;
}

.dizi-cam-shutter-btn:active .dizi-cam-shutter-outer {
	transform: scale(0.92);
}

.dizi-cam-shutter-btn:active .dizi-cam-shutter-inner {
	transform: scale(0.85);
	background: #10b981;
}

.dizi-cam-tool-btn.active {
	background: rgba(16, 185, 129, 0.25);
	border-color: #10b981;
	color: #6ee7b7;
}

.dizi-cam-done-btn {
	background: linear-gradient(135deg, var(--dizi-primary, #4f46e5), var(--dizi-primary-hover, #4338ca));
	color: #ffffff;
	border: none;
	border-radius: 20px;
	padding: 10px 18px;
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
	transition: all 0.15s ease;
}

.dizi-cam-done-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* Interactive Crop & Document Border Modal */
.dizi-cam-crop-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(10px);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.dizi-cam-crop-modal-inner {
	width: 100%;
	max-width: 600px;
	height: 88vh;
	max-height: 800px;
	background: #0f172a;
	border-radius: 20px;
	border: 1.5px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.dizi-cam-crop-topbar {
	padding: 14px 20px;
	background: rgba(30, 41, 59, 0.9);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dizi-cam-crop-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-cam-crop-stage {
	flex: 1;
	position: relative;
	background: #050811;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	user-select: none;
}

#diziCamCropImage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	user-select: none;
	pointer-events: none;
	display: block;
}

.dizi-cam-crop-box {
	position: absolute;
	border: 2px solid #06b6d4;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
	touch-action: none;
	cursor: move;
}

.dizi-cam-crop-handle {
	position: absolute;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #06b6d4;
	border: 2.5px solid #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
	transform: translate(-50%, -50%);
	touch-action: none;
	cursor: pointer;
	z-index: 10;
	-webkit-tap-highlight-color: transparent;
}

.dizi-cam-crop-handle.handle-tl { top: 0; left: 0; }
.dizi-cam-crop-handle.handle-tr { top: 0; left: 100%; }
.dizi-cam-crop-handle.handle-bl { top: 100%; left: 0; }
.dizi-cam-crop-handle.handle-br { top: 100%; left: 100%; }

.dizi-cam-crop-edge {
	position: absolute;
	background: transparent;
	touch-action: none;
}

.dizi-cam-crop-edge.edge-t { top: -8px; left: 0; right: 0; height: 16px; cursor: n-resize; }
.dizi-cam-crop-edge.edge-b { bottom: -8px; left: 0; right: 0; height: 16px; cursor: s-resize; }
.dizi-cam-crop-edge.edge-l { top: 0; bottom: 0; left: -8px; width: 16px; cursor: w-resize; }
.dizi-cam-crop-edge.edge-r { top: 0; bottom: 0; right: -8px; width: 16px; cursor: e-resize; }

.dizi-cam-crop-actions {
	padding: 12px 18px;
	background: rgba(30, 41, 59, 0.95);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Review Deck & Pages Grid */
.dizi-cam-review-deck {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dizi-cam-deck-header {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 16px;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
}

.dizi-cam-deck-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--dizi-text-main, #0f172a);
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-cam-bulk-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.dizi-cam-bulk-filter-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--dizi-bg, #f1f5f9);
	padding: 4px 10px;
	border-radius: 10px;
	border: 1px solid var(--dizi-border, #cbd5e1);
}

/* Pages Grid */
.dizi-cam-pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.dizi-cam-page-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 16px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.dizi-cam-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.dizi-cam-page-num {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--dizi-primary, #4338ca);
	background: rgba(67, 56, 202, 0.08);
	padding: 3px 8px;
	border-radius: 6px;
}

.dizi-cam-card-quick-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.dizi-cam-icon-btn {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 6px;
	width: 28px;
	height: 28px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	cursor: pointer;
	color: var(--dizi-text-main, #0f172a);
	transition: all 0.15s;
}

.dizi-cam-icon-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.dizi-cam-icon-btn.danger:hover {
	background: #fee2e2;
	border-color: #ef4444;
	color: #ef4444;
}

.dizi-cam-icon-btn.crop-btn {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0891b2;
}

.dizi-cam-icon-btn.crop-btn:hover {
	background: #cffafe;
	border-color: #06b6d4;
	color: #0e7490;
}

.dizi-cam-img-wrap {
	width: 100%;
	height: 220px;
	background: #090d16;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-cam-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.dizi-cam-card-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
}

.dizi-cam-filter-chip {
	flex: 1;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	color: var(--dizi-text-muted, #64748b);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 2px;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s;
}

.dizi-cam-filter-chip:hover, .dizi-cam-filter-chip.active {
	background: var(--dizi-primary, #4338ca);
	border-color: var(--dizi-primary, #4338ca);
	color: #ffffff;
}

/* PDF Settings Box */
.dizi-cam-pdf-settings-box {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 16px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dizi-cam-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.dizi-cam-setting-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-cam-setting-col label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
}

@media (max-width: 768px) {
	.dizi-cam-hero-box {
		padding: 30px 16px;
	}
	.dizi-cam-deck-header {
		flex-direction: column;
		align-items: stretch;
	}
	.dizi-cam-bulk-controls {
		width: 100%;
		justify-content: stretch;
	}
	.dizi-cam-bulk-controls button {
		flex: 1;
	}
	.dizi-cam-pages-grid {
		grid-template-columns: 1fr;
	}
	.dizi-cam-img-wrap {
		height: 260px;
	}
}





/* ==========================================================================
   SIP & Mutual Fund Calculator Workspace (Dizi Tools Pro)
   ========================================================================== */
.dizi-sip-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

/* Top Bar: Tabs & Currency Selector */
.dizi-sip-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px 18px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dizi-sip-mode-tabs {
	display: inline-flex;
	align-items: center;
	background: var(--dizi-bg, #f1f5f9);
	padding: 4px;
	border-radius: 10px;
	gap: 4px;
	border: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-sip-mode-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dizi-sip-mode-btn:hover {
	color: var(--dizi-text, #1e293b);
}

.dizi-sip-mode-btn.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-primary, #6366f1);
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dizi-sip-currency-pills {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.dizi-sip-pill-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
	margin-right: 4px;
}

.dizi-sip-curr-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-sip-curr-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
}

.dizi-sip-curr-btn.active {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.28);
}

/* Quick Goals Strip */
.dizi-sip-presets-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(16, 185, 129, 0.04));
	border: 1px solid rgba(99, 102, 241, 0.15);
	border-radius: 12px;
	flex-wrap: wrap;
}

.dizi-sip-preset-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
	white-space: nowrap;
}

.dizi-sip-preset-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
}

.dizi-sip-preset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-sip-preset-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
}

.dizi-sip-preset-btn.active {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.12));
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	font-weight: 700;
}

/* 2-Column Responsive Workspace Grid */
.dizi-sip-grid {
	display: grid;
	grid-template-columns: 1.12fr 0.88fr;
	gap: 22px;
}

@media (max-width: 992px) {
	.dizi-sip-grid {
		grid-template-columns: 1fr;
	}
}

/* Cards */
.dizi-sip-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dizi-sip-card-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-sip-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-sip-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dizi-sip-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
}

.dizi-sip-input-box {
	display: flex;
	align-items: center;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dizi-sip-input-box:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dizi-sip-prefix {
	padding: 7px 11px;
	font-size: 14px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.08);
	border-right: 1px solid var(--dizi-border, #e2e8f0);
	user-select: none;
}

.dizi-sip-field {
	border: none;
	background: transparent;
	padding: 7px 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
	width: 100%;
	min-width: 90px;
	outline: none;
	text-align: right;
}

/* Range Sliders */
.dizi-sip-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: #e2e8f0;
	outline: none;
	cursor: pointer;
	transition: background 0.15s ease;
	margin: 6px 0;
}

.dizi-sip-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dizi-primary, #6366f1);
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dizi-sip-slider::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 3px 10px rgba(99, 102, 241, 0.6);
}

.dizi-sip-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dizi-primary, #6366f1);
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
	cursor: pointer;
}

/* Quick Chips */
.dizi-sip-chips {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-sip-chip {
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-sip-chip:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
}

.dizi-sip-chip.active {
	background: rgba(99, 102, 241, 0.12);
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	font-weight: 700;
}

/* Tenure Unit Toggle */
.dizi-sip-tenure-toggle {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f1f5f9);
}

.dizi-sip-tenure-btn {
	padding: 5px 9px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--dizi-text-secondary, #64748b);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dizi-sip-tenure-btn.active {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

/* Step-Up Card & Switch */
.dizi-sip-stepup-card {
	padding: 14px 16px;
	background: rgba(99, 102, 241, 0.03);
	border: 1px dashed rgba(99, 102, 241, 0.25);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dizi-sip-toggle-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dizi-sip-toggle-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dizi-sip-toggle-info strong {
	font-size: 13.5px;
	color: var(--dizi-text, #1e293b);
}

.dizi-sip-toggle-info span {
	font-size: 11.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-sip-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.dizi-sip-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.dizi-sip-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #cbd5e1;
	transition: 0.3s;
	border-radius: 24px;
}

.dizi-sip-switch-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dizi-sip-switch input:checked + .dizi-sip-switch-slider {
	background-color: var(--dizi-primary, #6366f1);
}

.dizi-sip-switch input:checked + .dizi-sip-switch-slider.orange {
	background-color: #ea580c;
}

.dizi-sip-switch input:checked + .dizi-sip-switch-slider:before {
	transform: translateX(20px);
}

/* Result Card */
.dizi-sip-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 14px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	box-shadow: 0 4px 14px -3px rgba(99, 102, 241, 0.08);
}

/* Hero Box */
.dizi-sip-hero-box {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid rgba(99, 102, 241, 0.25);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dizi-sip-hero-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-sip-hero-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dizi-text-secondary, #64748b);
}

.dizi-sip-multiplier-badge {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.dizi-sip-hero-val {
	font-size: 32px;
	font-weight: 800;
	color: #059669;
	letter-spacing: -0.5px;
	line-height: 1.15;
}

.dizi-sip-hero-words {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dizi-primary, #6366f1);
}

/* SVG Donut Chart Card */
.dizi-sip-chart-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 16px;
	flex-wrap: wrap;
}

.dizi-sip-chart-wrap {
	position: relative;
	width: 130px;
	height: 130px;
	flex-shrink: 0;
}

.dizi-sip-donut-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.dizi-donut-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 22;
}

.dizi-donut-segment {
	fill: none;
	stroke-width: 22;
	transition: stroke-dasharray 0.4s ease, stroke-dashoffset 0.4s ease;
}

.segment-invested {
	stroke: #6366f1;
}

.segment-returns {
	stroke: #10b981;
}

.dizi-sip-donut-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
}

.dizi-donut-pct {
	font-size: 19px;
	font-weight: 800;
	color: #10b981;
	line-height: 1;
}

.dizi-donut-sub {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--dizi-text-secondary, #64748b);
	letter-spacing: 0.3px;
	margin-top: 2px;
}

.dizi-sip-donut-legend {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	min-width: 150px;
}

.dizi-donut-legend-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
}

.dizi-donut-legend-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--dizi-text-secondary, #64748b);
}

/* Stats Breakdown List */
.dizi-sip-stats-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dizi-sip-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	font-size: 13.5px;
	transition: transform 0.15s ease;
}

.dizi-sip-stat-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dizi-text, #1e293b);
}

.dizi-sip-stat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dizi-sip-stat-val {
	font-weight: 700;
	color: var(--dizi-text, #1e293b);
}

/* Action Buttons */
.dizi-sip-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 480px) {
	.dizi-sip-actions {
		grid-template-columns: 1fr;
	}
}

.dizi-sip-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dizi-text, #1e293b);
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
}

.dizi-sip-action-btn:hover {
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #6366f1);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dizi-sip-action-btn.primary {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}

.dizi-sip-action-btn.primary:hover {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35);
}

/* Compounding Schedule Table Card */
.dizi-sip-schedule-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dizi-sip-schedule-header {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	background: var(--dizi-bg, #f8fafc);
}

.dizi-sip-schedule-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	color: var(--dizi-text, #1e293b);
}

.dizi-sip-schedule-badge {
	font-size: 12px;
	font-weight: 700;
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.1);
	padding: 3px 10px;
	border-radius: 12px;
}

.dizi-sip-table-wrap {
	max-height: 480px;
	overflow-y: auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dizi-sip-table {
	width: 100%;
	border-collapse: collapse;
	text-align: right;
	font-size: 13px;
}

.dizi-sip-table th,
.dizi-sip-table td {
	padding: 11px 16px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

.dizi-sip-table th:first-child,
.dizi-sip-table td:first-child {
	text-align: left;
}

.dizi-sip-table th {
	background: var(--dizi-bg, #f8fafc);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--dizi-text-secondary, #64748b);
	position: sticky;
	top: 0;
	z-index: 2;
}

.dizi-sip-table tr:hover td {
	background: rgba(99, 102, 241, 0.04);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .dizi-sip-topbar,
[data-theme="dark"] .dizi-sip-card,
[data-theme="dark"] .dizi-sip-hero-box,
[data-theme="dark"] .dizi-sip-chart-card,
[data-theme="dark"] .dizi-sip-stat-row,
[data-theme="dark"] .dizi-sip-schedule-card {
	background: #1e293b;
	border-color: #334155;
}

[data-theme="dark"] .dizi-sip-mode-tabs,
[data-theme="dark"] .dizi-sip-input-box,
[data-theme="dark"] .dizi-sip-chip,
[data-theme="dark"] .dizi-sip-tenure-toggle,
[data-theme="dark"] .dizi-sip-schedule-header,
[data-theme="dark"] .dizi-sip-table th {
	background: #0f172a;
	border-color: #334155;
}

[data-theme="dark"] .dizi-sip-mode-btn.active {
	background: #1e293b;
	color: #818cf8;
}

[data-theme="dark"] .dizi-donut-bg {
	stroke: #334155;
}

[data-theme="dark"] .dizi-sip-slider {
	background: #334155;
}

[data-theme="dark"] .dizi-sip-table td {
	border-color: #334155;
}

[data-theme="dark"] .dizi-sip-table tr:hover td {
	background: rgba(129, 140, 248, 0.08);
}



/* ==========================================================================
   FD & RD and PPF Calculator Enhancements (Dizi Tools Pro)
   ========================================================================== */
.dizi-fd-container .dizi-sip-card-title {
	color: #1e3a8a;
}

.dizi-fd-container .dizi-sip-prefix {
	color: #2563eb;
	background: rgba(37, 99, 235, 0.08);
}

.dizi-fd-container .dizi-sip-slider::-webkit-slider-thumb {
	background: #2563eb;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.dizi-fd-container .dizi-sip-slider::-moz-range-thumb {
	background: #2563eb;
}

.dizi-fd-container .dizi-sip-chip.active {
	background: rgba(37, 99, 235, 0.12);
	border-color: #2563eb;
	color: #2563eb;
}

.dizi-fd-container .dizi-sip-tenure-btn.active {
	background: #2563eb;
}

/* PPF Specific Sovereign Green Styling */
.dizi-ppf-container .dizi-sip-card-title {
	color: #047857;
}

.dizi-ppf-container .dizi-sip-prefix {
	color: #059669;
	background: rgba(5, 150, 105, 0.08);
}

.dizi-ppf-container .dizi-sip-slider::-webkit-slider-thumb {
	background: #059669;
	box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

.dizi-ppf-container .dizi-sip-slider::-moz-range-thumb {
	background: #059669;
}

.dizi-ppf-container .dizi-sip-chip.active {
	background: rgba(5, 150, 105, 0.12);
	border-color: #059669;
	color: #047857;
}

.dizi-ppf-container .dizi-sip-mode-btn.active {
	color: #047857;
}

/* Dark mode for FD and PPF */
[data-theme="dark"] .dizi-fd-container .dizi-sip-card-title {
	color: #93c5fd;
}

[data-theme="dark"] .dizi-ppf-container .dizi-sip-card-title {
	color: #6ee7b7;
}

[data-theme="dark"] .dizi-ppf-container select {
	background: #0f172a !important;
	color: #6ee7b7 !important;
}



/* ==========================================================================
   Volumetric Weight Calculator Enhancements (Dizi Tools Pro)
   ========================================================================== */
.dizi-volumetric-container .dizi-sip-card-title {
	color: #1e40af;
}

.dizi-volumetric-container .dizi-sip-prefix {
	color: #2563eb;
	background: rgba(37, 99, 235, 0.08);
}

.dizi-volumetric-container .dizi-sip-slider::-webkit-slider-thumb {
	background: #2563eb;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.dizi-volumetric-container .dizi-sip-slider::-moz-range-thumb {
	background: #2563eb;
}

.dizi-volumetric-container .dizi-sip-chip.active {
	background: rgba(37, 99, 235, 0.12);
	border-color: #2563eb;
	color: #1e40af;
}

.dizi-volumetric-container .dizi-sip-mode-btn.active {
	color: #1e40af;
}

[data-theme="dark"] .dizi-volumetric-container .dizi-sip-card-title {
	color: #93c5fd;
}

[data-theme="dark"] #multiBoxList > div {
	background: #0f172a !important;
	border-color: #334155 !important;
}

[data-theme="dark"] #multiBoxList input {
	background: #1e293b !important;
	color: #f8fafc !important;
	border-color: #334155 !important;
}

[data-theme="dark"] #packagingTipCard {
	background: rgba(245, 158, 11, 0.12) !important;
	color: #fde68a !important;
	border-color: rgba(245, 158, 11, 0.4) !important;
}



/* ==========================================================================
   Resume Maker & CV Builder Styles (Ultra-Professional, Full Photo Studio)
   ========================================================================== */
.dizi-resume-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

/* TOPBAR */
.dizi-resume-topbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 16px;
	margin-bottom: 20px;
	box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.25);
}

:root:not([data-theme="dark"]) .dizi-resume-topbar {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.05);
}

.dizi-resume-topbar-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.dizi-resume-ctrl-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-resume-ctrl-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dizi-resume-pill-group {
	display: inline-flex;
	background: #0f172a;
	padding: 3px;
	border-radius: 10px;
	gap: 3px;
	border: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-pill-group {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

.dizi-resume-pill {
	border: none;
	background: transparent;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	color: #94a3b8;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.dizi-resume-pill:hover {
	color: #60a5fa;
}

.dizi-resume-pill.active {
	background: #2563eb;
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.dizi-resume-color-palette {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-resume-color-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.dizi-resume-color-swatch:hover {
	transform: scale(1.2);
}

.dizi-resume-color-swatch.active {
	border-color: #ffffff;
	outline: 2px solid #3b82f6;
	transform: scale(1.15);
}

.dizi-resume-select {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #334155;
	border-radius: 8px;
	background: #0f172a;
	color: #f8fafc;
	outline: none;
	cursor: pointer;
}

:root:not([data-theme="dark"]) .dizi-resume-select {
	background: #ffffff;
	color: #1e293b;
	border-color: #cbd5e1;
}

.dizi-resume-topbar-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

/* SCOPED RESUME ACTION BUTTONS (NO WHITE BOXES) */
.dizi-res-btn-primary {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	border: 1px solid #1e40af !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
	transition: all 0.2s ease !important;
}

.dizi-res-btn-primary:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45) !important;
}

.dizi-res-btn-secondary {
	background: #1e293b !important;
	color: #f1f5f9 !important;
	border: 1px solid #334155 !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.dizi-res-btn-secondary:hover {
	background: #334155 !important;
	border-color: #475569 !important;
}

:root:not([data-theme="dark"]) .dizi-res-btn-secondary {
	background: #f1f5f9 !important;
	color: #1e293b !important;
	border-color: #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .dizi-res-btn-secondary:hover {
	background: #e2e8f0 !important;
}

.dizi-res-btn-ghost {
	background: rgba(255, 255, 255, 0.05) !important;
	color: #cbd5e1 !important;
	border: 1px solid #334155 !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.dizi-res-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
}

:root:not([data-theme="dark"]) .dizi-res-btn-ghost {
	background: #ffffff !important;
	color: #475569 !important;
	border-color: #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .dizi-res-btn-ghost:hover {
	background: #f8fafc !important;
	color: #0f172a !important;
}

.dizi-res-btn-danger {
	background: rgba(239, 68, 68, 0.12) !important;
	color: #f87171 !important;
	border: 1px solid rgba(239, 68, 68, 0.3) !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.dizi-res-btn-danger:hover {
	background: rgba(239, 68, 68, 0.2) !important;
	color: #ef4444 !important;
}

/* SECTION NAV TABS */
.dizi-resume-nav-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 4px;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 12px;
	margin-bottom: 12px;
}

:root:not([data-theme="dark"]) .dizi-resume-nav-tabs {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

.dizi-nav-tab {
	border: none;
	background: transparent;
	color: #94a3b8;
	font-size: 11.5px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.dizi-nav-tab:hover {
	color: #f8fafc;
	background: rgba(255, 255, 255, 0.05);
}

:root:not([data-theme="dark"]) .dizi-nav-tab:hover {
	color: #0f172a;
}

.dizi-nav-tab.active {
	background: #2563eb;
	color: #ffffff;
}

/* MOBILE TABS */
.dizi-resume-mobile-tabs {
	display: none;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 16px;
	gap: 6px;
}

.dizi-resume-mobile-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
}

.dizi-resume-mobile-tab.active {
	background: #2563eb;
	color: #ffffff;
}

/* 2-COLUMN SPLIT WORKSPACE */
.dizi-resume-workspace {
	display: grid;
	grid-template-columns: minmax(440px, 1.15fr) minmax(460px, 1.25fr);
	gap: 24px;
	align-items: start;
}

/* LEFT: EDITOR PANEL */
.dizi-resume-editor {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dizi-resume-status-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2px 6px;
}

.dizi-resume-save-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #10b981;
}

.dizi-resume-link-btn {
	border: none;
	background: transparent;
	color: #3b82f6;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dizi-resume-link-btn:hover {
	text-decoration: underline;
}

.dizi-resume-card {
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.2);
}

:root:not([data-theme="dark"]) .dizi-resume-card {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.04);
}

.dizi-resume-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background: #0f172a;
	border-bottom: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-card-header {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.dizi-resume-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #f8fafc;
}

:root:not([data-theme="dark"]) .dizi-resume-card-title {
	color: #1e293b;
}

.dizi-resume-card-body {
	padding: 18px;
}

/* PHOTO STUDIO STYLING */
.dizi-resume-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-toggle-text {
	font-size: 11.5px;
	font-weight: 700;
	color: #94a3b8;
}

/* SWITCH TOGGLE */
.dizi-resume-switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 20px;
}

.dizi-resume-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.dizi-resume-slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #475569;
	transition: .3s;
	border-radius: 20px;
}

.dizi-resume-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

.dizi-resume-switch input:checked + .dizi-resume-slider {
	background-color: #2563eb;
}

.dizi-resume-switch input:checked + .dizi-resume-slider:before {
	transform: translateX(18px);
}

.dizi-resume-photo-studio {
	display: flex;
	align-items: center;
	gap: 20px;
}

.dizi-resume-photo-frame {
	width: 88px;
	height: 88px;
	overflow: hidden;
	background: #0f172a;
	border: 3px solid #3b82f6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	transition: border-radius 0.25s ease;
}

.dizi-resume-photo-frame.shape-circle {
	border-radius: 50%;
}

.dizi-resume-photo-frame.shape-rounded {
	border-radius: 14px;
}

.dizi-resume-photo-frame.shape-square {
	border-radius: 4px;
}

.dizi-resume-photo-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dizi-resume-photo-frame #photoPlaceholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
}

.dizi-resume-photo-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.dizi-resume-photo-actions-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.dizi-photo-btn {
	background: #0f172a !important;
	color: #f1f5f9 !important;
	border: 1px solid #334155 !important;
	border-radius: 8px !important;
	padding: 6px 12px !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.dizi-photo-btn:hover {
	background: #2563eb !important;
	border-color: #2563eb !important;
	color: #ffffff !important;
}

:root:not([data-theme="dark"]) .dizi-photo-btn {
	background: #f1f5f9 !important;
	color: #1e293b !important;
	border-color: #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .dizi-photo-btn:hover {
	background: #2563eb !important;
	color: #ffffff !important;
}

.dizi-photo-btn.btn-danger {
	background: rgba(239, 68, 68, 0.12) !important;
	color: #f87171 !important;
	border-color: rgba(239, 68, 68, 0.3) !important;
}

.dizi-photo-btn.btn-danger:hover {
	background: #ef4444 !important;
	color: #ffffff !important;
}

.dizi-resume-shape-selector {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-shape-label {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
}

.dizi-shape-btn {
	border: 1px solid #334155;
	background: #0f172a;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

:root:not([data-theme="dark"]) .dizi-shape-btn {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #475569;
}

.dizi-shape-btn.active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

.dizi-photo-hint {
	font-size: 11px;
	color: #94a3b8;
}

/* FORM FIELDS WITH STRICT DARK/LIGHT CONTRAST */
.dizi-resume-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.dizi-resume-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dizi-field-label {
	font-size: 11.5px;
	font-weight: 700;
	color: #e2e8f0;
}

:root:not([data-theme="dark"]) .dizi-field-label {
	color: #334155;
}

.dizi-resume-editor input[type="text"],
.dizi-resume-editor input[type="email"],
.dizi-resume-editor input[type="tel"],
.dizi-resume-editor textarea,
.dizi-resume-editor select {
	background: #0f172a !important;
	color: #f8fafc !important;
	border: 1px solid #334155 !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 12.5px !important;
	outline: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
}

.dizi-resume-editor input::placeholder,
.dizi-resume-editor textarea::placeholder {
	color: #64748b !important;
}

.dizi-resume-editor input:focus,
.dizi-resume-editor textarea:focus,
.dizi-resume-editor select:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

:root:not([data-theme="dark"]) .dizi-resume-editor input[type="text"],
:root:not([data-theme="dark"]) .dizi-resume-editor input[type="email"],
:root:not([data-theme="dark"]) .dizi-resume-editor input[type="tel"],
:root:not([data-theme="dark"]) .dizi-resume-editor textarea,
:root:not([data-theme="dark"]) .dizi-resume-editor select {
	background: #ffffff !important;
	color: #0f172a !important;
	border-color: #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .dizi-resume-editor input::placeholder,
:root:not([data-theme="dark"]) .dizi-resume-editor textarea::placeholder {
	color: #94a3b8 !important;
}

.dizi-field-hint {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 3px;
}

/* PRESETS */
.dizi-resume-presets-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-resume-presets-label {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
}

.dizi-resume-preset-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dizi-resume-preset-chip {
	border: 1px solid #334155;
	background: #0f172a;
	color: #cbd5e1;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dizi-resume-preset-chip:hover {
	border-color: #3b82f6;
	color: #ffffff;
	background: rgba(59, 130, 246, 0.15);
}

:root:not([data-theme="dark"]) .dizi-resume-preset-chip {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-preset-chip:hover {
	border-color: #2563eb;
	color: #2563eb;
	background: rgba(37, 99, 235, 0.08);
}

.dizi-resume-word-count {
	font-size: 11px;
	color: #94a3b8;
	text-align: right;
	margin-top: 4px;
}

/* REPEATERS */
.dizi-resume-repeater-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dizi-resume-item-card {
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 10px;
	padding: 12px;
}

:root:not([data-theme="dark"]) .dizi-resume-item-card {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.dizi-resume-item-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-item-card-header {
	border-color: #e2e8f0;
}

.dizi-resume-item-num {
	font-size: 12px;
	font-weight: 700;
	color: #f8fafc;
}

:root:not([data-theme="dark"]) .dizi-resume-item-num {
	color: #1e293b;
}

.dizi-btn-icon-xs {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.dizi-btn-icon-xs:hover {
	border-color: #ef4444;
	color: #ef4444;
	background: rgba(239, 68, 68, 0.15);
}

:root:not([data-theme="dark"]) .dizi-btn-icon-xs {
	background: #ffffff;
	border-color: #e2e8f0;
	color: #64748b;
}

.dizi-resume-empty-note {
	padding: 24px;
	text-align: center;
	font-size: 12.5px;
	color: #94a3b8;
	background: #0f172a;
	border-radius: 8px;
	border: 1px dashed #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-empty-note {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #64748b;
}

/* SKILLS TAG BOX */
.dizi-resume-tag-box {
	border: 1px solid #334155;
	border-radius: 8px;
	padding: 8px;
	background: #0f172a;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	min-height: 44px;
}

:root:not([data-theme="dark"]) .dizi-resume-tag-box {
	background: #ffffff;
	border-color: #cbd5e1;
}

.dizi-resume-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dizi-resume-skill-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(59, 130, 246, 0.15);
	color: #93c5fd;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid rgba(59, 130, 246, 0.3);
}

:root:not([data-theme="dark"]) .dizi-resume-skill-tag {
	background: rgba(37, 99, 235, 0.08);
	color: #1d4ed8;
	border-color: rgba(37, 99, 235, 0.2);
}

.dizi-resume-skill-tag .btn-del-skill {
	border: none;
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.dizi-resume-tag-input {
	border: none !important;
	outline: none !important;
	flex: 1 !important;
	min-width: 160px !important;
	font-size: 12px !important;
	padding: 4px !important;
	background: transparent !important;
	color: #f8fafc !important;
}

:root:not([data-theme="dark"]) .dizi-resume-tag-input {
	color: #0f172a !important;
}

/* RIGHT: PREVIEW STUDIO PANEL */
.dizi-resume-preview-panel {
	position: sticky;
	top: 20px;
	background: #0b1120;
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
	border: 1px solid #1e293b;
	overflow: hidden;
}

.dizi-resume-preview-bar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #f8fafc;
}

.dizi-resume-preview-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.dizi-preview-row-top {
	border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
	padding-bottom: 8px;
}

.dizi-preview-row-bottom {
	padding-top: 2px;
}

.dizi-preview-status-title {
	font-weight: 700;
	color: #f8fafc;
	font-size: 12px;
}

.dizi-resume-page-nav-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dizi-resume-preview-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
}

.dizi-resume-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px #10b981;
}

.dizi-resume-zoom-controls {
	display: flex;
	align-items: center;
	gap: 3px;
	background: rgba(255, 255, 255, 0.08);
	padding: 2px 6px;
	border-radius: 8px;
}

.dizi-resume-zoom-btn {
	border: none;
	background: transparent;
	color: #cbd5e1;
	padding: 3px 6px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.dizi-resume-zoom-btn:hover,
.dizi-resume-zoom-btn.active {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.dizi-resume-zoom-level {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	min-width: 32px;
	text-align: center;
}

/* VIEWPORT & AUTO-FIT SCALER (NO CLIPPING) */
.dizi-resume-sheet-viewport {
	max-height: calc(100vh - 180px);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 12px 0 24px 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.dizi-resume-sheet-scaler {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	transition: transform 0.12s ease-out;
	flex-shrink: 0;
}

/* ==========================================================================
   THE A4 RESUME SHEET CANVAS (794px × 1123px base per page)
   ========================================================================== */
.dizi-resume-sheet {
	width: 794px;
	min-height: 1123px;
	background: #ffffff !important;
	color: #111827;
	padding: 38px 44px;
	box-sizing: border-box;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	border-radius: 2px;
	font-size: 10pt;
	line-height: 1.42;
	position: relative;
	flex-shrink: 0;
}

/* Font Families (12 Curated Professional Resume Typefaces) */
.dizi-resume-sheet.font-sans,
.dizi-resume-sheet.font-jakarta {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-inter {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-poppins {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-lato {
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-montserrat {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-roboto {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-raleway {
	font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dizi-resume-sheet.font-serif,
.dizi-resume-sheet.font-merriweather {
	font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

.dizi-resume-sheet.font-garamond {
	font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

.dizi-resume-sheet.font-playfair {
	font-family: 'Playfair Display', Georgia, serif;
}

.dizi-resume-sheet.font-lora {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

.dizi-resume-sheet.font-mono {
	font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* AVATAR SHAPE STYLING IN RESUME SHEET */
.res-avatar-wrap,
.res-exec-avatar,
.res-creative-avatar,
.res-compact-avatar {
	overflow: hidden;
	flex-shrink: 0;
	border: 2.5px solid var(--theme-accent, #2563eb);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
	background: #f8fafc;
}

.res-avatar-wrap.shape-circle,
.res-exec-avatar.shape-circle,
.res-creative-avatar.shape-circle,
.res-compact-avatar.shape-circle {
	border-radius: 50% !important;
}

.res-avatar-wrap.shape-rounded,
.res-exec-avatar.shape-rounded,
.res-creative-avatar.shape-rounded,
.res-compact-avatar.shape-rounded {
	border-radius: 12px !important;
}

.res-avatar-wrap.shape-square,
.res-exec-avatar.shape-square,
.res-creative-avatar.shape-square,
.res-compact-avatar.shape-square {
	border-radius: 4px !important;
}

.res-avatar-wrap img,
.res-exec-avatar img,
.res-creative-avatar img,
.res-compact-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -------------------------------------------------------------------------
   Template 1: Modern Pro (tmpl-modern)
   ------------------------------------------------------------------------- */
.tmpl-modern .res-modern-header {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2.5px solid var(--theme-accent, #2563eb);
}

.tmpl-modern .res-avatar-wrap {
	width: 76px;
	height: 76px;
}

.tmpl-modern .res-name {
	font-size: 20pt;
	font-weight: 800;
	color: var(--theme-accent, #2563eb);
	margin: 0 0 2px 0;
	line-height: 1.15;
}

.tmpl-modern .res-job-title {
	font-size: 10.5pt;
	font-weight: 700;
	color: #4b5563;
	margin-bottom: 5px;
}

.tmpl-modern .res-contact-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 8.5pt;
	color: #4b5563;
}

.tmpl-modern .res-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tmpl-modern .res-section {
	margin-bottom: 11px;
}

.tmpl-modern .res-section-title {
	font-size: 9.5pt;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--theme-accent, #2563eb);
	border-bottom: 1.5px solid #e5e7eb;
	padding-bottom: 2px;
	margin-bottom: 5px;
}

.tmpl-modern .res-summary-body {
	font-size: 9pt;
	color: #374151;
	line-height: 1.45;
	margin: 0;
}

.tmpl-modern .res-exp-item,
.tmpl-modern .res-proj-item,
.tmpl-modern .res-edu-item {
	margin-bottom: 7px;
}

.tmpl-modern .res-exp-header,
.tmpl-modern .res-proj-header,
.tmpl-modern .res-edu-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 9pt;
	margin-bottom: 2px;
}

.tmpl-modern .res-exp-title {
	font-weight: 700;
	color: #111827;
}

.tmpl-modern .res-exp-company {
	font-weight: 600;
	color: #4b5563;
}

.tmpl-modern .res-exp-dates {
	font-size: 8.5pt;
	font-weight: 600;
	color: #6b7280;
}

.tmpl-modern .res-exp-loc {
	font-size: 8pt;
	color: #9ca3af;
}

.tmpl-modern .res-bullets {
	margin: 2px 0 0 16px;
	padding: 0;
	font-size: 8.5pt;
	color: #374151;
}

.tmpl-modern .res-bullets li {
	margin-bottom: 2px;
}

.tmpl-modern .res-skill-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.tmpl-modern .res-chip {
	background: rgba(37, 99, 235, 0.08);
	color: var(--theme-accent, #2563eb);
	font-size: 8pt;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
}

.tmpl-modern .res-proj-title {
	font-weight: 700;
	color: #111827;
}

.tmpl-modern .res-proj-link {
	font-size: 8pt;
	color: var(--theme-accent, #2563eb);
}

.tmpl-modern .res-proj-tech {
	font-size: 8pt;
	color: #4b5563;
	margin-bottom: 2px;
}

.tmpl-modern .res-edu-degree {
	font-weight: 700;
	color: #111827;
}

.tmpl-modern .res-edu-inst {
	font-weight: 600;
	color: #4b5563;
}

.tmpl-modern .res-edu-gpa {
	font-size: 8pt;
	color: #6b7280;
	font-style: italic;
}

.tmpl-modern .res-cert-item {
	font-size: 8.5pt;
	color: #374151;
	margin-bottom: 3px;
}

/* -------------------------------------------------------------------------
   Template 2: Executive (tmpl-executive)
   ------------------------------------------------------------------------- */
.tmpl-executive .res-exec-header {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1.5px solid var(--theme-accent, #111827);
}

.tmpl-executive .res-exec-header.no-photo {
	display: block;
	text-align: center;
}

.tmpl-executive .res-exec-avatar {
	width: 72px;
	height: 72px;
}

.tmpl-executive .res-name {
	font-size: 20pt;
	font-weight: 800;
	letter-spacing: 0.8px;
	color: var(--theme-accent, #111827);
	margin: 0 0 2px 0;
	text-transform: uppercase;
}

.tmpl-executive .res-job-title {
	font-size: 10.5pt;
	font-weight: 600;
	color: #374151;
	margin-bottom: 4px;
}

.tmpl-executive .res-exec-contact {
	font-size: 8.5pt;
	color: #4b5563;
}

.tmpl-executive .res-exec-section {
	margin-bottom: 10px;
}

.tmpl-executive .res-exec-title {
	font-size: 9pt;
	font-weight: 800;
	letter-spacing: 1px;
	border-bottom: 1px solid var(--theme-accent, #111827);
	padding-bottom: 2px;
	margin-bottom: 5px;
	color: var(--theme-accent, #111827);
}

.tmpl-executive .res-summary-body {
	font-size: 9pt;
	color: #374151;
	line-height: 1.42;
	margin: 0;
}

.tmpl-executive .res-exec-item {
	margin-bottom: 7px;
}

.tmpl-executive .res-exec-item-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 9pt;
}

.tmpl-executive .res-exec-role {
	color: #111827;
}

.tmpl-executive .res-exec-meta {
	font-size: 8.5pt;
	color: #4b5563;
}

.tmpl-executive .res-exec-degree {
	font-size: 8.5pt;
	color: #374151;
}

.tmpl-executive .res-exec-bullets {
	margin: 2px 0 0 16px;
	padding: 0;
	font-size: 8.5pt;
	color: #374151;
}

.tmpl-executive .res-exec-bullets li {
	margin-bottom: 2px;
}

.tmpl-executive .res-exec-skills-text {
	font-size: 8.5pt;
	color: #374151;
	line-height: 1.45;
}

/* -------------------------------------------------------------------------
   Template 3: Creative Sidebar (tmpl-creative)
   ------------------------------------------------------------------------- */
.tmpl-creative {
	padding: 0 !important;
	background: #ffffff !important;
}

.tmpl-creative .res-creative-layout {
	display: flex;
	min-height: 100%;
	height: 100%;
	background: #ffffff;
}

.tmpl-creative .res-creative-sidebar {
	width: 33%;
	background: #f8fafc;
	border-right: 1.5px solid #e2e8f0;
	padding: 30px 20px;
	box-sizing: border-box;
	min-height: 100%;
}

.tmpl-creative .res-creative-main {
	width: 67%;
	padding: 30px 26px;
	box-sizing: border-box;
	min-height: 100%;
	background: #ffffff;
}

.tmpl-creative .res-creative-avatar {
	width: 82px;
	height: 82px;
	margin: 0 auto 12px auto;
}

.tmpl-creative .res-sidebar-section {
	margin-bottom: 14px;
}

.tmpl-creative .res-sidebar-title {
	font-size: 8.5pt;
	font-weight: 800;
	letter-spacing: 0.8px;
	color: var(--theme-accent, #2563eb);
	border-bottom: 1px solid #cbd5e1;
	padding-bottom: 2px;
	margin-bottom: 5px;
}

.tmpl-creative .res-side-item {
	font-size: 7.5pt;
	color: #4b5563;
	margin-bottom: 3px;
	word-break: break-word;
}

.tmpl-creative .res-sidebar-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.tmpl-creative .res-side-pill {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	font-size: 7.5pt;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	color: #1e293b;
}

.tmpl-creative .res-side-edu,
.tmpl-creative .res-side-cert {
	margin-bottom: 6px;
	font-size: 8pt;
}

.tmpl-creative .res-side-edu-deg,
.tmpl-creative .res-side-cert-name {
	color: #111827;
}

.tmpl-creative .res-side-edu-inst,
.tmpl-creative .res-side-cert-sub {
	color: #4b5563;
}

.tmpl-creative .res-side-edu-year {
	font-size: 7.5pt;
	color: #64748b;
}

.tmpl-creative .res-creative-header {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--theme-accent, #2563eb);
}

.tmpl-creative .res-name {
	font-size: 20pt;
	font-weight: 800;
	color: var(--theme-accent, #2563eb);
	margin: 0 0 2px 0;
}

.tmpl-creative .res-job-title {
	font-size: 10.5pt;
	font-weight: 700;
	color: #4b5563;
}

.tmpl-creative .res-creative-block {
	margin-bottom: 11px;
}

.tmpl-creative .res-creative-title {
	font-size: 9pt;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--theme-accent, #2563eb);
	margin-bottom: 5px;
}

.tmpl-creative .res-creative-exp {
	margin-bottom: 7px;
}

.tmpl-creative .res-creative-exp-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 9pt;
}

.tmpl-creative .res-exp-title {
	font-weight: 700;
	color: #111827;
}

.tmpl-creative .res-exp-dates {
	font-size: 8pt;
	color: #64748b;
}

.tmpl-creative .res-exp-company {
	font-size: 8.5pt;
	color: #4b5563;
	margin-bottom: 2px;
}

/* -------------------------------------------------------------------------
   Template 4: Compact / Modern Clean (tmpl-compact)
   ------------------------------------------------------------------------- */
.tmpl-compact .res-compact-header {
	display: flex;
	gap: 14px;
	align-items: center;
	border-bottom: 2px solid var(--theme-accent, #2563eb);
	padding-bottom: 6px;
	margin-bottom: 8px;
}

.tmpl-compact .res-compact-avatar {
	width: 64px;
	height: 64px;
}

.tmpl-compact .res-compact-name-wrap {
	flex: 1;
}

.tmpl-compact .res-name {
	font-size: 17pt;
	font-weight: 800;
	color: var(--theme-accent, #2563eb);
	margin: 0 0 1px 0;
}

.tmpl-compact .res-job-title {
	font-size: 9.5pt;
	font-weight: 700;
	color: #4b5563;
}

.tmpl-compact .res-compact-contact {
	font-size: 7.5pt;
	text-align: right;
	color: #4b5563;
	line-height: 1.35;
}

.tmpl-compact .res-compact-section {
	margin-bottom: 7px;
}

.tmpl-compact .res-compact-title {
	font-size: 8.5pt;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--theme-accent, #2563eb);
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 2px;
	margin-bottom: 4px;
}

.tmpl-compact .res-compact-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 8.5pt;
}

.tmpl-compact .res-compact-badge {
	display: inline-block;
	background: #f1f5f9;
	font-size: 7.5pt;
	font-weight: 600;
	padding: 1px 5px;
	border-radius: 3px;
	margin-right: 4px;
	margin-bottom: 3px;
	color: #1e293b;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
	.dizi-resume-workspace {
		grid-template-columns: 1fr;
	}

	.dizi-resume-mobile-tabs {
		display: flex;
	}

	.dizi-resume-editor.mobile-hidden {
		display: none !important;
	}

	.dizi-resume-preview-panel {
		display: none;
	}

	.dizi-resume-preview-panel.mobile-visible {
		display: block !important;
		position: static;
	}
}

@media (max-width: 640px) {
	.dizi-resume-form-grid {
		grid-template-columns: 1fr;
	}

	.dizi-resume-topbar {
		padding: 12px;
	}

	.dizi-resume-topbar-left {
		gap: 10px;
	}

	.dizi-resume-photo-studio {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Failsafe Ctrl+P print rules for Resume Maker */
@media print {
	@page {
		size: A4 portrait;
		margin: 12mm 14mm 12mm 14mm;
	}
	body:has(#resumePreviewSheet) {
		background: #ffffff !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body:has(#resumePreviewSheet) * {
		visibility: hidden !important;
	}
	body:has(#resumePreviewSheet) #resumePreviewSheet,
	body:has(#resumePreviewSheet) #resumePreviewSheet * {
		visibility: visible !important;
	}
	body:has(#resumePreviewSheet) .dizi-resume-preview-col,
	body:has(#resumePreviewSheet) .dizi-resume-sheet-scaler {
		transform: none !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		height: auto !important;
		display: block !important;
	}
	body:has(#resumePreviewSheet) #resumePreviewSheet {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		min-height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		box-shadow: none !important;
		border: none !important;
		transform: none !important;
		background: #ffffff !important;
		color: #111827 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}
	body:has(#resumePreviewSheet) header,
	body:has(#resumePreviewSheet) footer,
	body:has(#resumePreviewSheet) nav,
	body:has(#resumePreviewSheet) .dizi-site-header,
	body:has(#resumePreviewSheet) .dizi-site-footer,
	body:has(#resumePreviewSheet) .dizi-resume-topbar,
	body:has(#resumePreviewSheet) .dizi-resume-editor,
	body:has(#resumePreviewSheet) .dizi-resume-preview-bar,
	body:has(#resumePreviewSheet) .dizi-resume-mobile-tabs,
	body:has(#resumePreviewSheet) .dizi-saas-appbar,
	body:has(#resumePreviewSheet) .dizi-tool-hero,
	body:has(#resumePreviewSheet) .dizi-tool-header,
	body:has(#resumePreviewSheet) .dizi-meta-bar,
	body:has(#resumePreviewSheet) .dizi-tool-features,
	body:has(#resumePreviewSheet) .dizi-tool-faq,
	body:has(#resumePreviewSheet) .dizi-related-tools {
		display: none !important;
	}
	.dizi-resume-page-break,
	.dizi-page-sheet-badge,
	.dizi-page-number-footer {
		display: none !important;
		visibility: hidden !important;
	}
	.dizi-pushed-page-item {
		margin-top: 0 !important;
	}
	.res-section, .res-exp-item, .res-edu-item, .res-proj-item, .res-cert-item,
	.res-sidebar-section, .res-side-edu, .res-side-cert,
	.res-exec-section, .res-exec-item,
	.res-compact-section, .res-compact-item,
	.res-creative-block, .res-creative-exp {
		break-inside: avoid !important;
		page-break-inside: avoid !important;
	}
}

/* ==========================================================================
   MULTI-PAGE RESUME & A4 WYSIWYG PAGINATION STYLES
   ========================================================================== */
.dizi-resume-page-counter {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	transition: all 0.2s ease;
	user-select: none;
}

.dizi-resume-page-counter.single {
	background: rgba(16, 185, 129, 0.15);
	color: #34d399;
	border: 1px solid rgba(16, 185, 129, 0.35);
}

.dizi-resume-page-counter.multi {
	background: rgba(245, 158, 11, 0.2);
	color: #fbbf24;
	border: 1px solid rgba(245, 158, 11, 0.45);
	box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
	animation: pulseAmber 2.5s infinite;
}

@keyframes pulseAmber {
	0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
	50% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.35); }
}

.dizi-resume-page-nav {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
}

.dizi-page-jump-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #e2e8f0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.3;
}

.dizi-page-jump-btn:hover,
.dizi-page-jump-btn.active {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #3b82f6 !important;
	box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.dizi-autofit-page-btn {
	background: rgba(99, 102, 241, 0.22);
	color: #a5b4fc;
	border: 1px solid rgba(99, 102, 241, 0.45);
	border-radius: 6px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.3;
	margin-left: 4px;
}

.dizi-autofit-page-btn:hover {
	background: #6366f1;
	color: #ffffff;
	border-color: #818cf8;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Page Break Cut Line at exact A4 boundaries (1123px, 2246px) */
.dizi-resume-page-break {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: 0;
	z-index: 25;
	pointer-events: none;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-page-break-line-left,
.dizi-page-break-line-right {
	flex: 1;
	border-top: 2px dashed #94a3b8;
	opacity: 0.75;
}

.dizi-page-break-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 16px;
	background: #0f172a;
	color: #f8fafc;
	border: 1.5px solid #3b82f6;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
	transform: translateY(-50%);
	pointer-events: auto;
}

.dizi-page-break-scissors {
	font-size: 13px;
	color: #38bdf8;
}

.dizi-page-break-text {
	color: #cbd5e1;
	font-size: 10.5px;
}

.dizi-page-break-arrow {
	color: #38bdf8;
	font-weight: 900;
}

.dizi-page-break-text-next {
	color: #38bdf8;
	font-weight: 900;
	font-size: 11px;
}

.dizi-page-break-tag {
	background: rgba(56, 189, 248, 0.2);
	color: #38bdf8;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.3px;
	border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Page Top Header Watermark Badge on sheet */
.dizi-page-sheet-badge {
	position: absolute;
	right: 32px;
	font-size: 8pt;
	color: #475569;
	font-weight: 800;
	letter-spacing: 0.8px;
	pointer-events: none;
	user-select: none;
	z-index: 15;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	padding: 2px 9px;
	border-radius: 4px;
	text-transform: uppercase;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Subtle Page Footer Counter at page bottom */
.dizi-page-number-footer {
	position: absolute;
	right: 32px;
	font-size: 8pt;
	color: #64748b;
	font-weight: 700;
	letter-spacing: 0.4px;
	pointer-events: none;
	user-select: none;
	z-index: 15;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px 9px;
	border-radius: 4px;
	border: 1px solid rgba(203, 213, 225, 0.85);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Screen Avoid-break rules for sections and cards */
.res-section,
.res-exp-item,
.res-edu-item,
.res-proj-item,
.res-cert-item,
.res-sidebar-section,
.res-exec-section,
.res-exec-item,
.res-compact-section,
.res-compact-item,
.res-creative-block,
.res-creative-exp {
	break-inside: avoid;
	page-break-inside: avoid;
}

/* ==========================================================================
   Resume Font Size & Weight Modifiers (Live Preview & Print)
   ========================================================================== */

/* UI Controls for Text Size Stepper & Dropdown */
.dizi-resume-topbar-controls,
.dizi-resume-topbar-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.dizi-resume-size-stepper {
	display: inline-flex;
	align-items: center;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 9px;
	padding: 2px 4px;
	gap: 3px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

:root:not([data-theme="dark"]) .dizi-resume-size-stepper {
	background: #f1f5f9;
	border-color: #cbd5e1;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dizi-res-step-btn {
	background: #1e293b;
	color: #cbd5e1;
	border: 1px solid #334155;
	border-radius: 6px;
	padding: 3px 8px;
	font-size: 11.5px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1.3;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

:root:not([data-theme="dark"]) .dizi-res-step-btn {
	background: #ffffff;
	color: #334155;
	border-color: #cbd5e1;
}

.dizi-res-step-btn:hover {
	background: #2563eb;
	color: #ffffff;
	border-color: #1d4ed8;
	transform: translateY(-1px);
}

.dizi-res-step-btn:active {
	transform: translateY(0);
}

.dizi-resume-size-select {
	background: transparent !important;
	border: none !important;
	padding: 4px 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #f8fafc !important;
	cursor: pointer;
	outline: none !important;
}

:root:not([data-theme="dark"]) .dizi-resume-size-select {
	color: #0f172a !important;
}

.dizi-resume-size-select option {
	background: #1e293b;
	color: #f8fafc;
}

:root:not([data-theme="dark"]) .dizi-resume-size-select option {
	background: #ffffff;
	color: #0f172a;
}

/* Preview Bar Multi-tools */
.dizi-resume-preview-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dizi-resume-preview-size-tool {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #0f172a;
	padding: 2px 6px;
	border-radius: 8px;
	border: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-resume-preview-size-tool {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.dizi-resume-tool-tag {
	font-size: 10.5px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	margin-right: 2px;
}

:root:not([data-theme="dark"]) .dizi-resume-tool-tag {
	color: #64748b;
}

.dizi-resume-tool-sep {
	width: 1px;
	height: 16px;
	background: #334155;
	margin: 0 4px;
}

:root:not([data-theme="dark"]) .dizi-resume-tool-sep {
	background: #cbd5e1;
}

/* -------------------------------------------------------------
   SIZE LEVEL 1: COMPACT (8.5pt - Fit Extensive Content in 1 Page)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-compact {
	font-size: 8.5pt !important;
	line-height: 1.34 !important;
}
.dizi-resume-sheet.size-compact .res-name {
	font-size: 17pt !important;
	line-height: 1.1 !important;
}
.dizi-resume-sheet.size-compact .res-job-title {
	font-size: 9pt !important;
}
.dizi-resume-sheet.size-compact .res-section-title,
.dizi-resume-sheet.size-compact .res-exec-title,
.dizi-resume-sheet.size-compact .res-creative-title,
.dizi-resume-sheet.size-compact .res-compact-title {
	font-size: 8.5pt !important;
}
.dizi-resume-sheet.size-compact .res-summary-body,
.dizi-resume-sheet.size-compact .res-bullets,
.dizi-resume-sheet.size-compact .res-exec-skills-text {
	font-size: 7.8pt !important;
	line-height: 1.34 !important;
}
.dizi-resume-sheet.size-compact .res-exp-header,
.dizi-resume-sheet.size-compact .res-proj-header,
.dizi-resume-sheet.size-compact .res-edu-header,
.dizi-resume-sheet.size-compact .res-exec-item-top {
	font-size: 8.2pt !important;
}
.dizi-resume-sheet.size-compact .res-exp-title,
.dizi-resume-sheet.size-compact .res-proj-title,
.dizi-resume-sheet.size-compact .res-edu-degree {
	font-size: 8.5pt !important;
}
.dizi-resume-sheet.size-compact .res-exp-company,
.dizi-resume-sheet.size-compact .res-proj-tech,
.dizi-resume-sheet.size-compact .res-edu-school {
	font-size: 8pt !important;
}
.dizi-resume-sheet.size-compact .res-exp-dates,
.dizi-resume-sheet.size-compact .res-edu-dates {
	font-size: 7.8pt !important;
}
.dizi-resume-sheet.size-compact .res-contact-bar,
.dizi-resume-sheet.size-compact .res-exec-contact,
.dizi-resume-sheet.size-compact .res-contact-item {
	font-size: 7.8pt !important;
}
.dizi-resume-sheet.size-compact .res-chip,
.dizi-resume-sheet.size-compact .res-side-pill,
.dizi-resume-sheet.size-compact .res-compact-badge {
	font-size: 7.2pt !important;
	padding: 1px 5px !important;
}

/* -------------------------------------------------------------
   SIZE LEVEL 2: SMALL (9.5pt)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-small {
	font-size: 9.5pt !important;
	line-height: 1.38 !important;
}
.dizi-resume-sheet.size-small .res-name {
	font-size: 19pt !important;
	line-height: 1.15 !important;
}
.dizi-resume-sheet.size-small .res-job-title {
	font-size: 10pt !important;
}
.dizi-resume-sheet.size-small .res-section-title,
.dizi-resume-sheet.size-small .res-exec-title,
.dizi-resume-sheet.size-small .res-creative-title,
.dizi-resume-sheet.size-small .res-compact-title {
	font-size: 9.5pt !important;
}
.dizi-resume-sheet.size-small .res-summary-body,
.dizi-resume-sheet.size-small .res-bullets,
.dizi-resume-sheet.size-small .res-exec-skills-text {
	font-size: 8.8pt !important;
	line-height: 1.4 !important;
}
.dizi-resume-sheet.size-small .res-exp-header,
.dizi-resume-sheet.size-small .res-proj-header,
.dizi-resume-sheet.size-small .res-edu-header,
.dizi-resume-sheet.size-small .res-exec-item-top {
	font-size: 9.2pt !important;
}
.dizi-resume-sheet.size-small .res-exp-title,
.dizi-resume-sheet.size-small .res-proj-title,
.dizi-resume-sheet.size-small .res-edu-degree {
	font-size: 9.5pt !important;
}
.dizi-resume-sheet.size-small .res-exp-company,
.dizi-resume-sheet.size-small .res-proj-tech,
.dizi-resume-sheet.size-small .res-edu-school {
	font-size: 8.8pt !important;
}
.dizi-resume-sheet.size-small .res-exp-dates,
.dizi-resume-sheet.size-small .res-edu-dates {
	font-size: 8.5pt !important;
}
.dizi-resume-sheet.size-small .res-contact-bar,
.dizi-resume-sheet.size-small .res-exec-contact,
.dizi-resume-sheet.size-small .res-contact-item {
	font-size: 8.5pt !important;
}
.dizi-resume-sheet.size-small .res-chip,
.dizi-resume-sheet.size-small .res-side-pill,
.dizi-resume-sheet.size-small .res-compact-badge {
	font-size: 7.8pt !important;
	padding: 2px 6px !important;
}

/* -------------------------------------------------------------
   SIZE LEVEL 3: MEDIUM (10.5pt - Balanced Default)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-medium {
	font-size: 10.5pt !important;
	line-height: 1.45 !important;
}
.dizi-resume-sheet.size-medium .res-name {
	font-size: 22pt !important;
	line-height: 1.18 !important;
}
.dizi-resume-sheet.size-medium .res-job-title {
	font-size: 11pt !important;
}
.dizi-resume-sheet.size-medium .res-section-title,
.dizi-resume-sheet.size-medium .res-exec-title,
.dizi-resume-sheet.size-medium .res-creative-title,
.dizi-resume-sheet.size-medium .res-compact-title {
	font-size: 10.5pt !important;
}
.dizi-resume-sheet.size-medium .res-summary-body,
.dizi-resume-sheet.size-medium .res-bullets,
.dizi-resume-sheet.size-medium .res-exec-skills-text {
	font-size: 9.8pt !important;
	line-height: 1.45 !important;
}
.dizi-resume-sheet.size-medium .res-exp-header,
.dizi-resume-sheet.size-medium .res-proj-header,
.dizi-resume-sheet.size-medium .res-edu-header,
.dizi-resume-sheet.size-medium .res-exec-item-top {
	font-size: 10.2pt !important;
}
.dizi-resume-sheet.size-medium .res-exp-title,
.dizi-resume-sheet.size-medium .res-proj-title,
.dizi-resume-sheet.size-medium .res-edu-degree {
	font-size: 10.8pt !important;
}
.dizi-resume-sheet.size-medium .res-exp-company,
.dizi-resume-sheet.size-medium .res-proj-tech,
.dizi-resume-sheet.size-medium .res-edu-school {
	font-size: 9.6pt !important;
}
.dizi-resume-sheet.size-medium .res-exp-dates,
.dizi-resume-sheet.size-medium .res-edu-dates {
	font-size: 9.2pt !important;
}
.dizi-resume-sheet.size-medium .res-contact-bar,
.dizi-resume-sheet.size-medium .res-exec-contact,
.dizi-resume-sheet.size-medium .res-contact-item {
	font-size: 9pt !important;
}
.dizi-resume-sheet.size-medium .res-chip,
.dizi-resume-sheet.size-medium .res-side-pill,
.dizi-resume-sheet.size-medium .res-compact-badge {
	font-size: 8.5pt !important;
	padding: 2.5px 7px !important;
}

/* -------------------------------------------------------------
   SIZE LEVEL 4: LARGE (12.0pt - Bada Text / High Readability)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-large {
	font-size: 12.0pt !important;
	line-height: 1.5 !important;
}
.dizi-resume-sheet.size-large .res-name {
	font-size: 25pt !important;
	line-height: 1.2 !important;
}
.dizi-resume-sheet.size-large .res-job-title {
	font-size: 12.5pt !important;
}
.dizi-resume-sheet.size-large .res-section-title,
.dizi-resume-sheet.size-large .res-exec-title,
.dizi-resume-sheet.size-large .res-creative-title,
.dizi-resume-sheet.size-large .res-compact-title {
	font-size: 12.0pt !important;
}
.dizi-resume-sheet.size-large .res-summary-body,
.dizi-resume-sheet.size-large .res-bullets,
.dizi-resume-sheet.size-large .res-exec-skills-text {
	font-size: 11.2pt !important;
	line-height: 1.52 !important;
}
.dizi-resume-sheet.size-large .res-exp-header,
.dizi-resume-sheet.size-large .res-proj-header,
.dizi-resume-sheet.size-large .res-edu-header,
.dizi-resume-sheet.size-large .res-exec-item-top {
	font-size: 11.5pt !important;
}
.dizi-resume-sheet.size-large .res-exp-title,
.dizi-resume-sheet.size-large .res-proj-title,
.dizi-resume-sheet.size-large .res-edu-degree {
	font-size: 12.2pt !important;
}
.dizi-resume-sheet.size-large .res-exp-company,
.dizi-resume-sheet.size-large .res-proj-tech,
.dizi-resume-sheet.size-large .res-edu-school {
	font-size: 11pt !important;
}
.dizi-resume-sheet.size-large .res-exp-dates,
.dizi-resume-sheet.size-large .res-edu-dates {
	font-size: 10.5pt !important;
}
.dizi-resume-sheet.size-large .res-contact-bar,
.dizi-resume-sheet.size-large .res-exec-contact,
.dizi-resume-sheet.size-large .res-contact-item {
	font-size: 10.2pt !important;
}
.dizi-resume-sheet.size-large .res-chip,
.dizi-resume-sheet.size-large .res-side-pill,
.dizi-resume-sheet.size-large .res-compact-badge {
	font-size: 9.5pt !important;
	padding: 3px 8.5px !important;
}

/* -------------------------------------------------------------
   SIZE LEVEL 5: EXTRA LARGE (13.5pt - Aur Bada Text / Spacious)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-xlarge {
	font-size: 13.5pt !important;
	line-height: 1.55 !important;
}
.dizi-resume-sheet.size-xlarge .res-name {
	font-size: 28pt !important;
	line-height: 1.2 !important;
}
.dizi-resume-sheet.size-xlarge .res-job-title {
	font-size: 14pt !important;
}
.dizi-resume-sheet.size-xlarge .res-section-title,
.dizi-resume-sheet.size-xlarge .res-exec-title,
.dizi-resume-sheet.size-xlarge .res-creative-title,
.dizi-resume-sheet.size-xlarge .res-compact-title {
	font-size: 13.5pt !important;
}
.dizi-resume-sheet.size-xlarge .res-summary-body,
.dizi-resume-sheet.size-xlarge .res-bullets,
.dizi-resume-sheet.size-xlarge .res-exec-skills-text {
	font-size: 12.5pt !important;
	line-height: 1.56 !important;
}
.dizi-resume-sheet.size-xlarge .res-exp-header,
.dizi-resume-sheet.size-xlarge .res-proj-header,
.dizi-resume-sheet.size-xlarge .res-edu-header,
.dizi-resume-sheet.size-xlarge .res-exec-item-top {
	font-size: 12.8pt !important;
}
.dizi-resume-sheet.size-xlarge .res-exp-title,
.dizi-resume-sheet.size-xlarge .res-proj-title,
.dizi-resume-sheet.size-xlarge .res-edu-degree {
	font-size: 13.5pt !important;
}
.dizi-resume-sheet.size-xlarge .res-exp-company,
.dizi-resume-sheet.size-xlarge .res-proj-tech,
.dizi-resume-sheet.size-xlarge .res-edu-school {
	font-size: 12.2pt !important;
}
.dizi-resume-sheet.size-xlarge .res-exp-dates,
.dizi-resume-sheet.size-xlarge .res-edu-dates {
	font-size: 11.5pt !important;
}
.dizi-resume-sheet.size-xlarge .res-contact-bar,
.dizi-resume-sheet.size-xlarge .res-exec-contact,
.dizi-resume-sheet.size-xlarge .res-contact-item {
	font-size: 11.5pt !important;
}
.dizi-resume-sheet.size-xlarge .res-chip,
.dizi-resume-sheet.size-xlarge .res-side-pill,
.dizi-resume-sheet.size-xlarge .res-compact-badge {
	font-size: 10.5pt !important;
	padding: 3.5px 10px !important;
}

/* -------------------------------------------------------------
   SIZE LEVEL 6: MAXIMUM / HUGE (15.0pt - Sabse Bada Text)
   ------------------------------------------------------------- */
.dizi-resume-sheet.size-xxlarge {
	font-size: 15.0pt !important;
	line-height: 1.6 !important;
}
.dizi-resume-sheet.size-xxlarge .res-name {
	font-size: 32pt !important;
	line-height: 1.2 !important;
}
.dizi-resume-sheet.size-xxlarge .res-job-title {
	font-size: 16pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-section-title,
.dizi-resume-sheet.size-xxlarge .res-exec-title,
.dizi-resume-sheet.size-xxlarge .res-creative-title,
.dizi-resume-sheet.size-xxlarge .res-compact-title {
	font-size: 15.0pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-summary-body,
.dizi-resume-sheet.size-xxlarge .res-bullets,
.dizi-resume-sheet.size-xxlarge .res-exec-skills-text {
	font-size: 14.0pt !important;
	line-height: 1.6 !important;
}
.dizi-resume-sheet.size-xxlarge .res-exp-header,
.dizi-resume-sheet.size-xxlarge .res-proj-header,
.dizi-resume-sheet.size-xxlarge .res-edu-header,
.dizi-resume-sheet.size-xxlarge .res-exec-item-top {
	font-size: 14.2pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-exp-title,
.dizi-resume-sheet.size-xxlarge .res-proj-title,
.dizi-resume-sheet.size-xxlarge .res-edu-degree {
	font-size: 15.0pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-exp-company,
.dizi-resume-sheet.size-xxlarge .res-proj-tech,
.dizi-resume-sheet.size-xxlarge .res-edu-school {
	font-size: 13.5pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-exp-dates,
.dizi-resume-sheet.size-xxlarge .res-edu-dates {
	font-size: 13pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-contact-bar,
.dizi-resume-sheet.size-xxlarge .res-exec-contact,
.dizi-resume-sheet.size-xxlarge .res-contact-item {
	font-size: 12.5pt !important;
}
.dizi-resume-sheet.size-xxlarge .res-chip,
.dizi-resume-sheet.size-xxlarge .res-side-pill,
.dizi-resume-sheet.size-xxlarge .res-compact-badge {
	font-size: 11.5pt !important;
	padding: 4px 12px !important;
}

/* Font Weight: Regular (400/600) */
.dizi-resume-sheet.weight-regular {
	font-weight: 400 !important;
}
.dizi-resume-sheet.weight-regular .res-summary-body,
.dizi-resume-sheet.weight-regular .res-bullets,
.dizi-resume-sheet.weight-regular .res-exec-skills-text,
.dizi-resume-sheet.weight-regular .res-contact-bar,
.dizi-resume-sheet.weight-regular .res-exec-contact {
	font-weight: 400 !important;
}
.dizi-resume-sheet.weight-regular .res-exp-title,
.dizi-resume-sheet.weight-regular .res-proj-title,
.dizi-resume-sheet.weight-regular .res-edu-degree {
	font-weight: 650 !important;
}
.dizi-resume-sheet.weight-regular .res-name {
	font-weight: 750 !important;
}

/* Font Weight: Medium (500/700) */
.dizi-resume-sheet.weight-medium {
	font-weight: 500 !important;
}
.dizi-resume-sheet.weight-medium .res-summary-body,
.dizi-resume-sheet.weight-medium .res-bullets,
.dizi-resume-sheet.weight-medium .res-exec-skills-text,
.dizi-resume-sheet.weight-medium .res-contact-bar,
.dizi-resume-sheet.weight-medium .res-exec-contact {
	font-weight: 450 !important;
}
.dizi-resume-sheet.weight-medium .res-exp-title,
.dizi-resume-sheet.weight-medium .res-proj-title,
.dizi-resume-sheet.weight-medium .res-edu-degree {
	font-weight: 700 !important;
}
.dizi-resume-sheet.weight-medium .res-name {
	font-weight: 800 !important;
}

/* Font Weight: Bold (600/800) */
.dizi-resume-sheet.weight-bold {
	font-weight: 550 !important;
}
.dizi-resume-sheet.weight-bold .res-summary-body,
.dizi-resume-sheet.weight-bold .res-bullets,
.dizi-resume-sheet.weight-bold .res-exec-skills-text,
.dizi-resume-sheet.weight-bold .res-contact-bar,
.dizi-resume-sheet.weight-bold .res-exec-contact {
	font-weight: 500 !important;
}
.dizi-resume-sheet.weight-bold .res-exp-title,
.dizi-resume-sheet.weight-bold .res-proj-title,
.dizi-resume-sheet.weight-bold .res-edu-degree {
	font-weight: 800 !important;
}
.dizi-resume-sheet.weight-bold .res-name {
	font-weight: 900 !important;
}


/* ==========================================================================
   Universal Resume Maker Styles (Career Bar, Category Tabs, Languages)
   ========================================================================== */
.dizi-resume-career-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 18px;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 14px;
	margin-bottom: 14px;
	box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
}

:root:not([data-theme="dark"]) .dizi-resume-career-bar {
	background: #f8fafc;
	border-color: #e2e8f0;
	box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.dizi-career-bar-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

:root:not([data-theme="dark"]) .dizi-career-bar-title {
	color: #64748b;
}

.dizi-career-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.dizi-career-pill {
	border: 1px solid #334155;
	background: #1e293b;
	color: #cbd5e1;
	padding: 5px 12px;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.dizi-career-pill:hover {
	border-color: #3b82f6;
	color: #ffffff;
	background: #2563eb;
	transform: translateY(-1px);
}

:root:not([data-theme="dark"]) .dizi-career-pill {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #334155;
}

:root:not([data-theme="dark"]) .dizi-career-pill:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.dizi-career-pill.active {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border-color: #1e40af;
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.dizi-resume-profile-label {
	font-size: 11.5px;
	color: #94a3b8;
}

:root:not([data-theme="dark"]) .dizi-resume-profile-label {
	color: #64748b;
}

.dizi-resume-profile-label strong {
	color: #60a5fa;
}

:root:not([data-theme="dark"]) .dizi-resume-profile-label strong {
	color: #2563eb;
}

/* Skill Category Tabs */
.dizi-skill-cat-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-skill-cat-tabs {
	border-color: #e2e8f0;
}

.dizi-skill-cat-btn {
	border: none;
	background: #0f172a;
	color: #94a3b8;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

:root:not([data-theme="dark"]) .dizi-skill-cat-btn {
	background: #f1f5f9;
	color: #475569;
}

.dizi-skill-cat-btn:hover {
	color: #ffffff;
	background: #334155;
}

:root:not([data-theme="dark"]) .dizi-skill-cat-btn:hover {
	color: #1e293b;
	background: #e2e8f0;
}

.dizi-skill-cat-btn.active {
	background: #2563eb;
	color: #ffffff;
	font-weight: 700;
	border-color: #2563eb;
}



/* ==========================================================================
   Resume Scanner & OCR Auto-Fill Modal Styles
   ========================================================================== */
.dizi-res-btn-accent {
	background: linear-gradient(135deg, var(--dizi-primary, #4f46e5) 0%, var(--dizi-primary-hover, #4338ca) 100%) !important;
	color: #ffffff !important;
	border: 1px solid var(--dizi-primary, #4f46e5) !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px var(--dizi-primary-light, rgba(79, 70, 229, 0.35)) !important;
	transition: all 0.2s ease !important;
}

.dizi-res-btn-accent:hover {
	background: linear-gradient(135deg, var(--dizi-primary-hover, #4338ca) 0%, #3730a3 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px var(--dizi-primary-light, rgba(79, 70, 229, 0.45)) !important;
}

.dizi-resume-scan-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.dizi-scan-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(8px);
}

.dizi-scan-dialog {
	position: relative;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 18px;
	width: 100%;
	max-width: min(880px, 96vw);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	animation: diziModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root:not([data-theme="dark"]) .dizi-scan-dialog {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

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

.dizi-scan-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #334155;
	background: #0f172a;
}

:root:not([data-theme="dark"]) .dizi-scan-header {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.dizi-scan-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dizi-scan-icon-badge {
	font-size: 24px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(5, 150, 105, 0.15);
	border: 1px solid rgba(5, 150, 105, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dizi-scan-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #f8fafc;
}

:root:not([data-theme="dark"]) .dizi-scan-title {
	color: #0f172a;
}

.dizi-scan-subtitle {
	margin: 3px 0 0 0;
	font-size: 12px;
	color: #94a3b8;
}

.dizi-scan-close-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 20px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.dizi-scan-close-btn:hover {
	background: #334155;
	color: #ffffff;
}

:root:not([data-theme="dark"]) .dizi-scan-close-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dizi-scan-tabs {
	display: flex;
	gap: 8px;
	padding: 12px 20px;
	background: #1e293b;
	border-bottom: 1px solid #334155;
}

:root:not([data-theme="dark"]) .dizi-scan-tabs {
	background: #ffffff;
	border-color: #e2e8f0;
}

.dizi-scan-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 12.5px;
	font-weight: 700;
	color: #94a3b8;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
}

:root:not([data-theme="dark"]) .dizi-scan-tab {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #475569;
}

.dizi-scan-tab.active {
	background: #059669;
	border-color: #059669;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.dizi-scan-panel {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.dizi-scan-viewfinder {
	position: relative;
	width: 100%;
	height: 320px;
	background: #000000;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-scan-guide-box {
	position: absolute;
	width: 78%;
	height: 85%;
	border: 2px dashed rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 12px;
	box-sizing: border-box;
}

.dizi-scan-guide-text {
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
}

.dizi-scan-cam-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.dizi-scan-snap-btn {
	background: linear-gradient(135deg, var(--dizi-primary, #4f46e5) 0%, var(--dizi-primary-hover, #4338ca) 100%);
	color: #ffffff;
	border: none;
	padding: 10px 24px;
	border-radius: 30px;
	font-size: 13.5px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
	transition: all 0.2s ease;
}

.dizi-scan-snap-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.dizi-scan-ctrl-btn {
	background: #0f172a;
	border: 1px solid #334155;
	color: #cbd5e1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
}

:root:not([data-theme="dark"]) .dizi-scan-ctrl-btn {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #334155;
}

.dizi-scan-ctrl-btn:hover {
	background: #334155;
	color: #ffffff;
}

:root:not([data-theme="dark"]) .dizi-scan-ctrl-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dizi-scan-dropzone {
	border: 2px dashed #334155;
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	background: #0f172a;
	cursor: pointer;
	transition: all 0.2s ease;
}

:root:not([data-theme="dark"]) .dizi-scan-dropzone {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.dizi-scan-dropzone:hover {
	border-color: #059669;
	background: rgba(5, 150, 105, 0.05);
}

.dizi-dropzone-icon {
	font-size: 40px;
	margin-bottom: 8px;
}

.dizi-dropzone-title {
	font-size: 14px;
	font-weight: 700;
	color: #f8fafc;
}

:root:not([data-theme="dark"]) .dizi-dropzone-title {
	color: #0f172a;
}

.dizi-dropzone-hint {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 4px;
}

.dizi-scan-canvas-wrap {
	max-height: 280px;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dizi-scan-canvas-wrap canvas {
	max-width: 100%;
	max-height: 280px;
	object-fit: contain;
}

.dizi-scan-preprocess-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
	padding: 10px 14px;
	background: #0f172a;
	border-radius: 10px;
}

:root:not([data-theme="dark"]) .dizi-scan-preprocess-bar {
	background: #f1f5f9;
}

.dizi-scan-check-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 600;
	color: #cbd5e1;
	cursor: pointer;
}

:root:not([data-theme="dark"]) .dizi-scan-check-label {
	color: #334155;
}

.dizi-scan-spinner {
	width: 44px;
	height: 44px;
	border: 3.5px solid rgba(5, 150, 105, 0.2);
	border-top-color: #059669;
	border-radius: 50%;
	animation: diziSpin 0.8s linear infinite;
	margin: 0 auto;
}

@keyframes diziSpin {
	to { transform: rotate(360deg); }
}

.dizi-scan-progress-bar {
	width: 100%;
	max-width: 380px;
	height: 8px;
	background: #0f172a;
	border-radius: 4px;
	overflow: hidden;
	margin: 0 auto;
}

:root:not([data-theme="dark"]) .dizi-scan-progress-bar {
	background: #e2e8f0;
}

.dizi-scan-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #059669 0%, #10b981 100%);
	transition: width 0.2s ease;
}

.dizi-scan-success-badge {
	background: rgba(5, 150, 105, 0.15);
	border: 1px solid rgba(5, 150, 105, 0.35);
	color: #34d399;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 14px;
}

/* Interactive A4 Document Editor Styles */
.dizi-scan-doc-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 12px;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 10px;
}

:root:not([data-theme="dark"]) .dizi-scan-doc-toolbar {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.dizi-scan-toolbar-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dizi-scan-tool-btn {
	background: #1e293b;
	border: 1px solid #334155;
	color: #cbd5e1;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
}

:root:not([data-theme="dark"]) .dizi-scan-tool-btn {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #334155;
}

.dizi-scan-tool-btn:hover {
	background: #334155;
	color: #ffffff;
}

:root:not([data-theme="dark"]) .dizi-scan-tool-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.dizi-scan-doc-paper-wrap {
	background: #0b1120;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #1e293b;
	overflow-y: auto;
	max-height: 52vh;
	display: flex;
	justify-content: center;
}

:root:not([data-theme="dark"]) .dizi-scan-doc-paper-wrap {
	background: #cbd5e1;
	border-color: #94a3b8;
}

.dizi-scan-doc-paper {
	background: #ffffff !important;
	color: #0f172a !important;
	width: 100%;
	max-width: 760px;
	min-height: 480px;
	padding: 36px 44px;
	box-sizing: border-box;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	outline: none;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.65;
	word-break: break-word;
	cursor: text;
}

.dizi-scan-doc-paper:focus {
	box-shadow: 0 0 0 2px #059669, 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dizi-scan-doc-paper h1,
.dizi-scan-doc-paper h2,
.dizi-scan-doc-paper h3,
.dizi-scan-doc-paper h4 {
	color: #0f172a !important;
	margin: 16px 0 6px 0;
	font-weight: 700;
}

.dizi-scan-doc-paper h2 {
	font-size: 22px;
	margin-top: 0;
}

.dizi-scan-doc-paper h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1.5px solid #e2e8f0;
	padding-bottom: 4px;
	color: #1e293b !important;
}

.dizi-scan-doc-paper p {
	margin: 4px 0 8px 0;
	color: #1e293b !important;
}

.dizi-scan-doc-paper ul, 
.dizi-scan-doc-paper ol {
	margin: 4px 0 10px 0;
	padding-left: 24px;
}

.dizi-scan-doc-paper li {
	margin-bottom: 4px;
	color: #1e293b !important;
}

.dizi-scan-actions-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #334155;
	background: #0f172a;
}

:root:not([data-theme="dark"]) .dizi-scan-actions-bar {
	background: #f8fafc;
	border-color: #e2e8f0;
}

/* =========================================================================
   PHOTOCOPY SCANNED DOCUMENT IN-PLACE EDITOR STYLES
   ========================================================================= */
.dizi-photocopy-stage-wrap {
	background: #090d16;
	padding: 20px;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow: auto;
	max-height: 56vh;
	position: relative;
}

:root:not([data-theme="dark"]) .dizi-photocopy-stage-wrap {
	background: #cbd5e1;
}

.dizi-photocopy-page {
	position: relative;
	background: #ffffff;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	border-radius: 4px;
	user-select: text;
	overflow: visible;
}

.dizi-photocopy-canvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.dizi-photocopy-overlay {
	position: absolute;
	inset: 0;
	pointer-events: auto;
	user-select: none;
}

/* Invisible hotspot for detected OCR lines (Zero overlap, Zero double text!) */
.photocopy-line-item {
	position: absolute;
	box-sizing: border-box;
	border: none;
	border-radius: 2px;
	cursor: default;
	z-index: 5;
	background: transparent;
}

/* When NOT active: NEVER show overlay DOM text (text is baked onto canvas)! */
.photocopy-line-item:not(.active-edit) .photocopy-line-text {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	background: transparent !important;
}

.photocopy-line-item:not(.active-edit) {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.photocopy-line-item:not(.active-edit):hover {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Active editing state: Solid clean white background lifts up to cover old scanned text underneath! */
.photocopy-line-item.active-edit,
.photocopy-line-item:focus-within {
	background: #ffffff !important;
	border: 1.5px solid #0284c7 !important;
	border-radius: 3px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
	z-index: 500 !important;
	padding: 1px 4px !important;
	cursor: text;
	transform-origin: left center;
	transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
}

.photocopy-line-item.active-edit .photocopy-line-text,
.photocopy-line-item:focus-within .photocopy-line-text {
	display: inline-block !important;
	opacity: 1 !important;
	visibility: visible !important;
	color: #0f172a !important;
	background: #ffffff !important;
	font-family: Arial, "Segoe UI", sans-serif;
	letter-spacing: -0.2px;
	outline: none;
}

/* Floating mini toolbar on active edit */
.photocopy-active-toolbar {
	position: absolute;
	top: -36px;
	left: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 6px;
	padding: 3px 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	z-index: 600;
	pointer-events: auto;
	white-space: nowrap;
	transform: scale(0.85);
	transform-origin: left bottom;
}

.photocopy-active-toolbar button {
	border: 1px solid #475569 !important;
	border-radius: 4px !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	cursor: pointer !important;
	padding: 3px 8px !important;
	line-height: 1.2 !important;
	background: #1e293b !important;
	color: #ffffff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
	transition: all 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	user-select: none !important;
}

.photocopy-active-toolbar button:hover {
	background: #334155 !important;
	border-color: #64748b !important;
	color: #ffffff !important;
}

/* Save Button */
.photocopy-active-toolbar .btn-save-inline {
	background: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	font-weight: 700 !important;
}
.photocopy-active-toolbar .btn-save-inline:hover {
	background: var(--dizi-primary-hover, #4338ca) !important;
	border-color: var(--dizi-primary-hover, #4338ca) !important;
}

/* Size Adjust Buttons (A- / A+) */
.photocopy-active-toolbar .btn-size-inline {
	background: #1e293b !important;
	color: #f8fafc !important;
	border-color: #475569 !important;
	padding: 3px 7px !important;
	font-weight: 700 !important;
}
.photocopy-active-toolbar .btn-size-inline:hover {
	background: #334155 !important;
	border-color: #94a3b8 !important;
	color: #38bdf8 !important;
}

/* Bold / Normal Toggle Button */
.photocopy-active-toolbar .btn-weight-inline {
	background: #1e293b !important;
	color: #f8fafc !important;
	border-color: #475569 !important;
	padding: 3px 8px !important;
	font-weight: 800 !important;
}
.photocopy-active-toolbar .btn-weight-inline.is-bold {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-color: #38bdf8 !important;
}
.photocopy-active-toolbar .btn-weight-inline:hover {
	background: #334155 !important;
	border-color: #94a3b8 !important;
}

/* Font Family Toggle Button */
.photocopy-active-toolbar .btn-font-inline {
	background: #1e293b !important;
	color: #f8fafc !important;
	border-color: #475569 !important;
	min-width: 44px !important;
	text-align: center !important;
}
.photocopy-active-toolbar .btn-font-inline:hover {
	background: #334155 !important;
	border-color: #94a3b8 !important;
	color: #38bdf8 !important;
}

/* Zoom Toggle Button */
.photocopy-active-toolbar .btn-zoom-inline {
	background: #0f172a !important;
	color: #38bdf8 !important;
	border-color: #0284c7 !important;
	font-weight: 700 !important;
	min-width: 64px !important;
	text-align: center !important;
}
.photocopy-active-toolbar .btn-zoom-inline:hover {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-color: #38bdf8 !important;
}

/* Cancel / Revert Button (Red) */
.photocopy-active-toolbar .btn-cancel-inline {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #ef4444 !important;
	padding: 3px 8px !important;
	font-weight: 700 !important;
}
.photocopy-active-toolbar .btn-cancel-inline:hover {
	background: #b91c1c !important;
	border-color: #f87171 !important;
}

/* Once saved: Container is 100% transparent when not active */
.photocopy-line-item.has-edited:not(.active-edit) {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	z-index: 15;
	padding: 0;
	cursor: pointer;
}

.photocopy-line-item.has-edited:not(.active-edit):hover {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.photocopy-line-item.saved-flash {
	background: transparent !important;
	transition: none;
}

.photocopy-line-text {
	display: inline-block;
	width: auto;
	outline: none;
	color: #0f172a;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	line-height: 1.1;
	white-space: nowrap;
}

/* Delete / Revert button only in edit toolbar, hidden on clean page */
.photocopy-item-del {
	display: none !important;
}

/* Whiteout eraser patches */
.photocopy-whiteout-item {
	position: absolute;
	background: #ffffff !important;
	border: 1px dashed #94a3b8;
	border-radius: 2px;
	cursor: move;
	z-index: 20;
}

.photocopy-whiteout-item:hover {
	border-color: #ef4444;
}

.photocopy-whiteout-del {
	position: absolute;
	top: -9px;
	right: -9px;
	background: #ef4444;
	color: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 11px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.photocopy-whiteout-item:hover .photocopy-whiteout-del {
	display: flex;
}

/* Drag to select rectangle preview */
.photocopy-drag-preview {
	position: absolute;
	border: 1.5px dashed #0284c7;
	background: rgba(2, 132, 199, 0.15);
	pointer-events: none;
	z-index: 200;
	border-radius: 2px;
	display: none;
}

.dizi-scan-tool-btn.active {
	background: #059669 !important;
	color: #ffffff !important;
	border-color: #059669 !important;
}

/* ==========================================================================
   Easy Card Print Manual For Canon (55mm x 91mm)
   ========================================================================== */
.dizi-canon-card-app {
	max-width: 1240px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--dizi-text-main, #0f172a);
}

.dizi-canon-specs-hero {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}
.dizi-canon-specs-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #10b981, #06b6d4, #4f46e5);
}
.dizi-canon-hero-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 14px;
}
.dizi-canon-hero-title-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}
.dizi-canon-hero-icon {
	width: 50px;
	height: 50px;
	border-radius: 13px;
	background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(204, 0, 0, 0.35);
}
.dizi-canon-hero-title {
	font-size: 21px;
	font-weight: 800;
	margin: 0;
	color: var(--dizi-text-main, #0f172a);
}
.dizi-canon-hero-sub {
	font-size: 13.5px;
	color: var(--dizi-text-muted, #64748b);
	margin: 2px 0 0 0;
}
.dizi-canon-specs-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dizi-canon-spec-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 700;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	color: var(--dizi-text-main, #334155);
}
.dizi-canon-spec-pill.pill-accent {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
	color: #dc2626;
}
.dizi-canon-spec-pill.pill-emerald {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.3);
	color: #059669;
}
.dizi-canon-spec-pill.pill-indigo {
	background: rgba(79, 70, 229, 0.1);
	border-color: rgba(79, 70, 229, 0.3);
	color: #4f46e5;
}

.dizi-canon-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 12px 18px;
	margin-bottom: 20px;
}
.dizi-canon-topbar-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.dizi-btn-canon-print {
	background: linear-gradient(135deg, #cc0000 0%, #b30000 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border: none !important;
	padding: 9px 18px !important;
	border-radius: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
	transition: all 0.2s ease;
	font-size: 13.5px !important;
}
.dizi-btn-canon-print:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(204, 0, 0, 0.45);
	background: linear-gradient(135deg, #e60000 0%, #cc0000 100%) !important;
}

.dizi-canon-grid {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr) !important;
	gap: 20px;
	align-items: start;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}
@media (max-width: 1100px) {
	.dizi-canon-grid {
		grid-template-columns: 310px minmax(0, 1fr) !important;
		gap: 16px;
	}
}
@media (max-width: 900px) {
	.dizi-canon-grid {
		grid-template-columns: 1fr !important;
	}
}

.dizi-canon-sources-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.dizi-canon-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}
.dizi-canon-panel-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-canon-slot {
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px dashed var(--dizi-border, #cbd5e1);
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 14px;
	transition: all 0.2s ease;
	position: relative;
}
.dizi-canon-slot:hover {
	border-color: #4f46e5;
	background: rgba(79, 70, 229, 0.02);
}
.dizi-canon-slot.has-card {
	border-style: solid;
	border-color: #10b981;
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-canon-slot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.dizi-canon-slot-title {
	font-size: 13.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
}
.dizi-canon-slot-body {
	display: flex;
	gap: 12px;
	align-items: center;
}
.dizi-canon-thumb-box {
	width: 104px;
	height: 65px;
	border-radius: 8px;
	background: #f1f5f9;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid var(--dizi-border, #cbd5e1);
	position: relative;
}
.dizi-canon-thumb-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}
.dizi-canon-slot-meta {
	flex: 1;
	min-width: 0;
}
.dizi-canon-slot-name {
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.dizi-canon-slot-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.dizi-canon-btn-mini {
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.15s ease;
}
.dizi-canon-btn-mini:hover {
	background: var(--dizi-primary-light, #eef2ff);
	border-color: var(--dizi-primary, #4f46e5);
	color: var(--dizi-primary, #4f46e5);
}

.dizi-canon-master-drop {
	border: 1.5px dashed var(--dizi-primary, #4f46e5);
	background: rgba(79, 70, 229, 0.03);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
}
.dizi-canon-master-drop:hover {
	background: rgba(79, 70, 229, 0.08);
	border-color: #4338ca;
}

.dizi-canon-studio-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.03);
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.dizi-canon-tabs {
	display: flex;
	gap: 6px;
	background: var(--dizi-bg, #f1f5f9);
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	max-width: 100% !important;
	box-sizing: border-box !important;
}
.dizi-canon-tab {
	flex: 1;
	min-width: 110px;
	padding: 8px 12px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: var(--dizi-text-muted, #64748b);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.dizi-canon-tab.active {
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dizi-canon-stage {
	background: #0f172a;
	background-image: radial-gradient(#334155 1.5px, transparent 1.5px);
	background-size: 18px 18px;
	border-radius: 14px;
	padding: 0 !important;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 740px;
	position: relative;
	overflow: hidden !important;
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.dizi-canon-paper-mockup {
	width: 275px; /* 55mm * 5 = 275px */
	height: 455px; /* 91mm * 5 = 455px */
	background: #ffffff;
	border-radius: 3px;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}
.dizi-canon-paper-mockup canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.dizi-epson-paper-mockup {
	width: 320px; /* 101.6mm proportional */
	height: 480px; /* 152.4mm proportional (4x6 ratio: 2:3) */
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
	aspect-ratio: 101.6 / 152.4;
}
.dizi-epson-paper-mockup canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.dizi-canon-dual-stage {
	display: flex;
	gap: 24px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.dizi-canon-flip-card {
	background-color: transparent;
	width: 380px;
	height: 240px;
	perspective: 1000px;
	cursor: pointer;
}
.dizi-canon-flip-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
	transform-style: preserve-3d;
}
.dizi-canon-flip-card.is-flipped .dizi-canon-flip-inner {
	transform: rotateY(180deg);
}
.dizi-canon-flip-front, .dizi-canon-flip-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	border-radius: 14px;
	box-shadow: 0 16px 36px rgba(0,0,0,0.4);
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(255,255,255,0.2);
}
.dizi-canon-flip-back {
	transform: rotateY(180deg);
}
.dizi-canon-flip-front img, .dizi-canon-flip-back img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dizi-canon-guides-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	margin-top: 14px;
}
.dizi-canon-guides-toggles {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.dizi-canon-guide-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
}

.dizi-canon-calibration-box {
	margin-top: 16px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 14px 16px;
}
.dizi-canon-calib-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}
.dizi-canon-calib-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
	box-sizing: border-box;
	min-width: 0;
}
.dizi-calib-item-full {
	grid-column: 1 / -1;
	width: 100%;
}
.dizi-canon-calib-label {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--dizi-text-muted, #64748b);
	display: flex;
	justify-content: space-between;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	line-height: 1.2;
}
.dizi-stepper-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 8px;
	padding: 3px 4px;
	gap: 2px;
	box-sizing: border-box;
	min-height: 34px;
	width: 100%;
}
.dizi-step-btn {
	width: 26px;
	height: 26px;
	min-width: 26px;
	flex: 0 0 26px;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
	padding: 0;
	box-sizing: border-box;
}
.dizi-step-btn:hover {
	background: var(--dizi-primary, #4f46e5);
	color: #ffffff;
	border-color: var(--dizi-primary, #4f46e5);
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}
.dizi-step-btn:active {
	transform: scale(0.92);
}
.dizi-step-val {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow: hidden;
	text-overflow: clip;
	line-height: 26px;
	letter-spacing: 0.1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 2px;
	user-select: none;
}
.dizi-angle-group {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	width: 100%;
}
.dizi-angle-btn {
	padding: 6px 2px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	user-select: none;
	white-space: nowrap;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dizi-angle-btn:hover {
	border-color: #4f46e5;
	background: rgba(79, 70, 229, 0.08);
}
.dizi-angle-btn.active {
	background: #4f46e5 !important;
	color: #ffffff !important;
	border-color: #4f46e5 !important;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}
.dizi-bleed-full-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}
.dizi-bleed-stepper {
	flex: 0 0 125px;
	min-width: 115px;
}
.dizi-bleed-pills {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.dizi-bleed-pill {
	padding: 6px 2px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-muted, #64748b);
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	white-space: nowrap;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dizi-bleed-pill:hover {
	background: rgba(79, 70, 229, 0.08);
	border-color: #4f46e5;
}
.dizi-bleed-pill.active {
	background: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

/* Dark mode theme overrides for calibration box & controls */
[data-theme="dark"] .dizi-canon-calibration-box {
	background: rgba(15, 23, 42, 0.65);
	border-color: #334155;
}
[data-theme="dark"] .dizi-canon-calib-item {
	background: #1e293b;
	border-color: #334155;
}
[data-theme="dark"] .dizi-stepper-control {
	background: #0f172a;
	border-color: #334155;
}
[data-theme="dark"] .dizi-step-btn {
	background: #1e293b;
	color: #f8fafc;
	border-color: #475569;
}
[data-theme="dark"] .dizi-step-btn:hover {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
}
[data-theme="dark"] .dizi-step-val {
	color: #f8fafc;
}
[data-theme="dark"] .dizi-angle-btn {
	background: #0f172a;
	color: #cbd5e1;
	border-color: #334155;
}
[data-theme="dark"] .dizi-angle-btn:hover {
	background: rgba(99, 102, 241, 0.2);
	border-color: #6366f1;
	color: #ffffff;
}
[data-theme="dark"] .dizi-angle-btn.active {
	background: #6366f1 !important;
	color: #ffffff !important;
	border-color: #6366f1 !important;
}
[data-theme="dark"] .dizi-bleed-pill {
	background: #0f172a;
	color: #94a3b8;
	border-color: #334155;
}
[data-theme="dark"] .dizi-bleed-pill:hover {
	background: rgba(16, 185, 129, 0.2);
	border-color: #10b981;
	color: #ffffff;
}
[data-theme="dark"] .dizi-bleed-pill.active {
	background: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
}

@media (max-width: 480px) {
	.dizi-canon-calib-grid {
		grid-template-columns: 1fr;
	}
	.dizi-calib-item-full {
		grid-column: 1;
	}
	.dizi-bleed-full-row {
		flex-direction: column;
		align-items: stretch;
	}
	.dizi-bleed-stepper {
		flex: 1 1 auto;
		width: 100%;
	}
}

.dizi-canon-crop-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.dizi-canon-crop-modal {
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 18px;
	width: 100%;
	max-width: 960px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	border: 1px solid var(--dizi-border, #e2e8f0);
}
.dizi-canon-crop-header {
	padding: 14px 20px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dizi-bg, #f8fafc);
}
.dizi-canon-crop-toolbar {
	padding: 10px 18px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-canon-crop-stage {
	flex: 1;
	min-height: 400px;
	max-height: 520px;
	background: #090d16;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	user-select: none;
}
.dizi-canon-crop-footer {
	padding: 14px 20px;
	border-top: 1px solid var(--dizi-border, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dizi-bg, #f8fafc);
}

.dizi-crop-box-element {
	position: absolute;
	border: 2px dashed #0284c7;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.40);
	cursor: move;
	box-sizing: border-box;
}
.dizi-crop-handle {
	position: absolute;
	width: 8px !important;
	height: 8px !important;
	background: #0284c7 !important;
	border: 1.5px solid #ffffff !important;
	border-radius: 2px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
	z-index: 25;
	touch-action: none;
	transition: transform 0.1s ease, background-color 0.1s ease;
}
.dizi-crop-handle::after {
	content: '';
	position: absolute;
	top: -7px;
	left: -7px;
	right: -7px;
	bottom: -7px;
	cursor: inherit;
}
.dizi-crop-handle:hover {
	transform: scale(1.35);
	background: #38bdf8 !important;
}
.handle-tl { top: -5px !important; left: -5px !important; cursor: nwse-resize !important; }
.handle-tr { top: -5px !important; right: -5px !important; cursor: nesw-resize !important; }
.handle-br { bottom: -5px !important; right: -5px !important; cursor: nwse-resize !important; }
.handle-bl { bottom: -5px !important; left: -5px !important; cursor: nesw-resize !important; }
.handle-t { top: -5px !important; left: calc(50% - 4px) !important; cursor: ns-resize !important; }
.handle-b { bottom: -5px !important; left: calc(50% - 4px) !important; cursor: ns-resize !important; }
.handle-l { left: -5px !important; top: calc(50% - 4px) !important; cursor: ew-resize !important; }
.handle-r { right: -5px !important; top: calc(50% - 4px) !important; cursor: ew-resize !important; }

.dizi-crop-box-element.front-mode {
	border-color: #0284c7 !important;
	border-style: dashed !important;
}
.dizi-crop-box-element.front-mode .dizi-crop-handle {
	background: #0284c7 !important;
}
.dizi-crop-box-element.back-mode {
	border-color: #ea580c !important;
	border-style: dashed !important;
}
.dizi-crop-box-element.back-mode .dizi-crop-handle {
	background: #ea580c !important;
}
.dizi-crop-box-element.back-mode .dizi-crop-handle:hover {
	background: #fb923c !important;
}

/* Document Studio & Drag-Crop UI */
.dizi-canon-crop-mode-btn {
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
	user-select: none;
}
.dizi-canon-crop-mode-btn:hover {
	border-color: #4f46e5;
	background: rgba(79, 70, 229, 0.06);
	color: #4f46e5;
}
.dizi-canon-crop-mode-btn.active-front {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-color: #0284c7 !important;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.dizi-canon-crop-mode-btn.active-back {
	background: #ea580c !important;
	color: #ffffff !important;
	border-color: #ea580c !important;
	box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}
.dizi-canon-crop-mode-btn.active-tab {
	background: #4f46e5 !important;
	color: #ffffff !important;
	border-color: #4f46e5 !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.dizi-doc-stage-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 740px;
	min-height: 720px;
	max-height: 840px;
	overflow: hidden !important;
	user-select: none;
	padding: 0 !important;
	box-sizing: border-box !important;
	cursor: default;
	background: #090d16;
}
.dizi-doc-stage-wrap.is-space-panning,
.dizi-doc-stage-wrap.is-space-panning * {
	cursor: grab !important;
	user-select: none !important;
}
.dizi-doc-stage-wrap.is-space-dragging,
.dizi-doc-stage-wrap.is-space-dragging * {
	cursor: grabbing !important;
	user-select: none !important;
}
.dizi-doc-canvas-container {
	position: relative;
	display: inline-block;
	line-height: 0;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
	border-radius: 8px;
	margin: 0;
	flex-shrink: 0;
	transform-origin: center center;
	will-change: transform;
}
.dizi-doc-canvas {
	display: block;
	height: auto;
	border-radius: 8px;
	background: #ffffff;
}
.dizi-doc-zoom-toolbar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 14px;
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	margin-bottom: 12px;
}
[data-theme="dark"] .dizi-doc-zoom-toolbar {
	background: #1e293b;
	border-color: #334155;
}
.dizi-btn-upload-doc {
	background: linear-gradient(135deg, var(--dizi-primary, #4f46e5) 0%, var(--dizi-primary-hover, #4338ca) 100%) !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	font-weight: 700 !important;
	border-radius: 9px !important;
	padding: 8px 16px !important;
	font-size: 13px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	user-select: none !important;
}
.dizi-btn-upload-doc:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55) !important;
	background: linear-gradient(135deg, var(--dizi-primary-hover, #4338ca) 0%, var(--dizi-primary, #4f46e5) 100%) !important;
}
.dizi-btn-load-demo {
	background: var(--dizi-card-bg, #ffffff) !important;
	color: var(--dizi-primary, #4f46e5) !important;
	border: 1.5px solid var(--dizi-primary, #4f46e5) !important;
	font-weight: 700 !important;
	border-radius: 9px !important;
	padding: 8px 16px !important;
	font-size: 13px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15) !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	user-select: none !important;
}
.dizi-btn-load-demo:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35) !important;
	background: var(--dizi-primary-light, rgba(99, 102, 241, 0.15)) !important;
	color: var(--dizi-primary-hover, #4338ca) !important;
}
[data-theme="dark"] .dizi-btn-load-demo {
	background: #1e293b !important;
	color: #a5b4fc !important;
	border-color: #6366f1 !important;
}
.dizi-doc-empty-box {
	border: 2px dashed rgba(99, 102, 241, 0.45);
	border-radius: 18px;
	padding: 44px 32px;
	text-align: center;
	background: radial-gradient(circle at center, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	cursor: pointer;
	max-width: 520px;
	width: 90%;
	transition: all 0.25s ease;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.dizi-doc-empty-box:hover {
	border-color: #818cf8;
	background: radial-gradient(circle at center, rgba(49, 46, 129, 0.4) 0%, rgba(15, 23, 42, 0.98) 100%);
	transform: translateY(-2px);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(99, 102, 241, 0.25);
}
.dizi-crop-box-element.front-mode {
	border-color: #0284c7 !important;
	border-style: dashed !important;
}
.dizi-crop-box-element.front-mode .dizi-crop-handle {
	background: #0284c7 !important;
	border-color: #ffffff !important;
}
.dizi-crop-box-element.back-mode {
	border-color: #ea580c !important;
	border-style: dashed !important;
}
.dizi-crop-box-element.back-mode .dizi-crop-handle {
	background: #ea580c !important;
	border-color: #ffffff !important;
}
.dizi-crop-floating-bar {
	position: absolute;
	top: -46px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	border-radius: 8px;
	z-index: 100;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	pointer-events: auto;
}
.dizi-crop-floating-bar.flip-bottom {
	top: auto;
	bottom: -46px;
}
.dizi-crop-badge-label {
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	padding: 2px 6px;
	border-radius: 4px;
	margin-right: 4px;
}
.dizi-crop-badge-label.front {
	background: #0284c7;
}
.dizi-crop-badge-label.back {
	background: #ea580c;
}

/* Dark mode styling for crop mode controls */
[data-theme="dark"] .dizi-canon-crop-mode-btn {
	background: #1e293b;
	color: #cbd5e1;
	border-color: #334155;
}
[data-theme="dark"] .dizi-canon-crop-mode-btn:hover {
	background: rgba(99, 102, 241, 0.2);
	border-color: #6366f1;
	color: #ffffff;
}

/* Pure Cropped Card Preview Windows (Zero text, zero buttons) */
.dizi-canon-card-window {
	position: relative;
	width: 100%;
	aspect-ratio: 82 / 51;
	border-radius: 12px;
	border: 2px solid var(--dizi-border, #cbd5e1);
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-sizing: border-box;
}
.dizi-canon-card-window:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.dizi-canon-card-window.active-front {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3), 0 8px 22px rgba(2, 132, 199, 0.25) !important;
}
.dizi-canon-card-window.active-back {
	border-color: #ea580c !important;
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.3), 0 8px 22px rgba(234, 88, 12, 0.25) !important;
}
.dizi-canon-card-window canvas {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 10px;
}
[data-theme="dark"] .dizi-canon-card-window {
	background: #0f172a;
	border-color: #334155;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.dizi-canon-card-window.has-card {
	cursor: zoom-in;
}

/* Enlarged Card Zoom Lightbox */
.dizi-card-zoom-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: diziFadeIn 0.2s ease-out;
}
.dizi-card-zoom-dialog {
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 20px;
	width: 100%;
	max-width: 860px;
	box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
	border: 1px solid var(--dizi-border, #e2e8f0);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: diziZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes diziFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes diziZoomIn {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: scale(1); }
}
.dizi-card-zoom-stage {
	background: #090d16;
	padding: 30px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	position: relative;
	overflow: hidden;
}
.dizi-card-zoom-frame {
	max-width: 720px;
	width: 100%;
	aspect-ratio: 82 / 51;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
	border: 2px solid rgba(255, 255, 255, 0.2);
	overflow: hidden;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}
.dizi-card-zoom-frame canvas,
.dizi-card-zoom-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}
[data-theme="dark"] .dizi-card-zoom-dialog {
	background: #1e293b;
	border-color: #334155;
}

/* Enlarged Card Zoom Lightbox Tabs & Close Button */
.dizi-zoom-switch-wrap {
	display: inline-flex !important;
	align-items: center !important;
	background: rgba(15, 23, 42, 0.07) !important;
	padding: 3px !important;
	border-radius: 10px !important;
	gap: 4px !important;
	box-sizing: border-box !important;
}
[data-theme="dark"] .dizi-zoom-switch-wrap {
	background: rgba(255, 255, 255, 0.08) !important;
}
.dizi-zoom-switch-btn {
	width: auto !important;
	min-width: 105px !important;
	height: 34px !important;
	padding: 0 14px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	border-radius: 7px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: var(--dizi-text-muted, #64748b) !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	user-select: none !important;
	box-sizing: border-box !important;
}
.dizi-zoom-switch-btn:hover {
	color: var(--dizi-text-main, #0f172a) !important;
	background: rgba(255, 255, 255, 0.6) !important;
}
[data-theme="dark"] .dizi-zoom-switch-btn {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-zoom-switch-btn:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}
.dizi-zoom-switch-btn.active-front {
	background: #0284c7 !important;
	color: #ffffff !important;
	border-color: #0284c7 !important;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45) !important;
}
.dizi-zoom-switch-btn.active-back {
	background: #ea580c !important;
	color: #ffffff !important;
	border-color: #ea580c !important;
	box-shadow: 0 2px 8px rgba(234, 88, 12, 0.45) !important;
}

.dizi-zoom-close-btn {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1.5px solid var(--dizi-border, #cbd5e1) !important;
	background: var(--dizi-card-bg, #ffffff) !important;
	color: var(--dizi-text-muted, #64748b) !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	user-select: none !important;
	box-sizing: border-box !important;
}
.dizi-zoom-close-btn:hover {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	transform: rotate(90deg) scale(1.08) !important;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}
[data-theme="dark"] .dizi-zoom-close-btn {
	background: #1e293b !important;
	border-color: #475569 !important;
	color: #cbd5e1 !important;
}
[data-theme="dark"] .dizi-zoom-close-btn:hover {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

/* Supported Printer Models Box in About Guide */
.dizi-supported-printers-card {
	margin: 22px 0 24px;
	padding: 20px 22px;
	background: linear-gradient(135deg, rgba(2, 132, 199, 0.04) 0%, rgba(248, 250, 252, 1) 100%);
	border: 1.5px solid rgba(2, 132, 199, 0.25);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .dizi-supported-printers-card {
	background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, #1e293b 100%);
	border-color: rgba(56, 189, 248, 0.3);
}
.dizi-supported-printers-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.dizi-printer-models-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dizi-printer-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid #0284c7;
	color: #0369a1;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.3px;
	transition: all 0.2s ease;
	user-select: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.dizi-printer-chip:hover {
	background: #0284c7;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.dizi-chip-check {
	color: #10b981;
	font-weight: 900;
	font-size: 11px;
}
.dizi-printer-chip:hover .dizi-chip-check {
	color: #ffffff;
}
[data-theme="dark"] .dizi-printer-chip {
	background: #0f172a;
	border-color: #38bdf8;
	color: #38bdf8;
}
[data-theme="dark"] .dizi-printer-chip:hover {
	background: #38bdf8;
	color: #0f172a;
}
[data-theme="dark"] .dizi-printer-chip:hover .dizi-chip-check {
	color: #0f172a;
}
.dizi-supported-printers-note {
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--dizi-text-muted, #64748b);
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

/* Canon PDF Password Modal Overlay */
.dizi-canon-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	animation: diziFadeIn 0.2s ease-out;
}
.dizi-canon-modal-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 18px;
	box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55);
	max-width: 460px;
	width: 100%;
	padding: 26px;
	text-align: center;
	box-sizing: border-box;
}
[data-theme="dark"] .dizi-canon-modal-card {
	background: #1e293b;
	border-color: #334155;
}
.dizi-canon-btn-mini {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--dizi-text-main, #334155);
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}
.dizi-canon-btn-mini:hover {
	background: #e2e8f0;
	color: #0f172a;
	border-color: #94a3b8;
}
[data-theme="dark"] .dizi-canon-btn-mini {
	background: #334155;
	border-color: #475569;
	color: #f1f5f9;
}
[data-theme="dark"] .dizi-canon-btn-mini:hover {
	background: #475569;
	color: #ffffff;
}





/* ==========================================================================
   Canon Sheet Position & Scale Controller (Privacy Safe D-Pad & Zoom Controls)
   ========================================================================== */
.dizi-canon-position-controller {
	margin-top: 14px;
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
	box-sizing: border-box;
}

[data-theme="dark"] .dizi-canon-position-controller {
	background: rgba(15, 23, 42, 0.7);
	border-color: #334155;
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.dizi-controller-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--dizi-border, #e2e8f0);
}

[data-theme="dark"] .dizi-controller-head {
	border-bottom-color: rgba(51, 65, 85, 0.6);
}

.dizi-controller-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dizi-controller-icon {
	font-size: 16px;
}

.dizi-controller-heading {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text-main, #0f172a);
	display: block;
	line-height: 1.2;
}

[data-theme="dark"] .dizi-controller-heading {
	color: #f8fafc;
}

.dizi-controller-sub {
	font-size: 11px;
	color: var(--dizi-text-muted, #64748b);
	display: block;
	margin-top: 2px;
}

[data-theme="dark"] .dizi-controller-sub {
	color: #94a3b8;
}

.dizi-controller-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* D-PAD DIRECTIONAL GRID */
.dizi-dpad-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.dizi-dpad-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--dizi-text-muted, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
	width: 100%;
}

[data-theme="dark"] .dizi-dpad-label {
	color: #94a3b8;
}

.dizi-dpad-grid {
	display: grid;
	grid-template-columns: repeat(3, 44px);
	grid-template-rows: repeat(3, 40px);
	gap: 6px;
	justify-content: center;
	align-items: center;
	padding: 8px;
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

[data-theme="dark"] .dizi-dpad-grid {
	background: #0f172a;
	border-color: #334155;
	box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.dizi-dpad-btn {
	width: 44px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dizi-bg, #f1f5f9);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 9px;
	color: var(--dizi-text-main, #1e293b);
	cursor: pointer;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	padding: 0;
	box-sizing: border-box;
}

[data-theme="dark"] .dizi-dpad-btn {
	background: #1e293b;
	border-color: #334155;
	color: #e2e8f0;
}

.dizi-dpad-btn:hover {
	background: #4f46e5 !important;
	border-color: #4f46e5 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.dizi-dpad-btn:active {
	transform: scale(0.92);
}

.dizi-dpad-btn.dpad-center {
	background: rgba(79, 70, 229, 0.08);
	border-color: rgba(79, 70, 229, 0.3);
	color: #4f46e5;
}

[data-theme="dark"] .dizi-dpad-btn.dpad-center {
	background: rgba(79, 70, 229, 0.2);
	border-color: rgba(79, 70, 229, 0.5);
	color: #a5b4fc;
}

.dizi-dpad-empty {
	width: 44px;
	height: 40px;
}

/* CARD ZOOM / SIZE CONTROLS */
.dizi-card-zoom-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dizi-zoom-btn-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.dizi-zoom-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 9px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
	box-sizing: border-box;
}

[data-theme="dark"] .dizi-zoom-action-btn {
	background: #1e293b;
	border-color: #334155;
	color: #f1f5f9;
}

.dizi-zoom-action-btn:hover {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.dizi-zoom-action-btn:active {
	transform: scale(0.95);
}

.dizi-zoom-icon {
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.dizi-controller-hint {
	font-size: 11px;
	color: var(--dizi-text-muted, #64748b);
	line-height: 1.4;
	background: rgba(79, 70, 229, 0.05);
	border: 1px dashed rgba(79, 70, 229, 0.25);
	border-radius: 8px;
	padding: 6px 10px;
	text-align: center;
}

[data-theme="dark"] .dizi-controller-hint {
	background: rgba(79, 70, 229, 0.1);
	border-color: rgba(99, 102, 241, 0.3);
	color: #94a3b8;
}


/* Center D-Pad Points Stat Box */
.dizi-dpad-center-stat {
	width: 44px;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 9px;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
	user-select: none;
	cursor: default;
	padding: 2px 0;
	box-sizing: border-box;
	gap: 1px;
}

[data-theme="dark"] .dizi-dpad-center-stat {
	background: #0b1120;
	border-color: #334155;
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.dpad-stat-row {
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.2px;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.dpad-stat-row.stat-zero {
	color: var(--dizi-text-muted, #64748b);
}

.dpad-stat-row.stat-pos {
	color: #10b981;
}

.dpad-stat-row.stat-neg {
	color: #f59e0b;
}

[data-theme="dark"] .dpad-stat-row.stat-pos {
	color: #34d399;
}

[data-theme="dark"] .dpad-stat-row.stat-neg {
	color: #fbbf24;
}

/* Zoom Row Update & Stat Badge */
.dizi-zoom-btn-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 6px;
	align-items: center;
}

.dizi-zoom-stat-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 8px 10px;
	border-radius: 9px;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	font-size: 11.5px;
	font-weight: 800;
	user-select: none;
	cursor: default;
	box-sizing: border-box;
}

[data-theme="dark"] .dizi-zoom-stat-badge {
	background: #0b1120;
	border-color: #334155;
}

.dizi-zoom-stat-badge.stat-zero {
	color: var(--dizi-text-muted, #64748b);
}

.dizi-zoom-stat-badge.stat-pos {
	color: #10b981;
}

.dizi-zoom-stat-badge.stat-neg {
	color: #f59e0b;
}

[data-theme="dark"] .dizi-zoom-stat-badge.stat-pos {
	color: #34d399;
}

[data-theme="dark"] .dizi-zoom-stat-badge.stat-neg {
	color: #fbbf24;
}



/* ==========================================================================
   Canon Tabs 5-Column Equal Width Row & Solid Close File Styling
   ========================================================================== */
.dizi-canon-tabs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--dizi-bg, #f1f5f9);
	padding: 6px;
	border-radius: 12px;
	margin-bottom: 16px;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

[data-theme="dark"] .dizi-canon-tabs {
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid #334155;
}

.dizi-canon-tabs-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

.dizi-canon-crop-mode-btn {
	width: 100%;
	height: 38px;
	min-width: 0;
	padding: 0 6px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #334155);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	transition: all 0.2s ease;
	user-select: none;
}

[data-theme="dark"] .dizi-canon-crop-mode-btn {
	background: #1e293b;
	border-color: #334155;
	color: #e2e8f0;
}

.dizi-canon-crop-mode-btn:hover {
	border-color: #4f46e5;
	background: rgba(79, 70, 229, 0.08);
	color: #4f46e5;
}

[data-theme="dark"] .dizi-canon-crop-mode-btn:hover {
	border-color: #6366f1;
	background: rgba(99, 102, 241, 0.15);
	color: #ffffff;
}

/* Close File Button - Solid Vibrant Crimson Styling */
.dizi-btn-close-file {
	background: #dc2626 !important;
	border: 1.5px solid #b91c1c !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
}

.dizi-btn-close-file:hover {
	background: #b91c1c !important;
	border-color: #991b1b !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45) !important;
}

.dizi-btn-close-file:active {
	transform: scale(0.97) !important;
}

[data-theme="dark"] .dizi-btn-close-file {
	background: #dc2626 !important;
	border: 1.5px solid #ef4444 !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
}

[data-theme="dark"] .dizi-btn-close-file:hover {
	background: #ef4444 !important;
	border-color: #f87171 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5) !important;
}


/* ==========================================================================
   Photo / Area Light & Dark Adjustment System
   ========================================================================== */
.dizi-photo-adjust-btn {
	background: var(--dizi-card-bg, #ffffff) !important;
	border: 1.5px solid var(--dizi-primary, #4f46e5) !important;
	color: var(--dizi-primary, #4f46e5) !important;
	font-weight: 700 !important;
	transition: all 0.2s ease !important;
	cursor: pointer;
	white-space: nowrap;
}

.dizi-photo-adjust-btn:hover,
.dizi-photo-adjust-btn.active {
	background: var(--dizi-primary, #4f46e5) !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4) !important;
}

[data-theme="dark"] .dizi-photo-adjust-btn {
	background: #1e293b !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	color: #a5b4fc !important;
}

[data-theme="dark"] .dizi-photo-adjust-btn:hover,
[data-theme="dark"] .dizi-photo-adjust-btn.active {
	background: var(--dizi-primary, #4f46e5) !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
}

.dizi-btn-lighten {
	color: var(--dizi-primary, #4f46e5) !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	font-weight: 700 !important;
}

.dizi-btn-lighten:hover {
	background: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
}

.dizi-btn-darken {
	color: #475569 !important;
	border-color: #94a3b8 !important;
	font-weight: 700 !important;
}

.dizi-btn-darken:hover {
	background: #475569 !important;
	color: #ffffff !important;
}

.dizi-btn-photo-done {
	background: var(--dizi-primary, #4f46e5) !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
}

.dizi-btn-photo-done:hover {
	background: var(--dizi-primary-hover, #4338ca) !important;
	border-color: var(--dizi-primary-hover, #4338ca) !important;
}

/* Dedicated Photo / Area Selection Box */
.dizi-photo-box-element {
	position: absolute;
	border: 1.5px dashed #f59e0b;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
	background: rgba(245, 158, 11, 0.04);
	cursor: move;
	z-index: 38;
	box-sizing: border-box;
	user-select: none;
	touch-action: none;
}

/* Compact Precision Handles - Does not block photo border */
.dizi-photo-box-element .dizi-crop-handle {
	width: 8px !important;
	height: 8px !important;
	background: #f59e0b !important;
	border: 1.5px solid #ffffff !important;
	border-radius: 2px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
	z-index: 40 !important;
	transition: transform 0.1s ease, background-color 0.1s ease !important;
}

/* Invisible hitbox so mouse pointer easily catches and grabs the handles */
.dizi-photo-box-element .dizi-crop-handle::after {
	content: '';
	position: absolute;
	top: -7px;
	left: -7px;
	right: -7px;
	bottom: -7px;
	cursor: inherit;
}

.dizi-photo-box-element .dizi-crop-handle:hover {
	transform: scale(1.35);
	background: #fbbf24 !important;
}

/* Exact placements for 8px handles */
.dizi-photo-box-element .handle-tl { top: -5px !important; left: -5px !important; cursor: nwse-resize !important; }
.dizi-photo-box-element .handle-tr { top: -5px !important; right: -5px !important; cursor: nesw-resize !important; }
.dizi-photo-box-element .handle-br { bottom: -5px !important; right: -5px !important; cursor: nwse-resize !important; }
.dizi-photo-box-element .handle-bl { bottom: -5px !important; left: -5px !important; cursor: nesw-resize !important; }
.dizi-photo-box-element .handle-t  { top: -5px !important; left: calc(50% - 4px) !important; cursor: ns-resize !important; }
.dizi-photo-box-element .handle-b  { bottom: -5px !important; left: calc(50% - 4px) !important; cursor: ns-resize !important; }
.dizi-photo-box-element .handle-l  { left: -5px !important; top: calc(50% - 4px) !important; cursor: ew-resize !important; }
.dizi-photo-box-element .handle-r  { right: -5px !important; top: calc(50% - 4px) !important; cursor: ew-resize !important; }

/* Remove top badge */
.dizi-photo-box-tag {
	display: none !important;
}

/* ==========================================================================
   Easy Card Print Manual For Epson (4x6 Inch / 101.6mm x 152.4mm)
   ========================================================================== */
.dizi-epson-card-app .dizi-canon-hero-icon {
	background: linear-gradient(135deg, #003399 0%, #001f66 100%) !important;
	box-shadow: 0 6px 16px rgba(0, 51, 153, 0.35) !important;
}
.dizi-epson-paper-mockup {
	width: 304px !important; /* 101.6mm * 3 = 304.8px */
	height: 456px !important; /* 152.4mm * 3 = 455.7px (Exact 4x6 ratio) */
}
.dizi-btn-epson-print {
	background: linear-gradient(135deg, #003399 0%, #002266 100%) !important;
	box-shadow: 0 4px 14px rgba(0, 51, 153, 0.35) !important;
}
.dizi-btn-epson-print:hover {
	background: linear-gradient(135deg, #0044cc 0%, #003399 100%) !important;
	box-shadow: 0 6px 18px rgba(0, 51, 153, 0.45) !important;
}

/* ==========================================================================
   Universal Form Dropdowns & Dropzone Dark Mode Styling
   ========================================================================== */
select,
.dizi-select-field,
.dizi-input-field {
	color-scheme: light dark;
}

[data-theme="dark"] select,
[data-theme="dark"] .dizi-select-field,
[data-theme="dark"] .dizi-custom-select,
[data-theme="dark"] .dizi-sort-select {
	background-color: #1e293b !important;
	color: #f1f5f9 !important;
	border-color: #334155 !important;
	color-scheme: dark !important;
}

[data-theme="dark"] select:focus,
[data-theme="dark"] .dizi-select-field:focus,
[data-theme="dark"] .dizi-sort-select:focus {
	background-color: #0f172a !important;
	color: #f1f5f9 !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	box-shadow: 0 0 0 3px var(--dizi-primary-light, rgba(79, 70, 229, 0.25)) !important;
}

[data-theme="dark"] select option,
[data-theme="dark"] .dizi-select-field option,
[data-theme="dark"] .dizi-sort-select option {
	background-color: #1e293b !important;
	color: #f8fafc !important;
}

[data-theme="dark"] .dizi-dropzone {
	background: #111827 !important;
	border-color: #374151 !important;
}

[data-theme="dark"] .dizi-dropzone h3 {
	color: #f8fafc !important;
}

[data-theme="dark"] .dizi-dropzone p {
	color: #94a3b8 !important;
}

[data-theme="dark"] .dizi-btn-outline {
	background-color: #1e293b !important;
	color: #f1f5f9 !important;
	border-color: #334155 !important;
}

[data-theme="dark"] .dizi-btn-outline:hover {
	background-color: rgba(99, 102, 241, 0.18) !important;
	border-color: var(--dizi-primary, #4f46e5) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   Age Calculator Input & Dark Mode Theme Fix
   ========================================================================== */
.dizi-age-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	font-weight: 600;
	border: 2px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	outline: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
	color-scheme: light;
}

.dizi-age-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text-main, #0f172a);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.dizi-age-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.dizi-age-input::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
	transform: scale(1.1);
}

[data-theme="dark"] .dizi-age-calc-container {
	color: #f1f5f9;
}

[data-theme="dark"] .dizi-age-inputs-row {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dizi-age-label {
	color: #f1f5f9;
}

[data-theme="dark"] .dizi-age-input {
	background-color: #0f172a !important;
	color: #f8fafc !important;
	border-color: #334155 !important;
	color-scheme: dark !important;
}

[data-theme="dark"] .dizi-age-input:focus {
	background-color: #0f172a !important;
	color: #ffffff !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
	color-scheme: dark !important;
}

[data-theme="dark"] .dizi-age-swap-btn {
	background: #0f172a;
	border-color: #334155;
	color: #94a3b8;
}

[data-theme="dark"] .dizi-age-swap-btn:hover {
	background: var(--dizi-primary, #6366f1);
	color: #ffffff;
	border-color: var(--dizi-primary, #6366f1);
}

[data-theme="dark"] .dizi-age-tag {
	background: #0f172a;
	border-color: #334155;
	color: #94a3b8;
}

[data-theme="dark"] .dizi-age-tag:hover {
	background: rgba(99, 102, 241, 0.25);
	color: #a5b4fc;
	border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .dizi-age-copy-btn {
	background: #1e293b;
	border-color: #334155;
	color: #f1f5f9;
}

[data-theme="dark"] .dizi-age-copy-btn:hover {
	background: #0f172a;
	border-color: var(--dizi-primary, #6366f1);
	color: #a5b4fc;
}

[data-theme="dark"] .dizi-age-stat-card {
	background: #1e293b;
	border-color: #334155;
}

[data-theme="dark"] .dizi-age-stat-title {
	color: #94a3b8;
}

[data-theme="dark"] .dizi-age-stat-number {
	color: #f8fafc;
}

[data-theme="dark"] .dizi-age-stat-hint {
	color: #64748b;
}

[data-theme="dark"] .dizi-age-primary-value {
	color: #f8fafc;
}

[data-theme="dark"] .dizi-age-date-range-sub {
	color: #94a3b8;
}

[data-theme="dark"] .dizi-age-error {
	background: rgba(220, 38, 38, 0.15);
	border-color: rgba(220, 38, 38, 0.35);
	color: #fca5a5;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .dizi-age-input {
		background-color: #0f172a !important;
		color: #f8fafc !important;
		border-color: #334155 !important;
		color-scheme: dark !important;
	}
	:root:not([data-theme="light"]) .dizi-age-input:focus {
		background-color: #0f172a !important;
		color: #ffffff !important;
		border-color: var(--dizi-primary, #6366f1) !important;
		box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
		color-scheme: dark !important;
	}
}

/* ==========================================================================
   URL Shortener & Link Shrinker Theme-Adaptive Inputs & Container Styles
   ========================================================================== */
.dizi-shortener-container {
	max-width: 920px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--dizi-text, #1e293b);
}
.dizi-shortener-header {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.dizi-shortener-title-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}
.dizi-shortener-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
}
.dizi-shortener-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
}
.dizi-shortener-subtitle {
	margin: 4px 0 0 0;
	font-size: 14px;
	color: var(--dizi-text-muted, #64748b);
}
.dizi-shortener-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.dizi-short-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 9999px;
	background: rgba(99, 102, 241, 0.08);
	color: #4f46e5;
	border: 1px solid rgba(99, 102, 241, 0.15);
}
.dizi-short-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid var(--dizi-border, #e2e8f0);
	margin-bottom: 24px;
	padding-bottom: 2px;
	overflow-x: auto;
}
.dizi-short-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dizi-text-muted, #64748b);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	white-space: nowrap;
}
.dizi-short-tab-btn:hover {
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}
.dizi-short-tab-btn.active {
	color: var(--dizi-primary, #6366f1);
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}
.dizi-short-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--dizi-primary, #6366f1);
}
.dizi-short-tab-count {
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 9999px;
	background: rgba(99, 102, 241, 0.12);
	color: var(--dizi-primary, #6366f1);
}
.dizi-short-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}
.dizi-short-input-wrapper {
	display: flex;
	align-items: center;
	background: var(--dizi-bg, #f8fafc);
	border: 2px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 4px 8px 4px 16px;
	transition: all 0.2s ease;
}
.dizi-short-input-wrapper:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-short-input-icon {
	color: var(--dizi-primary, #6366f1);
	display: flex;
	align-items: center;
	margin-right: 12px;
	flex-shrink: 0;
}
.dizi-short-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 16px;
	color: var(--dizi-text, #0f172a);
	padding: 12px 0;
	outline: none;
	min-width: 0;
}
.dizi-short-input::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-short-input-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--dizi-bg, #f1f5f9);
	border: 1px solid var(--dizi-border, #cbd5e1);
	color: var(--dizi-text-muted, #64748b);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	margin-left: 6px;
	transition: all 0.15s ease;
}
.dizi-short-input-action-btn:hover {
	background: var(--dizi-primary, #6366f1);
	border-color: var(--dizi-primary, #6366f1);
	color: #ffffff;
}
.dizi-short-alias-wrapper {
	margin-top: 16px;
	border: 1px dashed var(--dizi-border, #cbd5e1);
	border-radius: 12px;
	padding: 14px 18px;
	background: var(--dizi-primary-light, rgba(99, 102, 241, 0.04));
	transition: all 0.2s ease;
}
.dizi-short-alias-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	color: var(--dizi-text, #334155);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}
.dizi-short-alias-body {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--dizi-border, #e2e8f0);
}
.dizi-short-alias-input-box {
	display: flex;
	align-items: center;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s ease;
}
.dizi-short-alias-input-box:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.dizi-short-domain-prefix {
	background: var(--dizi-bg, #f1f5f9);
	padding: 10px 14px;
	font-size: 13px;
	font-family: monospace;
	color: var(--dizi-text-muted, #64748b);
	border-right: 1.5px solid var(--dizi-border, #cbd5e1);
	white-space: nowrap;
	user-select: none;
}
.dizi-short-alias-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--dizi-text, #0f172a);
	outline: none;
}
.dizi-short-alias-input::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-short-hint {
	font-size: 12px;
	color: var(--dizi-text-muted, #94a3b8);
	margin: 8px 0 0 0;
}
.dizi-short-action-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	gap: 16px;
	flex-wrap: wrap;
}
.dizi-short-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
	transition: all 0.2s ease;
}
.dizi-short-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.dizi-short-btn-primary:active {
	transform: translateY(0);
}
.dizi-short-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.dizi-short-char-count {
	font-size: 13px;
	color: var(--dizi-text-muted, #94a3b8);
}
.dizi-short-result-card {
	margin-top: 24px;
	border-radius: 16px;
	padding: 24px;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
	border: 2px solid rgba(99, 102, 241, 0.25);
	animation: diziFadeIn 0.3s ease;
}
.dizi-short-link-display-box {
	display: flex;
	align-items: center;
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 12px;
	padding: 4px 6px 4px 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}
.dizi-short-output-input {
	flex: 1;
	border: none;
	font-size: 17px;
	font-weight: 700;
	color: var(--dizi-primary, #4f46e5);
	outline: none;
	background: transparent;
	cursor: text;
	min-width: 0;
}
.dizi-short-qr-box {
	margin-top: 18px;
	padding: 18px;
	background: var(--dizi-card-bg, #ffffff);
	border-radius: 14px;
	border: 1px solid var(--dizi-border, #e2e8f0);
	text-align: center;
}
.dizi-short-bulk-textarea {
	width: 100%;
	background: var(--dizi-bg, #f8fafc);
	border: 2px solid var(--dizi-border, #e2e8f0);
	border-radius: 12px;
	padding: 14px;
	font-family: monospace;
	font-size: 14px;
	outline: none;
	resize: vertical;
	box-sizing: border-box;
	color: var(--dizi-text, #0f172a);
	transition: all 0.2s ease;
}
.dizi-short-bulk-textarea::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-short-bulk-textarea:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-short-history-search {
	background: var(--dizi-bg, #f8fafc);
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	width: 260px;
	outline: none;
	color: var(--dizi-text, #0f172a);
	transition: all 0.2s ease;
}
.dizi-short-history-search::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-short-history-search:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
	background: var(--dizi-card-bg, #ffffff);
}

/* ==========================================================================
   Dark Theme Overrides for URL Shortener
   ========================================================================== */
[data-theme="dark"] .dizi-shortener-header,
body[data-theme="dark"] .dizi-shortener-header {
	background: var(--dizi-card-bg, #1e293b);
	border-color: var(--dizi-border, #334155);
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .dizi-shortener-title,
body[data-theme="dark"] .dizi-shortener-title {
	color: #f8fafc;
}
[data-theme="dark"] .dizi-shortener-subtitle,
body[data-theme="dark"] .dizi-shortener-subtitle {
	color: #94a3b8;
}
[data-theme="dark"] .dizi-short-badge,
body[data-theme="dark"] .dizi-short-badge {
	background: rgba(99, 102, 241, 0.18);
	color: #a5b4fc;
	border-color: rgba(99, 102, 241, 0.35);
}
[data-theme="dark"] .dizi-short-tabs,
body[data-theme="dark"] .dizi-short-tabs {
	border-bottom-color: var(--dizi-border, #334155);
}
[data-theme="dark"] .dizi-short-tab-btn,
body[data-theme="dark"] .dizi-short-tab-btn {
	color: #94a3b8;
}
[data-theme="dark"] .dizi-short-tab-btn:hover,
body[data-theme="dark"] .dizi-short-tab-btn:hover {
	color: #818cf8;
	background: rgba(99, 102, 241, 0.12);
}
[data-theme="dark"] .dizi-short-tab-btn.active,
body[data-theme="dark"] .dizi-short-tab-btn.active {
	color: #818cf8;
	background: var(--dizi-card-bg, #1e293b);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .dizi-short-tab-count,
body[data-theme="dark"] .dizi-short-tab-count {
	background: rgba(99, 102, 241, 0.25);
	color: #a5b4fc;
}
[data-theme="dark"] .dizi-short-card,
body[data-theme="dark"] .dizi-short-card {
	background: var(--dizi-card-bg, #1e293b);
	border-color: var(--dizi-border, #334155);
	box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
}
/* URL Shortener Inputs in Dark Theme */
[data-theme="dark"] .dizi-short-input-wrapper,
body[data-theme="dark"] .dizi-short-input-wrapper {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-input-wrapper:focus-within,
body[data-theme="dark"] .dizi-short-input-wrapper:focus-within {
	background: #0b1120 !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28) !important;
}
[data-theme="dark"] .dizi-short-input,
body[data-theme="dark"] .dizi-short-input {
	color: #f8fafc !important;
	background: transparent !important;
}
[data-theme="dark"] .dizi-short-input::placeholder,
body[data-theme="dark"] .dizi-short-input::placeholder {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-short-input-icon,
body[data-theme="dark"] .dizi-short-input-icon {
	color: #818cf8 !important;
}
[data-theme="dark"] .dizi-short-input-action-btn,
body[data-theme="dark"] .dizi-short-input-action-btn {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #cbd5e1 !important;
}
[data-theme="dark"] .dizi-short-input-action-btn:hover,
body[data-theme="dark"] .dizi-short-input-action-btn:hover {
	background: var(--dizi-primary, #6366f1) !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	color: #ffffff !important;
}
/* Custom Alias Box in Dark Theme */
[data-theme="dark"] .dizi-short-alias-wrapper,
body[data-theme="dark"] .dizi-short-alias-wrapper {
	background: rgba(11, 17, 32, 0.6) !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-alias-toggle,
body[data-theme="dark"] .dizi-short-alias-toggle {
	color: #e2e8f0 !important;
}
[data-theme="dark"] .dizi-short-alias-body,
body[data-theme="dark"] .dizi-short-alias-body {
	border-top-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-alias-input-box,
body[data-theme="dark"] .dizi-short-alias-input-box {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-alias-input-box:focus-within,
body[data-theme="dark"] .dizi-short-alias-input-box:focus-within {
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28) !important;
}
[data-theme="dark"] .dizi-short-domain-prefix,
body[data-theme="dark"] .dizi-short-domain-prefix {
	background: #0f172a !important;
	border-right-color: var(--dizi-border, #334155) !important;
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-short-alias-input,
body[data-theme="dark"] .dizi-short-alias-input {
	color: #f8fafc !important;
	background: transparent !important;
}
[data-theme="dark"] .dizi-short-alias-input::placeholder,
body[data-theme="dark"] .dizi-short-alias-input::placeholder {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-short-hint,
body[data-theme="dark"] .dizi-short-hint {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-short-char-count,
body[data-theme="dark"] .dizi-short-char-count {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-short-result-card,
body[data-theme="dark"] .dizi-short-result-card {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
	border-color: rgba(99, 102, 241, 0.35) !important;
}
[data-theme="dark"] .dizi-short-link-display-box,
body[data-theme="dark"] .dizi-short-link-display-box {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .dizi-short-output-input,
body[data-theme="dark"] .dizi-short-output-input {
	color: #818cf8 !important;
	background: transparent !important;
}
[data-theme="dark"] .dizi-short-btn-secondary,
body[data-theme="dark"] .dizi-short-btn-secondary {
	background: rgba(30, 41, 59, 0.8) !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #e2e8f0 !important;
}
[data-theme="dark"] .dizi-short-btn-secondary:hover,
body[data-theme="dark"] .dizi-short-btn-secondary:hover {
	background: rgba(51, 65, 85, 0.9) !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	color: #ffffff !important;
}
[data-theme="dark"] .dizi-short-destination-info,
body[data-theme="dark"] .dizi-short-destination-info {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-short-dest-url,
body[data-theme="dark"] .dizi-short-dest-url {
	color: #818cf8 !important;
}
[data-theme="dark"] .dizi-short-qr-box,
body[data-theme="dark"] .dizi-short-qr-box {
	background: rgba(11, 17, 32, 0.7) !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-qr-title,
body[data-theme="dark"] .dizi-short-qr-title {
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-short-card-desc,
body[data-theme="dark"] .dizi-short-card-desc {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-short-bulk-textarea,
body[data-theme="dark"] .dizi-short-bulk-textarea {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-short-bulk-textarea::placeholder,
body[data-theme="dark"] .dizi-short-bulk-textarea::placeholder {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-short-bulk-textarea:focus,
body[data-theme="dark"] .dizi-short-bulk-textarea:focus {
	background: #0b1120 !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28) !important;
}
[data-theme="dark"] .dizi-short-history-search,
body[data-theme="dark"] .dizi-short-history-search {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-short-history-search::placeholder,
body[data-theme="dark"] .dizi-short-history-search::placeholder {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-short-history-search:focus,
body[data-theme="dark"] .dizi-short-history-search:focus {
	background: #0b1120 !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28) !important;
}
[data-theme="dark"] .dizi-short-table th,
body[data-theme="dark"] .dizi-short-table th {
	background: #0f172a !important;
	color: #94a3b8 !important;
	border-bottom-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-table td,
body[data-theme="dark"] .dizi-short-table td {
	color: #f8fafc !important;
	border-bottom-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-short-table tr:hover td,
body[data-theme="dark"] .dizi-short-table tr:hover td {
	background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .dizi-short-empty-state,
body[data-theme="dark"] .dizi-short-empty-state {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-short-empty-state h3,
body[data-theme="dark"] .dizi-short-empty-state h3 {
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-short-alert-error,
body[data-theme="dark"] .dizi-short-alert-error {
	background: rgba(239, 68, 68, 0.15) !important;
	border-color: rgba(239, 68, 68, 0.35) !important;
	color: #fca5a5 !important;
}
[data-theme="dark"] #bulkCountLabel,
body[data-theme="dark"] #bulkCountLabel {
	color: #f8fafc !important;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .dizi-short-input-wrapper {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-input-wrapper:focus-within {
		background: #0b1120 !important;
		border-color: #6366f1 !important;
		box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28) !important;
	}
	:root:not([data-theme="light"]) .dizi-short-input {
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-short-alias-input-box {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-alias-input {
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-short-domain-prefix {
		background: #0f172a !important;
		border-right-color: #334155 !important;
		color: #94a3b8 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-alias-wrapper {
		background: rgba(11, 17, 32, 0.6) !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-card {
		background: #1e293b !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-shortener-header {
		background: #1e293b !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-link-display-box {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-short-bulk-textarea {
		background: #0b1120 !important;
		border-color: #334155 !important;
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-short-history-search {
		background: #0b1120 !important;
		border-color: #334155 !important;
		color: #f8fafc !important;
	}
}

/* ==========================================================================
   Dynamic QR Code Generator & Tracker Theme-Adaptive Inputs & Container Styles
   ========================================================================== */
.dizi-dqr-container {
	max-width: 1040px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--dizi-text, #1e293b);
}
.dizi-dqr-hero {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.dizi-dqr-hero-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}
.dizi-dqr-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.dizi-dqr-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
}
.dizi-dqr-sub {
	margin: 4px 0 0 0;
	font-size: 14px;
	color: var(--dizi-text-muted, #64748b);
}
.dizi-dqr-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.dizi-dqr-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 9999px;
	background: rgba(2, 132, 199, 0.08);
	color: #0284c7;
	border: 1px solid rgba(2, 132, 199, 0.2);
}
.dizi-dqr-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid var(--dizi-border, #e2e8f0);
	margin-bottom: 24px;
	padding-bottom: 2px;
	overflow-x: auto;
}
.dizi-dqr-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dizi-text-muted, #64748b);
	background: transparent;
	border: none;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.dizi-dqr-tab-btn:hover {
	color: var(--dizi-primary, #6366f1);
	background: rgba(99, 102, 241, 0.05);
}
.dizi-dqr-tab-btn.active {
	color: var(--dizi-primary, #6366f1);
	border-bottom: 2px solid var(--dizi-primary, #6366f1);
	margin-bottom: -4px;
	font-weight: 700;
}
.dizi-dqr-counter-badge {
	background: #e2e8f0;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 9999px;
}
.dizi-dqr-tab-btn.active .dizi-dqr-counter-badge {
	background: #6366f1;
	color: #ffffff;
}
.dizi-dqr-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.dizi-dqr-card-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dizi-text, #0f172a);
}
.dizi-dqr-form-group {
	margin-bottom: 16px;
}
.dizi-dqr-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--dizi-text, #334155);
}
.dizi-dqr-input {
	width: 100%;
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--dizi-text, #0f172a);
	box-sizing: border-box;
	outline: none;
	transition: all 0.15s ease;
}
.dizi-dqr-input::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-dqr-input:focus {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-dqr-input-prefix-wrap {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	background: var(--dizi-bg, #f8fafc);
	overflow: hidden;
	transition: all 0.15s ease;
}
.dizi-dqr-input-prefix-wrap:focus-within {
	border-color: var(--dizi-primary, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
	background: var(--dizi-card-bg, #ffffff);
}
.dizi-dqr-prefix {
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-muted, #64748b);
	padding: 10px 14px;
	font-size: 13px;
	font-family: monospace;
	font-weight: 600;
	display: flex;
	align-items: center;
	user-select: none;
	border-right: 1.5px solid var(--dizi-border, #cbd5e1);
}
.dizi-dqr-prefix-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 14px;
	font-size: 14px;
	width: 100%;
	outline: none;
	color: var(--dizi-text, #0f172a);
}
.dizi-dqr-prefix-input::placeholder {
	color: var(--dizi-text-muted, #94a3b8);
	opacity: 0.75;
}
.dizi-dqr-hint {
	font-size: 12px;
	color: var(--dizi-text-muted, #64748b);
	margin-top: 6px;
}
.dizi-dqr-color-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}
.dizi-dqr-color-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 8px 12px;
	color: var(--dizi-text, #0f172a);
	transition: all 0.15s ease;
}
.dizi-dqr-color-item span {
	font-size: 13px;
	font-weight: 600;
	color: inherit;
}
.dizi-dqr-color-input {
	width: 34px;
	height: 34px;
	border: 1px solid var(--dizi-border, #cbd5e1);
	border-radius: 8px;
	cursor: pointer;
	background: transparent;
	padding: 0;
	flex-shrink: 0;
}
.dizi-dqr-logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}
.dizi-dqr-logo-btn {
	background: var(--dizi-bg, #f8fafc);
	border: 1.5px solid var(--dizi-border, #e2e8f0);
	border-radius: 10px;
	padding: 8px 4px;
	text-align: center;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	color: var(--dizi-text, #334155);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	transition: all 0.15s ease;
}
.dizi-dqr-logo-btn:hover {
	border-color: #6366f1;
	background: rgba(99, 102, 241, 0.05);
}
.dizi-dqr-logo-btn.active {
	border-color: #6366f1;
	background: rgba(99, 102, 241, 0.1);
	color: #4f46e5;
}
.dizi-dqr-btn-primary {
	width: 100%;
	background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
	transition: all 0.2s ease;
}
.dizi-dqr-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}
.dizi-dqr-preview-box {
	text-align: center;
	padding: 16px 0;
}
.dizi-dqr-canvas-holder {
	display: inline-flex;
	padding: 16px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--dizi-border, #e2e8f0);
	margin-bottom: 16px;
	max-width: 100%;
}
.dizi-dqr-canvas-holder canvas {
	max-width: 100%;
	height: auto !important;
	display: block;
}
.dizi-dqr-preview-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
	margin-bottom: 8px;
}
.dizi-dqr-short-box {
	background: var(--dizi-bg, #f1f5f9);
	border: 1px dashed var(--dizi-border, #cbd5e1);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-family: monospace;
	font-weight: 600;
	color: #4f46e5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
	word-break: break-all;
}
.dizi-dqr-btn-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}
.dizi-dqr-btn-sub {
	background: var(--dizi-card-bg, #ffffff);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	color: var(--dizi-text, #334155);
	border-radius: 10px;
	padding: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.15s ease;
}
.dizi-dqr-btn-sub:hover {
	background: var(--dizi-bg, #f8fafc);
	border-color: var(--dizi-primary, #6366f1);
	color: var(--dizi-primary, #4f46e5);
}
.dizi-dqr-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.dizi-dqr-item-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	transition: border-color 0.15s ease;
}
.dizi-dqr-item-card:hover {
	border-color: #cbd5e1;
}
.dizi-dqr-item-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.dizi-dqr-mini-qr {
	width: 54px;
	height: 54px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 3px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dizi-dqr-mini-qr canvas {
	width: 48px !important;
	height: 48px !important;
}
.dizi-dqr-item-info h4 {
	margin: 0 0 4px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--dizi-text, #0f172a);
}
.dizi-dqr-item-links {
	font-size: 13px;
	color: var(--dizi-text-muted, #64748b);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dizi-dqr-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.dizi-dqr-scan-badge {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.dizi-dqr-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}
.dizi-dqr-stat-box {
	background: var(--dizi-card-bg, #ffffff);
	border: 1px solid var(--dizi-border, #e2e8f0);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.dizi-dqr-stat-val {
	font-size: 26px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
	margin: 4px 0;
}
.dizi-dqr-stat-lbl {
	font-size: 12px;
	font-weight: 600;
	color: var(--dizi-text-muted, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.dizi-dqr-bar-track {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
}
.dizi-dqr-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #0284c7, #6366f1);
	border-radius: 9999px;
	transition: width 0.4s ease;
}
.dizi-dqr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: left;
}
.dizi-dqr-table th {
	padding: 10px 12px;
	background: var(--dizi-bg, #f8fafc);
	border-bottom: 1.5px solid var(--dizi-border, #e2e8f0);
	color: var(--dizi-text-muted, #475569);
	font-weight: 700;
}
.dizi-dqr-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--dizi-border, #f1f5f9);
	color: var(--dizi-text, #1e293b);
}

/* ==========================================================================
   Dark Theme Overrides for Dynamic QR Code Generator
   ========================================================================== */
[data-theme="dark"] .dizi-dqr-hero,
body[data-theme="dark"] .dizi-dqr-hero {
	background: var(--dizi-card-bg, #1e293b);
	border-color: var(--dizi-border, #334155);
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .dizi-dqr-title,
body[data-theme="dark"] .dizi-dqr-title {
	color: #f8fafc;
}
[data-theme="dark"] .dizi-dqr-sub,
body[data-theme="dark"] .dizi-dqr-sub {
	color: #94a3b8;
}
[data-theme="dark"] .dizi-dqr-pill,
body[data-theme="dark"] .dizi-dqr-pill {
	background: rgba(2, 132, 199, 0.18);
	color: #38bdf8;
	border-color: rgba(2, 132, 199, 0.35);
}
[data-theme="dark"] .dizi-dqr-tabs,
body[data-theme="dark"] .dizi-dqr-tabs {
	border-bottom-color: var(--dizi-border, #334155);
}
[data-theme="dark"] .dizi-dqr-tab-btn,
body[data-theme="dark"] .dizi-dqr-tab-btn {
	color: #94a3b8;
}
[data-theme="dark"] .dizi-dqr-tab-btn:hover,
body[data-theme="dark"] .dizi-dqr-tab-btn:hover {
	color: #818cf8;
	background: rgba(99, 102, 241, 0.12);
}
[data-theme="dark"] .dizi-dqr-tab-btn.active,
body[data-theme="dark"] .dizi-dqr-tab-btn.active {
	color: #818cf8;
	border-bottom-color: #818cf8;
}
[data-theme="dark"] .dizi-dqr-counter-badge,
body[data-theme="dark"] .dizi-dqr-counter-badge {
	background: #334155;
	color: #cbd5e1;
}
[data-theme="dark"] .dizi-dqr-card,
body[data-theme="dark"] .dizi-dqr-card {
	background: var(--dizi-card-bg, #1e293b);
	border-color: var(--dizi-border, #334155);
	box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .dizi-dqr-card-title,
body[data-theme="dark"] .dizi-dqr-card-title {
	color: #f8fafc;
}
[data-theme="dark"] .dizi-dqr-label,
body[data-theme="dark"] .dizi-dqr-label {
	color: #e2e8f0;
}
[data-theme="dark"] .dizi-dqr-hint,
body[data-theme="dark"] .dizi-dqr-hint {
	color: #64748b;
}

/* Dynamic QR Input Boxes in Dark Theme */
[data-theme="dark"] .dizi-dqr-input,
body[data-theme="dark"] .dizi-dqr-input {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-dqr-input::placeholder,
body[data-theme="dark"] .dizi-dqr-input::placeholder {
	color: #64748b !important;
}
[data-theme="dark"] .dizi-dqr-input:focus,
body[data-theme="dark"] .dizi-dqr-input:focus {
	background: #0b1120 !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28) !important;
	color: #ffffff !important;
}

/* Custom Alias Input Prefix in Dark Theme */
[data-theme="dark"] .dizi-dqr-input-prefix-wrap,
body[data-theme="dark"] .dizi-dqr-input-prefix-wrap {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-dqr-input-prefix-wrap:focus-within,
body[data-theme="dark"] .dizi-dqr-input-prefix-wrap:focus-within {
	border-color: var(--dizi-primary, #6366f1) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28) !important;
}
[data-theme="dark"] .dizi-dqr-prefix,
body[data-theme="dark"] .dizi-dqr-prefix {
	background: #0f172a !important;
	border-right-color: var(--dizi-border, #334155) !important;
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-dqr-prefix-input,
body[data-theme="dark"] .dizi-dqr-prefix-input {
	color: #f8fafc !important;
	background: transparent !important;
}
[data-theme="dark"] .dizi-dqr-prefix-input::placeholder,
body[data-theme="dark"] .dizi-dqr-prefix-input::placeholder {
	color: #64748b !important;
}

/* Color Picker Items in Dark Theme */
[data-theme="dark"] .dizi-dqr-color-item,
body[data-theme="dark"] .dizi-dqr-color-item {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-dqr-color-item span,
body[data-theme="dark"] .dizi-dqr-color-item span {
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-dqr-color-input,
body[data-theme="dark"] .dizi-dqr-color-input {
	border-color: var(--dizi-border, #334155) !important;
}

/* Logo Buttons in Dark Theme */
[data-theme="dark"] .dizi-dqr-logo-btn,
body[data-theme="dark"] .dizi-dqr-logo-btn {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-dqr-logo-btn:hover,
body[data-theme="dark"] .dizi-dqr-logo-btn:hover {
	background: rgba(99, 102, 241, 0.15) !important;
	border-color: #6366f1 !important;
	color: #818cf8 !important;
}
[data-theme="dark"] .dizi-dqr-logo-btn.active,
body[data-theme="dark"] .dizi-dqr-logo-btn.active {
	background: rgba(99, 102, 241, 0.25) !important;
	border-color: #6366f1 !important;
	color: #a5b4fc !important;
}
[data-theme="dark"] #dqrCustomLogoControls,
body[data-theme="dark"] #dqrCustomLogoControls {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] #dqrCustomLogoControls label,
body[data-theme="dark"] #dqrCustomLogoControls label {
	color: #94a3b8 !important;
}
[data-theme="dark"] #dqrLogoFileName,
body[data-theme="dark"] #dqrLogoFileName {
	color: #f8fafc !important;
}
[data-theme="dark"] #dqrLogoShapeSelect,
body[data-theme="dark"] #dqrLogoShapeSelect {
	background: #0f172a !important;
	color: #f8fafc !important;
	border-color: var(--dizi-border, #334155) !important;
}

/* Preview Card in Dark Theme */
[data-theme="dark"] .dizi-dqr-preview-label,
body[data-theme="dark"] .dizi-dqr-preview-label {
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-dqr-canvas-holder,
body[data-theme="dark"] .dizi-dqr-canvas-holder {
	border-color: var(--dizi-border, #334155) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .dizi-dqr-short-box,
body[data-theme="dark"] .dizi-dqr-short-box {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #818cf8 !important;
}
[data-theme="dark"] .dizi-dqr-btn-sub,
body[data-theme="dark"] .dizi-dqr-btn-sub {
	background: rgba(30, 41, 59, 0.8) !important;
	border-color: var(--dizi-border, #334155) !important;
	color: #e2e8f0 !important;
}
[data-theme="dark"] .dizi-dqr-btn-sub:hover,
body[data-theme="dark"] .dizi-dqr-btn-sub:hover {
	background: rgba(51, 65, 85, 0.9) !important;
	border-color: var(--dizi-primary, #6366f1) !important;
	color: #ffffff !important;
}

/* My QRs List in Dark Theme */
[data-theme="dark"] .dizi-dqr-item-card,
body[data-theme="dark"] .dizi-dqr-item-card {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-dqr-item-info h4,
body[data-theme="dark"] .dizi-dqr-item-info h4 {
	color: #f8fafc !important;
}
[data-theme="dark"] .dizi-dqr-item-links,
body[data-theme="dark"] .dizi-dqr-item-links {
	color: #94a3b8 !important;
}
[data-theme="dark"] .dizi-dqr-item-links a,
body[data-theme="dark"] .dizi-dqr-item-links a {
	color: #818cf8 !important;
}

/* Analytics in Dark Theme */
[data-theme="dark"] .dizi-dqr-stat-box,
body[data-theme="dark"] .dizi-dqr-stat-box {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-dqr-stat-val,
body[data-theme="dark"] .dizi-dqr-stat-val {
	color: #f8fafc !important;
}
[data-theme="dark"] #statLastScan,
body[data-theme="dark"] #statLastScan {
	color: #e2e8f0 !important;
}
[data-theme="dark"] #statDestUrl,
body[data-theme="dark"] #statDestUrl {
	color: #38bdf8 !important;
}
[data-theme="dark"] .dizi-dqr-bar-track,
body[data-theme="dark"] .dizi-dqr-bar-track {
	background: #1e293b !important;
}
[data-theme="dark"] .dizi-dqr-table th,
body[data-theme="dark"] .dizi-dqr-table th {
	background: #0f172a !important;
	color: #94a3b8 !important;
	border-bottom-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] .dizi-dqr-table td,
body[data-theme="dark"] .dizi-dqr-table td {
	color: #f8fafc !important;
	border-bottom-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] #paneAnalytics > .dizi-dqr-card > div[style*="background"],
body[data-theme="dark"] #paneAnalytics > .dizi-dqr-card > div[style*="background"] {
	background: #0b1120 !important;
	border-color: var(--dizi-border, #334155) !important;
}
[data-theme="dark"] #dqrDeviceBreakdown,
body[data-theme="dark"] #dqrDeviceBreakdown {
	color: #f8fafc !important;
}
[data-theme="dark"] #paneAnalytics h4,
body[data-theme="dark"] #paneAnalytics h4 {
	color: #f8fafc !important;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .dizi-dqr-input {
		background: #0b1120 !important;
		border-color: #334155 !important;
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-input:focus {
		background: #0b1120 !important;
		border-color: #6366f1 !important;
		box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28) !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-input-prefix-wrap {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-prefix {
		background: #0f172a !important;
		border-right-color: #334155 !important;
		color: #94a3b8 !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-prefix-input {
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-color-item {
		background: #0b1120 !important;
		border-color: #334155 !important;
		color: #f8fafc !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-card {
		background: #1e293b !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-hero {
		background: #1e293b !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-short-box {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
	:root:not([data-theme="light"]) .dizi-dqr-stat-box {
		background: #0b1120 !important;
		border-color: #334155 !important;
	}
}

/* ==========================================================================
   PASSWORD PROTECTED PDF PROMPT CARD (PDF TOOLS)
   ========================================================================== */
.dizi-password-prompt-card {
	background: var(--dizi-card-bg, #ffffff);
	border: 2px solid var(--dizi-primary, #4f46e5);
	border-radius: 18px;
	padding: 36px 28px;
	margin: 0 auto 24px auto;
	box-shadow: 0 12px 30px -6px rgba(79, 70, 229, 0.22);
	text-align: center;
	animation: diziPassPop 0.3s ease;
	max-width: 580px;
	width: 100%;
	box-sizing: border-box;
}

@keyframes diziPassPop {
	from { opacity: 0; transform: translateY(-10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.dizi-password-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(99, 102, 241, 0.12);
	border: 1px solid rgba(99, 102, 241, 0.25);
	color: var(--dizi-primary, #4f46e5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.dizi-password-title {
	margin: 0 0 8px 0;
	font-size: 21px;
	font-weight: 800;
	color: var(--dizi-text, #0f172a);
}

.dizi-password-desc {
	font-size: 14px;
	color: var(--dizi-text-muted, #64748b);
	max-width: 480px;
	margin: 0 auto 16px auto;
	line-height: 1.5;
}

.dizi-password-file-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(99, 102, 241, 0.08);
	border: 1px solid rgba(99, 102, 241, 0.2);
	color: var(--dizi-primary, #4f46e5);
	font-weight: 700;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 20px;
	word-break: break-all;
}

.dizi-password-form {
	max-width: 440px;
	margin: 0 auto;
}

.dizi-password-input-box {
	position: relative;
	margin-bottom: 14px;
}

.dizi-password-input {
	width: 100%;
	padding: 13px 48px 13px 16px;
	font-size: 15px;
	font-family: inherit;
	border: 2px solid var(--dizi-border, #cbd5e1);
	border-radius: 12px;
	outline: none;
	background: var(--dizi-bg, #f8fafc);
	color: var(--dizi-text, #0f172a);
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.dizi-password-input:focus {
	border-color: var(--dizi-primary, #4f46e5);
	background: var(--dizi-card-bg, #ffffff);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.dizi-password-eye-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #64748b;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.2s;
}

.dizi-password-eye-btn:hover {
	color: var(--dizi-primary, #4f46e5);
}

.dizi-password-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.dizi-password-submit-btn {
	flex: 1.8;
	padding: 13px 18px;
	font-size: 14.5px;
	font-weight: 700;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.dizi-password-submit-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
	filter: brightness(1.08);
}

.dizi-password-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.dizi-password-cancel-btn {
	flex: 1;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 700;
	background: var(--dizi-card-bg, #ffffff);
	color: var(--dizi-text, #0f172a);
	border: 1.5px solid var(--dizi-border, #cbd5e1);
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.dizi-password-cancel-btn:hover {
	background: rgba(239, 68, 68, 0.08);
	border-color: #ef4444;
	color: #ef4444;
}

.dizi-password-error {
	margin-top: 12px;
	padding: 10px 14px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: 10px;
	color: #ef4444;
	font-size: 13px;
	font-weight: 600;
	display: none;
	text-align: center;
}

.dizi-password-hints {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.dizi-password-hint-chip {
	font-size: 11.5px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--dizi-bg, #f1f5f9);
	color: var(--dizi-text-muted, #475569);
	border: 1px solid var(--dizi-border, #e2e8f0);
}

/* Dark Theme Overrides */
[data-theme="dark"] .dizi-password-prompt-card {
	background: #0f172a;
	border-color: #6366f1;
	box-shadow: 0 12px 35px -6px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .dizi-password-title {
	color: #f8fafc;
}

[data-theme="dark"] .dizi-password-desc {
	color: #94a3b8;
}

[data-theme="dark"] .dizi-password-input {
	background: #1e293b;
	border-color: #334155;
	color: #f8fafc;
}

[data-theme="dark"] .dizi-password-input:focus {
	background: #0f172a;
	border-color: #818cf8;
}

[data-theme="dark"] .dizi-password-cancel-btn {
	background: #1e293b;
	border-color: #334155;
	color: #cbd5e1;
}

[data-theme="dark"] .dizi-password-cancel-btn:hover {
	background: rgba(239, 68, 68, 0.18);
	border-color: #ef4444;
	color: #fca5a5;
}

[data-theme="dark"] .dizi-password-hint-chip {
	background: #1e293b;
	border-color: #334155;
	color: #94a3b8;
}



