/**
 * HumiKudo Public Styles
 * Designed to integrate into the Humi Empire design system.
 */

:root {
	/* Humi Empire CSS Variables Alignment with fallbacks */
	--hk-brand-color: var(--humi-brand-color, #6366f1);
	--hk-brand-hover: var(--humi-brand-hover, #4f46e5);
	--hk-text-main: var(--humi-text-main, #1f2937);
	--hk-text-muted: var(--humi-text-muted, #4b5563);
	--hk-radius-card: var(--humi-radius-card, 12px);
	--hk-radius-input: var(--humi-radius-input, 8px);
	
	/* Internal tokens */
	--hk-bg-card: #ffffff;
	--hk-border-color: #e5e7eb;
	--hk-shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
	--hk-shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

/* --------------------------------------------------
   KUDO WALLS
-------------------------------------------------- */
.hk-wall-container {
	width: 100%;
	margin: 20px 0;
	box-sizing: border-box;
}

/* Card Styling */
.hk-public-card {
	background: var(--hk-bg-card);
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-card);
	box-shadow: var(--hk-shadow-card);
	padding: 24px;
	box-sizing: border-box;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}
.hk-public-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--hk-shadow-hover);
}

/* Kudo Title — testimonial headline */
.hk-kudo-title {
	font-size: 14px;
	font-weight: 700;
	color: #6366f1;
	margin-bottom: 10px;
	line-height: 1.4;
}
/* Card Header */
.hk-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hk-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--hk-border-color);
	background: #f3f4f6;
}
.hk-avatar-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(99, 102, 241, 0.1);
	color: var(--hk-brand-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
}
.hk-user-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hk-name {
	font-weight: 600;
	font-size: 16px;
	color: var(--hk-text-main);
	line-height: 1.2;
}
.hk-title {
	font-size: 13px;
	color: var(--hk-text-muted);
	line-height: 1.2;
}

/* Rating Stars */
.hk-stars {
	color: #fbbf24;
	font-size: 14px;
	letter-spacing: 2px;
}

/* Comment text */
.hk-comment {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hk-text-main);
	margin: 0;
	white-space: pre-line;
}

/* Card Footer */
.hk-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block-start: auto;
	border-top: 1px solid var(--hk-border-color);
	padding-block-start: 14px;
	font-size: 13px;
}
.hk-social-link {
	color: var(--hk-brand-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	transition: color 0.15s ease;
}
.hk-social-link:hover {
	color: var(--hk-brand-hover);
	text-decoration: underline;
}

/* 1. GRID LAYOUT */
.hk-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* 2. MASONRY LAYOUT (CSS Multi-Column) */
.hk-layout-masonry {
	columns: 3 280px;
	column-gap: 24px;
}
.hk-layout-masonry .hk-public-card {
	break-inside: avoid;
	margin-block-end: 24px;
}

/* 3. CAROUSEL LAYOUT (CSS Scroll Snap) */
.hk-layout-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 24px;
	gap: 20px;
	padding: 10px 4px 20px 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--hk-brand-color) transparent;
	overscroll-behavior: contain;
}
.hk-layout-carousel::-webkit-scrollbar {
	height: 6px;
}
.hk-layout-carousel::-webkit-scrollbar-thumb {
	background: var(--hk-brand-color);
	border-radius: 3px;
}
.hk-layout-carousel .hk-public-card {
	flex: 0 0 320px;
	scroll-snap-align: center;
}

/* Scroll-Driven Animation Slide Effect (Progressive Enhancement) */
@keyframes hkCarouselAnimate {
	0% {
		transform: scale(0.92);
		opacity: 0.6;
	}
	50% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(0.92);
		opacity: 0.6;
	}
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
	.hk-layout-carousel .hk-public-card {
		animation: hkCarouselAnimate auto linear both;
		animation-timeline: view(inline);
	}
}


/* --------------------------------------------------
   CAPTURE ENGINE FORM
-------------------------------------------------- */
.hk-form-container {
	width: 100%;
	max-width: 580px;
	margin: 20px auto;
	box-sizing: border-box;
	text-align: left;
}

