/* =============================================================================
   Stack Cards — Frontend Styles
   ============================================================================= */

/* Design tokens are scoped to the widget's own root element, never to :root,
   so they cannot collide with another plugin's variables. */
.stkc-card {
	--stkc-primary:   #0e0e0e;
	--stkc-secondary: #3f4654;
	--stkc-accent:    #4f46e5;
	--stkc-accent-08: color-mix(in srgb, var(--stkc-accent) 8%,  transparent);
	--stkc-accent-12: color-mix(in srgb, var(--stkc-accent) 12%, transparent);
	--stkc-accent-24: color-mix(in srgb, var(--stkc-accent) 24%, transparent);
	--stkc-accent-ink: color-mix(in srgb, var(--stkc-accent) 78%, #000);
	--stkc-muted:     #6b7280;
	--stkc-border:    #e4e7ec;
	--stkc-surface:   #ffffff;
	--stkc-surface-2: #f7f8fb;
	--stkc-radius:    12px;
	--stkc-shadow:    0 1px 2px rgba(16,24,40,.06), 0 8px 24px -8px rgba(16,24,40,.12);
	--stkc-shadow-lg: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px -12px rgba(16,24,40,.22);
	--stkc-media-ratio: 16 / 10;
}

/* ── Base Card ────────────────────────────────────────────────────────────── */

.stkc-card {
	position: relative;
	background-color: var(--stkc-surface);
	border-radius: var(--stkc-radius);
	overflow: hidden;
	box-shadow: var(--stkc-shadow);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.stkc-card:hover {
	box-shadow: var(--stkc-shadow-lg);
	transform: translateY(-4px);
}
/* Keyboard focus visibility */
.stkc-card:focus-within,
.stkc-card:focus-visible {
	outline: 2px solid var(--stkc-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--stkc-accent-12), var(--stkc-shadow-lg);
}

/* ── Media (image wrapper) ────────────────────────────────────────────────── */

.stkc-media {
	position: relative;
	overflow: hidden;
}
.stkc-img-wrap img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--stkc-media-ratio);
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.stkc-card:hover .stkc-img-wrap img {
	transform: scale(1.04);
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.stkc-body {
	padding: 24px;
}

/* ── Icon ─────────────────────────────────────────────────────────────────── */

.stkc-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--stkc-accent);
	transition: color 0.25s ease, background-color 0.25s ease;
}
.stkc-icon-wrap i,
.stkc-icon-wrap svg {
	font-size: 32px;
	width: 32px;
	height: auto;
	fill: var(--stkc-accent);
	transition: color 0.25s ease, fill 0.25s ease;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */

.stkc-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stkc-accent-ink);
	background-color: var(--stkc-accent-12);
	border: 1px solid var(--stkc-accent-24);
	border-radius: 999px;
	padding: 3px 12px;
	margin-bottom: 12px;
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.stkc-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--stkc-primary);
	line-height: 1.3;
	margin: 0 0 10px;
	transition: color 0.2s ease;
}
.stkc-title span {
	color: var(--stkc-accent);
}

/* ── Subtitle ─────────────────────────────────────────────────────────────── */

.stkc-subtitle {
	font-size: 14px;
	font-weight: 600;
	color: var(--stkc-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
}

/* ── Description ──────────────────────────────────────────────────────────── */

.stkc-desc {
	font-size: 15px;
	line-height: 1.7;
	color: var(--stkc-secondary);
	margin: 0 0 20px;
}

/* ── Button ───────────────────────────────────────────────────────────────── */

.stkc-btn {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 24px;
	border-radius: 8px;
	min-height: 44px;
	padding-block: 0;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}
a.stkc-btn { display: inline-flex; }
.stkc-btn-outline {
	color: var(--stkc-accent);
	border: 2px solid var(--stkc-accent);
	background: transparent;
}
.stkc-btn-outline:hover {
	background-color: var(--stkc-accent);
	color: var(--stkc-surface);
}
.stkc-btn-fill {
	color: var(--stkc-surface);
	background-color: var(--stkc-accent);
	border: 2px solid var(--stkc-accent);
}
.stkc-btn-fill:hover {
	background-color: transparent;
	color: var(--stkc-accent);
}
.stkc-btn-ghost {
	color: var(--stkc-primary);
	background: transparent;
	border: none;
	padding-left: 0;
	padding-right: 0;
}
.stkc-btn-ghost:hover {
	color: var(--stkc-accent);
}
.stkc-btn-text {
	color: var(--stkc-accent);
	background: transparent;
	border: none;
	padding-left: 0;
	padding-right: 0;
	font-size: 14px;
}
.stkc-btn-text::after {
	content: ' →';
	transition: margin-left 0.2s ease;
}
.stkc-btn-text:hover::after {
	margin-left: 4px;
}

/* =============================================================================
   LAYOUT STYLES
   ============================================================================= */

/* ── Style 1: Standard (Image Top) ───────────────────────────────────────── */
/* Default base styles above cover this fully */

/* ── Style 2: Horizontal (Image Left) ────────────────────────────────────── */

.stkc-horizontal {
	display: flex;
	align-items: stretch;
	overflow: hidden;
}
.stkc-horizontal .stkc-media {
	flex: 0 0 40%;
	max-width: 40%;
}
.stkc-horizontal .stkc-img-wrap,
.stkc-horizontal .stkc-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.stkc-horizontal .stkc-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

/* ── Style 3: Horizontal Reverse (Image Right) ────────────────────────────── */

.stkc-horizontal-rev {
	display: flex;
	flex-direction: row-reverse;
	align-items: stretch;
	overflow: hidden;
}
.stkc-horizontal-rev .stkc-media {
	flex: 0 0 40%;
	max-width: 40%;
}
.stkc-horizontal-rev .stkc-img-wrap,
.stkc-horizontal-rev .stkc-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.stkc-horizontal-rev .stkc-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

/* ── Style 4: Overlay (Content Over Image) ───────────────────────────────── */

.stkc-overlay {
	min-height: 320px;
}
.stkc-overlay .stkc-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.stkc-overlay .stkc-img-wrap,
.stkc-overlay .stkc-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.stkc-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient( to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100% );
}
.stkc-overlay .stkc-body {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding: 28px;
}
.stkc-overlay .stkc-title,
.stkc-overlay .stkc-subtitle,
.stkc-overlay .stkc-desc,
.stkc-overlay .stkc-badge {
	color: var(--stkc-surface);
}
.stkc-overlay .stkc-badge {
	background-color: rgba( 255, 255, 255, 0.15 );
	border-color: rgba( 255, 255, 255, 0.3 );
}
.stkc-overlay .stkc-desc {
	color: rgba( 255, 255, 255, 0.85 );
}

