@charset "UTF-8";
/* ============ Biến màu ============ */
:root {
  --bg: #fff5fa;
  --bg-2: #f3ecff;
  --card: #ffffffcc;
  --card-solid: #ffffff;
  --text: #4a3b52;
  --muted: #8d7b97;
  --pink: #ff8fc7;
  --pink-deep: #ff5fae;
  --lilac: #b79cff;
  --blue: #8ad7ff;
  --mint: #9be8c8;
  --yellow: #ffe28a;
  --peach: #ffb78a;
  --border: #ffd6ea;
  --shadow: 0 10px 30px rgba(255, 130, 190, 0.22);
  --radius: 26px;
  --font-body: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-head: "Quicksand", "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

[data-theme="dark"] {
  --bg: #1d1526;
  --bg-2: #2a1d3a;
  --card: #2e2140cc;
  --card-solid: #2e2140;
  --text: #f6e9ff;
  --muted: #b9a5c9;
  --border: #4b3563;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;              /* không cho trình duyệt tự làm đậm / nghiêng giả */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, var(--bg-2) 0, transparent 40%),
    radial-gradient(circle at 90% 20%, #ffe6f3 0, transparent 35%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 10%, #3a2552 0, transparent 40%),
    radial-gradient(circle at 90% 20%, #3b1e44 0, transparent 35%),
    var(--bg);
}

button, input, select, textarea { font-family: inherit; font-synthesis: none; }
h1, h2, h3, h4 { font-weight: 700; }
b, strong { font-weight: 700; }

/* Ẩn chữ vài trăm mili giây đến khi font nạp xong, tránh giật font */
.fonts-pending body { opacity: 0; }
body { transition: opacity 0.18s ease; }

::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 10px; }

/* ============ Nền sticker ============ */
.bg-stickers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sticker {
  position: absolute;
  opacity: 0.55;
  animation: float var(--d, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  user-select: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-28px) rotate(10deg); }
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0;
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 1.6rem; animation: spin 8s linear infinite; display: inline-block; }
.logo-text { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.2px; font-size: 1.35rem; color: var(--pink-deep); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ============ Nút ============ */
.btn {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
  color: var(--text);
}
.btn:hover { transform: translateY(-2px) scale(1.04); }
.btn:active { transform: scale(0.95); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 110, 180, 0.4);
}
.btn-ghost { background: var(--card-solid); border: 2px solid var(--border); }
.btn-danger { background: #ffe3e8; color: #e0426a; }
[data-theme="dark"] .btn-danger { background: #4a2234; color: #ff8fa8; }
.btn-like { background: #ffe3f1; color: var(--pink-deep); }
[data-theme="dark"] .btn-like { background: #4a2240; }
.btn-like.liked { background: var(--pink-deep); color: #fff; }

.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600;
  color: var(--muted); padding: 6px 10px; border-radius: 10px;
}
.link-btn:hover { color: var(--pink-deep); background: var(--card); }

/* ============ Layout ============ */
.container { position: relative; z-index: 1; width: min(1100px, calc(100% - 24px)); margin: 28px auto 40px; }

/* ============ Hero ============ */
.hero-card {
  display: flex; gap: 28px; align-items: center;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 38px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-card::before, .hero-card::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; filter: blur(2px);
}
.hero-card::before { width: 180px; height: 180px; background: radial-gradient(var(--yellow), transparent 70%); top: -60px; right: -40px; opacity: 0.6; }
.hero-card::after { width: 220px; height: 220px; background: radial-gradient(var(--blue), transparent 70%); bottom: -90px; left: -60px; opacity: 0.45; }
.hero-card > * { position: relative; z-index: 1; }

.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar {
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center; font-size: 4.2rem;
  background: linear-gradient(135deg, #ffd1e8, #d9c9ff);
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(255, 120, 190, 0.35);
  animation: bob 3s ease-in-out infinite;
  cursor: pointer;
}
.avatar-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 3px dashed var(--pink);
  animation: spin 14s linear infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hello { font-family: var(--font-head); color: var(--muted); font-size: 1rem; }
.hero-title { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 4px 0 8px; }
.gradient-text {
  background: linear-gradient(90deg, var(--pink-deep), var(--lilac), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-bio { color: var(--muted); font-weight: 500; max-width: 52ch; }

.stats { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.stat {
  background: var(--card-solid); border: 2px solid var(--border);
  border-radius: 20px; padding: 8px 16px; text-align: center; min-width: 96px;
}
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--pink-deep); line-height: 1.2; }
.stat span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.marquee {
  margin: 18px 0 0; overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, var(--pink), var(--lilac), var(--blue));
  color: #fff; border-radius: 999px; padding: 8px 0;
  font-family: var(--font-head); font-weight: 500;
  transform: rotate(-0.8deg);
}
.marquee-track { display: inline-flex; animation: scroll 28s linear infinite; }
.marquee-track span { padding-right: 30px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Toolbar ============ */
.toolbar { margin: 28px 0 18px; display: flex; flex-direction: column; gap: 14px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-solid); border: 2px solid var(--border);
  border-radius: 999px; padding: 4px 18px; box-shadow: var(--shadow);
}
.search input {
  flex: 1; border: none; outline: none; background: none;
  font: inherit; color: var(--text); padding: 10px 0; font-weight: 500;
}
.search:focus-within { border-color: var(--pink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-head); font-size: 0.92rem;
  background: var(--card-solid); border: 2px solid var(--border);
  color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--pink); }
.chip.active { background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; border-color: transparent; }

/* ============ Bài viết ============ */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post {
  background: var(--card-solid);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pop 0.5s both;
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 18px 38px rgba(255, 110, 180, 0.32); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: none; } }

.post-cover {
  height: 120px; display: grid; place-items: center; font-size: 3.4rem;
  position: relative;
}
.post-cover::after {
  content: "✿ ✿ ✿"; position: absolute; bottom: 6px; right: 14px;
  color: rgba(255,255,255,0.8); font-size: 0.8rem; letter-spacing: 4px;
}
.post-cover .emoji { animation: bob 3s ease-in-out infinite; }
.post-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.post-title { font-family: var(--font-head); font-size: 1.25rem; margin: 4px 0 6px; line-height: 1.25; }
.post-excerpt {
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 12px;
}
.post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #fff0f8; color: var(--pink-deep);
}
[data-theme="dark"] .tag { background: #432a52; }
.post-likes { font-weight: 700; color: var(--pink-deep); font-size: 0.9rem; white-space: nowrap; }

/* Màu bìa */
.c0 { background: linear-gradient(135deg, #ffc2e2, #ffe0f1); }
.c1 { background: linear-gradient(135deg, #d4c4ff, #f0e8ff); }
.c2 { background: linear-gradient(135deg, #b9e8ff, #e3f6ff); }
.c3 { background: linear-gradient(135deg, #bff2da, #e6fbf1); }
.c4 { background: linear-gradient(135deg, #ffe9a8, #fff6d6); }
.c5 { background: linear-gradient(135deg, #ffc9a8, #ffe6d6); }

.empty { text-align: center; padding: 50px 10px; color: var(--muted); font-weight: 600; }
.empty-emoji { font-size: 4rem; animation: bob 3s ease-in-out infinite; }
.empty .btn { margin-top: 14px; }

/* ============ Footer ============ */
.footer { position: relative; z-index: 1; text-align: center; padding: 20px 12px 40px; color: var(--muted); font-weight: 600; }
.footer-actions { margin-top: 6px; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 14px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(60, 30, 80, 0.45); backdrop-filter: blur(6px); animation: fade 0.25s; }
.modal-card {
  position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--card-solid); border: 3px solid var(--border);
  border-radius: 32px; padding: 28px; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  animation: modalIn 0.35s cubic-bezier(.2,1.3,.4,1);
}
.modal-card.small { width: min(480px, 100%); }
.modal-card.reader { padding: 0; width: min(720px, 100%); }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.9); } }
.modal-card h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 16px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card-solid); color: var(--text); font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12); transition: transform 0.2s;
}
.modal-x:hover { transform: rotate(90deg) scale(1.1); }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-family: var(--font-head); font-weight: 500; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--text);
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 18px; padding: 12px 16px; outline: none; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,143,199,0.25); }

.mood-picker, .color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-opt {
  font-size: 1.5rem; width: 46px; height: 46px; border-radius: 16px;
  background: var(--bg); border: 2px solid var(--border); cursor: pointer; transition: all 0.15s;
}
.mood-opt:hover { transform: scale(1.12); }
.mood-opt.active { border-color: var(--pink-deep); background: #ffe3f1; transform: scale(1.12) rotate(-6deg); }
[data-theme="dark"] .mood-opt.active { background: #4a2240; }
.color-opt { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); cursor: pointer; transition: transform 0.15s; }
.color-opt:hover { transform: scale(1.15); }
.color-opt.active { box-shadow: 0 0 0 3px var(--pink-deep); transform: scale(1.15); }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Reader */
.reader-cover { height: 170px; display: grid; place-items: center; font-size: 5rem; border-radius: 29px 29px 0 0; }
.reader-cover span { animation: bob 3s ease-in-out infinite; }
.reader-body { padding: 24px 28px 28px; }
.reader-meta { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.reader-body h2 { margin: 6px 0 14px; font-size: 1.9rem; line-height: 1.2; }
.reader-content p { margin-bottom: 14px; font-size: 1.05rem; font-weight: 500; }
.reader-body .tags { margin: 8px 0 18px; }
.reader-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px);
  z-index: 200; background: var(--card-solid); color: var(--text);
  border: 2px solid var(--pink); padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translate(-50%, 0); }

/* Hiệu ứng tim & confetti */
.heart-trail, .confetti {
  position: fixed; pointer-events: none; z-index: 300; user-select: none;
}
.heart-trail { animation: rise 1.1s ease-out forwards; font-size: 16px; }
@keyframes rise { to { transform: translateY(-60px) scale(1.6); opacity: 0; } }
.confetti { animation: fall var(--t, 1.8s) ease-in forwards; font-size: var(--s, 22px); }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x, 0), var(--y, 600px)) rotate(var(--r, 360deg)); opacity: 0; }
}

/* ============ BẢN CÓ ĐĂNG NHẬP & NHIỀU MỤC ============ */
[hidden] { display: none !important; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }

.notice {
  background: #fff3cd; color: #6b4f00; border: 2px solid #ffe08a;
  border-radius: 20px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600;
}
[data-theme="dark"] .notice { background: #4a3d12; color: #ffe9a8; border-color: #6e5a1c; }

.admin-pill {
  display: inline-block; margin-left: 6px; padding: 2px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--peach)); color: #6b4300;
  font-size: 0.82rem; font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar { overflow: hidden; }

/* Tabs */
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px 12px; margin: 22px 0 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; font-family: var(--font-head); font-size: 1rem; white-space: nowrap;
  background: var(--card-solid); border: 2px solid var(--border); color: var(--text);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all 0.18s;
}
.tab:hover { transform: translateY(-2px); border-color: var(--pink); }
.tab.active {
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff;
  border-color: transparent; box-shadow: 0 6px 16px rgba(255, 110, 180, 0.35);
}
.panel { animation: pop 0.4s both; }
.panel-head { margin: 14px 0 20px; }
.panel-head h2 { font-family: var(--font-head); font-size: 1.7rem; }
.panel-head p { color: var(--muted); font-weight: 600; }
.panel .toolbar { margin-top: 14px; }

/* Công cụ sửa/xóa trên thẻ (chỉ chủ blog thấy) */
.post, .skill-card, .video-card, .shot, .tl-card { position: relative; }
.card-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 4; }
.tool {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem; transition: transform 0.15s;
}
.tool:hover { transform: scale(1.18); }
.empty-hint { margin-top: 8px; font-weight: 600; }

/* Bài viết có ảnh */
.post-cover { overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.post:hover .post-cover img { transform: scale(1.06); }
.post-cover.has-img::after { display: none; }
.post-cover.has-img { height: 160px; }
.mood-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, 0.92);
  border-radius: 999px; padding: 2px 10px; font-size: 1.1rem;
}
.yt-badge {
  position: absolute; left: 10px; bottom: 10px; background: #ff3d6e; color: #fff;
  border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700;
}
.reader-cover.has-img { display: block; overflow: hidden; height: 240px; }
.reader-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reader-meta { margin-top: 0; }
#rVideo { margin: 6px 0 14px; }
.btn-like.readonly { cursor: default; opacity: 0.85; }
.btn-like.readonly:hover { transform: none; }