/* Inline form styling */
.hk-public-form {
	background: var(--hk-bg-card);
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-card);
	box-shadow: var(--hk-shadow-card);
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-public-form h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--hk-text-main);
}
.hk-public-form p.description {
	margin: 4px 0 0 0;
	font-size: 14px;
	color: var(--hk-text-muted);
}

.hk-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}

.hk-form-row {
	display: flex;
	gap: 16px;
}
@media (max-width: 580px) {
	.hk-form-row {
		flex-direction: column;
		gap: 20px;
	}
}

.hk-form-group label {
	font-size: 14px;
	font-weight: 600;
	color: var(--hk-text-main);
}

.hk-form-group input[type="text"],
.hk-form-group input[type="url"],
.hk-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	font-size: 14px;
	background: #ffffff;
	box-sizing: border-box;
	transition: all 0.2s ease;
}
.hk-form-group input:focus,
.hk-form-group textarea:focus {
	border-color: var(--hk-brand-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	outline: none;
}

/* Star rating selector */
.hk-rating-selector {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	font-size: 28px;
	gap: 6px;
	user-select: none;
}
.hk-rating-selector input {
	display: none;
}
.hk-rating-selector label {
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.15s ease;
}
.hk-rating-selector label:hover,
.hk-rating-selector label:hover ~ label,
.hk-rating-selector input:checked ~ label {
	color: #fbbf24;
}

/* Public drag-and-drop avatar uploader */
.hk-avatar-dropzone {
	border: 2px dashed var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	padding: 20px;
	text-align: center;
	cursor: pointer;
	background: #f9fafb;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	position: relative;
	box-sizing: border-box;
}
.hk-avatar-dropzone:hover,
.hk-avatar-dropzone.dragover {
	border-color: var(--hk-brand-color);
	background: rgba(99, 102, 241, 0.01);
}
.hk-dropzone-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--hk-text-muted);
	font-size: 13px;
}
.hk-dropzone-icon {
	font-size: 26px;
}
.hk-dropzone-preview {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hk-dropzone-preview img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--hk-border-color);
}
.hk-dropzone-filename {
	font-size: 13px;
	color: var(--hk-text-main);
	font-weight: 500;
}

/* Submit button */
.hk-btn-submit {
	background: var(--hk-brand-color);
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: var(--hk-radius-input);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	align-self: flex-start;
}
.hk-btn-submit:hover {
	background: var(--hk-brand-hover);
}
.hk-btn-submit:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* Char counter */
.hk-char-counter {
	font-size: 12px;
	color: var(--hk-text-muted);
	align-self: flex-end;
}

/* Status message panels */
.hk-form-message {
	padding: 14px 18px;
	border-radius: var(--hk-radius-input);
	font-size: 14px;
	font-weight: 500;
	margin-block-end: 16px;
	display: none;
}
.hk-form-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	display: block;
}
.hk-form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
	display: block;
}


/* --------------------------------------------------
   MODAL OVERLAY (HumiKudo Triggered Modal)
-------------------------------------------------- */
.hk-dialog-modal {
	border: none;
	border-radius: var(--hk-radius-card);
	padding: 0;
	max-width: 580px;
	width: 90%;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	background: transparent; /* Actual form has background */
	overflow: visible;
}
.hk-dialog-modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	transition: backdrop-filter 0.2s ease;
}

.hk-dialog-modal .hk-public-form {
	box-shadow: none;
	border: none;
	position: relative;
}

/* Close Modal Button */
.hk-modal-close-btn {
	position: absolute;
	right: 20px;
	top: 20px;
	background: #f3f4f6;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--hk-text-muted);
	transition: all 0.15s ease;
}
.hk-modal-close-btn:hover {
	background: #e5e7eb;
	color: var(--hk-text-main);
}