/* Flex column so body stays at bottom */
.stkc-overlay {
	display: flex;
	flex-direction: column;
}

/* ── Style 5: Flip Card ───────────────────────────────────────────────────── */

.stkc-flip {
	perspective: 1000px;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}
.stkc-flip:hover {
	transform: none;
	box-shadow: none;
}
.stkc-flip-inner {
	position: relative;
	width: 100%;
	min-height: 360px;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier( 0.4, 0.2, 0.2, 1 );
}
.stkc-flip:hover .stkc-flip-inner {
	transform: rotateY(180deg);
}
.stkc-flip-front,
.stkc-flip-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: var(--stkc-radius);
	overflow: hidden;
	background-color: var(--stkc-surface);
	box-shadow: var(--stkc-shadow);
}
.stkc-flip-front {
	display: flex;
	flex-direction: column;
}
.stkc-flip-front .stkc-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	align-items: flex-start;
}
.stkc-flip-front .stkc-desc { margin-bottom: 12px; }
.stkc-flip-hint {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--stkc-accent-ink);
}
.stkc-flip-hint::after { content: '\21BB'; font-size: 14px; }
.stkc-flip:hover .stkc-flip-hint { opacity: 0; }
.stkc-flip-back {
	transform: rotateY(180deg);
	background-color: var(--stkc-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.stkc-flip-back .stkc-title,
.stkc-flip-back .stkc-desc {
	color: var(--stkc-surface);
}
.stkc-flip-back .stkc-btn-outline {
	color: var(--stkc-surface);
	border-color: var(--stkc-surface);
}
.stkc-flip-back .stkc-btn-outline:hover {
	background-color: var(--stkc-surface);
	color: var(--stkc-accent);
}
.stkc-flip-front .stkc-img-wrap img {
	aspect-ratio: 16 / 9;
}

/* ── Style 6: Icon Tile (icon left, no image) ─────────────────────────────── */

.stkc-icon-only .stkc-body {
	display: grid;
	grid-template-columns: 56px 1fr;
	grid-template-rows: auto;
	column-gap: 18px;
	padding: 28px;
	align-items: start;
}
.stkc-icon-only .stkc-icon-wrap {
	grid-column: 1;
	grid-row: 1 / span 20;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background-color: var(--stkc-accent-12);
	border: 1px solid var(--stkc-accent-24);
	margin: 0;
}
.stkc-icon-only .stkc-icon-wrap i,
.stkc-icon-only .stkc-icon-wrap svg {
	font-size: 24px;
	width: 24px;
}
.stkc-icon-only .stkc-badge,
.stkc-icon-only .stkc-title,
.stkc-icon-only .stkc-subtitle,
.stkc-icon-only .stkc-desc,
.stkc-icon-only .stkc-btn { grid-column: 2; justify-self: start; }

/* ── Style 7: Numbered Card ───────────────────────────────────────────────── */

.stkc-numbered .stkc-body {
	position: relative;
	z-index: 1;
	padding-top: 20px;
}
/* The numeral is a real design element, not a watermark printed over the copy. */
.stkc-numbered .stkc-number {
	display: inline-flex;
	align-items: baseline;
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--stkc-accent);
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--stkc-accent-24);
	user-select: none;
}

/* ── Style 8: Text First (image below the copy) ───────────────────────────── */

.stkc-textfirst {
	display: flex;
	flex-direction: column-reverse;
	background: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
}
.stkc-textfirst:hover { box-shadow: none; transform: none; }
.stkc-textfirst .stkc-body { padding: 0 0 18px; }
.stkc-textfirst .stkc-media {
	border-radius: var(--stkc-radius);
	overflow: hidden;
	box-shadow: var(--stkc-shadow);
}
.stkc-textfirst .stkc-title { font-size: 22px; letter-spacing: -.01em; }
.stkc-textfirst .stkc-desc { margin-bottom: 14px; }
.stkc-textfirst:hover .stkc-media { box-shadow: var(--stkc-shadow-lg); }

/* ── Style 9: Dark Card ───────────────────────────────────────────────────── */

.stkc-dark {
	background-color: var(--stkc-primary);
}
.stkc-dark .stkc-title {
	color: var(--stkc-surface);
}
.stkc-dark .stkc-subtitle {
	color: rgba( 255, 255, 255, 0.5 );
}
.stkc-dark .stkc-desc {
	color: rgba( 255, 255, 255, 0.7 );
}
.stkc-dark .stkc-badge {
	background-color: rgba( 255, 255, 255, 0.1 );
	border-color: rgba( 255, 255, 255, 0.2 );
	color: var(--stkc-surface);
}
.stkc-dark .stkc-icon-wrap,
.stkc-dark .stkc-icon-wrap i,
.stkc-dark .stkc-icon-wrap svg {
	color: var(--stkc-surface);
	fill: var(--stkc-surface);
}

/* ── Style 10: Caption Rail ───────────────────────────────────────────────
   Wide image, then a body split into a narrow meta rail (badge up top, the
   action down beside the copy) and a text column, divided by a hairline.
   ------------------------------------------------------------------------ */

