/* ==========================================================================
   Lời chúc 20/11 – Pháp ngữ Bonjour
   ========================================================================== */

.lc2011 {
	--lc-cream: #e6f0fb;
	--lc-rose: #d0202e;
	--lc-rose-d: #a8141f;
	--lc-wine: #0e3a75;
	--lc-ink: #22304a;
	--lc-muted: #66718a;
	--lc-gold: #d0202e;
	--lc-leaf: #1659aa;
	--lc-line: rgba(14, 58, 117, .14);
	--lc-shadow: 0 10px 30px rgba(14, 45, 95, .14), 0 2px 6px rgba(14, 45, 95, .08);
	--lc-script: "Dancing Script", "Segoe Script", cursive;
	--lc-sans: var(--bj-font-main, "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	font-family: var(--lc-sans);
	color: var(--lc-ink);
	line-height: 1.6;
	background: #fff;
}
.lc2011 *, .lc2011 *::before, .lc2011 *::after { box-sizing: border-box; }
.lc2011 [hidden] { display: none !important; }
.lc2011 button { text-transform: none; letter-spacing: normal; min-height: 0; line-height: inherit; }
.lc2011 .lc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lc2011 .lc-ic { width: 1.15em; height: 1.15em; flex: none; display: block; }

body.lc2011-canvas { margin: 0; background: #fff; }
body.lc2011-canvas .lc2011 { min-height: 100vh; display: flex; flex-direction: column; }
body.lc2011-canvas .lc2011 > .lc-foot { margin-top: auto; }
/* Trong flex column, margin:auto làm khối co theo nội dung -> cố định bề rộng 100% */
body.lc2011-canvas .lc2011 > .lc-layout, body.lc2011-canvas .lc2011 > .lc-wall--bottom, body.lc2011-canvas .lc2011 > .lc-all, body.lc2011-canvas .lc2011 > .lc-foot { width: 100%; }

.lc2011 .lc-petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.lc2011 > *:not(.lc-petals):not(.lc-modal):not(.lc-music):not(.lc-defs) { position: relative; z-index: 2; }

/* -------------------------------------------------------------- Buttons */
.lc2011 .lc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	font: 600 .95rem/1 var(--lc-sans);
	padding: .85em 1.4em; border-radius: 999px;
	border: 2px solid transparent; cursor: pointer; text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.lc2011 .lc-btn--primary {
	color: #fff; background: linear-gradient(135deg, #e0333f, var(--lc-rose-d));
	box-shadow: 0 8px 20px rgba(168, 20, 31, .35);
	background-size: 200% 100%;
}
.lc2011 .lc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168, 20, 31, .42); color: #fff; }
.lc2011 .lc-btn--ghost { color: var(--lc-rose-d); background: rgba(255, 255, 255, .7); border-color: rgba(168, 20, 31, .35); }
.lc2011 .lc-btn--ghost:hover { background: #fff; color: var(--lc-rose-d); }
.lc2011 .lc-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.lc2011 button:focus-visible, .lc2011 a:focus-visible, .lc2011 input:focus-visible, .lc2011 textarea:focus-visible {
	outline: 3px solid rgba(22, 89, 170, .45); outline-offset: 2px;
}
.lc2011 .lc-link {
	background: none; border: 0; padding: 0; cursor: pointer;
	font: 600 .78rem var(--lc-sans); color: var(--lc-rose-d); text-decoration: underline; text-underline-offset: 3px;
}
.lc2011 .lc-toggle {
	background: none; border: 0; padding: 0; cursor: pointer;
	font: 500 .9rem var(--lc-sans); color: var(--lc-rose-d); text-decoration: underline; text-underline-offset: 3px;
}

/* -------------------------------------------------------------- Hero */
.lc2011 .lc-hero { position: relative; text-align: center; padding: 18px 4px 0; }
.lc2011 .lc-hero > :not(.lc-deco) { animation: lc-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.lc2011 .lc-hero > .lc-logo     { animation-delay: .05s; }
.lc2011 .lc-hero > .lc-date     { animation-delay: .2s; }
.lc2011 .lc-hero > .lc-title    { animation-delay: .32s; }
.lc2011 .lc-hero > .lc-subtitle { animation-delay: .5s; }
.lc2011 .lc-hero > .lc-intro    { animation-delay: .65s; }
.lc2011 .lc-hero > .lc-count    { animation-delay: .8s; }
/* 20 · 11: hiệu ứng xuất hiện không dùng filter (để giữ viền chữ) */
.lc2011 .lc-hero > .lc-date { animation-name: lc-rise-nf; }
@keyframes lc-rise-nf { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lc-rise { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.lc2011 .lc-logo { display: inline-block; margin: 0 0 4px; line-height: 0; }
.lc2011 .lc-logo img { height: clamp(52px, 7vw, 70px); width: auto; max-width: 80vw; display: block; }
.lc2011 .lc-logo-text { font-weight: 700; color: var(--lc-wine); line-height: 1.4; }
.lc2011 .lc-date { display: block; margin: 0 0 2px; font-weight: 800; letter-spacing: .18em; color: #1659aa; font-size: clamp(2.3rem, 5.6vw, 3.2rem); line-height: 1.1; }
.lc2011 .lc-hero > .lc-title {
	margin: .12em 0 0; font-family: var(--lc-sans); font-weight: 800;
	font-size: clamp(1.3rem, 6.4vw, 2.7rem); line-height: 1.1; letter-spacing: .05em; color: #d0202e;
	white-space: nowrap; /* "MERCI, MON PROF !" luôn nằm trên một dòng */
	display: inline-block; position: relative; overflow: hidden; vertical-align: top; padding: 0 .1em;
	animation: lc-rise .9s cubic-bezier(.2, .8, .2, 1) .32s both;
}
.lc2011 .lc-hero > .lc-title + * { margin-top: .35em; }
/* Vệt sáng lướt qua chữ (nền trắng nên vệt chỉ lộ trên chữ đỏ) */
.lc2011 .lc-hero > .lc-title::after {
	content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 28%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 100%);
	transform: translateX(-130%) skewX(-18deg);
	animation: lc-glare 3.4s ease-in-out 1.4s infinite;
	pointer-events: none; will-change: transform;
}
@keyframes lc-glare { 0% { transform: translateX(-130%) skewX(-18deg); } 45%, 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes lc-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.lc2011 .lc-subtitle { margin: .35em 0 0; font-family: var(--lc-sans); font-weight: 700; font-size: clamp(1.02rem, 2.4vw, 1.25rem); line-height: 1.35; letter-spacing: .01em; color: #111; }
.lc2011 .lc-intro { max-width: 540px; margin: .7em auto .8em; color: #4a5568; font-size: .92rem; font-weight: 500; line-height: 1.7; }
.lc2011 .lc-count {
	display: inline-block; margin: 0; padding: 3px 14px; border-radius: 999px;
	color: var(--lc-muted); font-size: .9rem; font-weight: 500; background: rgba(247, 250, 255, .92);
}
.lc2011 .lc-count strong { color: var(--lc-rose-d); }

.lc2011 .lc-deco { position: absolute; display: block; pointer-events: none; opacity: .9; }
.lc2011 .lc-deco svg { width: 100%; height: 100%; display: block; }
/* Hoa lá trang trí đứng yên (chỉ xuất hiện một lần) – chuyển động liên tục chỉ dành cho chữ & cánh hoa. */
.lc2011 .lc-deco--f1 { width: 40px; height: 40px; top: 15%; left: 2%; color: #7fa7de; transform: rotate(-12deg); }
.lc2011 .lc-deco--f2 { width: 32px; height: 32px; top: 6%; right: 6%; color: #e86a72; transform: rotate(20deg); }
.lc2011 .lc-deco--l1, .lc2011 .lc-deco--l2 { display: none; }
.lc2011 .lc-hero > .lc-deco { animation: lc-fade 1.2s ease .8s both; }

/* -------------------------------------------------------------- Bố cục: tường hai bên, nội dung giữa */
.lc2011 .lc-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr);
	gap: 36px; max-width: 1580px; margin: 0 auto; padding: 0 24px;
}
.lc2011 .lc-main { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lc2011 .lc-center { position: relative; width: 100%; max-width: 520px; margin: 16px 0 36px; }

/* -------------------------------------------------------------- Bức tường tri ân */
.lc2011 .lc-wall { position: relative; min-width: 0; }
.lc2011 .lc-wall--side { display: flex; flex-direction: column; gap: 16px; padding: 30px 0 36px; }
.lc2011 .lc-wall--bottom { max-width: 1420px; margin: 0 auto; padding: 0 24px 36px; display: flex; flex-direction: column; gap: 18px; }
.lc2011 .lc-wrow {
	display: flex; justify-content: space-evenly; align-items: flex-start; gap: 40px;
	animation: var(--sway, lc-sway-a) var(--sd, 9s) ease-in-out var(--sdl, 0s) infinite alternate;
}
.lc2011 .lc-wrow:hover { animation-play-state: paused; }
.lc2011 .lc-wish {
	display: block; flex: none; width: var(--w, 260px); max-width: 100%;
	margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
	font-family: var(--lc-script); font-weight: 600; font-size: 15.5px; line-height: 1.32;
	letter-spacing: normal; word-spacing: normal; text-transform: none; font-style: normal;
	color: #1659aa;
	text-align: justify; text-align-last: justify; hyphens: auto; -webkit-hyphens: auto;
	opacity: 0;
	animation: lc-wish-in 1.1s ease var(--in, 0s) forwards;
	transition: color .3s ease;
}
.lc2011 .lc-wall--side .lc-wish {
	animation: lc-wish-in 1.1s ease var(--in, 0s) forwards, var(--sway, lc-sway-a) var(--sd, 9s) ease-in-out var(--sdl, 0s) infinite alternate;
}
.lc2011 .lc-wall--side .lc-wish:hover { animation-play-state: running, paused; }
.lc2011 .lc-wish:hover, .lc2011 .lc-wish:focus-visible { color: var(--lc-rose-d); outline: none; }
.lc2011 .lc-wish.is-one { text-align: center; text-align-last: center; }
.lc2011 .lc-wish-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc2011 .lc-wish-by {
	display: block; margin-top: 3px; text-align: right; text-align-last: right;
	font: 600 .6rem/1.3 var(--lc-sans); letter-spacing: .05em; color: var(--lc-muted);
}
.lc2011 .lc-wish.is-mine { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1.5px rgba(27, 95, 168, .35); width: auto; max-width: min(100%, 360px); }
.lc2011 .lc-wish-tag { display: block; margin-bottom: 3px; text-align: left; text-align-last: left; font: 600 .62rem/1.3 var(--lc-sans); letter-spacing: .04em; color: #1b5fa8; }
.lc2011 > .lc-wish-probe {
	display: block; position: absolute !important; left: -9999px; top: 0; z-index: -1 !important;
	visibility: hidden; pointer-events: none; padding: 0; margin: 0;
	font-family: var(--lc-script); font-weight: 600; font-size: 15.5px; line-height: 1.32;
	white-space: normal; hyphens: auto; -webkit-hyphens: auto;
	letter-spacing: normal; word-spacing: normal; text-transform: none; font-style: normal;
}
.lc2011 .lc-wish.is-off, .lc2011 .lc-wrow.is-off { animation-play-state: paused; }
@keyframes lc-wish-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lc-sway-a { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes lc-sway-b { from { transform: translate(7px, -2px); } to { transform: translate(-7px, 2px); } }

.lc2011 .lc-e-back, .lc2011 .lc-e-pocket { position: absolute; left: 0; width: 100%; display: block; overflow: visible; }
.lc2011 .lc-e-back { top: 0; height: 100%; }
.lc2011 .lc-e-pocket { bottom: 0; height: 47.5%; z-index: 2; }
.lc2011 .lc-e-lid   { fill: var(--e-lid); }
.lc2011 .lc-e-inner { fill: var(--e-in); }
.lc2011 .lc-e-front { fill: var(--e-front); }
.lc2011 .lc-e-flap  { fill: var(--e-flap); }
.lc2011 .lc-e-seam  { fill: none; stroke: rgba(70, 40, 20, .16); stroke-width: 1; }
.lc2011 .lc-e-edge  { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.lc2011 .lc-e-grain { opacity: .35; mix-blend-mode: multiply; }

.lc2011 .lc-e-paper {
	position: absolute; left: 9%; right: 9%; top: 6%; height: 84%; z-index: 1;
	background:
		repeating-linear-gradient(180deg, transparent 0 17px, rgba(22, 89, 170, .1) 17px 18px) 0 34px / 100% 100% no-repeat,
		linear-gradient(180deg, #ffffff, #f6f8fc);
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(60, 30, 20, .15), 0 0 0 1px rgba(60, 30, 20, .05);
	padding: 7% 8%;
	transition: transform .55s cubic-bezier(.2, .8, .2, 1);
	overflow: hidden;
}

.lc2011 .lc-e-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.lc2011 .lc-e-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lc2011 .lc-e-name { font-weight: 700; font-size: .74rem; color: var(--lc-wine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc2011 .lc-e-to { font-size: .64rem; color: var(--lc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc2011 .lc-e-msg {
	margin: 0; font-size: .7rem; line-height: 1.5; color: var(--lc-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.lc2011 .lc-e-paper .lc-av { width: 24px; height: 24px; font-size: .68rem; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, .15); }

.lc2011 .lc-e-seal {
	position: absolute; left: 50%; top: 77%; width: 18%; aspect-ratio: 1; z-index: 3;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 2px 2px rgba(60, 10, 20, .35));
}
.lc2011 .lc-e-seal svg { width: 100%; height: 100%; display: block; }
.lc2011 .lc-e-seal::after { /* tia sáng lướt qua sáp */
	content: ""; position: absolute; inset: 8%; border-radius: 50%;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%; background-position: 40% 0;
}

/* -------------------------------------------------------------- Avatar */
.lc2011 .lc-av {
	flex: none; width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: .9rem; color: #fff; overflow: hidden;
	box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .12);
}
.lc2011 .lc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc2011 .lc-av--anon { background: #eef4fc; }
.lc2011 .lc-av--anon svg { width: 62%; height: 62%; }

/* -------------------------------------------------------------- Form */
.lc2011 .lc-letter {
	position: relative;
	background: radial-gradient(circle at 100% 0, rgba(214, 228, 248, .6), transparent 40%), #ffffff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(14, 45, 95, .16), 0 2px 8px rgba(14, 45, 95, .06);
	padding: 22px 22px 16px;
	transform-origin: 50% 90%;
	transition: transform .8s cubic-bezier(.6, .05, .4, 1), opacity .7s ease;
	animation: lc-rise .9s cubic-bezier(.2, .8, .2, 1) .9s both;
}
.lc2011 .lc-letter::before { /* băng dính */
	content: ""; position: absolute; top: -11px; left: 50%; width: 110px; height: 24px; transform: translateX(-50%) rotate(-2deg);
	background: rgba(170, 200, 240, .75); border-radius: 3px; z-index: 2;
}
.lc2011 .lc-letter::after { content: ""; position: absolute; inset: 8px; border-radius: 11px; pointer-events: none; border: 1.5px dashed rgba(22, 89, 170, .22); }
.lc2011 .lc-form { position: relative; z-index: 1; margin: 0; }
.lc2011 .lc-h2 {
	font-family: var(--lc-script); font-weight: 700; color: var(--lc-wine);
	font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; margin: 0;
}
.lc2011 .lc-form .lc-h2 { text-align: center; margin-bottom: 12px; }
.lc2011 .lc-form-title { margin: 2px 0 14px; text-align: center; font: 800 1rem/1.5 var(--lc-sans); color: var(--lc-wine); text-wrap: balance; }
.lc2011 .lc-heart { display: inline-block; width: 1.1em; height: 1.1em; fill: #1b5fa8; vertical-align: -.2em; margin-left: 4px; animation: lc-beat 1.8s ease-in-out 1.6s 3; }
@keyframes lc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } 60% { transform: scale(1); } }

/* Gợi ý câu tiếng Pháp cùng ý */
.lc2011 .lc-fr { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f3f7ff; border: 1px solid rgba(27, 95, 168, .18); animation: lc-fade .3s ease both; }
.lc2011 .lc-fr-title { margin: 0 0 6px; font-size: .76rem; font-weight: 600; color: #1b4f9c; }
.lc2011 .lc-fr-list { display: flex; flex-direction: column; gap: 6px; }
.lc2011 .lc-fr-item {
	display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; cursor: pointer;
	border: 1px solid rgba(27, 95, 168, .2); background: #fff;
	font: 500 .82rem/1.4 var(--lc-sans); color: var(--lc-ink);
	transition: border-color .2s, background .2s;
}
.lc2011 .lc-fr-item:hover { border-color: #1b5fa8; background: #f8fbff; }
.lc2011 .lc-fr-item small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 400; color: var(--lc-muted); }
.lc2011 .lc-link--muted { margin-left: 10px; color: var(--lc-muted); font-weight: 500; }
.lc2011 .lc-fr-note { margin: 6px 0 0; font-size: .72rem; line-height: 1.45; color: var(--lc-muted); }
.lc2011 .is-over { color: #b42318; font-weight: 600; }

.lc2011 .lc-row { display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; align-items: center; }
.lc2011 .lc-input {
	width: 100%; margin: 0; min-width: 0;
	font: 400 .92rem/1.45 var(--lc-sans); color: var(--lc-ink);
	background: #fff; border: 1.5px solid var(--lc-line); border-radius: 10px;
	padding: 9px 12px; box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.lc2011 .lc-input::placeholder { color: #98a2b3; }
.lc2011 .lc-input:focus { outline: none; border-color: var(--lc-rose); box-shadow: 0 0 0 4px rgba(22, 89, 170, .14); }
.lc2011 .lc-input.has-error { border-color: #d63b3b; animation: lc-shake .4s; }
@keyframes lc-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lc2011 textarea.lc-input { resize: vertical; min-height: 84px; display: block; }

.lc2011 .lc-avatar {
	position: relative; width: 44px; height: 44px; border-radius: 50%;
	background: #eef4fc; border: 1.5px dashed rgba(22, 89, 170, .5);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	transition: border-color .2s, transform .2s;
}
.lc2011 .lc-avatar:hover { border-color: var(--lc-rose); transform: scale(1.06); }
.lc2011 .lc-avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lc2011 .lc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lc2011 .lc-avatar-ph { display: flex; color: var(--lc-rose); pointer-events: none; font-size: 1.15rem; }
.lc2011 .lc-avatar-x {
	position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
	background: var(--lc-rose-d); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
}

.lc2011 .lc-msg-wrap { margin-top: 8px; }
.lc2011 .lc-msg-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; font-size: .74rem; color: var(--lc-muted); }

/* Chọn cách hiển thị: kèm tên & ảnh / ẩn danh */
.lc2011 .lc-show { border: 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.lc2011 .lc-show legend { padding: 0; margin: 0 0 6px; font-size: .8rem; font-weight: 600; color: var(--lc-wine); }
.lc2011 .lc-show-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc2011 .lc-pill { position: relative; display: block; margin: 0; cursor: pointer; }
.lc2011 .lc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.lc2011 .lc-pill span {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	padding: 8px 10px; border-radius: 10px; text-align: center;
	font-size: .84rem; font-weight: 600; color: var(--lc-muted);
	background: #fff; border: 1.5px solid var(--lc-line);
	transition: all .2s ease;
}
.lc2011 .lc-pill span::before {
	content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
	border: 1.5px solid currentColor; transition: all .2s ease;
}
.lc2011 .lc-pill:hover span { border-color: rgba(22, 89, 170, .5); }
.lc2011 .lc-pill input:checked + span { color: var(--lc-rose-d); border-color: var(--lc-rose); background: #eef4fc; box-shadow: 0 0 0 3px rgba(22, 89, 170, .12); }
.lc2011 .lc-pill input:checked + span::before { background: var(--lc-rose); border-color: var(--lc-rose); box-shadow: inset 0 0 0 3px #fff; }
.lc2011 .lc-pill input:focus-visible + span { outline: 3px solid rgba(22, 89, 170, .45); outline-offset: 2px; }
.lc2011 .lc-show.has-error .lc-pill span { border-color: #d63b3b; animation: lc-shake .4s; }
.lc2011 .lc-show-note { margin: 6px 0 0; font-size: .76rem; line-height: 1.45; color: var(--lc-muted); }
.lc2011 .lc-show-note strong { color: var(--lc-ink); }
.lc2011 .lc-form.is-anon .lc-upload { opacity: .4; pointer-events: none; }
/* Thêm ảnh: một dòng nhỏ gọn */
.lc2011 .lc-upload {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	margin: 8px 0 0; padding: 2px 0; cursor: pointer;
	color: var(--lc-rose-d); font-size: .8rem; font-weight: 600;
}
.lc2011 .lc-upload:hover { text-decoration: underline; }
.lc2011 .lc-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lc2011 .lc-upload-ph { display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.lc2011 .lc-upload-ph .lc-ic { font-size: 1.05rem; }
.lc2011 .lc-upload img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.15); }
.lc2011 .lc-upload-x { position: relative; z-index: 2; }
.lc2011 .lc-form.is-anon .lc-upload { display: none; }

/* Form hiện từng bước */
.lc2011 .lc-step { margin-top: 8px; animation: lc-step-in .35s ease both; }
.lc2011 .lc-step > .lc-input { display: block; }
@keyframes lc-step-in { from { opacity: 0; transform: translateY(-6px); } }
.lc2011 .lc-name-row { display: flex; gap: 8px; align-items: stretch; }
.lc2011 .lc-name-row .lc-input { flex: 1; }
.lc2011 .lc-name-row .lc-input:disabled { background: #f1f5fb; color: var(--lc-muted); }
.lc2011 .lc-anon { position: relative; display: flex; margin: 0; cursor: pointer; flex: none; }
.lc2011 .lc-anon input { position: absolute; opacity: 0; pointer-events: none; }
.lc2011 .lc-anon span {
	display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 10px;
	border: 1.5px solid var(--lc-line); background: #fff; color: var(--lc-muted);
	font-size: .84rem; font-weight: 600; transition: all .2s ease;
}
.lc2011 .lc-anon span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; flex: none; }
.lc2011 .lc-anon input:checked + span { color: var(--lc-rose-d); border-color: var(--lc-rose); background: #eef4fc; }
.lc2011 .lc-anon input:checked + span::before { background: var(--lc-rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--lc-rose); }
.lc2011 .lc-anon input:focus-visible + span { outline: 3px solid rgba(22, 89, 170, .35); outline-offset: 2px; }
.lc2011 .lc-ast { margin-left: 2px; color: var(--lc-rose); text-decoration: none; font-weight: 700; vertical-align: super; font-size: .75em; }
.lc2011 .lc-msg-bar:has([data-lc-suggest][hidden]):has([data-lc-restore][hidden]):has([data-lc-words-wrap][hidden]) { display: none; }

/* Dải lời chúc chạy ngang (mobile/tablet) */
.lc2011 .lc-marquee { display: none; }
.lc2011 .lc-mq-row { display: flex; gap: 28px; width: max-content; padding: 6px 0; animation: lc-mq var(--mqd, 40s) linear infinite; }
.lc2011 .lc-mq-row.is-rev { animation-direction: reverse; }
.lc2011 .lc-mq-row.is-off { animation-play-state: paused; }
.lc2011 .lc-mq-row:hover { animation-play-state: paused; }
.lc2011 .lc-mq-row .lc-wish { flex: none; }
@keyframes lc-mq { to { transform: translateX(-50%); } }

/* Ghi chú (*) ở chân trang */
.lc2011 .lc-foot .lc-notes { display: block; max-width: none; margin: 18px 0 0; padding: 0 0 0 clamp(16px, 6vw, 96px); background: none; border-radius: 0; text-align: left; font-size: .62rem; line-height: 1.4; color: var(--lc-muted); opacity: .85; }

.lc2011 .lc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lc2011 .lc-error { color: #b42318; background: #fff0ee; border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; font-size: .85rem; }
.lc2011 .lc-submit { width: 100%; margin-top: 12px; font-size: 1rem; position: relative; overflow: hidden; }
.lc2011 .lc-submit::after { /* ánh sáng lướt nút */
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: translateX(-150%);
	animation: lc-sweep 4.5s ease-in-out 2s 3;
}
@keyframes lc-sweep { 0%, 70% { transform: translateX(-150%); } 100% { transform: translateX(330%); } }
.lc2011 .lc-note { text-align: center; font-size: .74rem; line-height: 1.5; color: var(--lc-muted); margin: 6px 0 0; }

/* -------------------------------------------------------------- Phong bì gửi đi */
.lc2011 .lc-send {
	--e-front: #dbe6f5; --e-flap: #c8d8ef; --e-in: #8fa9cf; --e-lid: #e8eff9;
	position: absolute; left: 50%; top: 120px; width: 240px; aspect-ratio: 1 / 1;
	transform: translate(-50%, 0) scale(.85); opacity: 0; pointer-events: none; z-index: 3;
	perspective: 900px;
	filter: drop-shadow(0 18px 22px rgba(14, 45, 95, .25));
	transition: transform 1.2s cubic-bezier(.55, 0, .45, 1), opacity .5s ease;
}
.lc2011 .lc-send .lc-e-paper { top: 12%; height: 42%; padding: 6% 8%; z-index: 2; transition: transform .7s ease .15s; }
.lc2011 .lc-send .lc-e-pocket { z-index: 3; }
.lc2011 .lc-s-flap {
	position: absolute; left: 0; width: 100%; bottom: 52.5%; height: 29%; z-index: 1;
	transform-origin: 50% 100%; transform: rotateX(0deg);
	transition: transform .6s cubic-bezier(.5, 0, .3, 1);
}
.lc2011 .lc-s-flap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lc2011 .lc-send .lc-e-seal { top: 81%; transform: translate(-50%, -50%) scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .55s; z-index: 5; }

.lc2011 .lc-center.st-fold .lc-letter { transform: scale(.3) translateY(30%); opacity: 0; }
.lc2011 .lc-center.st-fold .lc-send { opacity: 1; transform: translate(-50%, 0) scale(1); }
.lc2011 .lc-center.st-close .lc-send .lc-e-paper { transform: translateY(100%); }
.lc2011 .lc-center.st-close .lc-s-flap { transform: rotateX(180deg); z-index: 4; }
.lc2011 .lc-center.st-close .lc-send .lc-e-seal { transform: translate(-50%, -50%) scale(1); }
.lc2011 .lc-center.st-fly .lc-send {
	transform: translate(40vw, -90vh) rotate(18deg) scale(.3); opacity: 0;
	transition: transform 1.4s cubic-bezier(.5, 0, .6, 1), opacity 1.4s ease .2s;
}

/* Cánh hoa bung ra khi gửi thành công */
.lc2011 .lc-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 6; }
.lc2011 .lc-burst i {
	position: absolute; left: 0; top: 0; width: var(--s); height: calc(var(--s) * 1.3);
	background: var(--c); border-radius: 50% 50% 50% 0 / 60% 60% 40% 40%;
	animation: lc-burst 1.6s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes lc-burst {
	0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; }
	100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--rot)); opacity: 0; }
}

/* Cảm ơn */
.lc2011 .lc-thanks {
	text-align: center; background: rgba(255, 253, 250, .96);
	border-radius: 16px; padding: 30px 22px; box-shadow: var(--lc-shadow);
	animation: lc-rise .8s ease both;
}
.lc2011 .lc-thanks:focus { outline: none; }
.lc2011 .lc-thanks p { max-width: 420px; margin: 6px auto 16px; font-size: .92rem; }
.lc2011 .lc-thanks-icon {
	width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
	color: #fff; background: linear-gradient(135deg, #e0333f, var(--lc-rose-d));
	box-shadow: 0 8px 20px rgba(168, 20, 31, .3);
	animation: lc-bob 2.4s ease-in-out infinite;
}
@keyframes lc-bob { 50% { transform: translateY(-6px) rotate(-6deg); } }

/* -------------------------------------------------------------- Tất cả lời chúc */
.lc2011 .lc-all { max-width: 1120px; margin: 0 auto; padding: 8px 16px 32px; }
.lc2011 .lc-all-head { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 14px; }
.lc2011 .lc-list { columns: 3 250px; column-gap: 14px; }
.lc2011 .lc-note-card {
	break-inside: avoid; margin: 0 0 14px; padding: 14px;
	background: repeating-linear-gradient(180deg, transparent 0 23px, rgba(22, 89, 170, .1) 23px 24px), #ffffff;
	border-radius: 10px; box-shadow: var(--lc-shadow);
	animation: lc-rise .6s ease both;
}
.lc2011 .lc-note-card .lc-e-head { margin-bottom: 6px; }
.lc2011 .lc-note-card .lc-e-name { font-size: .88rem; }
.lc2011 .lc-note-card .lc-e-to { font-size: .75rem; }
.lc2011 .lc-note-card p { margin: 0; font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
.lc2011 .lc-note-card .lc-note-orig { margin-top: 6px; font-size: .78rem; font-style: italic; color: var(--lc-muted); }

.lc2011 .lc-foot { text-align: center; padding: 0 16px 32px; font-size: .88rem; color: var(--lc-muted); }
.lc2011 .lc-foot p { display: inline-block; margin: 0; padding: 3px 14px; border-radius: 999px; background: rgba(247, 250, 255, .92); }
.lc2011 .lc-foot a { color: var(--lc-rose-d); }

/* -------------------------------------------------------------- Nút nhạc */
.lc2011 .lc-music {
	position: fixed; right: 16px; bottom: 16px; z-index: 9990;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer;
	font: 600 .8rem var(--lc-sans); color: var(--lc-rose-d);
	background: #fff;
	box-shadow: 0 8px 24px rgba(14, 45, 95, .2);
	animation: lc-rise .8s ease 1.4s both;
}
.lc2011 .lc-music::before { /* vòng sóng mời bấm */
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(22, 89, 170, .5);
	animation: lc-ping 2.2s ease-out 2s 4;
}
.lc2011 .lc-music.is-on::before { display: none; }
@keyframes lc-ping { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35, 1.6); opacity: 0; } }
.lc2011 .lc-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.lc2011 .lc-eq i { width: 3px; background: currentColor; border-radius: 2px; animation: lc-eq .9s ease-in-out infinite; }
.lc2011 .lc-eq i:nth-child(2) { animation-delay: .2s; }
.lc2011 .lc-eq i:nth-child(3) { animation-delay: .4s; }
.lc2011 .lc-music.is-on .lc-eq { display: inline-flex; }
.lc2011 .lc-music.is-on > .lc-ic { display: none; }
@keyframes lc-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* -------------------------------------------------------------- Modal */
.lc2011 .lc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lc2011 .lc-modal-bg { position: absolute; inset: 0; background: rgba(10, 30, 60, .45); backdrop-filter: blur(3px); animation: lc-fade .3s ease both; }
@keyframes lc-fade { from { opacity: 0; } }
.lc2011 .lc-modal-card {
	position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(22, 89, 170, .1) 31px 32px), #ffffff;
	border-radius: 16px; padding: 32px 26px 24px; box-shadow: 0 30px 80px rgba(10, 25, 55, .35);
	animation: lc-open .5s cubic-bezier(.2, .9, .3, 1.15) both;
}
.lc2011 .lc-modal-card:focus { outline: none; }
@keyframes lc-open { from { opacity: 0; transform: translateY(60px) scale(.6) rotate(-4deg); } }
.lc2011 .lc-modal-x {
	position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
	border: 0; background: #eef4fc; color: var(--lc-rose-d); font-size: 1.05rem; cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
}
.lc2011 .lc-modal-head { display: flex; align-items: center; gap: 14px; }
.lc2011 .lc-modal-av .lc-av { width: 56px; height: 56px; font-size: 1.3rem; }
.lc2011 .lc-modal-name { margin: 0; font-weight: 700; font-size: 1.08rem; color: var(--lc-wine); }
.lc2011 .lc-modal-meta { margin: 0; font-size: .85rem; color: var(--lc-muted); }
.lc2011 .lc-modal-to { margin: 16px 0 4px; font-family: var(--lc-script); font-size: 1.55rem; color: var(--lc-rose); line-height: 1.2; }
.lc2011 .lc-modal-msg { margin: 0; font-size: 1.02rem; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.lc2011 .lc-modal-orig { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(22, 89, 170, .25); font-size: .85rem; line-height: 1.6; color: var(--lc-muted); font-style: italic; white-space: pre-line; }
.lc2011 .lc-modal-date { margin: 14px 0 0; text-align: right; font-size: .8rem; color: var(--lc-muted); }

/* -------------------------------------------------------------- Chặn style nút của theme (Hello Elementor...)
   Theme đặt cho mọi <button>: white-space:nowrap, viền/chữ hồng, nền #c36 khi hover/focus, transition all.
   Các khối lời chúc và nút nhỏ là <button> nên phải đặt lại rõ ràng (độ ưu tiên cao hơn selector của theme). */
.lc2011 button, .lc2011 button[type="button"], .lc2011 button[type="submit"] {
	white-space: normal; -webkit-user-select: auto; user-select: auto;
	transition-property: transform, box-shadow, background-color, color, border-color, opacity;
}
.lc2011 button.lc-wish, .lc2011 button.lc-wish:hover, .lc2011 button.lc-wish:focus,
.lc2011 button.lc-link, .lc2011 button.lc-link:hover, .lc2011 button.lc-link:focus,
.lc2011 button.lc-toggle, .lc2011 button.lc-toggle:hover, .lc2011 button.lc-toggle:focus {
	background: none; background-color: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none;
}
.lc2011 button.lc-wish:hover, .lc2011 button.lc-wish:focus { color: var(--lc-rose-d); }
.lc2011 button.lc-link:hover, .lc2011 button.lc-link:focus, .lc2011 button.lc-toggle:hover, .lc2011 button.lc-toggle:focus { color: var(--lc-rose-d); }
.lc2011 button.lc-link--muted:hover, .lc2011 button.lc-link--muted:focus { color: var(--lc-ink); }
.lc2011 button.lc-wish.is-mine, .lc2011 button.lc-wish.is-mine:hover, .lc2011 button.lc-wish.is-mine:focus {
	padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1.5px rgba(27, 95, 168, .35);
}
.lc2011 button.lc-fr-item, .lc2011 button.lc-fr-item:focus { background: #fff; color: var(--lc-ink); border: 1px solid rgba(27, 95, 168, .2); border-radius: 8px; padding: 7px 10px; }
.lc2011 button.lc-fr-item:hover { background: #f8fbff; color: var(--lc-ink); border-color: #1b5fa8; }
.lc2011 button.lc-modal-x, .lc2011 button.lc-modal-x:hover, .lc2011 button.lc-modal-x:focus { background: #eef4fc; color: var(--lc-rose-d); border: 0; padding: 0; border-radius: 50%; }
.lc2011 button.lc-avatar-x, .lc2011 button.lc-avatar-x:hover, .lc2011 button.lc-avatar-x:focus { background: var(--lc-rose-d); color: #fff; border: 0; padding: 0; border-radius: 50%; }
.lc2011 button.lc-music, .lc2011 button.lc-music:hover, .lc2011 button.lc-music:focus { background: #fff; color: var(--lc-rose-d); border: 0; border-radius: 999px; }
.lc2011 button.lc-btn--primary, .lc2011 button.lc-btn--primary:hover, .lc2011 button.lc-btn--primary:focus {
	color: #fff; border-color: transparent; background: linear-gradient(135deg, #e0333f, var(--lc-rose-d));
}
.lc2011 button.lc-btn--ghost, .lc2011 button.lc-btn--ghost:focus { color: var(--lc-rose-d); background: rgba(255, 255, 255, .7); border: 2px solid rgba(168, 20, 31, .35); }
.lc2011 button.lc-btn--ghost:hover { color: var(--lc-rose-d); background: #fff; border: 2px solid rgba(168, 20, 31, .35); }
.lc2011 button.lc-btn { border-radius: 999px; padding: .85em 1.4em; font: 600 .95rem/1 var(--lc-sans); }
.lc2011 button.lc-submit { font-size: 1rem; }

/* Ô lời chúc so le, thay phiên mỗi ~3 giây */
.lc2011 .lc-wall--side { -webkit-mask-image: none !important; mask-image: none !important; }
.lc2011 .lc-wall--center { display: none; position: relative; width: 100%; height: 130px; margin: -14px 0 6px; }
@media (min-width: 1100px) { .lc2011 .lc-wall--center { display: block; } }
.lc2011 .lc-slot { position: absolute; }
.lc2011 .lc-slot .lc-wish { opacity: 0; animation: lc-slot-in .6s ease var(--d, 0s) forwards; }
.lc2011 .lc-slot.is-right .lc-wish { margin-left: auto; }
.lc2011 .lc-slot .lc-wish.is-leaving { animation: lc-slot-out .5s ease forwards; }
@keyframes lc-slot-in { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lc-slot-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); filter: blur(2px); } }
/* Hai cột bên: dải lời chúc cuộn dọc liên tục */
.lc2011 .lc-wall--side { overflow: hidden; padding: 0; gap: 0;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.lc2011 .lc-vtrack { display: block; width: 100%; animation: lc-vscroll var(--vd, 60s) linear infinite; will-change: transform; }
.lc2011 .lc-vtrack.is-rev { animation-direction: reverse; }
.lc2011 .lc-vtrack:hover { animation-play-state: paused; }
.lc2011 .lc-vtrack.is-off { animation-play-state: paused; }
.lc2011 .lc-vtrack > .lc-wish { margin-bottom: 26px; opacity: 1; animation: none; }
@keyframes lc-vscroll { to { transform: translateY(-50%); } }
/* Cột bên: rải đều các câu theo chiều cao (không dồn lên trên khi ít lời chúc) */
.lc2011 .lc-wall--side.is-spread { justify-content: space-evenly; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1099px) {
	.lc2011 .lc-marquee {
		display: block; overflow: hidden; width: 100vw; margin: 4px 0 6px; position: relative; left: 50%; transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	}
	.lc2011 .lc-layout { grid-template-columns: minmax(0, 560px); justify-content: center; padding: 0 16px; }
	.lc2011 .lc-wall--side { display: none; }
	.lc2011 .lc-wall--bottom { padding: 0 16px 32px; }
	.lc2011 .lc-wrow { gap: 24px; }
}
@media (max-width: 640px) {
	.lc2011 .lc-row { grid-template-columns: 1fr; }
	.lc2011 .lc-deco--f1 { display: none; }
	.lc2011 .lc-letter { padding: 20px 16px 14px; }
	.lc2011 .lc-send { width: 200px; }
	.lc2011 .lc-music-label { display: none; }
	.lc2011 .lc-music { padding: 10px; top: 12px; right: 12px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.lc2011 *, .lc2011 *::before, .lc2011 *::after {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
	}
	.lc2011 .lc-petals { display: none; }
}