/* --------------------------------------------------
   V2.0 FEATURE: AI ASSIST TOGGLE & POLISH
-------------------------------------------------- */
.hk-ai-assist-toggle {
	display: flex;
	flex-direction: column;
	background: #f3f4f6;
	padding: 10px 14px;
	border-radius: var(--hk-radius-input);
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hk-text-main);
}
.hk-ai-assist-toggle label {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}
.hk-ai-disclaimer {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 400;
	color: #9ca3af;
	font-family: 'SF Mono', 'Fira Code', monospace;
	line-height: 1.5;
}
.hk-story-inputs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
	background: #f9fafb;
	padding: 16px;
	border: 1px dashed var(--hk-border-color);
	border-radius: var(--hk-radius-input);
}
.hk-ai-polish-btn {
	background: #8b5cf6; /* Indigo/purple premium color */
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: var(--hk-radius-input);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background 0.15s ease, transform 0.1s ease;
	margin-bottom: 10px;
}
.hk-ai-polish-btn:hover {
	background: #7c3aed;
}
.hk-ai-polish-btn:active {
	transform: scale(0.97);
}
.hk-ai-polish-btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* --------------------------------------------------
   V2.0 FEATURE: VIDEO原生录制及上传
-------------------------------------------------- */
.hk-video-recorder-panel {
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	background: #000;
	overflow: hidden;
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.hk-video-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}
.hk-recorder-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	font-size: 14px;
	text-align: center;
	padding: 20px;
	z-index: 3;
}
.hk-record-indicator {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(239, 68, 68, 0.8);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
	animation: blink 1s infinite alternate;
	z-index: 5;
}
@keyframes blink {
	0% { opacity: 0.5; }
	100% { opacity: 1; }
}
.hk-recorder-controls {
	position: absolute;
	bottom: 16px;
	display: flex;
	gap: 12px;
	z-index: 5;
}
.hk-btn-record {
	background: #ef4444;
	color: #fff;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: transform 0.15s ease;
}
.hk-btn-record:hover {
	transform: scale(1.08);
}
.hk-btn-record.recording {
	border-radius: 6px;
	width: 24px;
	height: 24px;
	margin: 12px;
}
.hk-btn-recorder-action {
	background: rgba(255, 255, 255, 0.9);
	color: #1f2937;
	border: none;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hk-btn-recorder-action:hover {
	background: #fff;
}
.hk-recorder-timer {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-family: monospace;
	z-index: 5;
}
.hk-upload-progress-container {
	width: 100%;
	background: #e5e7eb;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 6px;
	display: none;
}
.hk-upload-progress-bar {
	background: var(--hk-brand-color);
	width: 0%;
	height: 100%;
	transition: width 0.1s ease;
}

/* --------------------------------------------------
   V2.0 FEATURE: VIDEO PLAY OVERLAYS & PLAYER MODALS
-------------------------------------------------- */
.hk-public-card.has-video {
	position: relative;
	cursor: pointer;
}
.hk-video-play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.02);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	border-radius: var(--hk-radius-card);
	pointer-events: none;
	z-index: 3;
}
.hk-public-card.has-video:hover .hk-video-play-overlay {
	opacity: 1;
	background: rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(2px);
}
.hk-play-btn-circle {
	background: rgba(255, 255, 255, 0.95);
	color: var(--hk-brand-color);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	transform: scale(0.9);
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hk-public-card.has-video:hover .hk-play-btn-circle {
	transform: scale(1);
}
.hk-card-video-tag {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(99, 102, 241, 0.9);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 2;
}

/* Glassmorphism Video Modal Player */
.hk-video-modal {
	border: none;
	border-radius: var(--hk-radius-card);
	padding: 0;
	max-width: 800px;
	width: 90%;
	aspect-ratio: 16/9;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	background: #000;
	overflow: hidden;
}
.hk-video-modal::backdrop {
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
}
.hk-video-modal video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hk-video-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255,255,255,0.2);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	z-index: 10;
	transition: background 0.15s ease;
}
.hk-video-modal-close:hover {
	background: rgba(255,255,255,0.4);
}

/* === Layout: Quote (centered quote style) === */
.hk-layout-quote {
	display: flex;
	flex-direction: column;
	gap: 60px;
	max-width: 720px;
	margin: 0 auto;
}
.hk-quote-card {
	text-align: center;
	padding: 40px 20px;
	position: relative;
}
.hk-quote-card::before {
	content: '\201C';
	font-size: 80px;
	color: var(--hk-brand-color);
	opacity: 0.15;
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, serif;
	line-height: 1;
}
.hk-quote-card blockquote {
	font-size: 18px;
	line-height: 1.8;
	color: #374151;
	margin: 0 0 12px;
	font-style: italic;
	border: none;
	padding: 0;
}
.hk-quote-card cite {
	font-size: 14px;
	color: #6b7280;
	font-style: normal;
}
.hk-spotlight-card {
	text-align: center;
	padding: 48px 32px;
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	border-radius: 16px;
	color: #fff;
	margin-bottom: 60px;
}
.hk-spotlight-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.5);
	margin-bottom: 16px;
}
.hk-spotlight-card blockquote {
	font-size: 20px;
	line-height: 1.8;
	margin: 0 0 12px;
	color: #fff;
	padding: 0;
	border: none;
}
.hk-spotlight-card cite {
	font-size: 15px;
	opacity: 0.85;
}

