/**
 * ThueOffice AI Designer App - Stylesheet
 */

:root {
	--ko-red: #ec1f27;
	--ko-red-hover: #c8161d;
	--ko-green: #0f6e36;
	--ko-green-hover: #0c572b;
	--ko-blue: #0f6e36;
	--ko-blue-hover: #0c572b;
	--ko-dark: #0f172a;
	--ko-grey-light: #f8fafc;
	--ko-grey-border: #e2e8f0;
	--ko-font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ko-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ko-shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
	--ko-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
	--ko-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ko-designer-container {
	max-width: 1200px;
	margin: 30px auto 60px auto;
	padding: 0 20px;
	font-family: var(--ko-font-body);
	color: var(--ko-dark);
	line-height: 1.6;
}

/* Header */
.ko-designer-header {
	text-align: center;
	margin-bottom: 35px;
}
.ko-brand-logo {
	max-height: 65px;
	margin-bottom: 12px;
	transition: var(--ko-transition);
}
.ko-brand-logo:hover {
	transform: scale(1.03);
}
.ko-main-title {
	font-family: var(--ko-font-title);
	font-weight: 800;
	font-size: 32px;
	color: var(--ko-dark);
	margin: 5px 0;
	letter-spacing: -0.5px;
}
.ko-sub-title {
	font-size: 15px;
	color: #64748b;
	margin-top: 5px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Workspace Grid */
.ko-designer-workspace-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
	align-items: start;
}

/* Configuration Panel (Left) */
.ko-config-panel {
	display: flex;
	flex-direction: column;
}

/* Cards & Containers */
.ko-step-card {
	background: #fff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: var(--ko-shadow-premium);
	border: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
}
.ko-card-title {
	font-family: var(--ko-font-title);
	font-weight: 700;
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 25px;
	color: var(--ko-dark);
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 15px;
}
.ko-card-title i {
	color: var(--ko-red);
}

/* Mode Navigation Tabs */
.ko-area-modes-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 10px;
}
.ko-mode-tab {
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 12px;
	text-align: left;
	cursor: pointer;
	transition: var(--ko-transition);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ko-mode-tab i {
	font-size: 20px;
	color: #64748b;
	margin-bottom: 4px;
	transition: var(--ko-transition);
}
.ko-mode-tab span {
	font-family: var(--ko-font-title);
	font-weight: 700;
	font-size: 14px;
	color: var(--ko-dark);
}
.ko-mode-tab small {
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.3;
}
.ko-mode-tab:hover {
	border-color: #cbd5e1;
	background: #fff;
}
.ko-mode-tab.active {
	border-color: var(--ko-blue);
	background: #f0f9ff;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.ko-mode-tab.active i {
	color: var(--ko-blue);
}
.ko-mode-tab.active span {
	color: var(--ko-blue);
}

/* Mode panes */
.ko-mode-content-pane {
	animation: koFadeIn 0.3s ease;
}
@keyframes koFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.ko-info-callout {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-radius: 12px;
	padding: 16px;
}

/* Form layouts */
.ko-form-row-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.ko-search-bar-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr 1fr;
	gap: 15px;
}

.ko-form-group {
	margin-bottom: 20px;
}
.ko-form-group label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: #334155;
}
.ko-form-control {
	width: 100%;
	height: 48px;
	border: 1px solid var(--ko-grey-border);
	border-radius: 10px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 15px;
	color: var(--ko-dark);
	background-color: #fff;
	transition: var(--ko-transition);
	box-sizing: border-box;
}
.ko-form-control:focus {
	outline: none;
	border-color: var(--ko-blue);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Select wrapper */
.ko-select-wrapper {
	position: relative;
}
.ko-select-wrapper select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	cursor: pointer;
}
.ko-select-icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #94a3b8;
	font-size: 14px;
}

