/*
 * Giao diện dễ thương cho các trang khách (layouts/app): nền chấm bi hồng, nút kẹo ngọt, mèo Mochi.
 * Nạp sau locket-theme.css và Tailwind. Không dùng cho /ctv và /admin.
 */
:root { --cute-pink: #ff6fa3; --cute-pink-d: #e0508a; --cute-line: #ffd3e2; --cute-lav: #efe6ff; --cute-mint: #ddf7ee; }

/* Nền chấm bi + dấu chân mèo rất nhạt */
body.bg-mesh {
    background-color: #fff6fa;
    background-image:
        radial-gradient(circle at 14px 14px, rgba(255, 143, 184, .2) 2.5px, transparent 3px),
        radial-gradient(at 8% 12%, rgba(255, 176, 208, .35) 0, transparent 45%),
        radial-gradient(at 92% 8%, rgba(214, 198, 255, .35) 0, transparent 45%),
        radial-gradient(at 50% 92%, rgba(200, 240, 226, .4) 0, transparent 50%);
    background-size: 36px 36px, auto, auto, auto;
    background-attachment: fixed;
}

/* Thanh trên: trắng hồng trong, bo dưới mềm */
body > header.sticky { background: rgba(255, 246, 250, .82) !important; border-bottom: 2px solid var(--cute-line) !important; }

/* Nút kẹo ngọt: hồng bóng + đáy dày, bấm lún xuống */
.btn-gold, .btn-primary {
    background: linear-gradient(180deg, #ffa3c6, #ff6fa3) !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(160, 30, 80, .35);
    box-shadow: 0 4px 0 var(--cute-pink-d), 0 12px 24px -10px rgba(255, 111, 163, .75) !important;
    border-radius: 18px;
}
.btn-gold:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--cute-pink-d), 0 16px 28px -10px rgba(255, 111, 163, .8) !important; }
.btn-gold:active, .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cute-pink-d), 0 6px 14px -8px rgba(255, 111, 163, .8) !important; }

/* Thẻ và khối nội dung: viền hồng 2px, bóng hồng nhẹ */
.cute-card, .card { border-color: var(--cute-line); }

/* Thanh cuộn hồng */
::-webkit-scrollbar-track { background: #fff0f6; }
::-webkit-scrollbar-thumb { background: #ffc9dc; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--cute-pink); }
::selection { background: #ffc9dc; color: #4a2b3a; }

/* Mèo Mochi */
.mochi { display: block; overflow: visible; }
.cute-footer-cat { position: absolute; right: max(16px, calc(50% - 560px)); top: -62px; width: 92px; height: auto; filter: drop-shadow(0 6px 10px rgba(255, 111, 163, .3)); animation: cute-bob 3.4s ease-in-out infinite; pointer-events: none; }
.cute-peek { position: fixed; z-index: 30; left: 14px; bottom: -6px; width: 74px; height: auto; transform: translateY(40%); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); cursor: pointer; filter: drop-shadow(0 6px 12px rgba(255, 111, 163, .35)); }
.cute-peek:hover, .cute-peek.is-up { transform: translateY(8%); }
@media (max-width: 640px) { .cute-peek { width: 58px; left: 8px; } }

@keyframes cute-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .cute-footer-cat, .cute-peek { animation: none; transition: none; } }

/* Mochi chào ở đầu trang chủ */
.cute-hero-hello { display: inline-flex; align-items: flex-end; gap: 6px; }
.cute-hero-cat { width: 64px; height: auto; margin-bottom: -4px; filter: drop-shadow(0 6px 10px rgba(255, 111, 163, .35)); animation: cute-wave 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cute-wave { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } }
.cute-peek-link { transition: opacity .3s; }
.cute-peek-link.is-hidden { opacity: 0; pointer-events: none; }

/* Thanh trên: nổi nhẹ khi cuộn trang */
body > header.sticky { transition: box-shadow .25s ease, background-color .25s ease; }
html.cute-scrolled body > header.sticky { box-shadow: 0 10px 30px -18px rgba(201, 58, 114, .45); }

/* Viền focus khi dùng bàn phím: hồng, bo tròn */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 111, 163, .55); outline-offset: 2px; border-radius: 12px; }