/* === Layout: Minimal === */
.hk-layout-minimal {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 680px;
	margin: 0 auto;
}
.hk-minimal-card {
	padding: 20px 0;
	border-bottom: 1px solid #e5e7eb;
}
.hk-minimal-card:last-child {
	border-bottom: none;
}
.hk-minimal-comment {
	font-size: 16px;
	line-height: 1.7;
	color: #374151;
	margin: 0 0 8px;
}
.hk-minimal-meta {
	font-size: 13px;
	color: #9ca3af;
}
.hk-minimal-name {
	color: #6366f1;
	font-weight: 600;
}
.hk-minimal-sep {
	margin: 0 6px;
}
.hk-minimal-title {
	color: #9ca3af;
}

/* === Layout: Bento Grid === */
.hk-bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 180px;
	gap: 16px;
}
.hk-bento-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	border: 1px solid #f3f4f6;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hk-bento-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.hk-bento-card p {
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.hk-bento-large {
	grid-column: span 2;
	grid-row: span 2;
	background: linear-gradient(135deg, #eff6ff, #faf5ff);
}
.hk-bento-medium {
	grid-column: span 2;
	grid-row: span 1;
	background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}
.hk-bento-small {
	grid-column: span 1;
	grid-row: span 1;
}
.hk-bento-author {
	font-size: 13px;
	font-weight: 600;
	color: #6366f1;
	margin-top: 8px;
}

/* === Layout: Timeline === */
.hk-timeline {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 0;
}
.hk-timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, #6366f1, #a855f7);
	opacity: 0.3;
	transform: translateX(-50%);
}
.hk-timeline-item {
	position: relative;
	margin-bottom: 40px;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding-right: calc(50% + 24px);
}
.hk-timeline-right {
	justify-content: flex-start;
	padding-right: 0;
	padding-left: calc(50% + 24px);
}
.hk-timeline-content {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #f0f0f0;
	max-width: 340px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hk-timeline-content::after {
	content: '';
	position: absolute;
	top: 20px;
	width: 12px;
	height: 12px;
	background: #6366f1;
	border-radius: 50%;
}
.hk-timeline-left .hk-timeline-content::after {
	right: -30px;
}
.hk-timeline-right .hk-timeline-content::after {
	left: -30px;
}
.hk-timeline-content p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 10px;
	color: #374151;
}
.hk-timeline-author {
	font-size: 12px;
	color: #6366f1;
	font-weight: 600;
}

@media (max-width: 640px) {
	.hk-bento-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
	.hk-bento-large,
	.hk-bento-medium,
	.hk-bento-small {
		grid-column: span 1;
		grid-row: span 1;
	}
	.hk-timeline::before {
		left: 20px;
	}
	.hk-timeline-item {
		padding-right: 0;
		padding-left: 48px;
		justify-content: flex-start;
	}
	.hk-timeline-right {
		padding-left: 48px;
	}
	.hk-timeline-content::after {
		left: -30px !important;
		right: auto !important;
	}
}

/* === Social Proof Popup === */
#hk-social-proof-popup {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 99999;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	padding: 14px 18px;
	max-width: 340px;
	transform: translateY(120px);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
	pointer-events: none;
}
#hk-social-proof-popup.hk-sp-show {
	transform: translateY(0);
	opacity: 1;
}
.hk-sp-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.hk-sp-avatar {
	flex-shrink: 0;
}
.hk-sp-body {
	flex: 1;
	min-width: 0;
}
.hk-sp-name {
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}
.hk-sp-title {
	font-size: 11px;
	color: #9ca3af;
	margin-bottom: 4px;
}
.hk-sp-comment {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
}