/* Building preview */
.ko-building-preview {
	display: flex;
	gap: 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	align-items: center;
}
.ko-preview-image-wrapper {
	width: 90px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #cbd5e1;
}
.ko-preview-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ko-preview-info h4 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-family: var(--ko-font-title);
	font-weight: 700;
	color: var(--ko-dark);
}
.ko-preview-info p {
	margin: 3px 0;
	font-size: 13px;
	color: #64748b;
}
.ko-preview-info p i {
	width: 16px;
	color: var(--ko-blue);
}

/* Matched buildings cards */
.ko-matched-buildings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 15px;
	max-height: 280px;
	overflow-y: auto;
	padding: 4px;
}
.ko-matched-card {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	transition: var(--ko-transition);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ko-matched-card:hover {
	border-color: #94a3b8;
	transform: translateY(-2px);
}
.ko-matched-card.selected {
	border-color: var(--ko-blue);
	background: #f0f9ff;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.ko-matched-card strong {
	font-size: 14px;
	color: var(--ko-dark);
}
.ko-matched-card .areas-badge {
	display: inline-block;
	font-size: 12px;
	color: var(--ko-blue);
	font-weight: 600;
}

/* Density grid */
.ko-density-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.ko-density-card {
	position: relative;
	cursor: pointer;
}
.ko-density-card input {
	position: absolute;
	opacity: 0;
}
.ko-density-card .ko-card-inner {
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	text-align: center;
	transition: var(--ko-transition);
}
.ko-density-card:hover .ko-card-inner {
	border-color: #cbd5e1;
}
.ko-density-card.active .ko-card-inner {
	border-color: var(--ko-blue);
	background: #f0f9ff;
}
.ko-density-name {
	display: block;
	font-weight: 700;
	color: var(--ko-dark);
}
.ko-density-card.active .ko-density-name {
	color: var(--ko-blue);
}
.ko-density-val {
	display: block;
	color: #64748b;
}

/* Room grid counters */
.ko-section-divider {
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	color: #64748b;
	margin: 20px 0 12px 0;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ko-section-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.ko-room-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}
.ko-room-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.ko-room-info {
	display: flex;
	flex-direction: column;
}
.ko-room-title {
	font-weight: 600;
	font-size: 14px;
	color: var(--ko-dark);
}
.ko-req-space-badge {
	color: var(--ko-blue);
	font-weight: 700;
}
.ko-room-desc {
	font-size: 11px;
	color: #64748b;
}
.ko-counter {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 3px;
}
.ko-counter-btn {
	width: 28px;
	height: 28px;
	background: #f1f5f9;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: var(--ko-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--ko-transition);
}
.ko-counter-btn:hover:not(:disabled) {
	background: var(--ko-blue);
	color: #fff;
}
.ko-counter-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.ko-counter-val {
	width: 32px;
	text-align: center;
	border: none;
	font-weight: 700;
	font-size: 14px;
	background: transparent;
	color: var(--ko-dark);
}

/* Disabled Overlay */
.disabled-overlay-parent {
	position: relative;
}
.ko-disabled-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(3px);
	border-radius: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px;
}
.ko-overlay-message p {
	font-size: 15px;
	font-weight: 600;
	color: #475569;
}

/* Progress Tracker Panel (Right) */
.ko-tracker-panel {
	position: sticky;
	top: 90px;
}
.ko-tracker-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--ko-shadow-premium);
	border: 1px solid rgba(226, 232, 240, 0.8);
}
.ko-tracker-title {
	font-family: var(--ko-font-title);
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 18px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ko-dark);
}
.ko-tracker-title i {
	color: var(--ko-blue);
}

.ko-progress-section {
	margin-bottom: 18px;
}
.ko-progress-header {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 6px;
}
.ko-progress-bar-container {
	height: 10px;
	background: #f1f5f9;
	border-radius: 6px;
	overflow: hidden;
}
.ko-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: #10b981;
	border-radius: 6px;
	transition: width 0.3s ease, background 0.3s ease;
}
.ko-progress-footer {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 6px;
}

