/* YIFY Dark Cinematic & Data Hub Styles */
html {
  background-color: #f4f7f5;
  scroll-behavior: smooth;
}

html.dark {
  background-color: #090a0c;
  color-scheme: dark;
}

body {
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom thin dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(106, 192, 69, 0.5);
}

/* Top scene transition progress bar (YIFY green) */
#page-transition-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, #4ade80 0%, #6ac045 50%, #a3e635 100%);
  box-shadow: 0 0 12px rgba(106, 192, 69, 0.75);
}

#page-transition-bar.running {
  animation: transition-bar-sweep 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes transition-bar-sweep {
  0% {
    width: 0%;
    opacity: 1;
  }
  65% {
    width: 85%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* Full-viewport background image with cinematic dark scrim */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #090a0c;
  background-image: url("assets/bg-space.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 245, 0.92);
  transition: background 0.25s ease;
}

.dark .app-bg::after {
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(17, 22, 28, 0.78) 0%,
    rgba(9, 10, 12, 0.94) 55%,
    rgba(9, 10, 12, 0.98) 100%
  );
}

/* Topbar & Drawer Sidebar */
.yify-topbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

.dark .yify-topbar {
  background-color: rgba(9, 10, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: #e2e8f0;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.12);
}

.dark .app-sidebar {
  background-color: rgba(13, 15, 19, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.65);
}

main .rounded-\[12px\].bg-white,
.saas-toolbar,
.yify-panel {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
}

.dark main .rounded-\[12px\].bg-white,
.dark .saas-toolbar,
.dark .yify-panel {
  background-color: #111318;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
}

main .rounded-\[12px\].bg-rose-50 {
  background-color: #fff1f2;
  border-color: #fecdd3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dark main .rounded-\[12px\].bg-rose-50 {
  background-color: rgba(136, 19, 55, 0.22);
  border-color: rgba(251, 113, 133, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   TYPOGRAPHY & CONTRAST
   ========================================================= */
.app-sidebar,
main {
  color: #0f172a;
}

.dark .app-sidebar,
.dark main {
  color: #f1f5f9;
}

.app-sidebar .text-slate-400,
.app-sidebar .text-slate-500,
main .rounded-\[12px\] .text-slate-400,
main .rounded-\[12px\] .text-slate-500,
main .tool-card .text-slate-400,
main .tool-card .text-slate-500 {
  color: #475569;
}

.dark .app-sidebar .text-slate-400,
.dark .app-sidebar .text-slate-500,
main .rounded-\[12px\] .text-slate-400,
.dark main .rounded-\[12px\] .text-slate-400,
.dark main .rounded-\[12px\] .text-slate-500,
.dark main .tool-card .text-slate-400,
.dark main .tool-card .text-slate-500 {
  color: #8b949e;
}

main h1,
main h2,
main h3,
.tool-card .font-bold {
  font-weight: 700;
  letter-spacing: -0.015em;
}

main table th {
  font-weight: 700 !important;
  color: #0f172a;
}

.dark main table th {
  color: #f8fafc;
}

main table td {
  font-weight: 500;
  color: #0f172a;
}

.dark main table td {
  color: #e2e8f0;
}

main .page > div:first-child h1,
#page-home > h2 {
  color: #0f172a;
  font-weight: 800;
}

.dark main .page > div:first-child h1,
.dark #page-home > h2 {
  color: #ffffff;
}

#page-home .yify-hero h1 {
  color: #ffffff !important;
}

main .page > div:first-child p {
  color: #475569;
  font-weight: 500;
}

.dark main .page > div:first-child p {
  color: #8b949e;
}

/* =========================================================
   YIFY SECTION HEADINGS, TRENDING ROWS & POSTER CARDS
   ========================================================= */
.yify-section-title {
  position: relative;
  padding-left: 12px;
}

.yify-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background-color: #6ac045;
}

.yify-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background-color: #111318;
}

.dark .yify-hero {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.75);
}

.yify-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/bg-space.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.yify-hero:hover .yify-hero-bg {
  transform: scale(1.06);
}

.yify-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 10, 12, 0.96) 0%,
    rgba(9, 10, 12, 0.88) 45%,
    rgba(9, 10, 12, 0.45) 100%
  );
}

