* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #0d1117;
	color: #c9d1d9;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.demo-container {
	width: 100%;
	max-width: 780px;
	height: 95vh;
	display: flex;
	flex-direction: column;
	border: 1px solid #30363d;
	border-radius: 12px;
	overflow: hidden;
	background: #161b22;
}

/* Header */
.demo-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #1a1f2e 0%, #161b22 100%);
	border-bottom: 1px solid #30363d;
}

.header-icon {
	font-size: 28px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
	border-radius: 10px;
}

.header-text h1 {
	font-size: 16px;
	font-weight: 600;
	color: #f0f6fc;
}

.header-subtitle {
	font-size: 12px;
	color: #8b949e;
}

.header-status {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #8b949e;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3fb950;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

/* Chat Area */
.chat-area {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-behavior: smooth;
}

.chat-welcome {
	text-align: center;
	padding: 60px 20px;
	color: #8b949e;
}

.chat-welcome p {
	font-size: 15px;
	margin-bottom: 8px;
}

.chat-welcome-sub {
	font-size: 13px !important;
	color: #484f58 !important;
}

/* Message Bubbles */
.message {
	display: flex;
	gap: 10px;
	max-width: 88%;
	animation: fadeInUp 0.3s ease-out;
}

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

.message.customer {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.message.claude {
	align-self: flex-start;
}

.message-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.customer .message-avatar {
	background: #1f6feb;
}

.claude .message-avatar {
	background: linear-gradient(135deg, #ff6b00, #ff8533);
}

.message-bubble {
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.customer .message-bubble {
	background: #1f6feb;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.claude .message-bubble {
	background: #21262d;
	border: 1px solid #30363d;
	color: #c9d1d9;
	border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
	display: flex;
	gap: 4px;
	padding: 14px 18px;
}

.typing-indicator span {
	width: 7px;
	height: 7px;
	background: #8b949e;
	border-radius: 50%;
	animation: typingBounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-6px); opacity: 1; }
}

/* Summary Cards */
.summary-card {
	background: #0d1117;
	border: 1px solid #30363d;
	border-radius: 8px;
	padding: 12px 14px;
	margin-top: 8px;
	font-size: 13px;
}

.summary-card-title {
	font-size: 12px;
	font-weight: 600;
	color: #ff8533;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.summary-card-row {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	border-bottom: 1px solid #21262d;
}

.summary-card-row:last-child {
	border-bottom: none;
}

.summary-card-label {
	color: #8b949e;
}

.summary-card-value {
	color: #f0f6fc;
	font-weight: 500;
}

/* Product Recommendation Card */
.product-list {
	list-style: none;
	padding: 0;
}

.product-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid #21262d;
}

.product-list li:last-child {
	border-bottom: none;
}

.product-check {
	color: #3fb950;
	font-size: 14px;
}

.product-name {
	color: #f0f6fc;
	font-weight: 500;
}

.product-reason {
	color: #8b949e;
	font-size: 12px;
	margin-left: 22px;
	padding-bottom: 2px;
}

/* Feature Mapping Table */
.mapping-table {
	width: 100%;
	font-size: 12px;
	margin-top: 6px;
}

.mapping-table th {
	text-align: left;
	color: #8b949e;
	font-weight: 500;
	padding: 4px 6px;
	border-bottom: 1px solid #30363d;
}

.mapping-table td {
	padding: 4px 6px;
	border-bottom: 1px solid #21262d;
	color: #c9d1d9;
}

.mapping-table .arrow {
	color: #ff8533;
	text-align: center;
	width: 30px;
}

.badge-mapped, .badge-partial, .badge-none {
	font-size: 10px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.badge-mapped {
	background: rgba(63, 185, 80, 0.15);
	color: #3fb950;
	border: 1px solid rgba(63, 185, 80, 0.3);
}

.badge-partial {
	background: rgba(210, 153, 34, 0.15);
	color: #d29922;
	border: 1px solid rgba(210, 153, 34, 0.3);
}

.badge-none {
	background: rgba(248, 81, 73, 0.15);
	color: #f85149;
	border: 1px solid rgba(248, 81, 73, 0.3);
}

/* Mapping Summary Bar */
.mapping-bar {
	display: flex;
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
	margin: 6px 0 4px;
	background: #21262d;
}

.mapping-bar-seg {
	transition: width 0.6s ease-out;
}

.mapping-bar-seg.mapped { background: #3fb950; }
.mapping-bar-seg.partial { background: #d29922; }
.mapping-bar-seg.none { background: #f85149; }

.mapping-bar-legend {
	display: flex;
	gap: 14px;
	font-size: 11px;
	color: #8b949e;
	margin-bottom: 8px;
}

.legend-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	margin-right: 4px;
	vertical-align: middle;
}

.legend-dot.mapped { background: #3fb950; }
.legend-dot.partial { background: #d29922; }
.legend-dot.none { background: #f85149; }

/* Category Headers in Mapping Table */
.mapping-table tr.cat-header td {
	font-size: 11px;
	font-weight: 600;
	color: #ff8533;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 8px 6px 4px;
	border-bottom: 1px solid #30363d;
	background: rgba(255, 107, 0, 0.04);
}

/* Expand/Collapse Button */
.expand-btn {
	display: block;
	width: 100%;
	padding: 6px 0;
	margin-top: 4px;
	background: none;
	border: 1px solid #30363d;
	border-radius: 4px;
	color: #8b949e;
	font-size: 11px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.expand-btn:hover {
	color: #ff8533;
	border-color: #ff8533;
}

/* Discovery Findings */
.finding-row {
	padding: 6px 0;
	border-bottom: 1px solid #21262d;
}

.finding-row:last-child {
	border-bottom: none;
}

.finding-item {
	font-size: 12px;
	font-weight: 600;
	color: #f0f6fc;
	margin-bottom: 2px;
}

.finding-detail {
	font-size: 12px;
	color: #8b949e;
}

.finding-rec {
	font-size: 11px;
	color: #58a6ff;
	margin-top: 2px;
}

/* Progress Checklist */
.progress-checklist {
	list-style: none;
	padding: 0;
	margin-top: 8px;
}

.progress-checklist li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13px;
	color: #484f58;
	transition: color 0.3s;
}

.progress-checklist li.active {
	color: #ff8533;
}

.progress-checklist li.done {
	color: #3fb950;
}

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

.progress-checklist li .step-icon {
	border: 1.5px solid #484f58;
	color: transparent;
}

.progress-checklist li.active .step-icon {
	border-color: #ff8533;
	background: rgba(255, 107, 0, 0.15);
	color: transparent;
	animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
	to { transform: rotate(360deg); }
}

.progress-checklist li.active .step-icon::after {
	content: '';
	width: 6px;
	height: 6px;
	background: #ff8533;
	border-radius: 50%;
}

.progress-checklist li.done .step-icon {
	border-color: #3fb950;
	background: #3fb950;
	color: #fff;
}

/* OAuth Card */
.oauth-card {
	background: #0d1117;
	border: 1px solid #30363d;
	border-radius: 8px;
	padding: 16px;
	margin-top: 8px;
	text-align: center;
}

.oauth-card .oauth-icon {
	font-size: 32px;
	margin-bottom: 8px;
}

.oauth-card .oauth-text {
	font-size: 13px;
	color: #8b949e;
	margin-bottom: 10px;
}

.oauth-card .oauth-btn {
	display: inline-block;
	padding: 8px 20px;
	background: #f38020;
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	border: none;
}

.oauth-success {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(63, 185, 80, 0.1);
	border: 1px solid rgba(63, 185, 80, 0.3);
	border-radius: 6px;
	margin-top: 8px;
	font-size: 13px;
	color: #3fb950;
}

/* ETC Hosts Card */
.code-block {
	background: #0d1117;
	border: 1px solid #30363d;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 8px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 12px;
	color: #79c0ff;
	overflow-x: auto;
}

/* Footer */
.demo-footer {
	padding: 16px 20px;
	border-top: 1px solid #30363d;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.start-btn {
	padding: 12px 36px;
	background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
	box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.start-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.start-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.start-btn.hidden {
	display: none;
}

.demo-timer {
	font-size: 13px;
	color: #8b949e;
	font-variant-numeric: tabular-nums;
}

.speed-select {
	background: #21262d;
	color: #8b949e;
	border: 1px solid #30363d;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	cursor: pointer;
	outline: none;
}

.speed-select:hover {
	border-color: #ff8533;
	color: #f0f6fc;
}

/* Scrollbar */
.chat-area::-webkit-scrollbar {
	width: 6px;
}

.chat-area::-webkit-scrollbar-track {
	background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
	background: #30363d;
	border-radius: 3px;
}

/* Completion banner */
.completion-banner {
	text-align: center;
	padding: 16px;
	background: linear-gradient(135deg, rgba(63, 185, 80, 0.1), rgba(255, 107, 0, 0.1));
	border: 1px solid rgba(63, 185, 80, 0.3);
	border-radius: 8px;
	margin-top: 8px;
}

.completion-banner .big-check {
	font-size: 36px;
	margin-bottom: 8px;
}

.completion-banner .completion-text {
	font-size: 15px;
	font-weight: 600;
	color: #3fb950;
}

.completion-banner .completion-sub {
	font-size: 12px;
	color: #8b949e;
	margin-top: 4px;
}

/* ── MCP Terminal Drawer ── */

.mcp-drawer-toggle {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: right center;
	background: #21262d;
	border: 1px solid #30363d;
	border-right: none;
	color: #ff8533;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 11px;
	font-weight: 600;
	padding: 6px 14px;
	cursor: pointer;
	z-index: 1001;
	border-radius: 6px 6px 0 0;
	letter-spacing: 0.5px;
	display: none;
	transition: background 0.2s;
}
.mcp-drawer-toggle:hover { background: #30363d; }
.mcp-drawer-toggle.open { right: 420px; }

.mcp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	height: 100vh;
	background: #0d1117;
	border-left: 1px solid #30363d;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 1000;
	display: flex;
	flex-direction: column;
}
.mcp-drawer.open { transform: translateX(0); }

.mcp-drawer-header {
	padding: 10px 14px;
	background: #161b22;
	border-bottom: 1px solid #30363d;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 13px;
	color: #3fb950;
	font-weight: 600;
}
.mcp-drawer-badge {
	background: #21262d;
	color: #8b949e;
	font-size: 10px;
	font-weight: 400;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: auto;
}
.mcp-drawer-close {
	background: none;
	border: none;
	color: #8b949e;
	font-size: 16px;
	cursor: pointer;
	padding: 0 4px;
}
.mcp-drawer-close:hover { color: #f85149; }

.mcp-drawer-log {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 11px;
	line-height: 1.5;
}
.mcp-drawer-log::-webkit-scrollbar { width: 5px; }
.mcp-drawer-log::-webkit-scrollbar-track { background: transparent; }
.mcp-drawer-log::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

.mcp-entry {
	margin-bottom: 8px;
	border: 1px solid #21262d;
	border-radius: 6px;
	overflow: hidden;
}
.mcp-entry-header {
	padding: 7px 10px;
	background: #161b22;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.15s;
}
.mcp-entry-header:hover { background: #1c2128; }
.mcp-entry-chevron {
	color: #484f58;
	font-size: 10px;
	transition: transform 0.2s;
}
.mcp-entry-chevron.open { transform: rotate(90deg); }
.mcp-entry-tool {
	color: #ff8533;
	font-weight: 600;
	flex: 1;
}
.mcp-entry-status {
	font-size: 10px;
	padding: 1px 6px;
	border-radius: 8px;
}
.mcp-entry-status.ok { background: #0d2818; color: #3fb950; }
.mcp-entry-status.err { background: #3d1117; color: #f85149; }
.mcp-entry-status.pending { background: #2a1f00; color: #d29922; }
.mcp-entry-time {
	color: #484f58;
	font-size: 10px;
}

.mcp-entry-body {
	display: none;
	padding: 0 10px 10px;
	background: #0d1117;
}
.mcp-entry-body.open { display: block; }
.mcp-entry-label {
	color: #484f58;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 8px 0 4px;
}
.mcp-entry-json {
	background: #161b22;
	border-radius: 4px;
	padding: 8px;
	overflow-x: auto;
	max-height: 250px;
	overflow-y: auto;
	white-space: pre-wrap;
	word-break: break-all;
}
.mcp-entry-json.req { color: #79c0ff; }
.mcp-entry-json.res { color: #3fb950; }
.mcp-entry-json.res-err { color: #f85149; }
.mcp-json-key { color: #ff8533; }
.mcp-json-str { color: #a5d6ff; }
.mcp-json-num { color: #79c0ff; }
.mcp-json-bool { color: #d29922; }
.mcp-json-null { color: #484f58; }

/* ── Post-Migration Card ─────────────────────────────────────────── */
.post-migration-card .summary-card-title {
	border-bottom-color: #ff6b00;
}

.post-migration-section {
	padding: 10px 0;
	border-bottom: 1px solid #21262d;
}
.post-migration-section:last-child {
	border-bottom: none;
}

.post-migration-label {
	font-size: 12px;
	font-weight: 600;
	color: #e6edf3;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.post-migration-note {
	font-size: 11px;
	color: #8b949e;
	margin-top: 4px;
	line-height: 1.4;
}

.dns-record {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
}
.dns-record code {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 11px;
	color: #c9d1d9;
}

.dns-type {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.dns-type.txt { background: #1f3a1f; color: #3fb950; }
.dns-type.cname { background: #1a2744; color: #79c0ff; }
.dns-type.ns { background: #2d1f3a; color: #bc8cff; }

.code-block.copyable {
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	white-space: pre-wrap;
}
.code-block.copyable:hover {
	border-color: #58a6ff;
	box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.3);
}

.code-block.copy-flash {
	border-color: #3fb950 !important;
	box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.4) !important;
}

/* ── Pause Overlay ───────────────────────────────────────────────── */
.pause-overlay {
	position: fixed;
	inset: 0;
	background: transparent;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	cursor: pointer;
	padding-bottom: 100px;
}
.pause-overlay.visible {
	opacity: 1;
	pointer-events: auto;
}
.pause-overlay-content {
	text-align: center;
	background: rgba(22, 27, 34, 0.92);
	border: 1px solid #ff6b00;
	border-radius: 12px;
	padding: 14px 28px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.pause-icon {
	display: none;
}
.pause-text {
	font-size: 16px;
	font-weight: 700;
	color: #ff8533;
	letter-spacing: 2px;
	text-transform: uppercase;
	display: inline;
}
.pause-hint {
	margin-top: 4px;
	font-size: 12px;
	color: #8b949e;
}
.pause-hint kbd {
	background: #30363d;
	border: 1px solid #484f58;
	border-radius: 4px;
	padding: 2px 6px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 11px;
	color: #c9d1d9;
}