.ko-tracker-status {
	background: #ecfdf5;
	border: 1px solid #d1fae5;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	color: #065f46;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}
.ko-tracker-status.warning {
	background: #fffbeb;
	border-color: #fef3c7;
	color: #92400e;
}
.ko-tracker-status.danger {
	background: #fef2f2;
	border-color: #fee2e2;
	color: #991b1b;
}

.ko-tracker-summary-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid #f1f5f9;
	padding-top: 16px;
}
.ko-tracker-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #64748b;
}
.ko-tracker-summary-row strong {
	color: var(--ko-dark);
}

/* Buttons */
.ko-btn {
	height: 48px;
	border-radius: 10px;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: var(--ko-transition);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	padding: 0 20px;
}
.ko-btn-primary {
	background: linear-gradient(135deg, var(--ko-blue) 0%, var(--ko-blue-hover) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.ko-btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
	color: #fff;
}
.ko-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.width-100 {
	width: 100%;
}

/* Wizard Steps (Results) */
.ko-wizard-step {
	display: none;
}
.ko-wizard-step.active {
	display: block;
	animation: koFadeIn 0.5s ease;
}
.wide-card {
	max-width: 100%;
}
.ko-card-desc {
	color: #64748b;
	margin-top: -15px;
	margin-bottom: 25px;
	font-size: 14px;
}
.ko-layouts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
}
.ko-layout-card {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	transition: var(--ko-transition);
	cursor: pointer;
}
.ko-layout-card:hover {
	border-color: var(--ko-blue);
	transform: translateY(-3px);
	box-shadow: var(--ko-shadow-hover);
}
.ko-layout-card.selected {
	border-color: var(--ko-blue);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
.ko-layout-card.no-hover:hover {
	transform: none;
	cursor: default;
}
.ko-layout-img-wrapper {
	position: relative;
	background: #f1f5f9;
	overflow: hidden;
}
.ko-layout-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ko-card-overlay {
	position: absolute;
	top: 10px; right: 10px;
}
.ko-btn-zoom {
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
}
.ko-layout-details {
	padding: 20px;
	text-align: center;
}
.ko-layout-details h3 {
	margin: 0 0 8px 0;
	font-family: var(--ko-font-title);
	font-size: 16px;
	color: var(--ko-dark);
}
.ko-layout-details p {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 15px 0;
	line-height: 1.5;
}
.ko-btn-select-layout {
	width: 100%;
	height: 42px;
	background: #f1f5f9;
	color: var(--ko-dark);
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: var(--ko-transition);
}
.ko-layout-card.selected .ko-btn-select-layout {
	background: var(--ko-blue);
	color: #fff;
	border-color: var(--ko-blue);
}
.centered-buttons {
	text-align: center;
	margin-top: 30px;
}
.ko-btn-next-interior {
	font-size: 16px;
	height: 52px;
	padding: 0 35px;
}

/* Modals & Loaders */
.ko-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ko-modal-card {
	background: #fff;
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	padding: 35px 30px;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	text-align: center;
}
.ko-modal-close {
	position: absolute;
	top: 15px; right: 15px;
	background: #f1f5f9;
	border: none;
	width: 32px; height: 32px;
	border-radius: 50%;
	cursor: pointer;
	color: #64748b;
}
.ko-modal-title {
	font-family: var(--ko-font-title);
	font-size: 22px;
	font-weight: 700;
	color: var(--ko-dark);
	margin: 0 0 10px 0;
}
.ko-modal-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 25px 0;
}
.letter-spacing-10 {
	letter-spacing: 8px;
	font-size: 24px;
	font-weight: 700;
}
.text-center {
	text-align: center;
}
.ko-alert-error {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #991b1b;
	border-radius: 8px;
	padding: 10px;
	font-size: 13px;
	margin-bottom: 15px;
}
.ko-resend-prompt {
	font-size: 13px;
	color: #94a3b8;
	margin-top: 15px;
}
.ko-resend-prompt a {
	color: var(--ko-blue);
	font-weight: 600;
	text-decoration: none;
}