.stkc-outline {
	background-color: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	container-type: inline-size;
}
.stkc-outline .stkc-img-wrap img {
	aspect-ratio: 21 / 9;
}
.stkc-outline .stkc-body {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	column-gap: 26px;
	row-gap: 0;
	align-items: start;
	padding: 22px 24px 24px;
}
.stkc-outline .stkc-body::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / -1;
	justify-self: end;
	align-self: stretch;
	width: 1px;
	margin-right: -13px;
	background: var(--stkc-border);
}
.stkc-outline .stkc-badge {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	margin: 0;
}
.stkc-outline .stkc-btn {
	grid-column: 1;
	grid-row: 3;
	justify-self: start;
	align-self: start;
	margin-top: 4px;
}
.stkc-outline .stkc-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	letter-spacing: -0.015em;
}
.stkc-outline .stkc-subtitle {
	grid-column: 2;
	grid-row: 2;
	margin: 6px 0 0;
}
.stkc-outline .stkc-desc {
	grid-column: 2;
	grid-row: 3;
	margin: 10px 0 0;
}
.stkc-outline .stkc-icon-wrap {
	grid-column: 1;
	grid-row: 2;
	margin: 12px 0 0;
}

@container (max-width: 380px) {
	.stkc-outline .stkc-body { grid-template-columns: minmax(0, 1fr); }
	.stkc-outline .stkc-body::before { display: none; }
	.stkc-outline .stkc-badge,
	.stkc-outline .stkc-title,
	.stkc-outline .stkc-subtitle,
	.stkc-outline .stkc-desc,
	.stkc-outline .stkc-icon-wrap,
	.stkc-outline .stkc-btn { grid-column: 1; grid-row: auto; }
	.stkc-outline .stkc-btn { margin-top: 16px; }
}

/* ── Style 11: Reveal (Hover Slide Up) ───────────────────────────────────── */

.stkc-reveal {
	overflow: hidden;
}
.stkc-reveal .stkc-media {
	position: relative;
}
.stkc-reveal .stkc-img-wrap img {
	aspect-ratio: 4 / 5;
}
/* Rest state shows the whole heading block; only the extra copy is folded away,
   so nothing is ever clipped mid-word. */