@media (max-width: 640px) {
	#hk-social-proof-popup {
		bottom: 16px;
		left: 8px;
		right: 8px;
		max-width: none;
	}
}

/* === Form Style: Elegant === */
.hk-form-elegant .hk-public-form {
	border: none;
	box-shadow: 0 4px 32px rgba(0,0,0,0.08);
	border-radius: 20px;
	background: #fefcf8;
}
.hk-form-elegant .hk-public-form h3 {
	font-family: Georgia, serif;
	font-style: italic;
	color: #8b5cf6;
}
.hk-form-elegant input[type="text"],
.hk-form-elegant input[type="email"],
.hk-form-elegant input[type="url"],
.hk-form-elegant textarea,
.hk-form-elegant select {
	border: 1px solid #e8d5c4;
	border-radius: 12px;
	background: #fffefa;
}

/* === Form Style: Brutalist === */
.hk-form-brutalist .hk-public-form {
	border: 3px solid #000;
	border-radius: 0;
	box-shadow: 6px 6px 0 #000;
	background: #fff;
}
.hk-form-brutalist .hk-public-form h3 {
	font-family: 'Courier New', monospace;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.hk-form-brutalist input[type="text"],
.hk-form-brutalist input[type="email"],
.hk-form-brutalist input[type="url"],
.hk-form-brutalist textarea,
.hk-form-brutalist select,
.hk-form-brutalist .hk-btn-primary {
	border: 2px solid #000;
	border-radius: 0;
}

/* === Form Style: Glassmorphism === */
.hk-form-glassmorphism .hk-public-form {
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.hk-form-glassmorphism input[type="text"],
.hk-form-glassmorphism input[type="email"],
.hk-form-glassmorphism input[type="url"],
.hk-form-glassmorphism textarea,
.hk-form-glassmorphism select {
	background: rgba(255,255,255,0.6);
	border: 1px solid rgba(255,255,255,0.8);
	border-radius: 10px;
	backdrop-filter: blur(4px);
}

/* === Layout: Polaroid === */
.hk-polaroid-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
.hk-polaroid-card {
	background: #fff;
	padding: 12px 12px 8px;
	box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
	border-radius: 2px;
	text-align: center;
	width: 180px;
	transform: rotate(var(--rot, 0deg));
}
.hk-polaroid-card:nth-child(odd)  { --rot: -2deg; }
.hk-polaroid-card:nth-child(even) { --rot: 2deg; }
.hk-polaroid-pic {
	width: 100%;
	height: 120px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 2px;
}
.hk-polaroid-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hk-polaroid-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
}
.hk-polaroid-comment {
	font-size: 12px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 6px;
}
.hk-polaroid-name {
	font-size: 10px;
	font-weight: 600;
	color: #9ca3af;
}

/* === Layout: Stacked === */
.hk-stacked-container {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}
.hk-stacked-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	margin-top: -18px;
}
.hk-stacked-item:first-child {
	margin-top: 0;
}
.hk-stacked-item p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}
.hk-stacked-item span {
	font-size: 12px;
	color: #6366f1;
	font-weight: 600;
}