/* Spinner */
.ko-spinner {
	width: 50px; height: 50px;
	border: 4px solid #f1f5f9;
	border-top: 4px solid var(--ko-blue);
	border-radius: 50%;
	animation: koSpin 1s linear infinite;
	margin: 0 auto 20px auto;
}
.ko-spinner.color-secondary {
	border-top-color: #ec4899;
}
@keyframes koSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ========================================================
 * FRONTEND POPUP & FLOATING LAUNCHER STYLES
 * ======================================================== */
.to-popup-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(6px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: koFadeIn 0.3s ease;
}
.to-popup-container {
	background: #fff;
	border-radius: 20px;
	max-width: 820px;
	width: 100%;
	overflow: hidden;
	position: relative;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	animation: koZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes koZoomIn {
	from { transform: scale(0.92); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.to-popup-close {
	position: absolute;
	top: 15px; right: 15px;
	background: #f1f5f9;
	border: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	cursor: pointer;
	color: #64748b;
	z-index: 20;
	transition: var(--ko-transition);
}
.to-popup-close:hover {
	background: #e2e8f0;
	color: var(--ko-dark);
}

.to-popup-content-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
}
.to-popup-visual {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	color: #fff;
}
.to-popup-badge-tag {
	align-self: flex-start;
	background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
	color: #fff;
	font-weight: 800;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.5px;
}
.to-popup-img-wrapper {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	margin: 20px 0;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.to-popup-preview-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.to-popup-overlay-badge {
	position: absolute;
	bottom: 10px; left: 10px;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}
.to-popup-features-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.to-feat-item {
	font-size: 12px;
	color: #cbd5e1;
	display: flex;
	align-items: center;
	gap: 8px;
}
.to-feat-item i {
	color: #10b981;
}

.to-popup-body {
	padding: 40px 35px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.to-brand-pill {
	display: inline-block;
	background: #eff6ff;
	color: var(--ko-blue);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}
.to-popup-title {
	font-family: var(--ko-font-title);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.3;
	margin: 0 0 12px 0;
	color: var(--ko-dark);
}
.to-popup-desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 25px 0;
}
.to-btn-launch-designer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	background: linear-gradient(135deg, var(--ko-blue) 0%, var(--ko-blue-hover) 100%);
	color: #fff !important;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
	transition: var(--ko-transition);
}
.to-btn-launch-designer:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}
.to-btn-skip-popup {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 13px;
	cursor: pointer;
	margin-top: 12px;
	padding: 6px;
	transition: var(--ko-transition);
}
.to-btn-skip-popup:hover {
	color: #475569;
}
.to-popup-guarantee {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* FLOATING LAUNCHER BUTTON */
.to-floating-trigger {
	position: fixed;
	bottom: 25px;
	left: 25px;
	z-index: 99999;
}
.to-floating-pill {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	padding: 8px 18px 8px 10px;
	border-radius: 35px;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(2, 132, 199, 0.4);
	transition: var(--ko-transition);
}
.to-floating-pill:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(2, 132, 199, 0.6);
}
.to-floating-icon {
	width: 40px; height: 40px;
	background: linear-gradient(135deg, var(--ko-blue) 0%, #0284c7 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #fff;
	box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}
.to-floating-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.to-floating-sub {
	font-size: 10px;
	color: #38bdf8;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.to-floating-main {
	font-family: var(--ko-font-title);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.ko-designer-workspace-grid {
		grid-template-columns: 1fr;
	}
	.ko-area-modes-nav {
		grid-template-columns: 1fr;
	}
	.ko-search-bar-grid {
		grid-template-columns: 1fr 1fr;
	}
	.to-popup-content-grid {
		grid-template-columns: 1fr;
	}
	.to-popup-visual {
		display: none;
	}
	.ko-layouts-grid {
		grid-template-columns: 1fr;
	}
}

/* Modes 2-columns & 3-columns layout */
.ko-modes-two-cols {
	grid-template-columns: 1fr 1fr !important;
}
.ko-modes-three-cols {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr !important;
	gap: 15px;
	margin-top: 15px;
}
@media (max-width: 900px) {
	.ko-modes-three-cols {
		grid-template-columns: 1fr !important;
	}
}

/* Typography polish for Vietnamese text */
.ko-main-title {
	font-family: var(--ko-font-title) !important;
	font-weight: 800 !important;
	letter-spacing: normal !important;
}
.ko-card-title {
	font-family: var(--ko-font-title) !important;
	font-weight: 700 !important;
	letter-spacing: normal !important;
}
.ko-tracker-title {
	font-family: var(--ko-font-title) !important;
	font-weight: 700 !important;
	letter-spacing: normal !important;
}

/* ==========================================================================
   BRAND STYLING: REMOVE SPACE, HIDE THEME TITLE, HIDE TABLE OF CONTENTS, RED & GREEN BRAND
   ========================================================================== */

/* 1. Eliminate large space between navbar and designer tool */
body.page-id-13643 main#primary,
main#primary.site-main {
	padding-top: 20px !important;
	padding-bottom: 40px !important;
}

/* 2. Hide redundant theme page title (Thiết Kế Văn Phòng AI) */
article#post-13643 > header.entry-header,
.page-id-13643 .entry-header {
	display: none !important;
}

/* 3. Hide Table of Contents (ez-toc) completely inside designer page */
#ez-toc-container,
.ez-toc-v2_0_77,
.ez-toc-counter,
.ez-toc-container-direction {
	display: none !important;
}

/* 4. Hide redundant logo inside designer tool */
.ko-logo-wrapper,
.ko-brand-logo {
	display: none !important;
}

/* 5. Designer Container top padding */
.ko-designer-container {
	margin: 0 auto 50px auto !important;
	padding-top: 0 !important;
}
.ko-designer-header {
	margin-bottom: 25px !important;
}

/* 6. Titles: Main title in dark, section headers with Brand Red Accent Icon & Clean Typography */
.ko-main-title {
	color: #0f172a !important;
	font-weight: 800 !important;
}
.ko-card-title i,
.ko-card-title span.badge-num {
	color: var(--ko-red) !important;
}

/* 7. Action Buttons & Brand Selection: Green / Red */
/* Primary Action Button (Bắt đầu thiết kế, Lọc tòa nhà) -> Brand Green */
.ko-btn-primary {
	background: linear-gradient(135deg, var(--ko-green) 0%, var(--ko-green-hover) 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(15, 110, 54, 0.3) !important;
}
.ko-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--ko-green-hover) 0%, #094421 100%) !important;
	box-shadow: 0 6px 20px rgba(15, 110, 54, 0.4) !important;
}

/* Active Mode Tabs -> Brand Red Accent or Brand Green */
.ko-mode-tab.active {
	border-color: var(--ko-red) !important;
	background: #fff5f5 !important;
	box-shadow: 0 4px 14px rgba(236, 31, 39, 0.12) !important;
}
.ko-mode-tab.active i {
	color: var(--ko-red) !important;
}
.ko-mode-tab.active span {
	color: var(--ko-red) !important;
}

/* Matched Card & Selection Pills */
.ko-matched-card.selected {
	border-color: var(--ko-red) !important;
	background: #fffafa !important;
}
.ko-matched-card .areas-badge {
	background: #eaf5ee !important;
	color: var(--ko-green) !important;
}
.ko-pill-btn.active {
	background: var(--ko-green) !important;
	border-color: var(--ko-green) !important;
	color: #fff !important;
}

/* Density card active */
.ko-density-card.active {
	border-color: var(--ko-green) !important;
	background: #f0fdf4 !important;
}
.ko-density-card.active .ko-density-name {
	color: var(--ko-green) !important;
}

/* Summary Badge & Tracker Bar */
.ko-tracker-bar-fill {
	background: linear-gradient(90deg, var(--ko-green) 0%, var(--ko-red) 100%) !important;
}