/* Thành tích (timeline) */
.timeline {
  position: relative; margin: 10px 0 0 22px; padding-left: 36px;
  border-left: 4px dotted var(--pink);
}
.tl-item { position: relative; margin-bottom: 24px; animation: pop 0.5s both; }
.tl-icon {
  position: absolute; left: -60px; top: 8px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, #ffd1e8, #d9c9ff); border: 3px solid var(--card-solid);
  box-shadow: 0 4px 12px rgba(255, 110, 180, 0.35);
}
.tl-card {
  background: var(--card-solid); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px 18px; box-shadow: var(--shadow); transition: transform 0.2s;
}
.tl-card:hover { transform: translateX(6px); }
.tl-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl-title { font-family: var(--font-head); font-size: 1.25rem; margin: 6px 0 4px; line-height: 1.25; }
.is-admin .tl-meta, .is-admin .tl-title { padding-right: 80px; }
.tl-desc { color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.tl-img {
  display: block; max-width: 100%; max-height: 260px; border-radius: 18px; margin: 8px 0 12px;
  cursor: zoom-in; object-fit: cover; border: 2px solid var(--border);
}

/* Kĩ năng */
.skills-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.skills-summary div {
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff;
  border-radius: 22px; padding: 10px 20px; text-align: center; min-width: 120px;
  box-shadow: 0 6px 16px rgba(255, 110, 180, 0.3);
}
.skills-summary b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }
.skills-summary span { font-size: 0.8rem; font-weight: 600; opacity: 0.95; }
.skill-cat { font-family: var(--font-head); font-size: 1.2rem; margin: 22px 0 10px; color: var(--pink-deep); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.skill-card {
  background: var(--card-solid); border: 2px solid var(--border); border-radius: 24px;
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform 0.2s;
}
.skill-card:hover { transform: translateY(-4px) rotate(-0.6deg); }
.skill-top { display: flex; align-items: center; gap: 10px; }
.is-admin .skill-card .skill-top { padding-right: 76px; }
.skill-icon { font-size: 1.8rem; }
.skill-name { font-family: var(--font-head); font-size: 1.1rem; flex: 1; line-height: 1.2; }
.skill-pct { font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); }
.is-admin .skill-pct { position: absolute; right: 18px; bottom: 16px; }
.bar {
  height: 16px; border-radius: 999px; background: var(--bg); border: 2px solid var(--border);
  overflow: hidden; margin: 12px 0 8px;
}
.fill {
  height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.2, .9, .3, 1);
  background: linear-gradient(90deg, var(--pink), var(--lilac), var(--blue));
  background-size: 200% 100%; animation: shine 3s linear infinite;
}
.skill-level { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.skill-note { margin-top: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.video-card {
  background: var(--card-solid); border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); animation: pop 0.5s both;
}
.video-body { padding: 14px 18px 18px; }
.video-body .post-excerpt { margin-bottom: 8px; -webkit-line-clamp: 2; }
.yt-lite {
  position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat;
  cursor: pointer; overflow: hidden; border-radius: 0;
}
#rVideo .yt-lite { border-radius: 20px; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.12); transition: background 0.2s; }
.yt-play span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; font-size: 1.6rem;
  padding-left: 5px; box-shadow: 0 8px 22px rgba(255, 90, 170, 0.55); transition: transform 0.2s;
}
.yt-lite:hover .yt-play span { transform: scale(1.12); }
.yt-lite.playing .yt-play { display: none; }

/* Album */
.masonry { columns: 3 240px; column-gap: 16px; }
.shot {
  break-inside: avoid; margin: 0 0 16px; border-radius: 22px; overflow: hidden;
  background: var(--card-solid); border: 2px solid var(--border); box-shadow: var(--shadow);
  animation: pop 0.5s both;
}
.shot img { width: 100%; display: block; cursor: zoom-in; transition: transform 0.35s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { padding: 10px 14px 12px; font-weight: 600; font-size: 0.92rem; color: var(--muted); }

/* Lightbox */
#lightbox .modal-x { position: fixed; top: 18px; right: 18px; z-index: 10; }
.lb {
  position: relative; max-width: min(94vw, 1000px); margin: 0; text-align: center;
  animation: modalIn 0.35s cubic-bezier(.2, 1.3, .4, 1);
}
.lb img { max-width: 100%; max-height: 80vh; border-radius: 22px; border: 4px solid #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.lb figcaption { color: #fff; font-weight: 600; margin-top: 10px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }

/* Form: tải ảnh, thanh trượt, mật khẩu */
.modal-sub { color: var(--muted); font-weight: 600; margin: -6px 0 16px; }
.uploader { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.up-preview {
  width: 96px; height: 96px; border-radius: 20px; border: 2px dashed var(--pink);
  background: var(--bg) center / cover no-repeat; display: grid; place-items: center;
  font-size: 1.8rem; color: var(--muted); flex-shrink: 0;
}
.up-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.up-status { font-size: 0.85rem; font-weight: 700; color: var(--pink-deep); }
.field .range { padding: 0; accent-color: var(--pink-deep); height: 28px; border: none; background: none; }
.range-out { display: block; font-family: var(--font-head); color: var(--pink-deep); margin-top: 2px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 52px; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; font-size: 1.2rem; padding: 6px;
}
.field input[type="date"] { min-height: 48px; }

/* Responsive */
@media (max-width: 680px) {
  .hero-card { flex-direction: column; text-align: center; padding: 24px 18px; }
  .stats { justify-content: center; }
  .stat { min-width: 76px; padding: 8px 10px; }
  .btn { padding: 9px 14px; }
  .nav { padding: 8px 10px 8px 14px; }
  .nav-actions { gap: 5px; }
  .nav-actions .btn { font-size: 0.85rem; padding: 8px 11px; }
  .logo-text { font-size: 1.05rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-card { padding: 22px 18px; }
  .reader-body { padding: 20px 18px 24px; }
  .timeline { margin-left: 14px; padding-left: 26px; }
  .tl-icon { left: -50px; width: 40px; height: 40px; font-size: 1.3rem; }
  .tl-meta, .tl-title { padding-right: 0; }
  .is-admin .tl-meta, .is-admin .tl-title { padding-right: 80px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   BẢN MỚI: ngôn ngữ · ngày yêu nhau · mạng xã hội · gian hàng
   ========================================================== */
.muted { color: var(--muted); font-weight: 600; }
.center { text-align: center; }
.nav-actions { flex-wrap: wrap; justify-content: flex-end; }

/* ----- Nút chọn ngôn ngữ (bo tròn, nằm bên trái nút Đăng nhập) ----- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; }
.lang-btn b { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.5px; }
.lang-pop {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; min-width: 214px;
  display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 28px;
  background: var(--card-solid); border: 2px solid var(--border); box-shadow: var(--shadow);
  transform-origin: top right; animation: langIn 0.28s cubic-bezier(.2, 1.3, .4, 1);
}
.lang-pop[hidden] { display: none !important; }
.lang-pop::before {
  content: ""; position: absolute; top: -8px; right: 26px; width: 14px; height: 14px; rotate: 45deg;
  background: var(--card-solid); border-left: 2px solid var(--border); border-top: 2px solid var(--border); border-radius: 4px 0 0 0;
}
.lang-pop button {
  all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
  color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  transition: background 0.18s, transform 0.15s;
}
.lang-pop button i {
  font-style: normal; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.4px; transition: background 0.18s, color 0.18s;
}
.lang-pop button span { flex: 1; white-space: nowrap; }
.lang-pop button em { font-style: normal; opacity: 0; color: var(--pink); font-weight: 700; transition: opacity 0.18s; }
.lang-pop button:hover, .lang-pop button:focus-visible { background: var(--bg); transform: translateX(-2px); }
.lang-pop button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.lang-pop button.active { background: var(--bg); }
.lang-pop button.active i { background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255, 110, 180, 0.4); }
.lang-pop button.active em { opacity: 1; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(.92); } to { opacity: 1; transform: none; } }

/* Cảnh báo nhập sai ngôn ngữ */
.lang-warn {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px;
  background: #fff3cd; color: #6b4f00; border: 2px solid #ffe08a; border-radius: 20px;
  font-weight: 700; animation: pop 0.3s both;
}
[data-theme="dark"] .lang-warn { background: #4a3d12; color: #ffe9a8; border-color: #6e5a1c; }

/* ----- Thẻ bấm được trong hero ----- */
.stat-btn {
  font: inherit; color: inherit; cursor: pointer;
  background: linear-gradient(135deg, var(--card-solid), #fff0f8);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
[data-theme="dark"] .stat-btn { background: linear-gradient(135deg, var(--card-solid), #3a2552); }
.stat-btn:hover { transform: translateY(-4px) rotate(-1.5deg); border-color: var(--pink); box-shadow: 0 10px 22px rgba(255, 110, 180, 0.3); }
.stat-btn:active { transform: scale(0.95); }
.stat-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ----- Modal ngày yêu nhau ----- */
.love-hero { text-align: center; padding-top: 6px; }
.love-avatar {
  width: 124px; height: 124px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 3.6rem;
  background: linear-gradient(135deg, #ffd1e8, #d9c9ff); border: 5px solid #fff;
  box-shadow: 0 0 0 3px var(--pink), 0 10px 26px rgba(255, 110, 180, 0.4);
  animation: bob 3s ease-in-out infinite;
}
.love-avatar img { width: 100%; height: 100%; object-fit: cover; }
.love-card .love-name { font-family: var(--font-head); font-size: 1.7rem; margin: 6px 0 2px; line-height: 1.2; }
.love-intro { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.love-days {
  margin: 14px auto; text-align: center; padding: 14px 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lilac)); box-shadow: 0 8px 20px rgba(255, 110, 180, 0.35);
}
.love-days b { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1.1; }
.love-days span { font-weight: 700; }
.love-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 16px; margin-bottom: 8px; border-radius: 18px; background: var(--bg); border: 2px solid var(--border);
}
.love-row span { color: var(--muted); font-weight: 700; }
.love-row b { font-family: var(--font-head); font-weight: 500; text-align: right; }
.love-memory { padding: 12px 16px; border-radius: 18px; background: var(--bg); border: 2px dashed var(--pink); margin-bottom: 8px; }
.love-memory span { color: var(--pink-deep); font-family: var(--font-head); font-weight: 600; }
.love-memory p { margin-top: 4px; font-weight: 500; }
.love-edit-title { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 14px; }

/* ----- Modal mạng xã hội ----- */
#socialBody h2 { font-family: var(--font-head); font-size: 1.6rem; }
.social-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 14px; }
.social-pill, .cbtn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text);
  padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--card-solid); border: 2px solid var(--border);
  font-family: var(--font-head); font-weight: 500; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.social-pill:hover, .cbtn:hover { transform: translateY(-3px) scale(1.04); border-color: var(--pink); box-shadow: 0 8px 18px rgba(255, 110, 180, 0.3); }
.social-pill i, .cbtn i {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-style: normal; font-weight: 700; font-size: 0.82rem; color: #fff; background: linear-gradient(135deg, var(--pink), var(--lilac));
}
.sp-facebook i, .cb-facebook i { background: #1877f2; }
.sp-instagram i, .cb-instagram i { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.sp-tiktok i { background: #111; } .sp-x i, .sp-threads i { background: #222; }
.sp-youtube i { background: #ff2d2d; } .sp-linkedin i { background: #0a66c2; }
.sp-github i { background: #24292f; } .sp-spotify i { background: #1db954; }
.sp-pinterest i { background: #e60023; }
.sp-zalo i, .cb-zalo i { background: #0068ff; }
.sp-telegram i, .cb-telegram i { background: #2aabee; }
.sp-whatsapp i, .cb-whatsapp i { background: #25d366; }
.cb-phone i { background: linear-gradient(135deg, #ff8fc7, #ff5fae); font-size: 1rem; }
.srows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.srow { display: grid; grid-template-columns: 130px 1fr 1fr 38px; gap: 8px; align-items: center; }
.srow select, .srow input {
  min-width: 0; width: 100%; font: inherit; font-weight: 500; color: var(--text); background: var(--bg);
  border: 2px solid var(--border); border-radius: 16px; padding: 9px 12px; outline: none;
}
.srow select:focus, .srow input:focus { border-color: var(--pink); }
.srow-add { margin: 4px 0 6px; }

/* ----- Gian hàng ----- */
.shop-contact { margin: 0 0 20px; }
.shop-contact-in {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px;
  background: var(--card); border: 2px solid var(--border); border-radius: 26px; box-shadow: var(--shadow);
}
.contact-label { font-family: var(--font-head); font-weight: 600; color: var(--pink-deep); }
.cbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.cbtn { padding: 4px 14px 4px 4px; font-size: 0.88rem; }
.cbtn i { width: 30px; height: 30px; font-size: 0.74rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card-solid); border: 2px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); animation: pop 0.5s both; transition: transform 0.25s, box-shadow 0.25s;
}
.product:hover { transform: translateY(-6px) rotate(-0.8deg); box-shadow: 0 18px 38px rgba(255, 110, 180, 0.32); }
.product-img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd1e8, #d9c9ff);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.35s; }
.product:hover .product-img img { transform: scale(1.06); }
.product-img .ph { font-size: 3.6rem; animation: bob 3s ease-in-out infinite; }
.stock-badge {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.stock-badge.in { background: #2fbf8f; }
.stock-badge.out { background: #ff5f7e; }
.hidden-badge {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  background: #444; color: #fff; font-size: 0.75rem; font-weight: 700;
}
.product.soldout .product-img img { filter: grayscale(0.85); }
.product.is-hidden { opacity: 0.6; border-style: dashed; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--pink-deep); }
.product-desc { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.product-body .cbtns { margin-top: auto; padding-top: 8px; }
.product-body .cbtn { padding: 4px; }
.product-body .cbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; flex-wrap: wrap; }
.mini {
  min-width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer;
  background: var(--bg); color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  transition: transform 0.15s, border-color 0.15s;
}
.mini:hover { transform: scale(1.12); border-color: var(--pink); }
.mini.wide { border-radius: 999px; padding: 0 14px; font-size: 0.85rem; }
.mini.del { color: #e0426a; }
.stock-n { min-width: 28px; text-align: center; font-family: var(--font-head); font-size: 1.1rem; }
.field.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.field.check > span { margin: 0; }
.field.check input { width: 22px; height: 22px; padding: 0; accent-color: var(--pink-deep); }

@media (max-width: 680px) {
  .lang-btn { padding: 8px 11px; }
  .lang-pop { right: -48px; min-width: 206px; }
  .lang-pop::before { right: 62px; }
  .srow { grid-template-columns: 1fr 38px; }
  .srow .s-plat, .srow .s-url, .srow .s-label { grid-column: 1 / 2; }
  .srow .del { grid-column: 2; grid-row: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 10px 12px 12px; }
  .product-name { font-size: 1rem; }
  .love-days b { font-size: 2.2rem; }
}

/* ==========================================================
   BẢN 2026-10-04: thanh điều hướng trên điện thoại ·
   tim & bình luận · thống kê · nhạc yêu thích
   ========================================================== */

/* ----- Nút trên thanh điều hướng: laptop hiện chữ, điện thoại chỉ hiện biểu tượng ----- */
.nav-actions .btn { white-space: nowrap; }
.nb-ico { display: none; }
.nav .logo { min-width: 0; }

@media (max-width: 680px) {
  .nav {
    top: 8px; margin-top: 8px; width: calc(100% - 16px);
    gap: 8px; padding: 6px 6px 6px 12px;
    flex-wrap: nowrap;
  }
  .nav .logo { flex: 1 1 auto; overflow: hidden; gap: 6px; }
  .logo-icon { font-size: 1.3rem; flex: none; }
  .logo-text { max-width: none; min-width: 0; flex: 1 1 auto; }
  .nav-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; }
  /* Mọi nút cùng kích thước tròn cố định → không bị tràn, không xô lệch khi bấm */
  .nav-actions .btn,
  .nav-actions .lang-btn {
    flex: none; width: 38px; height: 38px; min-width: 38px; padding: 0;
    display: inline-grid; place-items: center; border-radius: 50%;
    font-size: 1.05rem; line-height: 1;
  }
  .nav-actions .btn-ghost { border-width: 2px; }
  .nb-ico { display: inline; }
  .nb-lbl { display: none; }
  .lang-btn > span[aria-hidden] { display: none; }
  .lang-btn b { font-size: 0.78rem; }
  /* Không phóng to / dịch chuyển nút trên điện thoại */
  .nav .btn:hover, .nav .btn:active, .nav .btn:focus { transform: none; }
  .nav .btn:active { opacity: 0.75; }
  /* Menu ngôn ngữ: canh theo cả thanh điều hướng, không tràn khỏi màn hình */
  .lang { position: static; }
  .lang-pop { top: calc(100% + 8px); right: 6px; left: auto; min-width: 200px; max-width: calc(100vw - 28px); }
  .lang-pop::before { display: none; }

  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .stat { min-width: 0; padding: 8px 4px; }
  .stat > span { display: block; line-height: 1.25; }
}
@media (max-width: 360px) {
  .nav { padding-left: 10px; }
  .nav-actions { gap: 3px; }
  .nav-actions .btn, .nav-actions .lang-btn { width: 34px; height: 34px; min-width: 34px; font-size: 0.95rem; }
  .logo-icon { display: none; }
}
@media (hover: none) {
  .nav .btn:hover { transform: none; }
}

/* ----- Thanh tim & bình luận trên thẻ ----- */
.react-bar { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.rb {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 4px 11px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--card-solid); color: var(--pink-deep);
  font-family: var(--font-head); font-size: 0.88rem; line-height: 1.2;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.rb b { font-weight: 700; min-width: 1ch; }
.rb:hover { border-color: var(--pink); transform: translateY(-1px); }
.rb:active { transform: scale(0.92); }
.rb.liked { background: #ffe3f1; border-color: var(--pink); }
[data-theme="dark"] .rb.liked { background: #4a2240; }
.rb.liked span { animation: heartPop 0.35s; display: inline-block; }
@keyframes heartPop { 50% { transform: scale(1.45); } }
.video-body .react-bar { margin-top: 10px; }
.shot figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.shot figcaption .cap { flex: 1 1 120px; min-width: 0; }
.shot figcaption .react-bar { margin-left: auto; }
.product-body .react-bar { margin-top: 2px; }
.btn-like { display: inline-flex; align-items: center; gap: 6px; }
.btn-like b { font-weight: 700; }

/* ----- Khung bình luận ----- */
.comments { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--border); scroll-margin-top: 16px; }
.cmt-title { font-family: var(--font-head); font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cmt-count {
  font-size: 0.8rem; min-width: 26px; padding: 1px 8px; border-radius: 999px; text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff;
}
.cmt-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.cmt-empty { color: var(--muted); font-weight: 600; text-align: center; padding: 14px; border-radius: 18px; background: var(--bg); }
.cmt { display: flex; gap: 10px; align-items: flex-start; animation: pop 0.3s both; }
.cmt-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.35rem; font-style: normal; background: linear-gradient(135deg, #ffd1e8, #d9c9ff);
  border: 2px solid var(--card-solid); box-shadow: 0 3px 8px rgba(255, 110, 180, 0.25);
}
.cmt-av.sm { width: 28px; height: 28px; font-size: 1rem; box-shadow: none; }
.cmt.owner .cmt-av { background: linear-gradient(135deg, var(--yellow), var(--peach)); }
.cmt-main {
  flex: 1; min-width: 0; background: var(--bg); border: 2px solid var(--border);
  border-radius: 6px 20px 20px 20px; padding: 8px 14px 10px;
}
.cmt.owner .cmt-main { border-color: var(--yellow); }
.cmt.mine .cmt-main { border-color: var(--pink); }
.cmt-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cmt-name { font-family: var(--font-head); font-weight: 700; color: var(--pink-deep); }
.cmt-badge, .cmt-you { font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.cmt-badge { background: linear-gradient(135deg, var(--yellow), var(--peach)); color: #6b4300; }
.cmt-you { background: #ffe3f1; color: var(--pink-deep); }
[data-theme="dark"] .cmt-you { background: #4a2240; }
.cmt-time { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.cmt-text { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.cmt-acts { display: flex; gap: 4px; margin-top: 4px; }
.cmt-act {
  border: none; background: none; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
  color: var(--muted); padding: 2px 8px; border-radius: 999px;
}
.cmt-act:hover { background: var(--card-solid); color: var(--pink-deep); }
.cmt-act.danger:hover { color: #e0426a; }
.cmt-edit textarea, .cmt-input textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--text); background: var(--card-solid);
  border: 2px solid var(--border); border-radius: 16px; padding: 9px 12px; outline: none; resize: vertical; min-height: 44px;
}
.cmt-edit textarea:focus, .cmt-input textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,143,199,0.25); }
.cmt-edit { margin-top: 6px; }
.cmt-edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.cmt-form { background: var(--bg); border: 2px solid var(--border); border-radius: 22px; padding: 10px 12px 8px; }
.cmt-as { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.cmt-me { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-deep); font-family: var(--font-head); }
.cmt-input { display: flex; gap: 8px; align-items: flex-end; }
.cmt-input textarea { flex: 1; min-width: 0; }
.cmt-input .btn { flex: none; }
.cmt-left { display: block; text-align: right; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Modal bình luận cho video / ảnh / sản phẩm */
.cmt-card { width: min(640px, 100%); }
.cmt-img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 20px; background: var(--bg); cursor: zoom-in; border: 2px solid var(--border); }
.cmt-media .yt-lite { border-radius: 20px; }
.cmt-headline { margin-top: 14px; }
.cmt-headline h2 { font-size: 1.35rem; margin: 2px 0 4px; padding-right: 0; overflow-wrap: anywhere; }
.cmt-headline .btn-like { margin-top: 8px; }
.cmt-type { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
#cmtHead:not(:has(.cmt-img, .cmt-media)) .cmt-headline { margin-top: 0; padding-right: 40px; }

/* ----- Thống kê ----- */
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-tiles div {
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; border-radius: 20px;
  padding: 10px 8px; text-align: center; box-shadow: 0 6px 16px rgba(255, 110, 180, 0.3);
}
.st-tiles b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.15; }
.st-tiles span { font-size: 0.76rem; font-weight: 700; line-height: 1.2; display: block; }
.st-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.st-type {
  display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 12px; border-radius: 16px;
  background: var(--bg); border: 2px solid var(--border); font-weight: 600;
}
.st-type b { font-family: var(--font-head); color: var(--pink-deep); }
.st-type em { grid-column: 1 / -1; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.st-h { font-family: var(--font-head); font-size: 1.1rem; margin: 18px 0 8px; }
.st-top { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.st-row {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 16px; background: var(--bg); border: 2px solid var(--border); transition: border-color 0.15s;
}
.st-row:hover, .st-row:focus-visible { border-color: var(--pink); }
.st-rank {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff;
}
.st-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-num { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--pink-deep); }
.st-recent { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.st-recent li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 16px; background: var(--bg); border: 2px solid var(--border); }
.st-rc { flex: 1; min-width: 0; font-size: 0.88rem; }
.st-rc p { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.st-link { all: unset; cursor: pointer; color: var(--pink-deep); font-weight: 700; overflow-wrap: anywhere; }
.st-link:hover { text-decoration: underline; }

/* ----- Nhạc yêu thích ----- */
.stat-music .note { display: inline-block; font-size: 0.95rem; margin-right: 3px; animation: bob 2.4s ease-in-out infinite; }
#musicBody h2 { font-family: var(--font-head); font-size: 1.6rem; }
.song-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 6px 0 12px; }
.song-btn {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 20px; background: var(--bg); border: 2px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}
.song-btn:hover, .song-btn:focus-visible { border-color: var(--pink); transform: translateX(3px); }
.song.playing .song-btn { border-color: var(--pink-deep); background: linear-gradient(135deg, #ffe3f1, #f0e8ff); }
[data-theme="dark"] .song.playing .song-btn { background: linear-gradient(135deg, #4a2240, #3a2552); }
.song-n { flex: none; width: 26px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.song-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.song-info b { font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-info span { font-size: 0.82rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-kind { flex: none; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: #888; }
.song-kind.k-youtube { background: #ff2d2d; } .song-kind.k-spotify { background: #1db954; }
.song-kind.k-soundcloud { background: #ff7700; } .song-kind.k-audio { background: var(--lilac); }
.song-play {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem;
  background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff;
}
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 4px; background: var(--pink-deep); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.mrow {
  display: grid; grid-template-columns: 24px 1fr 1fr; grid-template-areas: "n t a" "n u u" "n b b";
  gap: 6px 8px; align-items: center; padding: 10px; border-radius: 18px; background: var(--bg); border: 2px solid var(--border);
}
.mrow-n { grid-area: n; align-self: start; font-family: var(--font-head); font-weight: 700; color: var(--pink-deep); text-align: center; padding-top: 8px; }
.mrow .m-title { grid-area: t; } .mrow .m-artist { grid-area: a; } .mrow .m-url { grid-area: u; }
.mrow-btns { grid-area: b; display: flex; gap: 6px; justify-content: flex-end; }
.mrow input {
  min-width: 0; width: 100%; font: inherit; font-weight: 500; color: var(--text); background: var(--card-solid);
  border: 2px solid var(--border); border-radius: 14px; padding: 8px 12px; outline: none;
}
.mrow input:focus { border-color: var(--pink); }
.mini:disabled { opacity: 0.35; cursor: default; transform: none; }

/* Trình phát nhỏ (nổi ở góc, vẫn phát khi lướt trang) */
.music-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 320px;
  background: var(--card-solid); border: 2px solid var(--border); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(120, 50, 120, 0.3); overflow: hidden; animation: pop 0.35s both;
}
.md-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; }
.md-disc { font-size: 1.4rem; animation: spin 3s linear infinite; flex: none; }
.md-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.md-info b { font-family: var(--font-head); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-info span { font-size: 0.75rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-btns { display: flex; gap: 3px; flex: none; }
.md-btns .mini { min-width: 30px; height: 30px; font-size: 0.8rem; padding: 0; }
.md-player { padding: 0 10px 10px; }
.md-player iframe { display: block; width: 100%; border: 0; border-radius: 14px; }
.md-player.k-youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.md-player.k-spotify.short iframe { height: 80px; }
.md-player.k-spotify.tall iframe { height: 152px; }
.md-player.k-soundcloud iframe { height: 120px; }
.md-player audio { width: 100%; display: block; }
.music-dock.min .md-player { height: 0; padding: 0; overflow: hidden; }
body.has-dock .footer { padding-bottom: 130px; }
body.has-dock .toast { bottom: 110px; }

@media (max-width: 680px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-types { grid-template-columns: 1fr; }
  .music-dock { left: 8px; right: 8px; bottom: 8px; width: auto; border-radius: 20px; }
  .md-player.k-youtube iframe { aspect-ratio: auto; height: 150px; }
  .post-foot { flex-wrap: wrap; }
  .rb { padding: 4px 9px; font-size: 0.84rem; }
  .product-body .react-bar { gap: 4px; }
  .product-body .rb { padding: 3px 7px; }
  .mrow { grid-template-columns: 22px 1fr; grid-template-areas: "n t" "n a" "n u" "n b"; }
}

/* Thông báo nhỏ: không bị gói chữ trên điện thoại */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.stat-music b { white-space: nowrap; }
.stat-music b span { font-size: inherit; color: inherit; font-weight: inherit; display: inline; }
.stat-music b .note { font-size: 0.95rem; }

/* ==========================================================
   Ẩn / hiện mục cho khách · Ảnh nền blog
   ========================================================== */
/* Mục đang ẩn (chỉ chủ blog thấy, mờ + viền đứt) */
.is-off { position: relative; opacity: 0.5; border-style: dashed !important; filter: grayscale(0.4); }
.is-off::after {
  content: "🙈"; position: absolute; top: -8px; right: -6px; font-size: 0.8rem; line-height: 1;
  background: var(--card-solid); border: 2px solid var(--border); border-radius: 999px; padding: 2px 4px;
}
.tab.is-off.active { opacity: 0.7; }
.marquee.is-off::after { top: 2px; right: 8px; }
.tabs { padding-top: 12px; }
.all-hidden { margin-top: 30px; }

/* Công tắc trong cài đặt */
.vis-field { background: var(--bg); border: 2px solid var(--border); border-radius: 22px; padding: 14px 14px 6px; }
.vis-hint { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin: -2px 0 10px; }
.vis-group { margin-bottom: 10px; }
.vis-title { display: block; font-family: var(--font-head); color: var(--pink-deep); font-size: 0.92rem; margin: 4px 2px 6px; }
.vis-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; margin-bottom: 6px;
  background: var(--card-solid); border: 2px solid var(--border); border-radius: 16px; transition: opacity 0.2s, border-color 0.2s;
}
.vis-row.off { border-style: dashed; }
.vis-row.off .vis-ico, .vis-row.off .vis-label > span { opacity: 0.55; }
.vis-ico { font-size: 1.2rem; flex: none; width: 26px; text-align: center; }
.vis-label { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vis-label > span { font-weight: 600; }
.vis-status { font-size: 0.75rem; font-weight: 700; color: #2fbf8f; }
.vis-row.off .vis-status { color: var(--muted); }
.switch {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; border: none; cursor: pointer;
  background: #d9cfe0; transition: background 0.25s; padding: 0;
}
[data-theme="dark"] .switch { background: #5a4a6b; }
.switch.on { background: linear-gradient(135deg, var(--pink), var(--lilac)); }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1);
}
.switch.on i { transform: translateX(22px); }
.switch:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.switch:disabled { cursor: wait; opacity: 0.8; }

/* Ô chọn ảnh nền */
.bg-field { background: var(--bg); border: 2px solid var(--border); border-radius: 22px; padding: 14px; }
.bg-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bg-prev {
  width: 150px; aspect-ratio: 16 / 10; border-radius: 16px; flex-shrink: 0; border: 2px solid var(--border);
  background: center / cover no-repeat; display: grid; place-items: center; text-align: center;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
}
.bg-prev.empty { background-image: radial-gradient(circle at 20% 20%, #f3ecff 0, transparent 50%), radial-gradient(circle at 80% 30%, #ffe6f3 0, transparent 45%), linear-gradient(#fff5fa, #fff5fa); border-style: dashed; border-color: var(--pink); }
.bg-opts { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.bg-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.seg { display: flex; gap: 4px; flex-wrap: wrap; background: var(--card-solid); border: 2px solid var(--border); border-radius: 999px; padding: 4px; }
.seg-btn {
  flex: 1 1 auto; border: none; cursor: pointer; border-radius: 999px; padding: 7px 10px; background: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--text); white-space: nowrap;
}
.seg-btn.active { background: linear-gradient(135deg, var(--pink), var(--lilac)); color: #fff; box-shadow: 0 4px 10px rgba(255, 110, 180, 0.35); }
.bg-tone { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

/* Ảnh nền bao trọn blog */
.bg-photo { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: center / cover no-repeat; display: none; }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: rgba(255, 245, 250, var(--bg-dim, 0.3)); transition: background 0.3s; }
[data-theme="dark"] .bg-photo::after { background: rgba(22, 14, 32, var(--bg-dim, 0.3)); }
body.has-bg .bg-photo { display: block; }
body.has-bg .bg-stickers { opacity: 0.6; }
/* Chữ nằm trực tiếp trên ảnh nền → đặt trên nền mờ để luôn dễ đọc */
body.has-bg .panel-head, body.has-bg .footer > *, body.has-bg .empty, body.has-bg .skill-cat {
  background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--border); border-radius: 22px;
}
body.has-bg .panel-head { display: inline-block; padding: 10px 18px; max-width: 100%; }
body.has-bg .footer > * { display: inline-block; padding: 6px 16px; margin: 4px; }
body.has-bg .skill-cat { display: inline-block; padding: 4px 14px; }
body.has-bg .empty { padding: 30px 14px; }

@media (max-width: 680px) {
  .bg-prev { width: 100%; }
  .bg-top .up-btns { width: 100%; }
}

/* ==========================================================
   BẢN 2026-10-08: icon phẳng · nút chữ viền đậm · khung ảnh
   không méo · bố cục thẻ cố định · cửa sổ chi tiết
   ========================================================== */
:root { --ink: #2b2233; --ink-on: #ffffff; --ink-soft: rgba(43, 34, 51, 0.14); }
[data-theme="dark"] { --ink: #f3e8ff; --ink-on: #1d1526; --ink-soft: rgba(243, 232, 255, 0.18); }

/* ----- Icon ----- */
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; pointer-events: none; }
.ico.fill { fill: currentColor; }

/* ----- Nút: chỉ chữ, viền đậm, gọn gàng ----- */
.btn { font-weight: 600; letter-spacing: 0.1px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--ink); color: var(--ink-on); border: 1.5px solid var(--ink);
  box-shadow: 0 6px 16px rgba(43, 34, 51, 0.18);
}
.btn-primary:hover { box-shadow: 0 10px 22px rgba(43, 34, 51, 0.24); }
[data-theme="dark"] .btn-primary { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.btn-ghost { background: var(--card-solid); border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ink-on); }
.btn-danger { background: transparent; color: #d93a62; border: 1.5px solid #d93a62; }
.btn-danger:hover { background: #d93a62; color: #fff; }
[data-theme="dark"] .btn-danger { background: transparent; color: #ff8fa8; border-color: #ff8fa8; }
.btn-like { background: var(--card-solid); color: var(--pink-deep); border: 1.5px solid var(--border); }
[data-theme="dark"] .btn-like { background: var(--card-solid); }
.btn-like.liked { background: #ffe3f1; color: var(--pink-deep); border-color: var(--pink-deep); }
[data-theme="dark"] .btn-like.liked { background: #4a2240; }
.btn-like .ico { width: 1.2em; height: 1.2em; }
.modal-actions { flex-wrap: wrap; }

/* ----- Thanh trên cùng: nút tròn viền mảnh, icon một màu ----- */
.nav-actions { gap: 8px; }
#btnTheme, #btnSettings {
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 1.1rem;
}
.nav-actions .btn-ghost:hover { background: var(--ink); color: var(--ink-on); }
.lang-btn { gap: 6px; }
.lang-ico { display: inline-flex; }
.nav-actions .btn-primary { padding: 10px 20px; }
.nb-ico .ico { width: 1.15em; height: 1.15em; }
@media (max-width: 680px) {
  .nav-actions .btn, .nav-actions .lang-btn, #btnTheme, #btnSettings { width: 38px; height: 38px; font-size: 1rem; }
  .nav-actions .btn-ghost { border-width: 1.5px; }
  .nav-actions .btn-primary { padding: 0; }
}
@media (max-width: 360px) {
  .nav-actions .btn, .nav-actions .lang-btn, #btnTheme, #btnSettings { width: 34px; height: 34px; }
}

/* ----- Tab & bộ lọc ----- */
.tab { display: inline-flex; align-items: center; gap: 8px; border-width: 1.5px; }
.tab .ico { width: 1.1em; height: 1.1em; opacity: 0.85; }
.tab:hover { border-color: var(--ink); }
.tab.active, .chip.active {
  background: var(--ink); color: var(--ink-on); border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(43, 34, 51, 0.18);
}
.chip { border-width: 1.5px; }
.chip:hover { border-color: var(--ink); }
.search-ico { display: inline-flex; color: var(--muted); }
.search-ico .ico { width: 1.2em; height: 1.2em; }
.pass-toggle { color: var(--muted); display: inline-grid; place-items: center; }

/* ----- Nút đóng cửa sổ ----- */
.modal-x { display: grid; place-items: center; border: 1.5px solid var(--border); }
.modal-x .ico { width: 18px; height: 18px; }
.modal-x:hover { transform: rotate(90deg); border-color: var(--ink); }

/* ----- Nút sửa / xóa trên thẻ ----- */
.tool {
  display: grid; place-items: center; color: #2b2233; background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(43, 34, 51, 0.12); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.tool .ico { width: 16px; height: 16px; }
.tool.del { color: #d93a62; }
.tool:hover { transform: scale(1.08); }

/* ----- Nút phát video kiểu kính mờ, viền trắng mảnh ----- */
.yt-play { background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28)); }
.yt-play span {
  width: 66px; height: 66px; padding: 0; font-size: 1rem; color: #fff;
  background: rgba(20, 14, 26, 0.35); border: 2px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.yt-play .ico { width: 26px; height: 26px; margin-left: 4px; stroke-width: 0; }
.yt-lite:hover .yt-play span { transform: scale(1.08); background: rgba(20, 14, 26, 0.5); }
@media (max-width: 680px) {
  .yt-play span { width: 56px; height: 56px; }
  .yt-play .ico { width: 22px; height: 22px; }
}
.yt-badge {
  display: inline-flex; align-items: center; gap: 5px; z-index: 2;
  background: rgba(20, 14, 26, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 3px 10px 3px 8px; letter-spacing: 0.3px;
}
.yt-badge .ico { width: 11px; height: 11px; stroke-width: 0; }

/* ----- Khung ảnh: hiện đủ ảnh, không méo, nền là ảnh làm mờ ----- */
.mf { position: relative; overflow: hidden; width: 100%; height: 100%; background: var(--bg-2); isolation: isolate; }
.mf-bg {
  position: absolute; inset: -24px; z-index: 0; background: center / cover no-repeat;
  filter: blur(20px) saturate(1.15); opacity: 0.9; transform: scale(1.08);
}
.mf img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
/* Bìa bài viết */
.post-cover.has-img { display: block; height: auto; aspect-ratio: 16 / 10; }
.post-cover.has-img .mf { position: absolute; inset: 0; }
.post-cover img, .post:hover .post-cover img { transform: none; }
.post:hover .post-cover .mf img { transform: scale(1.03); }
.post-cover .mf img { transition: transform 0.4s; }
.mood-badge { z-index: 2; line-height: 1.4; }
/* Bìa khi đọc bài */
.reader-cover.has-img { height: auto; display: block; background: var(--bg-2); }
.reader-cover .reader-media { height: min(62vh, 520px); }
.reader-cover .reader-media img { cursor: zoom-in; }
/* Ảnh sản phẩm */
.product-img .mf { position: absolute; inset: 0; }
.product-img .mf img, .product:hover .product-img img { object-fit: contain; transform: none; cursor: pointer; }
.product-img .ph { color: #fff; animation: none; }
.product-img .ph .ico { width: 56px; height: 56px; stroke-width: 1.4; }
.stock-badge { z-index: 2; }
.hidden-badge { z-index: 2; }
/* Ảnh minh chứng thành tích */
.tl-img { object-fit: contain; width: auto; max-width: 100%; max-height: 220px; background: var(--bg); cursor: pointer; }
/* Ảnh trong cửa sổ chi tiết */
.cmt-media { border-radius: 20px; overflow: hidden; }
.pop-media { height: min(56vh, 460px); border-radius: 20px; }
.pop-media img { cursor: zoom-in; }
/* Album: ảnh giữ đúng tỉ lệ */
.shot { cursor: pointer; }
.shot img { height: auto; max-height: 520px; object-fit: contain; background: var(--bg-2); cursor: pointer; }
/* Xem ảnh lớn: vừa khít màn hình, không tràn */
.lb img { width: auto; height: auto; max-width: min(94vw, 1000px); max-height: 82vh; object-fit: contain; background: #fff; }

/* ----- Bố cục thẻ cố định: chữ dài không làm lệch icon / nút ----- */
.post-title, .tl-title, .product-name, .skill-name, .reader-body h2, .cmt-headline h2, .detail-titles h2 { overflow-wrap: anywhere; word-break: break-word; }
.post-title, .product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-excerpt, .tl-desc, .skill-note, .product-desc, .shot figcaption .cap { overflow-wrap: anywhere; }
.post-foot { flex-wrap: nowrap; }
.post-foot .tags { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.post-foot .tag { flex: none; }
.post:hover { transform: translateY(-6px); }
/* Video: ngày + tim + bình luận luôn nằm sát đáy thẻ, thẳng hàng giữa các thẻ */
.video-card { display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.video-card:hover { transform: translateY(-4px); }
.video-body { flex: 1; display: flex; flex-direction: column; cursor: pointer; }
.video-body .post-excerpt { margin-bottom: 6px; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.card-foot .post-date { white-space: nowrap; }
.video-body .react-bar, .card-foot .react-bar { margin-top: 0; }
/* Sản phẩm */
.product { cursor: pointer; }
.product:hover { transform: translateY(-4px); }
.product-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-body .react-bar { margin-top: auto; padding-top: 4px; }
.product-body .cbtns { margin-top: 6px; padding-top: 4px; }
/* Thành tích & kĩ năng: bấm được */
.tl-card, .skill-card { cursor: pointer; }
.tl-card:focus-visible, .skill-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tl-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-icon { overflow: hidden; line-height: 1; }
.skill-card:hover { transform: translateY(-4px); }
.skill-top { min-width: 0; }
.skill-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; overflow: hidden; }
.skill-name { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skill-pct { flex: none; }
.skill-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Tim & bình luận: icon nét mảnh ----- */
.rb { border-width: 1.5px; gap: 6px; }
.rb .ico { width: 1.05em; height: 1.05em; }
.rb-cmt { color: var(--text); }
.rb.liked { border-color: var(--pink-deep); }
.rb.liked .ico { animation: heartPop 0.35s; }

/* ----- Dòng chữ chạy: thẳng, gọn trong khung ----- */
.marquee {
  transform: none; margin-top: 16px; padding: 9px 0; letter-spacing: 0.2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track span { padding-right: 48px; }

/* ----- Ô dán icon tuỳ ý ----- */
.icon-own { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.icon-own small { color: var(--muted); font-weight: 600; }
.field .icon-paste { flex: 1 1 180px; max-width: 260px; padding: 9px 14px; font-size: 1.1rem; }
.mood-opt { display: inline-grid; place-items: center; line-height: 1; overflow: hidden; }
.mood-opt.own { cursor: default; padding: 0 6px; min-width: 46px; width: auto; }

/* ----- Cửa sổ chi tiết (thành tích, kĩ năng, video, ảnh, sản phẩm) ----- */
.detail-card { width: min(560px, 100%); }
.detail-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; margin-bottom: 12px; }
.detail-icon {
  flex: none; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; overflow: hidden; background: var(--bg); border: 1.5px solid var(--border);
}
.detail-titles { min-width: 0; }
.detail-titles h2 { margin: 2px 0 0; font-size: 1.45rem; line-height: 1.25; }
.detail-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.detail-level { margin: 6px 0 10px; }
.detail-level-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.detail-level-top b { font-family: var(--font-head); color: var(--pink-deep); font-size: 1.3rem; }
.detail-level .fill { transition: none; }
.detail-link { margin-top: 4px; }
.detail-acts { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--border); }
.detail-card .cmt-media { margin: 4px 0 12px; }
.cmt-date { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.cmt-type { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; text-transform: none; }
.cmt-desc { margin: 8px 0 10px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.pop-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.pop-price b { font-family: var(--font-head); font-size: 1.4rem; color: var(--pink-deep); }
.stock-pill { font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: #fff; }
.stock-pill.in { background: #2fbf8f; }
.stock-pill.out { background: #ff5f7e; }
.pop-contact { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.pop-contact > span { font-family: var(--font-head); font-weight: 600; color: var(--muted); }

/* ----- Trình phát nhạc ----- */
.md-disc { display: inline-grid; place-items: center; color: var(--pink-deep); font-size: 1.5rem; }
.md-btns .mini { display: inline-grid; place-items: center; }
.md-btns .mini .ico, .mini .ico { width: 15px; height: 15px; }
.mini { border-width: 1.5px; }
.song-play .ico { width: 13px; height: 13px; }
.song-play .ico.fill { stroke-width: 0; margin-left: 2px; }
.stat-music .note { display: inline-flex; vertical-align: -0.1em; animation: none; }
.stat-music .note .ico { width: 0.9em; height: 0.9em; }
@media (max-width: 680px) {
  .music-dock { border-radius: 18px; }
  .md-player.k-spotify iframe, .md-player.k-spotify.tall iframe, .md-player.k-spotify.short iframe { height: 80px; }
  .md-player.k-youtube iframe { height: 120px; }
  .md-player.k-soundcloud iframe { height: 100px; }
  .md-btns { gap: 2px; }
  .md-btns .mini { min-width: 30px; width: 30px; height: 30px; }
}

/* ----- Điện thoại ----- */
@media (max-width: 680px) {
  .post-foot { flex-wrap: nowrap; }
  .reader-cover .reader-media { height: min(48vh, 380px); }
  .pop-media { height: min(46vh, 380px); }
  .detail-head { gap: 12px; }
  .detail-icon { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 16px; }
  .detail-titles h2 { font-size: 1.25rem; }
  .product-body .react-bar .rb { padding: 3px 8px; }
  .card-foot { gap: 6px; }
  .shot img { max-height: 360px; }
  .lb img { max-width: 94vw; max-height: 78vh; }
  .marquee { margin-top: 14px; font-size: 0.92rem; }
}
/* Ảnh trong cửa sổ: cao theo đúng tỉ lệ ảnh, có giới hạn */
.pop-media, .reader-cover .reader-media { height: auto; }
.pop-media img { height: auto; max-height: min(56vh, 460px); }
.reader-cover .reader-media img { height: auto; max-height: min(62vh, 520px); }
@media (max-width: 680px) {
  .pop-media, .reader-cover .reader-media { height: auto; }
  .pop-media img { max-height: min(46vh, 380px); }
  .reader-cover .reader-media img { max-height: min(48vh, 380px); }
}

/* ==========================================================
   BẢN 2026-10-08b: thanh tiêu đề không trôi theo, nền sáng dịu,
   video từ máy, nhiều ảnh sản phẩm trượt ngang
   ========================================================== */
/* Thanh "Phan Cẩm Tiên" đứng yên ở đầu trang, không bám theo khi cuộn */
.nav, .nav.scrolled { position: relative; top: auto; }


/* Video tải từ máy */
.vid-wrap { border-radius: 18px; overflow: hidden; background: #000; }
.vid { display: block; width: 100%; max-height: 70vh; background: #000; }
#rVideo .vid-wrap + .yt-lite { margin-top: 12px; }
.vid-up { align-items: flex-start; }
.vid-preview { width: 100%; }
.vid-preview .vid-wrap { max-width: 360px; }
.vid-preview .vid { max-height: 220px; }
.vid-empty {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px;
  border: 2px dashed var(--pink); color: var(--muted); background: var(--bg);
}
.vid-empty .ico { width: 26px; height: 26px; flex-shrink: 0; }
.vid-empty small { font-size: 0.82rem; line-height: 1.4; }
.cmt-media + .cmt-media { margin-top: 10px; }

/* Nhiều ảnh trong form sản phẩm */
.multi-img { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mi-cell, .mi-add {
  position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: var(--bg) center / cover no-repeat; border: 1.5px solid var(--border);
}
.mi-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed var(--pink); color: var(--muted); cursor: pointer; font: inherit;
}
.mi-add .ico { width: 24px; height: 24px; }
.mi-add small { font-size: 0.75rem; text-align: center; padding: 0 4px; }
.mi-first {
  position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: 999px;
  background: rgba(20, 14, 26, 0.62); color: #fff; font-size: 0.68rem; font-weight: 700;
}
.mi-acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.mi-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: #2a2030; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.mi-btn .ico { width: 14px; height: 14px; }

/* Ảnh sản phẩm trượt ngang */
.slider { position: relative; width: 100%; height: 100%; }
.product-img .slider { position: absolute; inset: 0; }
.slides {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.product-img .slide .mf { position: absolute; inset: 0; }
.sl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.82); color: #2a2030; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s;
}
.sl-nav .ico { width: 16px; height: 16px; }
.sl-prev { left: 8px; } .sl-prev .ico { transform: rotate(90deg); }
.sl-next { right: 8px; } .sl-next .ico { transform: rotate(-90deg); }
.slider:hover .sl-nav, .sl-nav:focus-visible { opacity: 1; }
@media (hover: none) { .sl-nav { display: none; } }
.sl-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 3;
  display: flex; gap: 5px; padding: 4px 7px; border-radius: 999px; background: rgba(20, 14, 26, 0.35);
  pointer-events: none;
}
.sl-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: all 0.2s; }
.sl-dots span.on { background: #fff; width: 14px; border-radius: 3px; }
.product-img .sl-dots { bottom: 44px; }
.product-img .yt-badge { left: auto; right: 10px; bottom: 10px; }
/* Ảnh sản phẩm trong cửa sổ chi tiết: khung cố định, ảnh hiện đủ, nền mờ */
.pop-media.slider { height: min(56vh, 460px); border-radius: 20px; overflow: hidden; }
.pop-media.slider .slide .mf { position: absolute; inset: 0; }
.pop-media.slider .mf img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
@media (max-width: 680px) { .pop-media.slider { height: min(46vh, 380px); } }
@media (max-width: 680px) {
  .product-img .yt-badge { padding: 5px; }
  .product-img .yt-badge > span { display: none; }
}

/* ----- 2026-10-08c: icon phẳng trong Cài đặt thay cho emoji ----- */
.field > .lbl-ico { display: inline-flex; align-items: center; gap: 8px; }
.lbl-ico .ico { width: 18px; height: 18px; color: var(--pink-deep); flex-shrink: 0; }
.vis-ico { display: grid; place-items: center; color: var(--pink-deep); }
.vis-ico .ico { width: 19px; height: 19px; }
.up-preview .ico { width: 30px; height: 30px; stroke-width: 1.5; color: var(--pink-deep); opacity: 0.75; }
.bg-prev.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8d7b97; }
.bg-prev.empty .ico { width: 32px; height: 32px; stroke-width: 1.5; color: var(--pink-deep); opacity: 0.8; }
.bg-prev.empty span { font-size: 0.85rem; font-weight: 600; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg-btn .ico { width: 15px; height: 15px; flex-shrink: 0; }
.btn .ico + span { margin-left: 6px; }
.btn-sm > .ico { width: 15px; height: 15px; }
.st-ico .ico, .st-type .ico, .st-link .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--pink-deep); }

/* ----- Ẩn từng mục khỏi khách (chủ blog vẫn thấy, mờ đi) ----- */
.post:has(> .card-tools.off), .tl-card:has(> .card-tools.off), .skill-card:has(> .card-tools.off),
.video-card:has(> .card-tools.off), .shot:has(> .card-tools.off) {
  opacity: 0.55; outline: 2px dashed var(--muted); outline-offset: -2px;
}
.post:has(> .card-tools.off):hover, .tl-card:has(> .card-tools.off):hover, .skill-card:has(> .card-tools.off):hover,
.video-card:has(> .card-tools.off):hover, .shot:has(> .card-tools.off):hover { opacity: 0.85; }
.off-badge {
  position: absolute; left: 10px; top: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(20, 14, 26, 0.75); color: #fff;
  font-size: 0.75rem; font-weight: 700;
}
.off-badge .ico { width: 13px; height: 13px; }
.tool.hide.on { background: #2b2233; color: #fff; border-color: #2b2233; }
.tl-card .off-badge, .skill-card .off-badge { position: static; margin-bottom: 8px; }
/* Chủ blog: 3 nút sửa / ẩn / xóa nằm trên một hàng riêng, không đè lên tên */
.is-admin .skill-card, .is-admin .tl-card { padding-top: 58px; }
.is-admin .skill-card .skill-top, .is-admin .tl-meta, .is-admin .tl-title { padding-right: 0; }
.is-admin .skill-pct { position: static; }
.tl-card .off-badge, .skill-card .off-badge { position: absolute; left: 14px; top: 14px; margin: 0; }

/* ==========================================================
   BẢNG MÀU DỊU MẮT (2026-10-08d)
   Sáng: hồng phấn pha be, không trắng chói.
   Tối: tím xám ấm như lúc hoàng hôn, không đen kịt.
   Đặt cuối file để thắng mọi khai báo màu cũ phía trên.
   ========================================================== */
:root:not([data-theme="dark"]) {
  --bg: #f1e9ec;
  --bg-2: #e8dfe9;
  --card: rgba(251, 247, 248, 0.9);
  --card-solid: #fbf7f8;
  --text: #3d3340;
  --muted: #7e7083;
  --pink: #e39bb9;
  --pink-deep: #c9668f;
  --lilac: #a996d2;
  --blue: #93bad6;
  --mint: #a6d4bf;
  --yellow: #ecd496;
  --peach: #ecbb9b;
  --border: #e8d8e0;
  --shadow: 0 10px 28px rgba(120, 70, 100, 0.10);
  --ink: #3a2f3d; --ink-on: #fbf7f8; --ink-soft: rgba(58, 47, 61, 0.12);
  --soft: #f6e6ee;          /* nền nhẹ cho thẻ tag, nút đã thích */
}
[data-theme="dark"] {
  --bg: #2c2631;
  --bg-2: #362e3d;
  --card: rgba(57, 49, 63, 0.9);
  --card-solid: #3a3240;
  --text: #efe6ee;
  --muted: #b6a9ba;
  --pink: #d895b2;
  --pink-deep: #eda3c2;
  --lilac: #b4a2dc;
  --blue: #98bfd9;
  --mint: #9ccbb6;
  --yellow: #e2cd94;
  --peach: #e2b597;
  --border: #4d4356;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --ink: #efe6ee; --ink-on: #2c2631; --ink-soft: rgba(239, 230, 238, 0.16);
  --soft: #4a3d4d;
}
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(circle at 8% 6%, #eadfe9 0, transparent 42%),
    radial-gradient(circle at 92% 18%, #f0dfe6 0, transparent 38%),
    radial-gradient(circle at 50% 100%, #e9e2e6 0, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 6%, #3a3043 0, transparent 42%),
    radial-gradient(circle at 92% 18%, #3d3039 0, transparent 38%),
    var(--bg);
  background-attachment: fixed;
}

/* Thẻ nhỏ, nút đã thích: dùng màu nền nhẹ chung, không còn hồng / tím đậm */
.tag, [data-theme="dark"] .tag { background: var(--soft); color: var(--pink-deep); }
.rb.liked, [data-theme="dark"] .rb.liked,
.btn-like.liked, [data-theme="dark"] .btn-like.liked,
.mood-opt.active, [data-theme="dark"] .mood-opt.active,
.cmt-you, [data-theme="dark"] .cmt-you { background: var(--soft); }
.stat-btn, [data-theme="dark"] .stat-btn { background: var(--card-solid); }

/* Dải chữ chạy, ô thống kê kĩ năng: dải màu trầm hơn */
.marquee { background: linear-gradient(90deg, var(--pink), var(--lilac) 55%, var(--blue)); color: #fff; }
[data-theme="dark"] .marquee { background: linear-gradient(90deg, #8f5f78, #74679a 55%, #5d7f96); color: #f6eef4; }
.skills-summary div { background: linear-gradient(135deg, var(--pink), var(--lilac)); box-shadow: 0 6px 16px rgba(120, 70, 100, 0.16); }
[data-theme="dark"] .skills-summary div { background: linear-gradient(135deg, #8f5f78, #74679a); box-shadow: none; }
.chip.active, .tab.active { box-shadow: none; }

/* Vòng icon thành tích, ảnh đại diện, ô sản phẩm trống */
.tl-icon { background: linear-gradient(135deg, #f1d6e2, #ddd4ec); box-shadow: 0 4px 12px rgba(120, 70, 100, 0.14); }
[data-theme="dark"] .tl-icon { background: linear-gradient(135deg, #5a4655, #4b4460); box-shadow: none; }
.avatar { border-color: var(--card-solid); box-shadow: 0 8px 22px rgba(120, 70, 100, 0.18); }
.product-img { background: linear-gradient(135deg, #efd7e2, #ddd5ec); }
[data-theme="dark"] .product-img { background: linear-gradient(135deg, #574553, #4a4360); }
.hero-card::before { opacity: 0.35; }
.hero-card::after { opacity: 0.3; }

/* Màu bìa bài viết: pastel dịu hơn */
.c0 { background: linear-gradient(135deg, #efcfdd, #f6e6ed); }
.c1 { background: linear-gradient(135deg, #dcd2ef, #ece7f6); }
.c2 { background: linear-gradient(135deg, #cbe0ee, #e5eff6); }
.c3 { background: linear-gradient(135deg, #cfe8dc, #e7f3ed); }
.c4 { background: linear-gradient(135deg, #f1e3bd, #f8f0dc); }
.c5 { background: linear-gradient(135deg, #f1d5c4, #f8e9e0); }
[data-theme="dark"] .c0 { background: linear-gradient(135deg, #6a4a5b, #54424f); }
[data-theme="dark"] .c1 { background: linear-gradient(135deg, #574c72, #47405a); }
[data-theme="dark"] .c2 { background: linear-gradient(135deg, #46607a, #3d4b5c); }
[data-theme="dark"] .c3 { background: linear-gradient(135deg, #476657, #3c4d47); }
[data-theme="dark"] .c4 { background: linear-gradient(135deg, #6d6040, #504a3a); }
[data-theme="dark"] .c5 { background: linear-gradient(135deg, #6f5244, #53433d); }

/* Ô nhập, cửa sổ, nền mờ phía sau cửa sổ */
.field input, .field textarea, .search { background: var(--card-solid); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px var(--ink-soft); }
.modal-backdrop { background: rgba(45, 35, 50, 0.42); }
[data-theme="dark"] .modal-backdrop { background: rgba(15, 10, 18, 0.55); }
.bg-prev.empty { background-image: radial-gradient(circle at 20% 20%, #eadfe9 0, transparent 50%), radial-gradient(circle at 80% 30%, #f0dfe6 0, transparent 45%), linear-gradient(var(--bg), var(--bg)); }
[data-theme="dark"] .bg-prev.empty { background-image: linear-gradient(var(--bg), var(--bg)); color: var(--muted); }
/* Số lượng còn chỉ hiện trong cửa sổ chi tiết; thẻ chỉ báo khi hết hàng */
.product-img .sl-dots { bottom: 12px; }
.product-img:has(.stock-badge) .sl-dots { bottom: 44px; }

/* ==========================================================
   2026-10-08f: avatar to hơn, tin 24h, link trong bài, bỏ chọn tâm trạng
   ========================================================== */
/* Avatar chủ blog to rõ hơn */
.avatar { width: 176px; height: 176px; font-size: 5.4rem; border-width: 5px; }
@media (max-width: 680px) { .avatar { width: 156px; height: 156px; font-size: 4.8rem; } }
.avatar-wrap { padding: 4px; }

/* Có tin: vòng màu liền (kiểu Instagram); đã xem hết: vòng xám */
.avatar-wrap.has-story .avatar-ring {
  inset: -6px; border: none; animation: spin 6s linear infinite;
  background: conic-gradient(from 0deg, var(--pink-deep), var(--peach), var(--lilac), var(--blue), var(--pink-deep));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
.avatar-wrap.has-story.story-seen .avatar-ring { background: var(--border); animation: none; }
.avatar-wrap.has-story .avatar { cursor: pointer; }
.story-plus {
  position: absolute; right: 6px; bottom: 6px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--ink-on); border: 3px solid var(--card-solid);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); transition: transform 0.15s;
}
.story-plus .ico { width: 18px; height: 18px; }
.story-plus:hover { transform: scale(1.08); }

/* Cửa sổ xem tin */
.story-modal { padding: 0; }
.story-modal .modal-backdrop { background: rgba(18, 12, 22, 0.86); }
.story-card {
  position: relative; width: min(430px, 100vw); height: min(92vh, 780px); border-radius: 22px; overflow: hidden;
  background: #17121b; color: #fff; display: flex; flex-direction: column; animation: modalIn 0.3s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
@media (max-width: 680px) { .story-card { height: 100dvh; border-radius: 0; } }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-head {
  position: absolute; top: 22px; left: 12px; right: 10px; z-index: 5; display: flex; align-items: center; gap: 10px;
}
.story-av {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2); font-size: 1.2rem; border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.story-av img { width: 100%; height: 100%; object-fit: cover; }
.story-who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.story-who b { font-family: var(--font-head); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-who small { opacity: 0.8; font-size: 0.78rem; white-space: nowrap; }
.story-tool {
  flex: none; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.25); color: #fff; cursor: pointer;
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.8rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.story-tool.icon { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
.story-tool .ico { width: 18px; height: 18px; }
.story-media { flex: 1; position: relative; display: grid; place-items: center; background: #000; }
.story-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-media .mf { position: absolute; inset: 0; background: #000; }
.story-media .mf img { width: 100%; height: 100%; object-fit: contain; }
.story-nav { position: absolute; top: 70px; bottom: 90px; z-index: 3; border: none; background: transparent; cursor: pointer; }
.story-nav.prev { left: 0; width: 35%; }
.story-nav.next { right: 0; width: 65%; }
.story-cap {
  position: absolute; left: 0; right: 0; bottom: 64px; z-index: 4; margin: 0; padding: 10px 18px;
  text-align: center; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.story-add {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  color: #fff; border-color: rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.25);
}
.story-add:hover { background: #fff; color: #17121b; }
body:not(.is-admin) .story-cap { bottom: 0; padding-bottom: 28px; }

/* Link liên quan trong bài viết */
.post-links { display: grid; gap: 8px; margin: 4px 0 14px; }
.post-links:empty { display: none; }
.pl-title { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.pl-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; text-decoration: none;
  color: var(--text); background: var(--card-solid); border: 1.5px solid var(--border); transition: border-color 0.15s, transform 0.15s;
}
.pl-item:hover { border-color: var(--ink); transform: translateY(-1px); }
.pl-ico { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--pink-deep); }
.pl-item.map .pl-ico { color: #2f9e6b; }
.pl-ico .ico { width: 18px; height: 18px; }
.pl-text { min-width: 0; display: flex; flex-direction: column; }
.pl-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-text small { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Ô nhập link trong form */
.links-edit { display: grid; gap: 10px; margin-bottom: 10px; }
.links-edit:empty { display: none; }
.link-row { display: flex; gap: 8px; align-items: flex-start; }
.link-ins { flex: 1; min-width: 0; display: grid; gap: 6px; }
.link-row .tool { flex: none; margin-top: 8px; }
.field .link-ins input { padding: 10px 14px; }
.mood-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.link-row { padding: 10px; border-radius: 18px; background: var(--bg); }
.link-row .tool { margin-top: 6px; }
.avatar-ring { pointer-events: none; }

/* Chọn nhiều ảnh / video cho tin */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-bottom: 10px; }
.sm-grid:empty { display: none; }
.sm-cell { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #000; border: 1.5px solid var(--border); }
.sm-cell img, .sm-cell video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; transition: opacity 0.2s; }
.sm-cell.done img, .sm-cell.done video { opacity: 1; }
.sm-cell.failed { border-color: #d93a62; }
.sm-st {
  position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: rgba(20, 14, 26, 0.7); color: #fff;
}
.sm-st:empty { display: none; }
.sm-play { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 14, 26, 0.6); color: #fff; }
.sm-play .ico { width: 10px; height: 10px; stroke-width: 0; }
.sm-rm { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; }
.sm-count { color: var(--muted); }

/* ----- 2026-10-08h: nhiều ảnh / video mỗi mục ----- */
.multi-img { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.mi-cell { overflow: hidden; }
.mi-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-cell.pending { opacity: 0.6; }
.mi-acts .mi-btn { width: 22px; height: 22px; }
.mi-acts .mi-btn .ico { width: 12px; height: 12px; }
.mi-first { font-size: 0.62rem; padding: 1px 6px; }
.count-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff;
  background: rgba(20, 14, 26, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.count-badge .ico { width: 13px; height: 13px; }
.tl-img-wrap { position: relative; }
/* Lưới ảnh trong bài / thành tích */
.photo-grid { display: grid; gap: 6px; margin: 4px 0 14px; grid-template-columns: repeat(3, 1fr); }
.photo-grid.n1 { grid-template-columns: 1fr; }
.photo-grid.n2, .photo-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.pg-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }
.photo-grid.n1 .pg-cell { aspect-ratio: 4 / 3; }
.pg-cell .mf { position: absolute; inset: 0; }
.pg-cell .mf img { cursor: zoom-in; }
.pg-more {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: zoom-in;
  background: rgba(20, 14, 26, 0.5); color: #fff; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
}
#rVideo .vid-wrap + .vid-wrap, #rVideo .photo-grid + .vid-wrap { margin-top: 10px; }
/* Lightbox: nút trước / sau + số thứ tự */
.lb-nav {
  position: fixed; top: 50%; z-index: 10; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.88); color: #2a2030; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
}
.lb-nav .ico { width: 22px; height: 22px; }
.lb-prev { left: 16px; } .lb-prev .ico { transform: rotate(90deg); }
.lb-next { right: 16px; } .lb-next .ico { transform: rotate(-90deg); }
.lb-count {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 10; padding: 4px 12px; border-radius: 999px;
  background: rgba(20, 14, 26, 0.6); color: #fff; font-weight: 700; font-size: 0.85rem;
}
@media (max-width: 680px) { .lb-nav { width: 38px; height: 38px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }
/* Dòng ghi công nhỏ cuối trang */
.footer .credit { margin-top: 14px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2px; opacity: 0.7; }
.footer .credit b { font-weight: 700; }

/* ===== 08i. Gợi ý mật khẩu mạnh ===== */
.pass-tip { margin: 2px 0 6px; font-size: .82rem; line-height: 1.5; color: var(--muted, #8a7f88); }

/* Thông báo nhỏ: khi ẩn thì ẩn hẳn (trước đây lúc mở trình phát nhạc, thông báo cũ còn ló lên ở đáy màn hình) */
.toast { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, calc(100% + 140px));
  transition: transform 0.4s cubic-bezier(.2,1.4,.4,1), opacity 0.25s ease, visibility 0s linear 0.4s; }
.toast.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: transform 0.4s cubic-bezier(.2,1.4,.4,1), opacity 0.2s ease, visibility 0s; }

/* ===== 08k. Gian hàng gọn: nút đặt hàng nằm trong popup, hashtag, tìm kiếm ===== */
.shop-toolbar { margin: 16px 0 18px; }
.product-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
button.tag { border: 0; cursor: pointer; font-family: inherit; transition: transform .15s ease, filter .15s ease; }
button.tag:hover { transform: translateY(-1px); filter: brightness(.96); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-foot .react-bar { margin: 0; }
.order-hint {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--soft); color: var(--pink-deep); transition: background .2s ease, color .2s ease;
}
.order-hint .ico { width: 15px; height: 15px; }
.product:hover .order-hint { background: var(--pink-deep); color: var(--ink-on, #fff); }

/* Popup sản phẩm: khối đặt hàng */
.pop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.pop-contact {
  margin: 12px 0 6px; padding: 14px; gap: 12px; border-radius: 20px;
  background: var(--soft); border: 1.5px solid color-mix(in srgb, var(--pink) 30%, transparent);
}
.pc-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--pink-deep); }
.pc-head .ico { width: 18px; height: 18px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pc-grid .cbtn { width: 100%; justify-content: flex-start; padding: 5px 12px 5px 5px; background: var(--card-solid); }
.pc-grid .cbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .order-hint { padding: 7px; }
  .order-hint span { display: none; }
  .product-body .tags { gap: 4px; }
  .product-body .tag { font-size: .72rem; padding: 2px 8px; }
}

/* ===== 08l. Chủ blog sửa tiêu đề đầu mục ===== */
.panel-head { position: relative; }
.head-edit {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line, rgba(0,0,0,.08)); background: var(--card-solid); color: var(--text);
  cursor: pointer; opacity: .55; transition: opacity .2s ease, transform .2s ease;
}
.head-edit .ico { width: 16px; height: 16px; }
.panel-head:hover .head-edit, .head-edit:focus-visible { opacity: 1; }
.head-edit:hover { transform: scale(1.06); border-color: var(--pink); }
@media (hover: none) { .head-edit { opacity: 1; } }
.panel-head:has(.head-edit) h2, .panel-head:has(.head-edit) p { padding-right: 40px; }
.head-form { display: flex; flex-direction: column; gap: 8px; min-width: min(460px, 78vw); }
.head-form input {
  width: 100%; padding: 9px 14px; border-radius: 14px; border: 1.5px solid var(--line, rgba(0,0,0,.12));
  background: var(--card-solid); color: var(--text); font: inherit;
}
.head-form .he-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.head-form input:focus { outline: none; border-color: var(--pink); }
.he-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 08m. Ghi nhớ đăng nhập ===== */
.remember-row { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 8px; font-size: .88rem; color: var(--muted); cursor: pointer; line-height: 1.45; }
.remember-row input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--pink-deep); flex: none; }

/* ===== 08n. Thẻ sản phẩm: nút số lượng + hàng tim/đặt hàng luôn nằm cố định ở đáy thẻ ===== */
.product-grid { align-items: stretch; }
.product { display: flex; flex-direction: column; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { -webkit-line-clamp: 2; }
.product-bottom { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.product-bottom .admin-row { margin: 0; }
.product-bottom .product-foot { margin-top: 0; padding-top: 0; }
.product-bottom .react-bar { margin-top: 0; padding-top: 0; }

/* ===== 08o. Chủ blog trả lời bình luận ===== */
.cmt-replies { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid color-mix(in srgb, var(--pink) 35%, transparent); display: flex; flex-direction: column; gap: 10px; }
.cmt-replies .cmt { padding: 0; background: none; border: 0; box-shadow: none; }
.cmt-replies .cmt-av { width: 30px; height: 30px; font-size: 1rem; }
.cmt-reply-form .cmt-edit { margin: 0; }
.cmt-act.reply { color: var(--pink-deep); font-weight: 700; }

/* ===== 08p. Khung đọc bài: báo bài đang ẩn ===== */
.reader-hidden-note {
  margin: 0 0 10px; padding: 8px 14px; border-radius: 14px; font-size: .88rem; font-weight: 600;
  background: color-mix(in srgb, #f0a83a 18%, var(--card-solid)); color: var(--text);
  border: 1.5px dashed color-mix(in srgb, #f0a83a 55%, transparent);
}

/* ===== 08q. Kĩ năng: màn hình lớn xếp các nhóm dàn ngang, điện thoại vẫn cuộn dọc ===== */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; align-items: start; }
.skill-group { min-width: 0; }
.skill-group .skill-grid { grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 680px) { .skill-groups { grid-template-columns: 1fr; } }

/* ===== 08r. Chữ dài không làm tràn hay lệch khung ===== */
/* Hashtag, nhãn, chip: dài quá thì cắt bằng "…" thay vì đẩy tràn ra ngoài */
.tag, .chip, .skill-cat, .cmt-type, .stock-badge, .hidden-badge {
  max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip { max-width: min(240px, 100%); }
.tags { min-width: 0; max-width: 100%; overflow: hidden; }
.post-foot .tags { flex: 1 1 auto; flex-wrap: nowrap; }
.post-foot .tag { flex: 0 1 auto; }
.tl-card, .post, .video-card, .product, .skill-card, .shot { min-width: 0; }
.tl-card .tag { display: inline-block; vertical-align: middle; }

/* Kĩ năng: mọi thẻ cao bằng nhau (tên 1 dòng, ghi chú giữ chỗ đúng 2 dòng) */
.skill-name { display: block; -webkit-line-clamp: unset; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; flex: 1; }
.skill-note { margin-top: 6px; line-height: 1.5; min-height: 3em; }
.skill-cat { display: block; }
body.has-bg .skill-cat { display: inline-block; max-width: 100%; }

/* Tiêu đề đầu mục do chủ blog đặt: chữ dài vẫn nằm gọn trong khung */
.panel-head h2, .panel-head p { overflow-wrap: anywhere; }
.skill-cat { line-height: 1.4; height: 1.4em; box-sizing: content-box; }
.tl-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.video-body h3, .video-title { overflow-wrap: anywhere; }

/* 08s. Dòng chữ chạy: luôn chạy (kể cả máy tắt hiệu ứng chuyển động), chữ to rõ hơn */
.marquee { font-size: 1.12rem; padding: 11px 0; font-weight: 600; text-shadow: 0 1px 2px rgba(80, 40, 70, 0.25); }
.marquee-track { animation: scroll 28s linear infinite !important; animation-iteration-count: infinite !important; will-change: transform; }
@media (max-width: 680px) { .marquee { font-size: 1rem; padding: 10px 0; } }

/* 08t. Ô giá có chọn đơn vị tiền tệ */
.price-box { display: flex; align-items: stretch; gap: 8px; }
.price-box input { flex: 1 1 auto; min-width: 0; }
.cur-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 2px solid var(--pink); cursor: pointer; font: inherit; color: var(--text);
  background: linear-gradient(135deg, rgba(255, 182, 213, 0.35), rgba(196, 177, 255, 0.35));
  transition: transform 0.15s, box-shadow 0.15s;
}
.cur-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(255, 110, 180, 0.25); }
.cur-btn b { font-weight: 700; letter-spacing: 0.3px; }
.cur-btn i { font-style: normal; color: var(--pink-deep); font-weight: 700; }
.cur-btn .ico { width: 16px; height: 16px; opacity: 0.7; transition: transform 0.2s; }
.cur-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.cur-flag { font-size: 1.15rem; line-height: 1; }
.cur-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px;
  padding: 10px; border-radius: 18px; border: 2px dashed var(--border); background: var(--card-solid);
  max-height: 260px; overflow: auto; animation: popIn 0.18s ease-out;
}
.cur-grid[hidden] { display: none; }
.cur-opt {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  text-align: left; padding: 8px 10px; border-radius: 14px; border: 2px solid transparent; background: transparent;
  color: var(--text); cursor: pointer; font: inherit; min-width: 0;
}
.cur-opt .cur-flag { grid-row: span 2; font-size: 1.4rem; }
.cur-opt b { font-size: 0.92rem; }
.cur-opt small { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cur-opt:hover { background: rgba(255, 182, 213, 0.22); }
.cur-opt.active { border-color: var(--pink); background: rgba(255, 182, 213, 0.3); }
.cur-preview { display: block; margin-top: 6px; color: var(--pink-deep); font-weight: 600; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }

/* 08u. Nút & cửa sổ ủng hộ */
.stat-donate b { display: flex; justify-content: center; }
.stat-donate .gift { display: inline-flex; color: var(--pink-deep); animation: giftWiggle 2.8s ease-in-out infinite; }
.stat-donate .gift .ico { width: 1.35rem; height: 1.35rem; }
@keyframes giftWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.donate-card { max-width: 760px; }
.dn-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 34px; }
.dn-top h2 { margin: 0; }
.dn-top .modal-sub { margin: 4px 0 0; overflow-wrap: anywhere; }
.dn-badge {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  box-shadow: 0 8px 18px rgba(255, 110, 180, 0.3);
}
.dn-badge .ico { width: 28px; height: 28px; }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dn-grid.one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.dn-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border-radius: 22px;
  background: var(--card-solid); border: 2px solid var(--border);
}
.dn-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dn-head > div { min-width: 0; }
.dn-head b, .dn-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-head small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.dn-head i {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pink), var(--lilac));
}
.dk-momo .dn-head i { background: #a50064; } .dk-zalopay .dn-head i { background: #0068ff; }
.dk-shopeepay .dn-head i { background: #ee4d2d; } .dk-viettelmoney .dn-head i { background: #e60a32; }
.dk-paypal .dn-head i { background: #003087; } .dk-kofi .dn-head i { background: #29abe0; }
.dk-bmc .dn-head i { background: #ffdd00; color: #222; } .dk-patreon .dn-head i { background: #f96854; }
.dk-wise .dn-head i { background: #9fe870; color: #163300; } .dk-crypto .dn-head i { background: #f7931a; }
.dk-bank .dn-head i { background: linear-gradient(135deg, #6fb1ff, #7a6cff); }
.dn-qr { padding: 8px; border: 0; border-radius: 16px; background: #fff; cursor: zoom-in; display: block; }
.dn-qr img { display: block; width: 100%; border-radius: 10px; }
.dn-qr-acts { display: flex; justify-content: center; margin-top: -2px; }
.dn-mini, .dn-copy {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: inherit;
  font-size: 0.78rem; font-weight: 700; color: var(--pink-deep); background: rgba(255, 182, 213, 0.25);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; flex: 0 0 auto;
}
.dn-mini .ico, .dn-copy .ico { width: 14px; height: 14px; }
.dn-mini:hover, .dn-copy:hover { border-color: var(--pink); }
.dn-copy.done { color: #1d8a4e; background: rgba(80, 200, 120, 0.2); }
.dn-line small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.dn-val { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dn-val b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 1.02rem; letter-spacing: 0.3px; }
.dn-note { margin: 0; font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.dn-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; text-decoration: none; }
.dn-link .ico { width: 16px; height: 16px; }
.dn-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.dn-row { border: 2px dashed var(--border); border-radius: 20px; padding: 12px 14px; }
.dn-row-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dn-row-tools b { margin-right: auto; color: var(--pink-deep); }
.dn-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 12px; }
.dn-row select { width: 100%; }
@media (max-width: 680px) {
  .dn-grid { grid-template-columns: 1fr; }
  .dn-top { gap: 10px; }
  .dn-badge { width: 44px; height: 44px; border-radius: 14px; }
}
.donate-card { width: min(760px, 100%); }
.dn-row select { font: inherit; color: var(--text); background: var(--card-solid); border: 2px solid var(--border); border-radius: 18px; padding: 12px 14px; }
.price-box input { width: auto; }
.cur-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.cur-opt small { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dn-grid { align-items: start; }


/* 08v. Khung sửa ủng hộ: 2 cột thẳng hàng, ô cao bằng nhau */
.dn-rows { gap: 16px; margin: 4px 0 14px; }
.dn-row { padding: 14px 18px 4px; border-radius: 22px; }
.dn-row-tools { min-height: 36px; margin-bottom: 8px; }
.dn-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.dn-row .field { margin-bottom: 14px; min-width: 0; }
.dn-row .field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-row .field input, .dn-row select {
  display: block; width: 100%; height: 50px; box-sizing: border-box; padding: 0 16px; margin: 0;
  font: inherit; font-weight: 500; line-height: 1; border-radius: 18px;
}
.dn-row select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 42px; background-color: var(--card-solid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d36fa0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.dn-row select:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 4px rgba(255, 143, 199, 0.25); }
.dn-row textarea { box-sizing: border-box; min-height: 76px; }
.dn-qr-field .uploader { align-items: center; }
.dn-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px;
  font: inherit; font-weight: 600; color: var(--pink-deep); background: transparent; cursor: pointer;
  border: 2px dashed var(--pink); border-radius: 18px; transition: background 0.15s;
}
.dn-add:hover { background: rgba(255, 182, 213, 0.18); }
.dn-add .ico { width: 18px; height: 18px; }
.donate-card .modal-actions { margin-top: 18px; }
@media (max-width: 560px) { .dn-row-grid { grid-template-columns: 1fr; } .dn-row { padding: 12px 14px 2px; } }

/* 08w. Ảnh mã QR tự cắt sát nội dung */
.dn-qr { width: 100%; padding: 10px; display: flex; justify-content: center; }
.dn-qr-view { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 10px; }
.dn-qr { width: auto; max-width: 100%; align-self: center; }
.dn-qr .dn-qr-view { flex: 0 0 auto; }
.dn-grid.one { grid-template-columns: minmax(0, 440px); }

/* 08x. Ủng hộ: danh sách ô vuông + cửa sổ chi tiết */
.dn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dn-tile {
  aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 12px; border-radius: 24px; cursor: pointer; font: inherit; color: var(--text); text-align: center;
  background: var(--card-solid); border: 2px solid var(--border);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.dn-tile:hover, .dn-tile:focus-visible { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 12px 24px rgba(255, 110, 180, 0.25); outline: none; }
.dn-tile b { width: 100%; font-size: 1rem; line-height: 1.3; height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dn-tile small { width: 100%; color: var(--muted); font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-tags { display: flex; gap: 4px; justify-content: center; min-height: 20px; }
.dn-tags em { font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: var(--pink-deep); background: rgba(255, 182, 213, 0.25); }
.dn-ico {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--pink), var(--lilac));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.dk-momo .dn-ico { background: #a50064; } .dk-zalopay .dn-ico { background: #0068ff; }
.dk-shopeepay .dn-ico { background: #ee4d2d; } .dk-viettelmoney .dn-ico { background: #e60a32; }
.dk-paypal .dn-ico { background: #003087; } .dk-kofi .dn-ico { background: #29abe0; }
.dk-bmc .dn-ico { background: #ffdd00; color: #222; } .dk-patreon .dn-ico { background: #f96854; }
.dk-wise .dn-ico { background: #9fe870; color: #163300; } .dk-crypto .dn-ico { background: #f7931a; }
.dk-bank .dn-ico { background: linear-gradient(135deg, #6fb1ff, #7a6cff); }
.donate-card { width: min(680px, 100%); }

.dn-detail { width: min(460px, 100%); display: flex; flex-direction: column; }
#donateDetailBody { display: flex; flex-direction: column; gap: 14px; }
.dn-d-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; min-width: 0; }
.dn-d-head .dn-ico { width: 48px; height: 48px; border-radius: 16px; font-size: 1.2rem; }
.dn-d-head > div { min-width: 0; }
.dn-d-head h2 { margin: 0; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-d-head small { color: var(--muted); font-weight: 600; }
#donateDetailBody .dn-qr { align-self: center; padding: 12px; border-radius: 22px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.dn-info { display: flex; flex-direction: column; border: 2px solid var(--border); border-radius: 18px; overflow: hidden; }
.dn-row-i {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 12px 8px 14px;
}
.dn-row-i + .dn-row-i { border-top: 2px solid var(--border); }
.dn-row-i small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.dn-row-i b { font-size: 1rem; overflow-wrap: anywhere; letter-spacing: 0.2px; }
#donateDetailBody .dn-note { text-align: center; }
.dn-d-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dn-d-acts:empty { display: none; }
.dn-d-acts .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.dn-d-acts .ico { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .dn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dn-ico { width: 48px; height: 48px; }
  .dn-row-i { grid-template-columns: 92px minmax(0, 1fr) auto; }
}

/* 08y. QR vẽ bằng canvas, icon phẳng, hộp quà lắc nhẹ */
.dn-qr-view { position: static; max-width: 100%; }
.dn-qr-view img, .dn-qr-view canvas { display: block; width: 100%; height: auto; border-radius: 10px; }
.dn-qr-view img { max-height: min(460px, 58vh); object-fit: contain; }
.dn-qr-view img[hidden] { display: none; }
.dn-ico .ico { width: 55%; height: 55%; stroke-width: 1.7; }
.dn-ico { background: linear-gradient(135deg, var(--pink), var(--lilac)); }
.dk-bank .dn-ico { background: linear-gradient(135deg, #3b6fd8, #6a5cff); }
.dk-momo .dn-ico { background: linear-gradient(135deg, #a50064, #d82d8b); }
.dk-zalopay .dn-ico { background: linear-gradient(135deg, #0068ff, #00b3ff); }
.dk-shopeepay .dn-ico { background: linear-gradient(135deg, #ee4d2d, #ff7a45); }
.dk-viettelmoney .dn-ico { background: linear-gradient(135deg, #c8102e, #ee3a43); }
.dk-paypal .dn-ico { background: linear-gradient(135deg, #003087, #009cde); }
.dk-kofi .dn-ico { background: linear-gradient(135deg, #13c3ff, #29abe0); }
.dk-bmc .dn-ico { background: linear-gradient(135deg, #ffdd00, #ffb300); color: #2b2100; }
.dk-patreon .dn-ico { background: linear-gradient(135deg, #f96854, #ff8f7a); }
.dk-wise .dn-ico { background: linear-gradient(135deg, #9fe870, #5cc43f); color: #163300; }
.dk-crypto .dn-ico { background: linear-gradient(135deg, #f7931a, #ffb547); }
.stat-donate .gift, .dn-badge .ico { transform-origin: 50% 85%; animation: giftSway 2.6s ease-in-out infinite !important; animation-iteration-count: infinite !important; animation-duration: 2.6s !important; }
@keyframes giftSway {
  0%, 55%, 100% { transform: rotate(0) scale(1); }
  62% { transform: rotate(-9deg) scale(1.06); }
  70% { transform: rotate(8deg) scale(1.06); }
  78% { transform: rotate(-5deg) scale(1.03); }
  86% { transform: rotate(3deg); }
}
@media (max-width: 480px) {
  .dn-row-i { grid-template-columns: 100px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .dn-row-i small { white-space: nowrap; }
  .dn-row-i b { font-size: 0.98rem; letter-spacing: 0; }
  .dn-copy span { display: none; }
  .dn-copy { padding: 7px; }
  .dn-copy .ico { width: 16px; height: 16px; }
}

/* 08z. Bảng thông tin ủng hộ: nhãn ở trên, giá trị ở dưới, không bao giờ đè nhau */
.dn-row-i, .dn-row-i:is(*) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l c" "v c";
  align-items: center; column-gap: 10px; row-gap: 2px; min-height: 60px; padding: 10px 12px 10px 16px;
}
.dn-row-i small { grid-area: l; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-row-i b { grid-area: v; min-width: 0; overflow-wrap: anywhere; }
.dn-row-i > button, .dn-row-i > span { grid-area: c; }
@media (max-width: 480px) {
  .dn-row-i, .dn-row-i:is(*) { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 10px 9px 14px; }
}

/* 09a. Chỉnh nền dòng chữ chạy trong Cài đặt */
.mq-field { display: flex; flex-direction: column; gap: 10px; }
.mq-field > span { margin-bottom: 0; }
.mq-preview { margin: 0 !important; border-radius: 999px; overflow: hidden; font-size: 1rem !important; }
.mq-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.mq-presets[hidden], .mq-custom[hidden], .mq-image[hidden] { display: none; }
.mq-sw {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px;
  border: 2px solid transparent; background: transparent; cursor: pointer; font: inherit; color: var(--text); min-width: 0;
}
.mq-sw i { width: 100%; max-width: 64px; height: 26px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.mq-sw small { font-size: 0.74rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mq-sw:hover { background: rgba(255, 182, 213, 0.15); }
.mq-sw.active { border-color: var(--pink); background: rgba(255, 182, 213, 0.22); }
.mq-custom { display: flex; align-items: center; gap: 12px; }
.mq-color { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mq-color input[type="color"] { width: 48px; height: 36px; padding: 0; border: 2px solid var(--border); border-radius: 12px; background: none; cursor: pointer; }
.mq-color small { color: var(--muted); font-weight: 600; }
.mq-image { display: flex; flex-direction: column; gap: 10px; }
.mq-dim { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.mq-dim small { grid-column: 1 / -1; color: var(--muted); font-weight: 600; }
.mq-text .seg { width: fit-content; max-width: 100%; }

/* 09b. Nút nhạc: sóng nhạc nhấp nháy; chữ đầu viết hoa ở các ô thông tin */
.stats .stat > span:last-child { display: block; }
.stats .stat > span:last-child::first-letter { text-transform: uppercase; }
.stat-music b.eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 1.8rem; padding-bottom: 2px; }
.stat-music .eq i {
  display: block; width: 4px; height: 100%; border-radius: 3px; transform-origin: 50% 100%;
  background: linear-gradient(to top, var(--pink-deep), var(--lilac));
  animation: eqBounce 1.1s ease-in-out infinite !important; animation-iteration-count: infinite !important;
}
.stat-music .eq i:nth-child(1) { animation-duration: 0.9s !important; animation-delay: -0.2s; }
.stat-music .eq i:nth-child(2) { animation-duration: 1.2s !important; animation-delay: -0.5s; }
.stat-music .eq i:nth-child(3) { animation-duration: 0.8s !important; animation-delay: -0.1s; }
.stat-music .eq i:nth-child(4) { animation-duration: 1.05s !important; animation-delay: -0.7s; }
.stat-music .eq i:nth-child(5) { animation-duration: 0.95s !important; animation-delay: -0.35s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 8px rgba(255, 110, 180, 0.55); }
}
.stat-music:hover .eq i { animation-duration: 0.5s !important; }
.stat-donate b { height: 1.8rem; align-items: center; }

/* 09c. Phân trang */
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px auto 8px; position: relative; max-width: 100%; }
.pg-row {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; max-width: 100%;
  background: var(--card-solid); border: 2px solid var(--border); box-shadow: 0 10px 26px rgba(255, 110, 180, 0.14);
}
.pg-nums { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pg-btn {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text); background: transparent;
  transition: background 0.18s, transform 0.18s, color 0.18s, box-shadow 0.18s;
}
.pg-btn:hover { background: rgba(255, 182, 213, 0.25); transform: translateY(-2px); }
.pg-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.pg-btn.active {
  color: #fff; background: linear-gradient(135deg, var(--pink), var(--lilac));
  box-shadow: 0 6px 16px rgba(255, 110, 180, 0.4); transform: translateY(-1px) scale(1.06);
}
.pg-btn .ico { width: 18px; height: 18px; }
.pg-nav { padding: 0 14px; color: var(--pink-deep); }
.pg-nav.off { opacity: 0.35; cursor: default; pointer-events: none; }
.pg-gap { letter-spacing: 1px; color: var(--muted); }
.pg-gap:hover { color: var(--pink-deep); }
.pg-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.pg-jump-open {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--pink-deep); background: rgba(255, 182, 213, 0.22); border: 1.5px solid transparent;
}
.pg-jump-open:hover { border-color: var(--pink); }
.pg-jump-open .ico { width: 14px; height: 14px; }
.pg-jump {
  width: min(420px, 100%); padding: 14px; border-radius: 22px; background: var(--card-solid);
  border: 2px solid var(--border); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18); animation: popIn 0.18s ease-out;
}
.pg-jump[hidden] { display: none; }
.pg-jump-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pg-go { display: flex; gap: 6px; }
.pg-go input { width: 124px; height: 36px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.pg-go input:focus { outline: none; border-color: var(--pink); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.pg-cell-btn {
  height: 40px; border-radius: 12px; border: 2px solid var(--border); background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.pg-cell-btn:hover { border-color: var(--pink); background: rgba(255, 182, 213, 0.18); }
.pg-cell-btn.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--lilac)); }
@media (max-width: 640px) {
  .pg-row { gap: 2px; padding: 5px; }
  .pg-btn { min-width: 36px; height: 36px; padding: 0 8px; font-size: 0.9rem; }
  .pg-nav span { display: none; }
  .pg-nav { padding: 0 8px; }
}