.stkc-reveal .stkc-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background: linear-gradient( to top, rgba(9,12,20,0.92) 0%, rgba(9,12,20,0.72) 55%, rgba(9,12,20,0) 100% );
	padding: 24px;
	transform: none;
}
.stkc-reveal .stkc-desc,
.stkc-reveal .stkc-btn {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-bottom: 0;
	transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin .3s ease;
}
.stkc-reveal:hover .stkc-desc,
.stkc-reveal:focus-within .stkc-desc {
	max-height: 12em;
	opacity: 1;
	margin-bottom: 16px;
}
.stkc-reveal:hover .stkc-btn,
.stkc-reveal:focus-within .stkc-btn {
	max-height: 60px;
	opacity: 1;
}
.stkc-reveal .stkc-title,
.stkc-reveal .stkc-subtitle,
.stkc-reveal .stkc-desc {
	color: var(--stkc-surface);
}
.stkc-reveal .stkc-badge {
	background-color: rgba( 255, 255, 255, 0.15 );
	border-color: rgba( 255, 255, 255, 0.3 );
	color: var(--stkc-surface);
}
.stkc-reveal .stkc-title {
	font-size: 18px;
	margin-bottom: 0;
	transition: margin-bottom 0.3s ease;
}
.stkc-reveal:hover .stkc-title {
	margin-bottom: 10px;
}
/* No-image fallback: the panel still needs a surface to sit on. */
.stkc-reveal.stkc-no-media {
	min-height: 320px;
	background: linear-gradient(160deg, #1f2937 0%, #0b1220 100%);
}

/* ── Style 12: Profile Card (Avatar) ─────────────────────────────────────── */

.stkc-profile {
	text-align: center;
}
.stkc-profile .stkc-body {
	padding: 28px 24px 32px;
}
.stkc-profile .stkc-img-wrap {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto;
	border: 3px solid var(--stkc-border);
}
.stkc-profile .stkc-img-wrap img {
	width: 96px;
	height: 96px;
	object-fit: cover;
}
.stkc-profile .stkc-media {
	padding-top: 28px;
	background: transparent;
}
.stkc-profile .stkc-card:hover .stkc-img-wrap img {
	transform: none;
}

/* ── Style 13: Feature Card (Icon Circle) ────────────────────────────────── */

.stkc-feature {
	text-align: center;
}
.stkc-feature .stkc-body {
	padding: 36px 28px;
}
.stkc-feature .stkc-icon-wrap {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient( 135deg, var(--stkc-accent-24) 0%, var(--stkc-accent-08) 100% );
	border: 1px solid var(--stkc-accent-24);
	margin: 0 auto 20px;
	transition: background 0.3s ease;
}
.stkc-feature .stkc-icon-wrap i,
.stkc-feature .stkc-icon-wrap svg {
	font-size: 32px;
	width: 32px;
}
.stkc-feature:hover .stkc-icon-wrap {
	background: var(--stkc-accent);
	border-color: var(--stkc-accent);
}
.stkc-feature:hover .stkc-icon-wrap i,
.stkc-feature:hover .stkc-icon-wrap svg {
	color: var(--stkc-surface);
	fill: var(--stkc-surface);
}

/* ── Style 14: Glassmorphism ──────────────────────────────────────────────── */

/* The card carries its own tinted backdrop so the frosted panel is visible on
   any page background, including plain white. */
.stkc-glass {
	position: relative;
	background:
		radial-gradient( 120% 90% at 12% 0%, color-mix(in srgb, var(--stkc-accent) 85%, #12b4d6) 0%, transparent 60% ),
		linear-gradient( 145deg, var(--stkc-accent) 0%, color-mix(in srgb, var(--stkc-accent) 45%, #0b1020) 100% );
	border: 1px solid rgba( 255, 255, 255, 0.22 );
	border-radius: 18px;
	padding: 14px;
	box-shadow: var(--stkc-shadow-lg);
}
.stkc-glass .stkc-media {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 14px;
}
.stkc-glass .stkc-body {
	position: relative;
	z-index: 1;
	background: rgba( 255, 255, 255, 0.16 );
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba( 255, 255, 255, 0.28 );
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.stkc-glass:hover .stkc-body {
	background: rgba( 255, 255, 255, 0.24 );
}
.stkc-glass .stkc-title {
	color: var(--stkc-surface);
}
.stkc-glass .stkc-desc,
.stkc-glass .stkc-subtitle {
	color: rgba( 255, 255, 255, 0.88 );
}
.stkc-glass .stkc-btn-outline,
.stkc-glass .stkc-btn-text,
.stkc-glass .stkc-btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.stkc-glass .stkc-btn-outline:hover { background: #fff; color: var(--stkc-accent-ink); }
.stkc-glass .stkc-badge {
	background-color: rgba( 255, 255, 255, 0.2 );
	border-color: rgba( 255, 255, 255, 0.4 );
	color: var(--stkc-surface);
}

/* ── Style 15: Side Accent Bar ────────────────────────────────────────────── */

.stkc-side-accent {
	border-left: 4px solid var(--stkc-accent);
	border-radius: 0 12px 12px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLES 16 – 35
═══════════════════════════════════════════════════════════════════════════ */

/* ── 16 — Neumorphic ───────────────────────────────────────────────────── */
.stkc-neumorphic {
	background: #e8ecf1;
	border: 1px solid #d0d5de;
	border-radius: 20px;
	box-shadow: 6px 6px 14px rgba(163,177,198,.6), -6px -6px 14px rgba(255,255,255,.9);
	transition: box-shadow .3s, transform .3s;
}
.stkc-neumorphic:hover {
	box-shadow: 2px 2px 6px rgba(163,177,198,.6), -2px -2px 6px rgba(255,255,255,.9);
	transform: scale(.98);
}
.stkc-neumorphic .stkc-badge {
	background: #e8ecf1;
	color: var(--stkc-accent-ink);
	box-shadow: inset 2px 2px 5px rgba(163,177,198,.5), inset -2px -2px 5px rgba(255,255,255,.8);
	border: none;
}

/* ── 17 — Gradient Border ─────────────────────────────────────────────── */
.stkc-gradient-border {
	border: 2px solid transparent;
	border-radius: 14px;
	background: linear-gradient(#ffffff,#ffffff) padding-box,
	            linear-gradient(135deg, #f093fb, #f5576c, #4facfe) border-box;
	transition: transform .3s ease, box-shadow .3s ease;
}
.stkc-gradient-border:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

/* ── 18 — Neon ────────────────────────────────────────────────────────── */
.stkc-neon {
	background: #0a0a1a;
	border: 1px solid #00e5ff;
	border-radius: 10px;
	color: #e0e0e0;
	box-shadow: 0 0 10px rgba(0,229,255,.15), inset 0 0 20px rgba(0,229,255,.03);
	transition: box-shadow .3s, border-color .3s;
}
.stkc-neon:hover { border-color: #00e5ff; box-shadow: 0 0 20px rgba(0,229,255,.4), inset 0 0 30px rgba(0,229,255,.08); }
.stkc-neon .stkc-title { color: #00e5ff; text-shadow: 0 0 8px rgba(0,229,255,.6); }
.stkc-neon .stkc-badge { background: rgba(0,229,255,.12); color: #00e5ff; border: 1px solid rgba(0,229,255,.35); }

/* ── 19 — Polaroid ────────────────────────────────────────────────────── */
.stkc-polaroid {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 2px;
	padding: 10px 10px 28px;
	box-shadow: 0 3px 10px rgba(0,0,0,.12);
	transform: rotate(-1.5deg);
	transition: transform .3s, box-shadow .3s;
}
.stkc-polaroid:hover { transform: rotate(0) scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.stkc-polaroid .stkc-media { margin: 0; }
.stkc-polaroid .stkc-img-wrap img { border-radius: 2px; }
.stkc-polaroid .stkc-body { padding: 10px 4px 0; text-align: center; }

/* ── 20 — Metro Tile ──────────────────────────────────────────────────── */
.stkc-metro {
	position: relative;
	min-height: 240px;
	border: 2px solid rgba(255,255,255,.2);
	border-radius: 4px;
	overflow: hidden;
}
.stkc-metro .stkc-media { position: absolute; inset: 0; }
.stkc-metro .stkc-img-wrap { height: 100%; }
.stkc-metro .stkc-img-wrap img { height: 100%; object-fit: cover; border-radius: 0; filter: brightness(.55); transition: filter .3s; }
.stkc-metro:hover .stkc-img-wrap img { filter: brightness(.35); }
.stkc-metro .stkc-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; height: 100%; min-height: 240px; padding: 20px; color: #fff; }
.stkc-metro .stkc-title { color: #fff; }
.stkc-metro .stkc-subtitle { color: rgba(255,255,255,.78); }
.stkc-metro .stkc-desc { color: rgba(255,255,255,.86); }
.stkc-metro .stkc-badge { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.stkc-metro .stkc-btn-outline,
.stkc-metro .stkc-btn-text,
.stkc-metro .stkc-btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.stkc-metro .stkc-btn-outline:hover { background: #fff; color: #111; }
.stkc-metro.stkc-no-media { background: linear-gradient(150deg, #1f2937, #0b1220); }

/* ── 21 — Testimonial ─────────────────────────────────────────────────── */
.stkc-testimonial {
	background: #fff;
	border: 1px solid #e8eaf6;
	border-radius: 12px;
	padding: 28px;
	position: relative;
}
.stkc-testimonial::before {
	content: '\201C';
	position: absolute;
	top: 12px; left: 20px;
	font-size: 5rem;
	line-height: 1;
	color: #e8eaf6;
	font-family: Georgia, serif;
	pointer-events: none;
}
.stkc-testimonial .stkc-body { position: relative; z-index: 1; padding: 0; }
.stkc-testimonial .stkc-desc { font-style: italic; font-size: .95rem; line-height: 1.7; margin-bottom: 16px; }
.stkc-testimonial .stkc-badge { background: none; border: none; padding: 0; font-weight: 700; color: #333; font-size: .85rem; }
.stkc-testimonial:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* ── 22 — Event (Date Badge) ──────────────────────────────────────────── */
.stkc-event {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: var(--stkc-radius);
	display: flex;
	flex-direction: row;
	align-items: stretch;
	overflow: hidden;
}
.stkc-event .stkc-media { display: none; }
.stkc-event .stkc-body { padding: 20px 22px; flex: 1; }
/* Real date block, driven by the Event Day / Event Month controls. */
.stkc-event .stkc-date {
	flex: 0 0 84px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: var(--stkc-accent);
	color: #fff;
	padding: 16px 8px;
}
.stkc-event .stkc-date-day   { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stkc-event .stkc-date-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.stkc-event:hover { box-shadow: var(--stkc-shadow-lg); }

/* ── 23 — Pricing Card ────────────────────────────────────────────────── */
.stkc-pricing {
	background: #fff;
	border: 2px solid #e0e6f4;
	border-radius: 16px;
	text-align: center;
}
.stkc-pricing .stkc-body { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; }
.stkc-pricing .stkc-title { font-size: 2rem; font-weight: 800; color: var(--stkc-accent-ink); margin: 8px 0; }
.stkc-pricing .stkc-subtitle { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stkc-muted); margin-bottom: 12px; }
.stkc-pricing .stkc-desc { text-align: left; width: 100%; font-size: .88rem; line-height: 1.8; margin-bottom: 20px; }
.stkc-pricing .stkc-badge { background: var(--stkc-accent-12); color: var(--stkc-accent-ink); border-color: var(--stkc-accent-24); font-size: .72rem; font-weight: 700; }
.stkc-pricing:hover { border-color: var(--stkc-accent); box-shadow: var(--stkc-shadow-lg); }

/* ── 24 — Magazine ────────────────────────────────────────────────────── */
.stkc-magazine {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	overflow: hidden;
}
.stkc-magazine .stkc-img-wrap img { height: 260px; border-radius: 0; transition: transform .4s; }
.stkc-magazine:hover .stkc-img-wrap img { transform: scale(1.05); }
.stkc-magazine .stkc-body { border-top: 3px solid #e53935; padding: 16px; }
.stkc-magazine .stkc-badge { background: #e53935; color: #fff; border-radius: 0; border: none; font-size: .68rem; }
.stkc-magazine .stkc-title { font-size: 1.1rem; }

/* ── 25 — Split Panel ─────────────────────────────────────────────────── */
.stkc-split {
	background: #fff;
	border: 1px solid #e0e6f0;
	border-radius: 12px;
	overflow: hidden;
}
.stkc-split .stkc-img-wrap img { border-radius: 0; aspect-ratio: 2 / 1; }
.stkc-split .stkc-body { border-top: 4px solid var(--stkc-accent); background: color-mix(in srgb, var(--stkc-accent) 5%, #fff); }
.stkc-split .stkc-title { color: var(--stkc-accent-ink); }
.stkc-split .stkc-badge { background: var(--stkc-accent-12); color: var(--stkc-accent-ink); border-color: var(--stkc-accent-24); }
.stkc-split:hover { box-shadow: var(--stkc-shadow-lg); }

/* ── 26 — Bold Header Band ────────────────────────────────────────────── */
/* Inverted band across the top of the body, not just a heavy border. */
.stkc-bold {
	background: var(--stkc-surface);
	border: 2px solid #111;
	border-radius: 10px;
	overflow: hidden;
}
.stkc-bold .stkc-body { padding: 0 0 22px; }
/* The title itself is the inverted band, so the header reads the same whether
   or not a badge is set. */
.stkc-bold .stkc-title {
	display: block;
	background: #111;
	color: #fff;
	margin: 0 0 18px;
	padding: 16px 22px;
	font-size: 22px;
	letter-spacing: -.015em;
}
.stkc-bold .stkc-badge {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	background: var(--stkc-accent); color: #fff;
	border: none; margin: 0;
}
.stkc-bold .stkc-subtitle,
.stkc-bold .stkc-desc,
.stkc-bold .stkc-btn { margin-left: 22px; margin-right: 22px; }
.stkc-bold.stkc-no-media .stkc-body { padding-top: 0; }
.stkc-bold:hover { border-color: var(--stkc-accent); box-shadow: var(--stkc-shadow-lg); }

/* ── 27 — Ribbon ──────────────────────────────────────────────────────── */
.stkc-ribbon {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: var(--stkc-radius);
	overflow: hidden;
	position: relative;
}
/* Dedicated ribbon element driven by the Ribbon Text control, so the corner
   flag is always present rather than depending on an optional badge. */
.stkc-ribbon .stkc-ribbon-tag {
	position: absolute;
	top: 18px; right: -34px;
	width: 140px; padding: 6px 0;
	background: var(--stkc-accent); color: #fff;
	font-size: 11px; font-weight: 700;
	text-align: center; text-transform: uppercase;
	transform: rotate(45deg);
	letter-spacing: .08em;
	box-shadow: 0 2px 8px rgba(16,24,40,.25);
	z-index: 3;
}
.stkc-ribbon:hover { box-shadow: var(--stkc-shadow-lg); }

/* ── 28 — Notched Corner ──────────────────────────────────────────────── */
.stkc-notched {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: 0;
	--stkc-notch: 34px;
	clip-path: polygon(
		0 0,
		calc(100% - var(--stkc-notch)) 0,
		100% var(--stkc-notch),
		100% 100%,
		var(--stkc-notch) 100%,
		0 calc(100% - var(--stkc-notch))
	);
}
.stkc-notched .stkc-body { padding: 24px 34px 34px 24px; }
.stkc-notched .stkc-title::before {
	content: '';
	display: block;
	width: 36px; height: 3px;
	background: var(--stkc-accent);
	margin-bottom: 12px;
}
.stkc-notched:hover { background: var(--stkc-surface-2); }

/* ── 29 — Inset Panel (body overlaps the media) ───────────────────────── */
.stkc-inset {
	background: transparent;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
}
.stkc-inset:hover { box-shadow: none; }
.stkc-inset .stkc-media {
	border-radius: var(--stkc-radius);
	overflow: hidden;
}
.stkc-inset .stkc-img-wrap img { aspect-ratio: 3 / 2; }
.stkc-inset .stkc-body {
	position: relative;
	z-index: 1;
	margin: -56px 20px 0;
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: var(--stkc-radius);
	box-shadow: var(--stkc-shadow);
	padding: 22px;
}
.stkc-inset.stkc-no-media .stkc-body { margin: 0; }
.stkc-inset:hover .stkc-body { box-shadow: var(--stkc-shadow-lg); }

/* ── 30 — Step Card (numbered rail) ───────────────────────────────────── */
.stkc-step {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: var(--stkc-radius);
}
.stkc-step .stkc-body {
	display: grid;
	grid-template-columns: 48px 1fr;
	column-gap: 18px;
	padding: 24px;
}
.stkc-step .stkc-number {
	grid-column: 1;
	grid-row: 1 / span 20;
	position: relative;
	width: 48px; height: 48px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--stkc-accent);
	color: #fff;
	font-size: 17px; font-weight: 800;
	margin: 0;
	border: 0; padding: 0;
}
/* Connector rail down from the step marker */
.stkc-step .stkc-number::after {
	content: '';
	position: absolute;
	top: 100%; left: 50%;
	width: 2px; height: 9999px;
	max-height: calc(100% + 220px);
	transform: translateX(-50%);
	background: var(--stkc-accent-24);
}
.stkc-step .stkc-badge,
.stkc-step .stkc-title,
.stkc-step .stkc-subtitle,
.stkc-step .stkc-desc,
.stkc-step .stkc-btn { grid-column: 2; justify-self: start; }
.stkc-step:hover { border-color: var(--stkc-accent-24); box-shadow: var(--stkc-shadow-lg); }

/* ── 31 — Compact Row (thumbnail left, single line copy) ──────────────── */
.stkc-compact {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
}
.stkc-compact .stkc-media {
	flex: 0 0 88px;
	width: 88px;
	border-radius: 8px;
	overflow: hidden;
}
.stkc-compact .stkc-img-wrap img { aspect-ratio: 1 / 1; }
.stkc-compact .stkc-body { padding: 0; flex: 1; min-width: 0; }
.stkc-compact .stkc-badge { font-size: 10px; padding: 2px 8px; margin-bottom: 6px; }
.stkc-compact .stkc-title { font-size: 16px; margin-bottom: 4px; }
.stkc-compact .stkc-desc {
	font-size: 13px; line-height: 1.5; margin-bottom: 6px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stkc-compact .stkc-btn { min-height: 0; padding: 0; font-size: 13px; background: none; border: 0; color: var(--stkc-accent-ink); }
.stkc-compact:hover { box-shadow: var(--stkc-shadow); transform: none; border-color: var(--stkc-accent-24); }

/* ── 32 — Cover + Avatar ──────────────────────────────────────────────── */
/* Coloured cover strip with the photo lifted over it — a profile layout that
   reads differently from the plain centred avatar of Style 12. */
.stkc-cover-avatar {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: 16px;
	text-align: center;
	overflow: hidden;
}
.stkc-cover-avatar::before {
	content: '';
	display: block;
	height: 88px;
	background: linear-gradient(120deg, var(--stkc-accent) 0%, color-mix(in srgb, var(--stkc-accent) 55%, #0ea5e9) 100%);
}
.stkc-cover-avatar .stkc-media {
	width: 92px; height: 92px;
	margin: -46px auto 0;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--stkc-surface);
	box-shadow: var(--stkc-shadow);
	position: relative;
	z-index: 1;
}
.stkc-cover-avatar .stkc-img-wrap img { aspect-ratio: 1 / 1; height: 100%; }
.stkc-cover-avatar .stkc-body { display: flex; flex-direction: column; align-items: center; padding: 16px 24px 26px; }
.stkc-cover-avatar .stkc-subtitle { color: var(--stkc-accent-ink); }
.stkc-cover-avatar .stkc-icon-wrap {
	width: 56px; height: 56px; border-radius: 50%;
	margin: 0 auto 12px;
	background: var(--stkc-accent-12); border: 1px solid var(--stkc-accent-24);
}
.stkc-cover-avatar:hover { box-shadow: var(--stkc-shadow-lg); }

/* ── 33 — Colored Bar ─────────────────────────────────────────────────── */
.stkc-colored-bar {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-top: 0;
	border-radius: 10px;
	overflow: hidden;
}
.stkc-colored-bar::before {
	content: '';
	display: block;
	height: 10px;
	background: linear-gradient(90deg, var(--stkc-accent) 0%, color-mix(in srgb, var(--stkc-accent) 55%, #06b6d4) 100%);
}
.stkc-colored-bar .stkc-badge {
	background: var(--stkc-accent); color: #fff; border: none; border-radius: 6px;
	font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
	margin-bottom: 8px;
}
.stkc-colored-bar .stkc-title::after {
	content: '';
	display: block;
	width: 28px; height: 3px;
	background: var(--stkc-accent);
	margin-top: 12px;
}
.stkc-colored-bar:hover { box-shadow: var(--stkc-shadow-lg); }

/* ── 34 — Blueprint ───────────────────────────────────────────────────── */
.stkc-blueprint {
	background: #0d2137;
	border: 1.5px solid #2a7fff;
	border-radius: 6px;
	color: #a8d4ff;
	box-shadow: 0 0 0 3px rgba(42,127,255,.12), inset 0 0 30px rgba(0,50,100,.3);
}
.stkc-blueprint .stkc-title { color: #62b5ff; }
.stkc-blueprint .stkc-badge { background: rgba(42,127,255,.2); color: #62b5ff; border: 1px solid rgba(42,127,255,.4); }
.stkc-blueprint .stkc-desc { color: #7bafd4; }
.stkc-blueprint:hover { border-color: #62b5ff; box-shadow: 0 0 0 3px rgba(42,127,255,.25), 0 8px 24px rgba(0,0,0,.4); }

/* ── 35 — Retro ───────────────────────────────────────────────────────── */
.stkc-retro {
	background: #fff;
	border: 2px solid #222;
	border-radius: 0;
	box-shadow: 4px 4px 0 #222;
	transition: box-shadow .2s, transform .2s;
}
.stkc-retro:hover { box-shadow: 7px 7px 0 #222; transform: translate(-2px,-2px); }
.stkc-retro .stkc-badge { background: #ffe066; color: #222; border: 1.5px solid #222; border-radius: 0; font-weight: 700; }
.stkc-retro .stkc-img-wrap img { border-bottom: 2px solid #222; border-radius: 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
	.stkc-card { --stkc-media-ratio: 16 / 9; }
	.stkc-horizontal .stkc-media,
	.stkc-horizontal-rev .stkc-media { flex-basis: 42%; max-width: 42%; }
}

@media ( max-width: 767px ) {
	.stkc-card { --stkc-media-ratio: 3 / 2; }
	.stkc-body { padding: 20px; }

	/* Styles 2 and 3 stay horizontal on phones — collapsing them into a stack
	   would make them indistinguishable from Style 1. They become a compact
	   media row instead, and keep their left/right side. */
	.stkc-horizontal,
	.stkc-horizontal-rev { align-items: stretch; }
	.stkc-horizontal .stkc-media,
	.stkc-horizontal-rev .stkc-media {
		flex: 0 0 116px;
		max-width: 116px;
		min-width: 116px;
	}
	.stkc-horizontal .stkc-body,
	.stkc-horizontal-rev .stkc-body { padding: 16px; }
	.stkc-horizontal .stkc-title,
	.stkc-horizontal-rev .stkc-title { font-size: 17px; }
	.stkc-horizontal .stkc-desc,
	.stkc-horizontal-rev .stkc-desc { font-size: 14px; margin-bottom: 12px; }

	.stkc-overlay { min-height: 260px; }
	.stkc-overlay .stkc-body { padding: 20px; }

	/* Touch has no hover: the reveal panel opens by default. */
	.stkc-reveal .stkc-desc { max-height: 12em; opacity: 1; margin-bottom: 16px; }
	.stkc-reveal .stkc-btn  { max-height: 60px; opacity: 1; }

	/* Flip has no hover either, so both faces stack instead. */
	.stkc-flip { perspective: none; }
	.stkc-flip-inner { min-height: 0; transform: none !important; }
	.stkc-flip-front,
	.stkc-flip-back {
		position: relative;
		inset: auto;
		backface-visibility: visible;
		-webkit-backface-visibility: visible;
		transform: none;
	}
	.stkc-flip-back { margin-top: 12px; }
	.stkc-flip-hint { display: none; }

	.stkc-icon-only .stkc-body,
	.stkc-step .stkc-body { grid-template-columns: 44px 1fr; column-gap: 14px; }
	.stkc-icon-only .stkc-icon-wrap { width: 44px; height: 44px; border-radius: 12px; }
	.stkc-step .stkc-number { width: 44px; height: 44px; font-size: 15px; }

	.stkc-icon-left .stkc-body { grid-template-columns: 60px 1fr; }
	.stkc-icon-left .stkc-icon-wrap { width: 60px; }

	.stkc-inset .stkc-body { margin: -40px 12px 0; padding: 18px; }
	.stkc-glass { padding: 10px; }
	.stkc-padded { padding: 8px; }
	.stkc-padded .stkc-body { padding: 18px; }

	.stkc-compact .stkc-media { flex-basis: 72px; width: 72px; }
	.stkc-stacked { margin-right: 10px; margin-bottom: 10px; }
	.stkc-stacked::before { transform: translate(5px, 5px); }
	.stkc-stacked::after  { transform: translate(10px, 10px); }

	.stkc-bold .stkc-title,
	.stkc-bold .stkc-subtitle,
	.stkc-bold .stkc-desc,
	.stkc-bold .stkc-btn { margin-left: 18px; margin-right: 18px; }
	.stkc-bold .stkc-badge { padding: 9px 18px; }
	.stkc-notched { --stkc-notch: 24px; }
	.stkc-event .stkc-date { flex-basis: 68px; }
	.stkc-event .stkc-date-day { font-size: 24px; }
	.stkc-ribbon .stkc-ribbon-tag { top: 14px; right: -38px; }
}

@media ( max-width: 480px ) {
	/* Below this the horizontal thumbnail stops being useful. */
	.stkc-horizontal,
	.stkc-horizontal-rev { flex-direction: column; }
	.stkc-horizontal-rev { flex-direction: column; }
	.stkc-horizontal .stkc-media,
	.stkc-horizontal-rev .stkc-media {
		flex: 0 0 auto;
		max-width: 100%;
		min-width: 0;
	}
	.stkc-horizontal .stkc-img-wrap img,
	.stkc-horizontal-rev .stkc-img-wrap img { height: auto; aspect-ratio: 2 / 1; }
	/* Keep them told apart: 2 keeps a top rule, 3 keeps a bottom rule. */
	.stkc-horizontal .stkc-body { border-top: 3px solid var(--stkc-accent); }
	.stkc-horizontal-rev { flex-direction: column-reverse; }
	.stkc-horizontal-rev .stkc-body { border-bottom: 3px solid var(--stkc-accent); }
	.stkc-compact { flex-direction: row; }
	.stkc-btn { width: 100%; justify-content: center; }
	.stkc-compact .stkc-btn { width: auto; }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media ( prefers-reduced-motion: reduce ) {
	.stkc-card,
	.stkc-card *,
	.stkc-card *::before,
	.stkc-card *::after {
		animation: none !important;
		transition: none !important;
	}
	.stkc-card:hover { transform: none !important; }
}


/* ── 36 — Diagonal Split ───────────────────────────────────────────────── */
.stkc-diagonal {
	position: relative;
	background: #fff;
	border: 1px solid #e6ebf3;
	border-radius: 14px;
	overflow: hidden;
}
.stkc-diagonal::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--stkc-accent-12) 0%, var(--stkc-accent-12) 50%, transparent 50.1%);
	pointer-events: none;
}
.stkc-diagonal .stkc-media { position: relative; z-index: 0; }
.stkc-diagonal .stkc-body { position: relative; z-index: 1; }
.stkc-diagonal:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-3px); }

/* ── 37 — Icon Left, Content Right ────────────────────────────────────── */
/* Horizontal icon-led layout: the icon owns a tinted rail down the left. */
.stkc-icon-left {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-radius: var(--stkc-radius);
	display: flex;
	overflow: hidden;
}
.stkc-icon-left .stkc-body {
	display: grid;
	grid-template-columns: 72px 1fr;
	column-gap: 0;
	padding: 0;
	width: 100%;
}
.stkc-icon-left .stkc-icon-wrap {
	grid-column: 1;
	grid-row: 1 / span 20;
	width: 72px;
	height: auto;
	min-height: 100%;
	margin: 0;
	border-radius: 0;
	border-right: 1px solid var(--stkc-border);
	background: linear-gradient(180deg, var(--stkc-accent-12), var(--stkc-accent-08));
	align-self: stretch;
}
.stkc-icon-left .stkc-icon-wrap i,
.stkc-icon-left .stkc-icon-wrap svg { font-size: 26px; width: 26px; }
.stkc-icon-left .stkc-badge,
.stkc-icon-left .stkc-title,
.stkc-icon-left .stkc-subtitle,
.stkc-icon-left .stkc-desc,
.stkc-icon-left .stkc-btn { grid-column: 2; justify-self: start; margin-left: 22px; margin-right: 22px; }
.stkc-icon-left .stkc-badge { margin-top: 22px; }
.stkc-icon-left .stkc-btn { margin-bottom: 22px; }
.stkc-icon-left .stkc-title:first-child { margin-top: 22px; }
.stkc-icon-left:hover { border-color: var(--stkc-accent-24); box-shadow: var(--stkc-shadow-lg); }

/* ── 38 — Stacked Layers ──────────────────────────────────────────────── */
/* The layers sit behind a card that has no background of its own, so they are
   actually visible; the body carries the white surface instead. */
.stkc-stacked {
	position: relative;
	background: transparent;
	border: 0;
	border-radius: var(--stkc-radius);
	overflow: visible;
	box-shadow: none;
	margin-right: 14px;
	margin-bottom: 14px;
	isolation: isolate;
}
.stkc-stacked::before,
.stkc-stacked::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--stkc-radius);
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	z-index: -1;
	transition: transform .3s ease;
}
.stkc-stacked::before { transform: translate(7px, 7px);   opacity: .9; }
.stkc-stacked::after  { transform: translate(14px, 14px); opacity: .65; }
.stkc-stacked .stkc-media {
	border-radius: var(--stkc-radius) var(--stkc-radius) 0 0;
	overflow: hidden;
}
.stkc-stacked .stkc-body {
	background: var(--stkc-surface);
	border: 1px solid var(--stkc-border);
	border-top: 0;
	border-radius: 0 0 var(--stkc-radius) var(--stkc-radius);
	box-shadow: var(--stkc-shadow);
}
.stkc-stacked.stkc-no-media .stkc-body { border-top: 1px solid var(--stkc-border); border-radius: var(--stkc-radius); }
.stkc-stacked:hover { transform: none; }
.stkc-stacked:hover::before { transform: translate(10px, 10px); }
.stkc-stacked:hover::after  { transform: translate(20px, 20px); }

/* ── 39 — Padded Frame ────────────────────────────────────────────────── */
/* The card is the frame: media and copy both sit inside a generous inset. */
.stkc-padded {
	background: var(--stkc-surface-2);
	border: 1px solid var(--stkc-border);
	border-radius: 18px;
	padding: 12px;
}
.stkc-padded .stkc-media {
	border-radius: 12px;
	overflow: hidden;
}
.stkc-padded .stkc-img-wrap img { aspect-ratio: 3 / 2; }
.stkc-padded .stkc-body {
	background: var(--stkc-surface);
	border-radius: 12px;
	margin-top: 12px;
	padding: 20px;
}
.stkc-padded.stkc-no-media .stkc-body { margin-top: 0; }
.stkc-padded:hover { border-color: var(--stkc-accent-24); }

/* ── 40 — Terminal ────────────────────────────────────────────────────── */
.stkc-terminal {
	background: #0c0f14;
	border: 1px solid #1a1f29;
	border-radius: 10px;
	color: #e6f6e6;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.stkc-terminal .stkc-media { display: none; }
.stkc-terminal .stkc-body { padding-top: 16px; }
.stkc-terminal::before {
	content: '';
	display: block;
	height: 26px;
	background: #11151d;
	border-bottom: 1px solid #1f2632;
	border-radius: 10px 10px 0 0;
	box-shadow: inset 0 -1px 0 rgba(255,255,255,.02);
}
.stkc-terminal::after {
	content: '';
	position: absolute;
	top: 8px; left: 12px;
	width: 36px; height: 10px;
	background:
		radial-gradient(circle at 5px 5px, #ff5f56 4px, transparent 5px) 0 0 / 12px 12px no-repeat,
		radial-gradient(circle at 5px 5px, #ffbd2e 4px, transparent 5px) 12px 0 / 12px 12px no-repeat,
		radial-gradient(circle at 5px 5px, #27c93f 4px, transparent 5px) 24px 0 / 12px 12px no-repeat;
	opacity: .9;
}
.stkc-terminal .stkc-title { color: #8df58d; text-shadow: 0 0 8px rgba(141,245,141,.25); }
.stkc-terminal .stkc-badge { background: rgba(141,245,141,.15); color: #8df58d; border: 1px solid rgba(141,245,141,.35); }
.stkc-terminal .stkc-desc { color: #b6d8b6; }
.stkc-terminal .stkc-btn { background: #0c0f14; color: #8df58d; border: 1px solid #24303f; }
.stkc-terminal .stkc-btn:hover { background: #121823; border-color: #2d3a4d; }