/* Ảnh đại diện "bạn trẻ tin dùng": viền trắng + bóng hồng cho nổi trên nền */
.hx-avatars img { box-shadow: 0 0 0 2.5px #fff, 0 4px 10px -4px rgba(201, 58, 114, .45); }

/* =====================================================================
 * KAWAII 3D (đất nặn): thẻ phồng, nút khối, ô nhập lõm, nhãn sticker có nơ
 * ===================================================================== */
:root {
    --clay-card: 0 2px 0 #fff inset, 0 -8px 16px -6px rgba(255, 182, 210, .45) inset, 0 18px 34px -18px rgba(201, 58, 114, .45), 0 2px 6px -2px rgba(201, 58, 114, .12);
    --clay-btn: 0 2px 0 rgba(255, 255, 255, .55) inset, 0 -4px 0 rgba(201, 58, 114, .25) inset, 0 5px 0 #d9467f, 0 14px 22px -10px rgba(255, 111, 163, .8);
    --bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 34'%3E%3Cpath d='M26 17C19 3 2 3 2 17s17 14 24 0z' fill='%23ff7fb0' stroke='%235a3445' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M26 17c7-14 24-14 24 0S33 31 26 17z' fill='%23ff7fb0' stroke='%235a3445' stroke-width='2.4' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='13' r='2.4' fill='%23fff'/%3E%3Ccircle cx='17' cy='21' r='1.8' fill='%23fff'/%3E%3Ccircle cx='39' cy='13' r='2.4' fill='%23fff'/%3E%3Ccircle cx='35' cy='21' r='1.8' fill='%23fff'/%3E%3Cellipse cx='26' cy='17' rx='5.5' ry='6.5' fill='%23ff4f8f' stroke='%235a3445' stroke-width='2.4'/%3E%3C/svg%3E");
}

/* Thẻ: phồng như đất sét */
.card-shadow, body.bg-mesh .rounded-3xl.border-2, body.bg-mesh .rounded-\[28px\], body.bg-mesh .rounded-\[2rem\] {
    box-shadow: var(--clay-card) !important;
}
body.bg-mesh .rounded-3xl.border-2 { border-color: #ffd9e6 !important; }

/* Nút chính + nút phụ: khối 3D, bấm lún */
.btn-gold, .btn-primary, .btn.btn-primary { box-shadow: var(--clay-btn) !important; border-radius: 20px; }
.btn-gold:active, .btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 1px 0 #d9467f, 0 6px 12px -8px rgba(255, 111, 163, .8) !important; }
.btn-cream { background: #fff !important; border: 2px solid #ffd9e6; box-shadow: 0 2px 0 #fff inset, 0 -4px 0 rgba(255, 190, 214, .45) inset, 0 5px 0 #ffd0e1, 0 12px 20px -12px rgba(201, 58, 114, .45) !important; border-radius: 20px; }
.btn-cream:active { transform: translateY(4px); box-shadow: 0 1px 0 #ffd0e1 !important; }

/* Ô nhập: lõm vào */
body.bg-mesh input[type="text"], body.bg-mesh input[type="email"], body.bg-mesh input[type="password"], body.bg-mesh input[type="search"], body.bg-mesh textarea {
    box-shadow: 0 3px 6px -2px rgba(201, 58, 114, .18) inset, 0 1px 0 #fff;
}

/* Nhãn mục: sticker nghiêng có nơ */
.kicker, .hx-pill {
    position: relative; display: inline-flex !important; align-items: center; gap: 6px;
    padding: 7px 16px 7px 40px !important; border-radius: 999px; background: #fff !important; border: 2px solid #ffd3e2 !important;
    color: #e0508a !important; box-shadow: 0 4px 0 #ffd3e2, 0 10px 18px -10px rgba(201, 58, 114, .5); transform: rotate(-2deg);
}
.kicker::before, .hx-pill::before { content: ""; position: absolute; left: 8px; top: 50%; width: 26px; height: 17px; margin-top: -9px; background: var(--bow) center / contain no-repeat; }

/* Tiêu đề lớn: chữ khối 3D */
.sec-head h2, .hx-title { text-shadow: 0 2px 0 #fff, 0 4px 0 #ffd3e2, 0 10px 18px rgba(201, 58, 114, .18); }
.hx-mark { color: #ff5f98 !important; text-shadow: 0 3px 0 #fff, 0 6px 0 #ffc2d8, 0 12px 20px rgba(255, 95, 152, .35); }
.hx-mark::after { display: none; }
h1.font-heading, h2.font-heading { text-shadow: 0 2px 0 #fff, 0 4px 0 #ffe0ec; }

/* Ảnh đại diện: viền trắng dày như sticker */
.hx-avatars img { box-shadow: 0 0 0 3px #fff, 0 6px 12px -4px rgba(201, 58, 114, .5); }

/* Nơ bay nhẹ ở 2 mép màn hình */
.kawaii-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.kawaii-deco i { position: absolute; display: block; width: 46px; height: 30px; background: var(--bow) center / contain no-repeat; opacity: .55; animation: kawaii-float 9s ease-in-out infinite; }
.kawaii-deco i:nth-child(1) { left: 2.5%; top: 22%; transform: rotate(-14deg); }
.kawaii-deco i:nth-child(2) { right: 3%; top: 38%; transform: rotate(12deg) scale(.8); animation-delay: -3s; }
.kawaii-deco i:nth-child(3) { left: 4%; top: 70%; transform: rotate(8deg) scale(.7); animation-delay: -6s; }
.kawaii-deco i:nth-child(4) { right: 5%; top: 82%; transform: rotate(-10deg) scale(.9); animation-delay: -1.5s; }
@keyframes kawaii-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 1100px) { .kawaii-deco i { opacity: .28; } }
@media (max-width: 640px) { .kawaii-deco i:nth-child(2), .kawaii-deco i:nth-child(4) { display: none; } }

/* Bảng giá: thẻ gói phồng 3D, gói nổi bật có nơ */
.band { background: linear-gradient(180deg, rgba(255, 228, 238, .55), rgba(255, 240, 246, .35)) !important; border-color: #ffd9e6 !important; }
.plan { border: 2px solid #ffd9e6 !important; border-radius: 30px !important; box-shadow: var(--clay-card) !important; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); }
.plan.hot { border-color: #ff8fb8 !important; }
.plan.hot::before { content: ""; position: absolute; right: 18px; top: -16px; width: 46px; height: 30px; background: var(--bow) center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(201, 58, 114, .35)); }
/* Nhãn chữ in hoa trên tiêu đề mục (bảng giá, cam kết...): sticker có nơ */
body.bg-mesh section span.rounded-full.uppercase.tracking-wider { position: relative; padding-left: 40px !important; background: #fff !important; border: 2px solid #ffd3e2; color: #e0508a !important; box-shadow: 0 4px 0 #ffd3e2, 0 10px 18px -10px rgba(201, 58, 114, .5); transform: rotate(-2deg); }
body.bg-mesh section span.rounded-full.uppercase.tracking-wider::before { content: ""; position: absolute; left: 8px; top: 50%; width: 26px; height: 17px; margin-top: -9px; background: var(--bow) center / contain no-repeat; }
.sec-title { text-shadow: 0 2px 0 #fff, 0 4px 0 #ffd3e2, 0 10px 18px rgba(201, 58, 114, .18); }