/* === Layout: Magazine === */
.hk-magazine-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 12px;
	max-width: 800px;
	margin: 0 auto;
}
.hk-magazine-featured {
	grid-row: span 2;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	border-left: 4px solid #6366f1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hk-magazine-featured p {
	font-size: 16px;
	line-height: 1.8;
	color: #1f2937;
	margin: 0 0 12px;
	font-weight: 500;
}
.hk-magazine-meta {
	font-size: 13px;
	color: #6366f1;
	font-weight: 600;
}
.hk-magazine-item {
	background: #f9fafb;
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.hk-magazine-item span {
	font-size: 12px;
	font-weight: 600;
	color: #6366f1;
}
.hk-magazine-item p {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 640px) {
	.hk-magazine-layout { grid-template-columns: 1fr; }
	.hk-polaroid-card { width: calc(50% - 12px); }
	.hk-slider-track { flex-wrap: nowrap; overflow-x: auto; }
	.hk-mosaic-grid { grid-template-columns: 1fr 1fr; }
	.hk-album-grid { grid-template-columns: 1fr 1fr; }
}

/* === Columns support === */
.hk-wall-container[style*="--hk-columns:2"] .hk-public-card { width: calc(50% - 8px); }
.hk-wall-container[style*="--hk-columns:3"] .hk-public-card { width: calc(33.333% - 8px); }
.hk-wall-container[style*="--hk-columns:4"] .hk-public-card { width: calc(25% - 8px); }
.hk-wall-container[style*="--hk-columns:5"] .hk-public-card { width: calc(20% - 8px); }
.hk-wall-container[style*="--hk-columns:6"] .hk-public-card { width: calc(16.666% - 8px); }

/* === Layout: Mosaic === */
.hk-mosaic-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 120px;
	gap: 10px;
}
.hk-mosaic-tile {
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: transform 0.2s ease;
}
.hk-mosaic-tile:hover { transform: scale(1.02); }
.hk-mosaic-tile cite {
	font-size: 12px;
	font-weight: 700;
	color: #6366f1;
	font-style: normal;
	margin-bottom: 4px;
}
.hk-mosaic-tile p {
	font-size: 11px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* === Layout: Waves === */
.hk-waves-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.hk-wave-card {
	--hue: 260;
	position: relative;
}
.hk-wave-inner {
	background: hsl(var(--hue), 70%, 96%);
	border-radius: 40px 12px 40px 12px;
	padding: 20px 24px;
	border: 1px solid hsl(var(--hue), 60%, 85%);
}
.hk-wave-inner p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}
.hk-wave-inner span {
	font-size: 12px;
	font-weight: 600;
	color: hsl(var(--hue), 50%, 45%);
}

/* === Layout: Slider === */
.hk-slider-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 10px 4px 20px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.hk-slider-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hk-slider-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 12px;
}
.hk-slider-card p {
	font-size: 13px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 8px;
}
.hk-slider-author {
	font-size: 11px;
	color: #9ca3af;
}

/* === Layout: Album === */
.hk-album-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.hk-album-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: transform 0.2s ease;
}
.hk-album-card:hover { transform: translateY(-2px); }
.hk-album-photo {
	height: 140px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.hk-album-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hk-album-fallback {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 22px;
}
.hk-album-caption {
	padding: 12px;
}
.hk-album-name {
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}
.hk-album-caption p {
	font-size: 11px;
	color: #6b7280;
	line-height: 1.4;
	margin: 4px 0 0;
}

/* === Layout: CoverFlow === */
.hk-coverflow-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	padding: 40px 0;
	perspective: 800px;
	overflow-x: auto;
}
.hk-coverflow-item {
	flex: 0 0 200px;
	transform: rotateY(calc(var(--idx) * 8deg - 15deg)) translateZ(calc(var(--idx) * -30px));
	transition: transform 0.3s ease;
}
.hk-coverflow-item:hover { transform: rotateY(0) translateZ(0) scale(1.05); z-index: 10; }
.hk-coverflow-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #f0f0f0;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	text-align: center;
}
.hk-coverflow-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	margin: 0 auto 8px;
}
.hk-coverflow-card p {
	font-size: 11px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 6px;
}
.hk-coverflow-card span {
	font-size: 10px;
	color: #9ca3af;
}

/* === Card entrance animations === */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hk-wall-container .hk-public-card {
	animation: fadeInUp 0.5s ease both;
}
.hk-wall-container .hk-public-card:nth-child(1)  { animation-delay: 0.05s; }
.hk-wall-container .hk-public-card:nth-child(2)  { animation-delay: 0.1s; }
.hk-wall-container .hk-public-card:nth-child(3)  { animation-delay: 0.15s; }
.hk-wall-container .hk-public-card:nth-child(4)  { animation-delay: 0.2s; }
.hk-wall-container .hk-public-card:nth-child(5)  { animation-delay: 0.25s; }
.hk-wall-container .hk-public-card:nth-child(6)  { animation-delay: 0.3s; }
.hk-wall-container .hk-public-card:nth-child(n+7) { animation-delay: 0.35s; }

/* === Button micro-interactions === */
.hk-btn-primary {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hk-btn-primary:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.hk-btn-primary:active {
	transform: scale(0.97);
}