.yify-trending-row {
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.yify-trending-row:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.dark .yify-trending-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.yify-trending-row:hover .yify-rank-num {
  color: #6ac045;
}

/* Poster-style Tool Card */
main .tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

main .tool-card:hover {
  transform: translateY(-4px);
}

main .tool-card:active {
  transform: translateY(-1px) scale(0.985);
}

.yify-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: #151820;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.dark .yify-poster {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

main .tool-card:hover .yify-poster {
  border-color: #6ac045;
  box-shadow: 0 12px 28px -6px rgba(106, 192, 69, 0.25);
}

.yify-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background-color: #6ac045;
  color: #090a0c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(106, 192, 69, 0.45);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

main .tool-card:hover .yify-play-btn {
  transform: scale(1.1);
  background-color: #7cd455;
}

/* Filter Pills */
.filter-pill {
  background-color: #e2e8f0;
  color: #334155;
  border: 1px solid transparent;
}

.filter-pill:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

.filter-pill.active {
  background-color: #6ac045;
  color: #090a0c;
}

.dark .filter-pill {
  background-color: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .filter-pill:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dark .filter-pill.active {
  background-color: #6ac045;
  border-color: #6ac045;
  color: #090a0c;
}

/* =========================================================
   SCENE & TAB TRANSITIONS
   ========================================================= */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: scene-enter 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scene-enter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

#page-home.active .tool-card {
  animation: card-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#page-home.active .tool-card:nth-child(1) { animation-delay: 0.02s; }
#page-home.active .tool-card:nth-child(2) { animation-delay: 0.05s; }
#page-home.active .tool-card:nth-child(3) { animation-delay: 0.08s; }
#page-home.active .tool-card:nth-child(4) { animation-delay: 0.11s; }
#page-home.active .tool-card:nth-child(5) { animation-delay: 0.14s; }
#page-home.active .tool-card:nth-child(6) { animation-delay: 0.17s; }
#page-home.active .tool-card:nth-child(7) { animation-delay: 0.2s; }
#page-home.active .tool-card:nth-child(8) { animation-delay: 0.23s; }
#page-home.active .tool-card:nth-child(9) { animation-delay: 0.26s; }
#page-home.active .tool-card:nth-child(10) { animation-delay: 0.29s; }
#page-home.active .tool-card:nth-child(11) { animation-delay: 0.32s; }
#page-home.active .tool-card:nth-child(12) { animation-delay: 0.35s; }

@keyframes card-enter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tab-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tab-enter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   INTERACTIVE MICRO-INTERACTIONS
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  main .rounded-\[12px\].bg-white::after,
  .upload-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
    background: radial-gradient(
      280px circle at var(--fx, 50%) var(--fy, 0%),
      rgba(106, 192, 69, 0.14),
      rgba(106, 192, 69, 0) 58%
    );
    z-index: 1;
  }

  .dark main .rounded-\[12px\].bg-white::after,
  .dark .upload-box::after {
    background: radial-gradient(
      280px circle at var(--fx, 50%) var(--fy, 0%),
      rgba(106, 192, 69, 0.12),
      rgba(106, 192, 69, 0) 60%
    );
  }

  main .rounded-\[12px\].bg-white:hover::after,
  .upload-box:hover::after {
    opacity: 1;
  }

  main button.bg-\[\#E11D48\]::before,
  main button.bg-emerald-600::before,
  main button.bg-\[\#0068FF\]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      110deg,
      transparent 32%,
      rgba(255, 255, 255, 0.32) 50%,
      transparent 68%
    );
    transform: translateX(-130%);
  }

  main button.bg-\[\#E11D48\]:hover:not(:disabled)::before,
  main button.bg-emerald-600:hover:not(:disabled)::before,
  main button.bg-\[\#0068FF\]:hover:not(:disabled)::before {
    animation: btn-sheen 0.7s ease;
  }
}

main .rounded-\[12px\].bg-white,
.upload-box {
  position: relative;
  overflow: hidden;
}

main .rounded-\[12px\].bg-white > *,
.upload-box > * {
  position: relative;
  z-index: 2;
}

@keyframes btn-sheen {
  to { transform: translateX(130%); }
}

.text-2xl.tabular-nums.fx-tick {
  animation: kpi-tick 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kpi-tick {
  0% {
    opacity: 0.35;
    transform: translateY(8px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Sidebar nav items (YIFY green indicator) */
.nav-item {
  position: relative;
  overflow: hidden;
  text-align: left;
  justify-content: flex-start;
  color: #334155;
  font-weight: 600 !important;
  border: 1px solid transparent;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.dark .nav-item {
  color: #cbd5e1;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #6ac045;
  transform: scaleY(0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item svg,
.nav-item i {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-item:hover svg,
.nav-item:hover i {
  transform: scale(1.08);
}

.dark .nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-item:active {
  transform: scale(0.99);
}

.nav-item.active {
  background: rgba(106, 192, 69, 0.12);
  border-color: rgba(106, 192, 69, 0.3);
  color: #3f8f1e;
  font-weight: 700 !important;
}

.nav-item.active::before {
  transform: scaleY(1);
}

.dark .nav-item.active {
  background: rgba(106, 192, 69, 0.14);
  border-color: rgba(106, 192, 69, 0.32);
  color: #9ae66e;
}

/* Interactive buttons */
main button,
aside button,
header button,
.tab-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

main button:hover:not(:disabled),
aside button:hover:not(:disabled),
header button:hover:not(:disabled),
.tab-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

main button:active:not(:disabled),
aside button:active:not(:disabled),
header button:active:not(:disabled),
.tab-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

/* Ripple wave effect on click */
.ripple-wave {
  position: absolute;
  border-radius: 9999px;
  transform: scale(0);
  pointer-events: none;
  background: rgba(106, 192, 69, 0.28);
  animation: ripple-expand 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bg-\[\#E11D48\] .ripple-wave,
.bg-emerald-600 .ripple-wave,
.bg-\[\#0068FF\] .ripple-wave,
.tab-btn.active .ripple-wave {
  background: rgba(255, 255, 255, 0.36);
}

@keyframes ripple-expand {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Tab buttons */
.tab-btn {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1;
}
.dark .tab-btn {
  background: #171a21;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
}
.tab-btn.active {
  background: #6ac045;
  color: #090a0c;
  border-color: #6ac045;
  box-shadow: 0 4px 14px rgba(106, 192, 69, 0.3);
}

/* Dropzone states & interactions */
.upload-box {
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.upload-box:hover {
  transform: translateY(-2px);
  border-color: #6ac045 !important;
  box-shadow: 0 10px 24px rgba(106, 192, 69, 0.14);
}

.upload-box.dragover {
  transform: scale(1.015);
  border-color: #6ac045 !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 4px rgba(106, 192, 69, 0.18);
}
.dark .upload-box.dragover {
  background: rgba(106, 192, 69, 0.16) !important;
}
.upload-box.has-file {
  border-color: #6ac045 !important;
  background: #ecfdf5 !important;
  animation: file-pop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .upload-box.has-file {
  background: rgba(106, 192, 69, 0.14) !important;
}

@keyframes file-pop {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Table row hover highlight */
main table tbody tr {
  transition: background-color 0.15s ease;
}

main table tbody tr:hover {
  background-color: rgba(106, 192, 69, 0.06);
}

.dark main table tbody tr:hover {
  background-color: rgba(106, 192, 69, 0.1);
}

/* Status Box */
.status-box.error {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
  border: 1px solid #fecaca;
}
.dark .status-box.error {
  background: rgba(153, 27, 27, 0.25);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
}
.status-box.success {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}
.dark .status-box.success {
  background: rgba(6, 95, 70, 0.3);
  color: #a7f3d0;
  border-color: rgba(106, 192, 69, 0.4);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #111318;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.error,
.toast.toast-error {
  background: #be123c;
}

.toast.toast-success {
  background: #15803d;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Zalo Mobile Mode off-screen export wrapper */
.zalo-export-host {
  position: fixed;
  left: -99999px;
  top: 0;
  z-index: -1;
  pointer-events: none;
}

.zalo-export-stage {
  position: static;
  background: #ffffff;
  padding: 24px;
  width: max-content;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: #000000;
}

.zalo-export-header {
  margin-bottom: 16px;
  border-bottom: 2px solid #000000;
  padding-bottom: 10px;
}

.zalo-export-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 4px;
}

.zalo-export-meta {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.zalo-export-table {
  border-collapse: collapse;
  width: max-content;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15.5px;
  color: #000000;
  background: #ffffff;
}

.zalo-export-table th,
.zalo-export-table td {
  border: 1.5px solid #475569;
  padding: 9px 14px;
  white-space: nowrap;
  position: static !important;
  background: #ffffff;
  color: #000000;
}

.zalo-export-table th {
  background: #e2e8f0;
  color: #000000;
  font-weight: 700;
  text-align: center;
}

.zalo-export-table td.num-col {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zalo-export-table .progress-wrap {
  display: none;
}

.zalo-export-table .no-export,
.zalo-export-table button,
.zalo-export-table input {
  display: none !important;
}

/* Zalo Export Card (Tiến độ Ký nhận) */
.tdkn-zalo-stage {
  position: static;
  background: #ffffff;
  padding: 20px;
  width: max-content;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: #0f172a;
}

.tdkn-zalo-banner {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px 10px 0 0;
}

.tdkn-zalo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 4px;
  color: #ffffff;
}

.tdkn-zalo-meta {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #ffe4e6;
}

.tdkn-zalo-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
}

.tdkn-zalo-table th,
.tdkn-zalo-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  white-space: nowrap;
}

.tdkn-zalo-table thead th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tdkn-zalo-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.tdkn-zalo-table tbody tr.tdkn-row-total td {
  background: #fff1f2 !important;
  color: #be123c;
  font-weight: 800;
  font-size: 14.5px;
  border-top: 2px solid #e11d48;
  border-bottom: 2px solid #e11d48;
}

.tdkn-zalo-footer {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* Background Music Player */
.bgm-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 0 2px;
}

.bgm-eq span {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 999px;
  background-color: #94a3b8;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.bgm-eq.is-playing span {
  background-color: #6ac045;
  animation: bgm-bar 0.9s ease-in-out infinite;
}

.bgm-eq.is-playing span:nth-child(2) {
  animation-delay: 0.2s;
}

.bgm-eq.is-playing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bgm-bar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.bgm-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
}

.dark .bgm-volume {
  background: #334155;
}

.bgm-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #6ac045;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.bgm-volume::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #6ac045;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
