/* Tools panel styles — Discord / Locket / Tarot / Sticker / Lyrics / … (lazy-loaded) */
/* ── QR style picker ───────────────────────────── */
.qr-style-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.qr-style-option {
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 8px;
  text-align: center;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.6);
}
.qr-style-option:hover {
  border-color: var(--design-primary-disabled, #e6dfd8);
  background: rgba(255,255,255,0.85);
}
.qr-style-option.selected {
  border-color: var(--design-primary, #cc785c);
  box-shadow: 0 0 0 3px rgba(204,120,92,0.15);
  background: rgba(204,120,92,0.06);
}
.qr-style-option input[type="radio"] {
  display: none;
}
.qr-style-preview img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid #f1f1f1;
}
.qr-style-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7280;
  display: block;
}
.qr-style-option.selected .qr-style-name {
  color: var(--design-primary-active, #a9583e);
}

/* ── Discord console popup ──────────────────────────── */
.discord-console-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.discord-console-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 16px;
  width: 90%;
  max-width: 720px;
  height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.discord-console-header {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #30363d;
  flex-shrink: 0;
}
.discord-console-title {
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.discord-console-title .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3fb950;
  animation: dc-pulse 1.5s ease-in-out infinite;
}
@keyframes dc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.discord-console-close {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.discord-console-close:hover {
  color: #f85149;
  background: rgba(248,81,73,0.1);
}
.discord-console-output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9d1d9;
  background: #0d1117;
  white-space: pre-wrap;
  word-break: break-all;
}
.discord-console-output .dc-line {
  padding: 1px 0;
}
.discord-console-output .dc-line.dc-info  { color: #58a6ff; }
.discord-console-output .dc-line.dc-ok    { color: #3fb950; }
.discord-console-output .dc-line.dc-warn  { color: #d2991d; }
.discord-console-output .dc-line.dc-error { color: #f85149; }
.discord-console-output .dc-line.dc-debug { color: #8b949e; }
.discord-console-output .dc-line.dc-progress { color: #a5d6ff; }
.discord-console-output .dc-line.dc-done  { color: #7ee787; font-weight: 700; }
.discord-console-output .dc-line.dc-dim   { color: #484f58; }
.discord-console-output::-webkit-scrollbar { width: 6px; }
.discord-console-output::-webkit-scrollbar-track { background: transparent; }
.discord-console-output::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

/* ── Discord token guide ─────────────────────────── */
.dc-guide-toggle {
  font-size: 11.5px;
  color: #7289da;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  user-select: none;
  transition: color 0.2s;
}
.dc-guide-toggle:hover { color: #5865F2; }
.dc-guide-panel {
  display: none;
  margin-top: 8px;
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  color: #b5bac1;
  line-height: 1.6;
}
.dc-guide-panel.open { display: block; }
.dc-guide-panel ol {
  margin: 0 0 8px 0;
  padding-left: 18px;
}
.dc-guide-panel ol li {
  margin-bottom: 4px;
}
.dc-guide-code-wrap {
  position: relative;
  background: #0d0f12;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'SF Mono','Fira Code','Consolas',monospace;
  font-size: 10px;
  color: #c9d1d9;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0;
}
.dc-guide-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #2b2d31;
  border: none;
  color: #b5bac1;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.dc-guide-copy:hover { background: #5865F2; color: #fff; }
.dc-guide-copy.copied { background: #3fb950; color: #fff; }


.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  overflow: visible;
}

/* ── Phạt nguội ──────────────────────────── */
.violation-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.violation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border-bottom: 1px solid #fecaca;
}
.violation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.violation-badge.unpaid  { background:#fee2e2; color:#b91c1c; }
.violation-badge.paid    { background:#dcfce7; color:#15803d; }
.violation-plate {
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: 0.05em;
}
.violation-body {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.violation-row {
  font-size: 11.5px;
  color: #374151;
  line-height: 1.4;
}
.violation-row strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1px;
}
.violation-row.full { grid-column: 1/-1; }
.violation-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.violation-stat {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.violation-stat.total   { background:#eff6ff; color:#1d4ed8; }
.violation-stat.unpaid  { background:#fef2f2; color:#b91c1c; }
.violation-stat.paid    { background:#f0fdf4; color:#166534; }
.violation-stat .vnum   { font-size:20px; font-weight:800; display:block; }

/* ── Lời bài hát - 2 panel layout ───────────────────────────── */
.lyrics-modal-overlay {
  position: fixed; inset: 0;
  z-index: 1050;
  background: rgba(15,10,40,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay { from{opacity:0} to{opacity:1} }
.lyrics-modal {
  background: var(--design-canvas, #faf9f5);
  border-radius: 18px;
  width: 100%; max-width: 920px;
  max-height: 85vh; height: 640px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUpModal 0.28s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
  border: 1px solid var(--design-hairline, #e6dfd8);
}
@keyframes slideUpModal { from{transform:translateY(24px);opacity:0} to{transform:translateY(0);opacity:1} }
.lyrics-modal-head {
  padding: 16px 18px 14px;
  padding-right: 52px;
  border-bottom: 1px solid var(--design-hairline, #e6dfd8);
  flex-shrink: 0;
  background: var(--design-canvas, #faf9f5);
  position: relative;
}
.lyrics-modal-title {
  font-size: 16px; font-weight: 800;
  color: var(--design-ink, #141413);
  margin: 0 0 4px;
  font-family: var(--design-font-display, "Fredoka", "Quicksand", system-ui, sans-serif);
}
.lyrics-modal-subtitle {
  font-size: 12px;
  color: var(--design-muted, #6c6a64);
}
.lyrics-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--design-surface-soft, #f5f0e8);
  border: 1px solid var(--design-hairline, #e6dfd8);
  width: 32px; height: 32px; border-radius: var(--design-radius-md, 8px);
  cursor: pointer; font-size: 18px;
  color: var(--design-ink, #141413);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lyrics-modal-close:hover {
  background: var(--design-surface-card, #efe9de);
}

.lyrics-modal-panels {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
}

.lyrics-modal-left {
  width: 360px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--design-hairline, #e6dfd8);
  background: var(--design-surface-soft, #f5f0e8);
}

.lyrics-list-header {
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--design-muted, #6c6a64);
  font-weight: 600;
  background: var(--design-canvas, #faf9f5);
  border-bottom: 1px solid var(--design-hairline-soft, #ebe6df);
}

.lyrics-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 1px; padding: 8px;
}

.lyrics-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--design-radius-md, 8px);
  background: var(--design-canvas, #faf9f5);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lyrics-item:hover {
  background: var(--design-canvas, #faf9f5);
  border-color: var(--design-hairline, #e6dfd8);
  transform: translateX(2px);
}

.lyrics-item.active {
  background: var(--design-primary, #cc785c);
  border-color: var(--design-primary-active, #a9583e);
  box-shadow: 0 2px 8px rgba(204,120,92,0.25);
}

.lyrics-item.active .lyrics-item-name {
  color: var(--design-on-primary, #fff);
}

.lyrics-item.active .lyrics-item-artist,
.lyrics-item.active .lyrics-item-dur {
  color: rgba(255,255,255,0.85);
}

.lyrics-item.active .lyrics-item-icon {
  background: rgba(255,255,255,0.2);
  color: var(--design-on-primary, #fff);
}

.lyrics-item-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--design-radius-md, 8px);
  background: linear-gradient(135deg, #cc785c, #a9583e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  transition: all 0.2s;
}

.lyrics-item-info { flex: 1; min-width: 0; }

.lyrics-item-name {
  font-size: 13px; font-weight: 700;
  color: var(--design-ink, #141413);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s;
}

.lyrics-item-artist {
  font-size: 11px;
  color: var(--design-muted, #6c6a64);
  margin-top: 2px;
  transition: color 0.2s;
}

.lyrics-item-dur {
  font-size: 11px;
  color: var(--design-muted-soft, #8e8b82);
  flex-shrink: 0;
  transition: color 0.2s;
}

.lyrics-modal-right {
  flex: 1; display: flex; flex-direction: column;
  background: var(--design-canvas, #faf9f5);
  overflow: hidden;
}

.lyrics-display-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--design-hairline-soft, #ebe6df);
  background: var(--design-canvas, #faf9f5);
  flex-shrink: 0;
}

.lyrics-display-title {
  font-size: 15px; font-weight: 800;
  color: var(--design-ink, #141413);
  margin: 0 0 4px;
  font-family: var(--design-font-display, "Fredoka", "Quicksand", system-ui, sans-serif);
}

.lyrics-display-artist {
  font-size: 12px;
  color: var(--design-muted, #6c6a64);
}

.lyrics-display-body {
  flex: 1; overflow-y: auto;
  padding: 20px 22px;
  font-size: 14px; line-height: 2;
  color: var(--design-body, #3d3d3a);
  white-space: pre-wrap;
  word-break: break-word;
}

.lyrics-display-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  color: var(--design-muted-soft, #8e8b82);
  padding: 40px;
  text-align: center;
}

.lyrics-display-placeholder i {
  font-size: 48px;
  color: var(--design-hairline, #e6dfd8);
}

.lyrics-display-placeholder p {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 767px) {
  .lyrics-modal {
    max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .lyrics-modal-panels {
    flex-direction: column;
  }
  .lyrics-modal-left {
    width: 100%; max-height: 40%;
    border-right: none;
    border-bottom: 1px solid var(--design-hairline, #e6dfd8);
  }
}
#lyricsLoader,#phatNguoiLoader {
  display:none; align-items:center; justify-content:center;
  flex-direction:column; gap:14px; margin-top:14px; padding:20px 0;
}
#lyricsLoader.active,#phatNguoiLoader.active { display:flex; }

/* ── YouTube Subtitle - 2 panel layout ───────────────────────────── */
.subtitle-modal-overlay {
  position: fixed; inset: 0;
  z-index: 1050;
  background: rgba(15,10,40,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeInOverlay 0.2s ease;
}
.subtitle-modal {
  background: var(--design-canvas, #faf9f5);
  border-radius: 18px;
  width: 100%; max-width: 980px;
  max-height: 85vh; height: 680px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUpModal 0.28s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
  border: 1px solid var(--design-hairline, #e6dfd8);
}
.subtitle-modal-head {
  padding: 16px 18px 14px;
  padding-right: 52px;
  border-bottom: 1px solid var(--design-hairline, #e6dfd8);
  flex-shrink: 0;
  background: var(--design-canvas, #faf9f5);
  position: relative;
}
.subtitle-modal-title {
  font-size: 16px; font-weight: 800;
  color: var(--design-ink, #141413);
  margin: 0 0 4px;
  font-family: var(--design-font-display, "Fredoka", "Quicksand", system-ui, sans-serif);
}
.subtitle-modal-subtitle {
  font-size: 12px;
  color: var(--design-muted, #6c6a64);
}
.subtitle-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--design-surface-soft, #f5f0e8);
  border: 1px solid var(--design-hairline, #e6dfd8);
  width: 32px; height: 32px;
  border-radius: var(--design-radius-md, 8px);
  cursor: pointer; font-size: 18px;
  color: var(--design-ink, #141413);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.subtitle-modal-close:hover {
  background: var(--design-surface-card, #efe9de);
}

.subtitle-modal-panels {
  display: flex; flex: 1; min-height: 0; overflow: hidden;
}

.subtitle-modal-left {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--design-hairline, #e6dfd8);
  background: var(--design-surface-soft, #f5f0e8);
}

.subtitle-info-section {
  padding: 16px;
  background: var(--design-canvas, #faf9f5);
  border-bottom: 1px solid var(--design-hairline-soft, #ebe6df);
}

.subtitle-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--design-radius-md, 8px);
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--design-hairline, #e6dfd8);
}

.subtitle-video-title {
  font-size: 13px; font-weight: 700;
  color: var(--design-ink, #141413);
  margin-bottom: 8px;
  line-height: 1.4;
}

.subtitle-video-meta {
  font-size: 11px;
  color: var(--design-muted, #6c6a64);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-download-section {
  padding: 14px 16px;
  flex: 1;
  overflow-y: auto;
}

.subtitle-format-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--design-muted, #6c6a64);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtitle-lang-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtitle-lang-item {
  width: 100%;
  padding: 11px 14px;
  background: var(--design-canvas, #faf9f5);
  border: 1px solid var(--design-hairline, #e6dfd8);
  border-radius: var(--design-radius-md, 8px);
  color: var(--design-ink, #141413);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtitle-lang-item i {
  font-size: 16px;
  color: var(--design-muted, #6c6a64);
  transition: color 0.2s;
}

.subtitle-lang-item:hover {
  background: var(--design-surface-soft, #f5f0e8);
  border-color: var(--design-primary-disabled, #e6dfd8);
  transform: translateX(2px);
}

.subtitle-lang-item:hover i {
  color: var(--design-primary, #cc785c);
}

.subtitle-lang-item.active {
  background: var(--design-primary, #cc785c);
  color: var(--design-on-primary, #fff);
  border-color: var(--design-primary-active, #a9583e);
  box-shadow: 0 2px 8px rgba(204,120,92,0.25);
}

.subtitle-lang-item.active i {
  color: var(--design-on-primary, #fff);
}

.subtitle-lang-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtitle-modal-right {
  flex: 1; display: flex; flex-direction: column;
  background: var(--design-canvas, #faf9f5);
  overflow: hidden;
}

.subtitle-display-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--design-hairline-soft, #ebe6df);
  background: var(--design-canvas, #faf9f5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subtitle-display-title {
  font-size: 13px; font-weight: 700;
  color: var(--design-ink, #141413);
  flex: 1;
  min-width: 0;
}

.subtitle-display-meta {
  flex-shrink: 0;
}

.subtitle-display-body {
  flex: 1; overflow-y: auto;
  padding: 16px 20px;
  font-size: 13px; line-height: 1.8;
  color: var(--design-body, #3d3d3a);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.subtitle-display-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  color: var(--design-muted-soft, #8e8b82);
  padding: 40px;
  text-align: center;
}

.subtitle-display-placeholder i {
  font-size: 48px;
  color: var(--design-hairline, #e6dfd8);
}

.subtitle-display-placeholder p {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 767px) {
  .subtitle-modal {
    max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .subtitle-modal-panels {
    flex-direction: column;
  }
  .subtitle-modal-left {
    width: 100%; max-height: 45%;
    border-right: none;
    border-bottom: 1px solid var(--design-hairline, #e6dfd8);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Locket Gold ──────────────────────────────── */
.locket-info-section {
  border-top: 1px solid var(--design-hairline-soft, rgba(250,249,245,0.08));
  padding-top: 16px;
}

.locket-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.locket-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--design-ink, #faf9f5);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.locket-list-title i {
  font-size: 16px;
  color: #f0b429;
}

.locket-list {
  border: 1px solid rgba(250, 249, 245, 0.1);
  border-radius: 14px;
  background: rgba(20, 19, 17, 0.55);
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.locket-list.scrollable {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.locket-list.scrollable::-webkit-scrollbar,
.locket-normal-section.scrollable::-webkit-scrollbar {
  width: 5px;
}

.locket-list.scrollable::-webkit-scrollbar-thumb,
.locket-normal-section.scrollable::-webkit-scrollbar-thumb {
  background: rgba(250, 249, 245, 0.14);
  border-radius: 999px;
}

.locket-pinned-section {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), transparent 70%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}

.locket-pinned-section .locket-item {
  position: relative;
  padding-left: 28px;
}

.locket-pinned-section .locket-item::before {
  content: '📌';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.75;
}

.locket-normal-section.scrollable {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.locket-loading {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.locket-loading-text {
  margin-top: 0;
  font-size: 12px;
  color: #c4c0b6;
  font-weight: 500;
}

.locket-empty {
  padding: 36px 18px;
  text-align: center;
  color: #c4c0b6;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.locket-empty i {
  font-size: 22px;
  color: rgba(240, 180, 41, 0.75);
}

.locket-empty.is-error {
  color: #fca5a5;
}

.locket-empty.is-error i {
  color: #f87171;
}

.locket-item {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(250, 249, 245, 0.06);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
  animation: locketItemFadeIn 0.3s ease forwards;
  opacity: 0;
  transform: translateY(6px);
}

@keyframes locketItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.locket-item:nth-child(1) { animation-delay: 0.04s; }
.locket-item:nth-child(2) { animation-delay: 0.08s; }
.locket-item:nth-child(3) { animation-delay: 0.12s; }
.locket-item:nth-child(4) { animation-delay: 0.16s; }
.locket-item:nth-child(5) { animation-delay: 0.2s; }
.locket-item:nth-child(n+6) { animation-delay: 0.24s; }

.locket-item:last-child {
  border-bottom: none;
}

.locket-item:hover {
  background: rgba(251, 191, 36, 0.06);
}

.locket-item-avatar-wrap {
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}

.locket-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(250, 249, 245, 0.08);
  border: 1px solid rgba(250, 249, 245, 0.1);
  display: block;
}

.locket-item-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px/1 Quicksand, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(
    145deg,
    hsl(var(--locket-hue, 32), 62%, 48%),
    hsl(calc(var(--locket-hue, 32) + 28), 55%, 36%)
  );
  border: 1px solid rgba(250, 249, 245, 0.12);
}

.locket-item-info {
  min-width: 0;
}

.locket-item-name {
  font-size: 13px;
  font-weight: 650;
  color: #faf9f5;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locket-item-meta {
  font-size: 11px;
  color: #c4c0b6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locket-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.locket-item-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.locket-item-status.queued {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.locket-item-status.processing {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.locket-item-status.completed {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.locket-item-status.active {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.locket-item-status.inactive {
  background: rgba(156, 163, 175, 0.12);
  color: #c4c0b6;
  border: 1px solid rgba(156, 163, 175, 0.22);
}

.locket-add-friend {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #f0b429;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.locket-add-friend:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  transform: translateY(-1px);
}

.locket-add-friend:active {
  transform: none;
}

@media (max-width: 480px) {
  .locket-item {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "avatar info"
      "avatar actions";
    gap: 6px 10px;
  }
  .locket-item-avatar-wrap { grid-area: avatar; width: 36px; height: 36px; }
  .locket-item-avatar,
  .locket-item-fallback { width: 36px; height: 36px; font-size: 11px; }
  .locket-item-info { grid-area: info; }
  .locket-item-actions {
    grid-area: actions;
    justify-content: flex-start;
  }
}

/* ── Sticker ──────────────────────────────── */
#stickerLoader { display:none; align-items:center; justify-content:center; flex-direction:column; gap:14px; margin-top:14px; padding:20px 0; }
#stickerLoader.active { display:flex; }
/* ── BigTxt & DoanTuoi loaders ── */
#bigtxtLoader,#doantuoiLoader {
  display:none; align-items:center; justify-content:center;
  flex-direction:column; gap:14px; margin-top:14px; padding:20px 0;
}
#bigtxtLoader.active,#doantuoiLoader.active { display:flex; }

.sticker-packs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 0;
}

/* Mỗi pack hiện như 1 hàng ngang có thể click */
.sticker-pack {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sticker-pack:hover {
  background: var(--design-surface-soft, #f5f0e8);
  border-color: var(--design-hairline, #e6dfd8);
  box-shadow: 0 4px 14px rgba(20,20,19,0.07);
  transform: translateY(-1px);
}

.sticker-pack:active { transform: scale(0.98); }

.sticker-pack-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #f3f4f6;
}

.sticker-pack-info {
  flex: 1;
  min-width: 0;
}

.sticker-pack-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sticker-pack-meta {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Preview strip: 4 ảnh nhỏ nhất */
.sticker-pack-strip {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.sticker-strip-thumb {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #f3f4f6;
  padding: 2px;
}

.sticker-pack-arrow {
  color: #c4b5fd;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Full pack popup modal ── */
.sticker-gallery-overlay {
  position: fixed; inset: 0;
  z-index: 1060;
  background: rgba(15,10,40,0.65);
  backdrop-filter: blur(10px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fadeInOverlay 0.2s ease;
}

@media (min-width: 480px) {
  .sticker-gallery-overlay { align-items: center; padding: 16px; }
}

.sticker-gallery-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 500px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  animation: slideUpModal 0.28s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}

@media (min-width: 480px) {
  .sticker-gallery-modal { border-radius: 20px; animation: slideUpModal 0.28s cubic-bezier(0.34,1.56,0.64,1); }
}

.sticker-gallery-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  position: relative;
}

.sticker-gallery-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.sticker-gallery-title {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticker-gallery-count {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

.sticker-gallery-close {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--design-hairline, #e6dfd8);
  background: var(--design-surface-soft, #f5f0e8);
  color: var(--design-ink, #141413);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sticker-gallery-close:hover { background: var(--design-surface-card, #efe9de); }

.sticker-gallery-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.sticker-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sticker-gallery-item {
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f9fafb;
  padding: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  border: 1.5px solid transparent;
}

.sticker-gallery-item:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  transform: scale(1.08);
}

.sticker-gallery-item:active { transform: scale(0.94); }

.sticker-gallery-hint {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 6px 0 4px;
}

/* Old modal (keep for fallback) */
.sticker-modal-overlay {
  position: fixed; inset: 0;
  z-index: 1070;
  background: rgba(15,10,40,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.2s ease;
}

.sticker-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 300px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  animation: slideUpModal 0.26s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}

.sticker-modal-body {
  padding: 20px 20px 12px;
  text-align: center;
}

.sticker-modal-img {
  width: 160px; height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 8px;
  margin-bottom: 12px;
}

.sticker-modal-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.sticker-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.sticker-page-info {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

/* ── Age prediction popup ── */
.doantuoi-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.doantuoi-popup-card {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.doantuoi-popup-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.doantuoi-popup-body {
  padding: 20px 24px 24px;
  text-align: center;
}

.doantuoi-popup-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}


.doantuoi-popup-age {
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, #f472b6, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 8px 0;
}

.doantuoi-popup-detail {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin: 4px 0;
}

.doantuoi-popup-close {
  margin-top: 14px;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doantuoi-popup-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.img-preview {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── Big Text popup ── */
.bigtxt-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.bigtxt-popup-card {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.bigtxt-popup-body {
  padding: 24px;
  text-align: center;
}

.bigtxt-popup-body h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.bigtxt-popup-result {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 16px;
  margin: 8px 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  font-family: 'Courier New', monospace;
}

.bigtxt-popup-result img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.bigtxt-popup-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f472b6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.bigtxt-popup-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,158,11,0.45);
}

.bigtxt-popup-copy:active {
  transform: scale(0.97);
}

.bigtxt-popup-copy.copied {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.bigtxt-popup-close {
  margin-top: 10px;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}
.bigtxt-popup-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}


/* ── Doan tuoi info grid ── */
.dt-age-wrap {
  text-align: center;
  margin-bottom: 12px;
}
.dt-age-big {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #f472b6, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.dt-age-unit {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-top: 2px;
}
.dt-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.dt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 14px;
}
.dt-row-age { border-color: rgba(244,114,182,0.2); background: rgba(244,114,182,0.06); }
.dt-row-gender { border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.06); }
.dt-row-emotion { border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }
.dt-row-face { border-color: rgba(6,182,212,0.2); background: rgba(6,182,212,0.06); }
.dt-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dt-value {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dt-value i { font-size: 13px; }
.dt-row-gender .dt-value i { color: #a78bfa; }

.doantuoi-popup-img-wrap {
  position: relative;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}
.doantuoi-popup-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* ── Tarot Tool ── */
.btn-tarot {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-tarot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
  color: #fff;
}
.btn-tarot:active {
  transform: scale(0.97);
}

.tarot-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.tarot-spinner {
  font-size: 56px;
  animation: tarotSpin 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes tarotSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.08); }
  50% { transform: rotate(-5deg) scale(0.95); }
  75% { transform: rotate(8deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}
.tarot-loading-text {
  margin-top: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #5b21b6;
  animation: tarotPulse 1.8s ease-in-out infinite;
}
.tarot-loading-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #9ca3af;
}
@keyframes tarotPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.tarot-result-card {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe, #faf5ff);
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124,58,237,0.1);
}
.tarot-result-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tarot-result-content {
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #1e1b4b;
  white-space: pre-wrap;
  word-break: break-word;
}
.tarot-result-content h1,
.tarot-result-content h2,
.tarot-result-content h3,
.tarot-result-content h4 {
  font-size: 14px;
  font-weight: 800;
  color: #5b21b6;
  margin: 16px 0 6px;
}
.tarot-result-content h1 { font-size: 16px; }
.tarot-result-content h2 { font-size: 15px; }
.tarot-result-content ul,
.tarot-result-content ol {
  padding-left: 18px;
  margin: 6px 0;
}
.tarot-result-content li { margin-bottom: 4px; }
.tarot-result-content li::marker { color: #7c3aed; }
.tarot-result-content strong { color: #5b21b6; }
.tarot-result-footer {
  padding: 12px 18px;
  border-top: 1px solid #e4dcfa;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: rgba(255,255,255,0.5);
}
.tarot-intro {
  animation: tarotFloat 3s ease-in-out infinite;
}
@keyframes tarotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


/* ── Coi Bói Tool ── */
.btn-boi {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(217,119,6,0.3);
}
.btn-boi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217,119,6,0.45);
  color: #fff;
}
.btn-boi:active { transform: scale(0.97); }
.boi-loading-wrap { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px 20px; }
.boi-spinner { font-size:56px; animation:boiSpin 2s ease-in-out infinite; display:inline-block; }
@keyframes boiSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  50% { transform: rotate(8deg) scale(0.95); }
  75% { transform: rotate(-4deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}
.boi-loading-text { margin-top:14px; font-weight:700; font-size:15px; color:#92400e; animation:boiPulse 1.8s ease-in-out infinite; }
.boi-loading-sub { margin-top:4px; font-size:12.5px; color:#9ca3af; }
@keyframes boiPulse { 0%,100% { opacity:0.7; } 50% { opacity:1; } }
.boi-result-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7, #fffbeb);
  border: 1px solid #fde68a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(217,119,6,0.1);
}
.boi-result-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.boi-result-content {
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #1e1b4b;
  white-space: pre-wrap;
  word-break: break-word;
}
.boi-result-content h1, .boi-result-content h2, .boi-result-content h3, .boi-result-content h4 {
  font-size: 14px; font-weight: 800; color: #92400e; margin: 16px 0 6px;
}
.boi-result-content h1 { font-size: 16px; }
.boi-result-content h2 { font-size: 15px; }
.boi-result-content ul, .boi-result-content ol { padding-left: 18px; margin: 6px 0; }
.boi-result-content li { margin-bottom: 4px; }
.boi-result-content li::marker { color: #d97706; }
.boi-result-content strong { color: #92400e; }
.boi-result-footer {
  padding: 12px 18px;
  border-top: 1px solid #fde68a;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: rgba(255,255,255,0.5);
}
.boi-intro {
  animation: boiFloat 3s ease-in-out infinite;
}
@keyframes boiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }


