/* Bot Market — UI */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg2: #121b2e;
  --card: rgba(18, 26, 46, 0.72);
  --card-solid: #121a2e;
  --text: #eef2ff;
  --muted: #8b97b8;
  --primary: #6b9bff;
  --primary2: #3b6fff;
  --primary-glow: rgba(91, 140, 255, 0.55);
  --accent: #2ee6ff;
  --ok: #3dffb0;
  --err: #ff7a8c;
  --warn: #ffd04a;
  --border: rgba(148, 163, 184, 0.16);
  --border-hover: rgba(110, 180, 255, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 1000px 560px at 12% -8%, rgba(70, 120, 255, 0.38), transparent 55%),
    radial-gradient(ellipse 800px 480px at 92% 0%, rgba(0, 230, 255, 0.18), transparent 48%),
    radial-gradient(ellipse 700px 420px at 55% 95%, rgba(120, 80, 255, 0.14), transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.main {
  padding: 1.75rem 0 4rem;
  min-height: calc(100vh - 140px);
}

.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.08rem;
  color: #b4bfd9;
  max-width: 36rem;
  line-height: 1.65;
}

/* ─── Topbar ─────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.topbar.is-scrolled {
  background: rgba(7, 11, 20, 0.9);
  border-bottom-color: rgba(110, 180, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
  z-index: 2;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), #1d4ed8 60%, var(--accent));
  box-shadow: 0 0 20px var(--primary-glow);
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-domain {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.brand span:not(.brand-name):not(.brand-domain):not(.brand-text):not(.brand-mark) {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Right cluster: CTA + Menu button */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  z-index: 2;
  flex-shrink: 0;
}
.topbar-cta {
  display: inline-flex;
}

/* Hamburger + label — always visible */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(110, 180, 255, 0.35);
  background: rgba(91, 140, 255, 0.12);
  color: #e8f0ff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    color 0.15s ease;
}
.nav-toggle:hover {
  background: rgba(91, 140, 255, 0.22);
  border-color: rgba(110, 200, 255, 0.55);
  box-shadow: 0 0 22px rgba(91, 140, 255, 0.25);
  color: #fff;
}
.nav-toggle:active {
  transform: scale(0.97);
}
.nav-toggle:focus-visible {
  outline: 2px solid rgba(126, 176, 255, 0.8);
  outline-offset: 2px;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
  flex-shrink: 0;
}
.nav-toggle-bars span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle-label {
  line-height: 1;
  letter-spacing: 0.02em;
}
body.nav-open .nav-toggle {
  border-color: rgba(46, 230, 255, 0.55);
  background: rgba(46, 230, 255, 0.14);
  color: var(--accent);
}
body.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
@media (max-width: 420px) {
  .nav-toggle-label {
    display: none;
  }
  .nav-toggle {
    width: 44px;
    padding: 0;
  }
}

/* ─── Drawer ngăn xếp (trượt từ phải) ─────────────── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 5, 12, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  pointer-events: none;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-backdrop[hidden] {
  display: block !important; /* keep for transition; hide via opacity */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.nav-open .nav-backdrop[hidden] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0b1220;
  border-left: 1px solid rgba(110, 180, 255, 0.28);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  visibility: hidden;
}
body.nav-open .nav-drawer {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(110, 180, 255, 0.15);
  flex-shrink: 0;
}
.nav-drawer-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.nav-drawer-close:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
  color: var(--err);
}

.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.75rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
body.nav-open .nav-stack > * {
  animation: navItemIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.nav-open .nav-stack > *:nth-child(1) { animation-delay: 0.03s; }
body.nav-open .nav-stack > *:nth-child(2) { animation-delay: 0.05s; }
body.nav-open .nav-stack > *:nth-child(3) { animation-delay: 0.07s; }
body.nav-open .nav-stack > *:nth-child(4) { animation-delay: 0.09s; }
body.nav-open .nav-stack > *:nth-child(5) { animation-delay: 0.11s; }
body.nav-open .nav-stack > *:nth-child(6) { animation-delay: 0.13s; }
body.nav-open .nav-stack > *:nth-child(7) { animation-delay: 0.15s; }
body.nav-open .nav-stack > *:nth-child(8) { animation-delay: 0.17s; }
body.nav-open .nav-stack > *:nth-child(9) { animation-delay: 0.19s; }
body.nav-open .nav-stack > *:nth-child(n+10) { animation-delay: 0.21s; }
@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nav-stack > a:not(.btn),
.nav-stack > a.nav-auth {
  display: flex;
  align-items: center;
  color: #c5d0e6;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-stack > a:not(.btn):hover,
.nav-stack > a.nav-auth:hover {
  color: #fff;
  background: rgba(91, 140, 255, 0.14);
  text-decoration: none;
  transform: translateX(3px);
}
.nav-stack > a.btn,
.nav-stack .nav-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
}
.nav-divider {
  height: 1px;
  margin: 0.45rem 0.55rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(110, 180, 255, 0.3),
    transparent
  );
}
.nav-admin {
  color: var(--warn) !important;
  font-weight: 700 !important;
}
.nav-logout {
  margin: 0.2rem 0 0;
  width: 100%;
}
.nav-logout .btn {
  width: 100%;
  justify-content: center;
}
body.nav-lock,
body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-toggle-bars span,
  .nav-backdrop,
  body.nav-open .nav-stack > * {
    transition: none !important;
    animation: none !important;
  }
}

/* ─── Scroll reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .bot-card,
  .admin-contact-btn,
  .platform-tile,
  .plat-chip,
  .cat-chip {
    transition: none !important;
  }
  .btn:hover,
  .btn:active {
    transform: none !important;
  }
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.58rem 1.15rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  background: var(--bg2);
  color: var(--text);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.15s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 15%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.12);
  transform: translateY(-2px) scale(1.03);
}
.btn:hover::after {
  transform: translateX(130%);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
}
.btn:focus-visible {
  outline: 2px solid rgba(126, 176, 255, 0.7);
  outline-offset: 2px;
}
.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.86rem;
}
.btn-primary {
  background: linear-gradient(135deg, #7eb0ff 0%, var(--primary) 40%, var(--primary2) 100%);
  color: #fff;
  box-shadow:
    0 4px 20px var(--primary-glow),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  box-shadow:
    0 10px 32px var(--primary-glow),
    0 0 48px rgba(46, 230, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(91, 140, 255, 0.1);
  box-shadow: 0 6px 20px rgba(91, 140, 255, 0.15);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: none;
  filter: none;
}
.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  color: var(--err);
  border: 1px solid rgba(251, 113, 133, 0.3);
}
.btn-danger:hover {
  background: rgba(251, 113, 133, 0.22);
  filter: none;
  box-shadow: 0 8px 22px rgba(255, 122, 140, 0.28);
}
.link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.danger {
  color: var(--err);
}
.inline {
  display: inline;
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  margin: 0.35rem 0 2.75rem;
  align-items: center;
  padding: 1.75rem 1.6rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(110, 170, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(40, 70, 160, 0.28), rgba(10, 18, 40, 0.55) 50%, rgba(0, 80, 100, 0.2)),
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(91, 140, 255, 0.35), transparent 55%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(60, 120, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 255, 0.22), transparent 65%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.35rem 1.15rem;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ff7ff;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.2), rgba(91, 140, 255, 0.18));
  border: 1px solid rgba(46, 230, 255, 0.4);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  margin-bottom: 1.05rem;
  box-shadow: 0 0 20px rgba(46, 230, 255, 0.2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 18px var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.9rem;
  font-weight: 800;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, #fff 10%, #8ec5ff 40%, #2ee6ff 75%, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(46, 230, 255, 0.35));
}

.hero .lead {
  color: #d0daf5;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-actions .btn-primary {
  padding: 0.72rem 1.4rem;
  font-size: 1rem;
}

.stats {
  display: grid;
  gap: 0;
  background: linear-gradient(165deg, rgba(35, 55, 110, 0.95), rgba(12, 18, 40, 0.98));
  border: 1px solid rgba(110, 170, 255, 0.35);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.4rem;
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(60, 120, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6b9bff, #2ee6ff, transparent);
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.stat:last-child {
  border-bottom: 0;
}
.stat:hover {
  background: rgba(91, 140, 255, 0.1);
}
.stat strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #8ec5ff 45%, #2ee6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(91, 140, 255, 0.35));
}
.stat span {
  color: #a8b6d8;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.admin-stats::before {
  display: none;
}
.admin-stats .stat {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}

/* ─── Sections ───────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0 1.15rem;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: 1.45rem;
}
.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.15em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 12px rgba(46, 230, 255, 0.5);
}
.section-head a {
  font-size: 0.92rem;
  font-weight: 700;
  color: #8ec5ff;
}
.section-head a:hover {
  color: var(--accent);
}

/* ─── Cards & grid ───────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.bot-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 40, 72, 0.85), rgba(14, 20, 38, 0.95));
  border-color: rgba(110, 160, 255, 0.2);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.28s ease;
}
.bot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 200, 255, 0.55);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(110, 200, 255, 0.35),
    0 0 36px rgba(60, 140, 255, 0.2);
}
.bot-card-featured {
  border-color: rgba(46, 230, 255, 0.45);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(46, 230, 255, 0.25),
    0 0 40px rgba(46, 230, 255, 0.12);
}
.bot-card-featured::before {
  content: "HOT";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #041018;
  background: linear-gradient(90deg, #2ee6ff, #7eb0ff);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(46, 230, 255, 0.4);
}
.bot-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.bot-card-link:hover {
  color: inherit;
  text-decoration: none;
}
.bot-card-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #0a1020, #152040);
  overflow: hidden;
  position: relative;
}
.bot-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.7), transparent 50%);
  pointer-events: none;
}
.bot-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bot-card:hover .bot-card-cover img {
  transform: scale(1.06);
}
.bot-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}
.bot-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}
.bot-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.bot-card-body > .muted {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: #a8b4d0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bot-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.bot-card-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.82rem;
}

.price {
  display: inline-flex;
  align-items: center;
  color: #04150f;
  font-weight: 800;
  font-size: 0.86rem;
  background: linear-gradient(135deg, #3dffb0, #20d48a);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(61, 255, 176, 0.28);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #1a1200;
  font-weight: 800;
  font-size: 0.86rem;
  background: linear-gradient(135deg, #ffd04a, #ffb020);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 208, 74, 0.28);
}
.rating .muted {
  color: rgba(0, 0, 0, 0.55) !important;
  font-weight: 600;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.35), rgba(46, 230, 255, 0.2));
  color: #d6e6ff;
  white-space: nowrap;
  letter-spacing: 0.03em;
  border: 1px solid rgba(140, 190, 255, 0.35);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.2);
}
.badge-ok {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
}
.badge-warn {
  background: rgba(251, 191, 36, 0.14);
  color: var(--warn);
}
.badge-err {
  background: rgba(251, 113, 133, 0.14);
  color: var(--err);
}

/* ─── Gallery / screenshots ──────────────────────── */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.shot-grid img,
.shot-link img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.shot-link:hover img {
  border-color: var(--primary);
  transform: scale(1.02);
}
.shot-keep-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.85rem;
}
.shot-keep-item img {
  height: 100px;
}
.gallery {
  margin-bottom: 1.1rem;
}
.gallery h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.field-hint {
  display: block;
  margin: 0.25rem 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 400;
}

/* ─── Forms ──────────────────────────────────────── */
.filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.filters input,
.filters select,
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters input:focus,
.filters select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters select {
  width: auto;
  min-width: 130px;
}
.form label {
  display: block;
  margin-bottom: 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.form label input,
.form label select,
.form label textarea {
  margin-top: 0.4rem;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.form hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.1rem 0;
}
.form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.72rem 1.15rem;
}

/* ─── Detail ─────────────────────────────────────── */
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-head h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
.prose {
  white-space: pre-wrap;
  color: #c8d0e8;
  line-height: 1.65;
}
.feature-list {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: #c8d0e8;
}
.feature-list li {
  margin: 0.3rem 0;
}
.contact-card {
  position: sticky;
  top: 5rem;
  align-self: start;
  background: linear-gradient(165deg, rgba(28, 42, 78, 0.5), var(--card-solid));
}
.contact-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-list li:last-child {
  border: 0;
}

.reject-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.reject-form input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  min-width: 140px;
}

/* ─── Reviews panel ──────────────────────────────── */
.reviews-panel {
  padding: 0;
  overflow: hidden;
  margin-top: 0.25rem;
}
.reviews-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(40, 60, 120, 0.22), transparent);
}
.reviews-panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.reviews-panel-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.reviews-avg {
  color: var(--warn);
  font-weight: 800;
}

.review-form {
  margin: 1rem 1.15rem 1.15rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: linear-gradient(165deg, rgba(30, 48, 90, 0.45), rgba(12, 18, 36, 0.9));
  border: 1px solid rgba(110, 170, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.review-form-title {
  font-weight: 750;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.review-form-grid {
  display: grid;
  gap: 0.85rem;
}
.review-field {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}
.review-field input,
.review-field select,
.review-field textarea {
  width: 100%;
  margin-top: 0.4rem;
  font-weight: 400;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font: inherit;
}
.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
  outline: none;
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}
.review-field-rating {
  max-width: 220px;
}
.review-select {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--warn) !important;
}
.review-form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.review-form-actions .btn-primary {
  min-width: 160px;
}
.review-shot-preview {
  margin-top: 0.15rem;
}
.review-shot-preview img {
  max-width: 160px;
  max-height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.review-login-cta {
  margin: 1rem 1.15rem;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.review-login-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reviews-empty {
  padding: 1.75rem 1.35rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.reviews {
  list-style: none;
  padding: 0.35rem 0 0.5rem;
  margin: 0;
}
.review-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.review-item:last-child {
  border-bottom: 0;
}
.review-item:hover {
  background: rgba(91, 140, 255, 0.04);
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(145deg, #6b9bff, #3b6fff 55%, #22d3ee);
  box-shadow: 0 4px 14px rgba(91, 140, 255, 0.35);
  flex-shrink: 0;
}
.review-body {
  min-width: 0;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.review-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.review-who strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.review-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.review-stars span {
  color: rgba(148, 163, 184, 0.35);
}
.review-stars span.on {
  color: #ffd04a;
  text-shadow: 0 0 10px rgba(255, 208, 74, 0.45);
}
.review-time {
  font-size: 0.8rem;
  white-space: nowrap;
}
.review-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}
.review-text {
  margin: 0.35rem 0 0.55rem;
  color: #d5dced;
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.review-shot {
  max-width: min(280px, 100%);
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 0.25rem;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.review-shot-link:hover .review-shot {
  border-color: rgba(110, 180, 255, 0.5);
  transform: scale(1.01);
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.65rem;
}
.report-scam-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.report-scam-box h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.report-scam-hint {
  font-size: 0.86rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.report-scam-box .form label {
  margin-bottom: 0.75rem;
}
.report-scam-box input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.report-box summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  list-style: none;
}
.report-box summary::-webkit-details-marker {
  display: none;
}
.report-box summary:hover {
  color: var(--err);
}
.report-form {
  margin-top: 0.55rem;
  max-width: 420px;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.report-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
}
.report-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

/* detail page: rating/price not full pills unless in cards */
.detail-head .price {
  box-shadow: none;
}
.detail-head .rating {
  background: transparent;
  color: var(--warn);
  padding: 0;
  box-shadow: none;
  font-weight: 700;
}

/* ─── Tables ─────────────────────────────────────── */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  padding: 0.6rem 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.admin-actions {
  flex-wrap: wrap;
}
.admin-reports {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-report-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.admin-report-item:last-child {
  border-bottom: 0;
}
.reported-review {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 0.5rem 0;
}

/* Admin — Thành viên / ban user (mobile-safe) */
.admin-users-card {
  overflow: hidden;
  max-width: 100%;
}
.admin-users-table-wrap {
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}
.ban-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ban-reason-input {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0.42rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}
.ban-reason-input:focus {
  outline: none;
  border-color: rgba(110, 180, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}
.ban-form .btn {
  flex: 0 0 auto;
}
.ban-reason-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  word-break: break-word;
  max-width: 14rem;
}
.admin-user-actions {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .admin-users-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .admin-users-table-wrap {
    overflow: visible;
  }
  .admin-users-table,
  .admin-users-table thead,
  .admin-users-table tbody,
  .admin-users-table th,
  .admin-users-table td,
  .admin-users-table tr {
    display: block;
    width: 100%;
  }
  .admin-users-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .admin-users-table .admin-user-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .admin-users-table .admin-user-row:last-child {
    border-bottom: 0;
  }
  .admin-users-table td {
    border: 0;
    padding: 0;
    font-size: 0.9rem;
    min-width: 0;
  }
  .admin-users-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
  .admin-users-table td[data-label="User"] {
    grid-column: 1 / -1;
  }
  .admin-users-table td.admin-user-actions {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
  }
  .ban-form {
    flex-direction: column;
    align-items: stretch;
  }
  .ban-reason-input {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .ban-form .btn {
    width: 100%;
  }
  .ban-reason-text {
    max-width: none;
  }
}

.container,
.main,
.card {
  max-width: 100%;
  min-width: 0;
}

/* ─── Auth ───────────────────────────────────────── */
.auth-card {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.75rem 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.auth-card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.auth-card > .muted {
  text-align: center;
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

/* ─── Alerts ─────────────────────────────────────── */
.alert {
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  font-weight: 500;
  font-size: 0.92rem;
}
.alert-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.alert-error {
  background: rgba(251, 113, 133, 0.1);
  color: var(--err);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.alert-warn {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

/* ─── Footer (compact one-row) ───────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.84rem;
  position: relative;
  z-index: 1;
  background: rgba(5, 8, 16, 0.55);
}
.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  min-height: 2.25rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.9rem;
  flex-wrap: wrap;
  min-width: 0;
}
.footer-logo {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.footer-logo:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-right .admin-contact-icons {
  gap: 0.35rem;
}
.footer-copy {
  font-size: 0.74rem;
  white-space: nowrap;
  opacity: 0.85;
}
@media (max-width: 560px) {
  .footer {
    padding: 0.75rem 0;
  }
  .footer-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .footer-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .footer-links a {
    padding: 0.22rem 0.4rem;
    font-size: 0.78rem;
  }
}

/* ─── Legal / disclaimer page ────────────────────── */
.legal-page {
  max-width: 44rem;
  margin: 0 auto;
}
.legal-hero {
  margin-bottom: 1.35rem;
}
.legal-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}
.legal-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}
.legal-meta {
  margin: 0;
  font-size: 0.9rem;
}
.legal-body {
  padding: 1.5rem 1.6rem 1.75rem;
}
.legal-section {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:first-child {
  padding-top: 0.25rem;
}
.legal-section:last-of-type {
  border-bottom: none;
}
.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.legal-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.9;
  min-width: 1.6rem;
}
.legal-section p,
.legal-section li {
  color: #c8d0e8;
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal-section p {
  margin: 0;
}
.legal-section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}
.legal-section li {
  margin: 0.35rem 0;
}
.legal-contact {
  text-align: left;
}
.legal-contact .admin-contact-icons {
  justify-content: flex-start;
  margin-top: 0.75rem;
}
.legal-note {
  margin: 0.75rem 0 0 !important;
  font-size: 0.85rem !important;
}
.legal-agree {
  margin: 1.25rem 0 0 !important;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
  line-height: 1.55;
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

/* ─── Admin contact icons ────────────────────────── */
.admin-contact-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.admin-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.admin-contact-btn:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.admin-contact-btn svg {
  display: block;
}
.admin-contact-icons-sm .admin-contact-btn {
  width: 2rem;
  height: 2rem;
}
.admin-contact-icons-sm .admin-contact-btn svg {
  width: 18px;
  height: 18px;
}
.admin-contact-icons-lg {
  gap: 1rem;
  margin: 1.5rem 0 0.75rem;
}
.admin-contact-icons-lg .admin-contact-btn {
  width: 3.75rem;
  height: 3.75rem;
}
.admin-contact-icons-lg .admin-contact-btn svg {
  width: 32px;
  height: 32px;
}
.ac-zalo {
  background: #0068ff;
}
.ac-messenger {
  background: linear-gradient(135deg, #00c6ff 0%, #0078ff 55%, #a033ff 100%);
}
.ac-telegram {
  background: #2aabee;
}

.contact-page {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}
.contact-page h1 {
  margin-bottom: 0.35rem;
}
.contact-page-lead {
  margin: 0 auto;
  max-width: 22rem;
}
.contact-page-hint {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* ─── Empty state ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Multi-platform ─────────────────────────────── */
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}
.plat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}
.plat-chip:hover {
  color: var(--text);
  border-color: var(--border-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.plat-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.45), rgba(46, 230, 255, 0.25));
  border-color: rgba(140, 200, 255, 0.5);
  box-shadow: 0 0 18px rgba(91, 140, 255, 0.25);
}
.plat-chip-icon {
  font-size: 1rem;
  line-height: 1;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.platform-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-solid);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.platform-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(145deg, transparent 30%, currentColor);
  pointer-events: none;
}
.platform-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.platform-tile-icon {
  font-size: 1.45rem;
  line-height: 1;
  position: relative;
}
.platform-tile-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  position: relative;
}
.platform-tile-count {
  font-size: 0.8rem;
  color: var(--muted);
  position: relative;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.bot-card-cover .plat-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
}
.plat-badge.inline {
  position: static;
}

.plat-messenger { --plat: #0084ff; }
.plat-telegram { --plat: #229ed9; }
.plat-discord { --plat: #5865f2; }
.plat-zalo { --plat: #0068ff; }
.plat-whatsapp { --plat: #25d366; }
.plat-line { --plat: #06c755; }
.plat-other { --plat: #94a3b8; }

.plat-badge.plat-messenger,
.plat-chip.plat-messenger.is-active,
.platform-tile.plat-messenger {
  background: linear-gradient(135deg, #0084ff, #0062cc);
  color: #fff;
  border-color: rgba(0, 132, 255, 0.45);
}
.plat-badge.plat-telegram,
.platform-tile.plat-telegram {
  background: linear-gradient(135deg, #2ab4f0, #1a8fc4);
  color: #fff;
  border-color: rgba(34, 158, 217, 0.45);
}
.plat-badge.plat-discord,
.platform-tile.plat-discord {
  background: linear-gradient(135deg, #6d78ff, #4752c4);
  color: #fff;
  border-color: rgba(88, 101, 242, 0.45);
}
.plat-badge.plat-zalo,
.platform-tile.plat-zalo {
  background: linear-gradient(135deg, #2b7cff, #0052cc);
  color: #fff;
  border-color: rgba(0, 104, 255, 0.45);
}
.plat-badge.plat-whatsapp,
.platform-tile.plat-whatsapp {
  background: linear-gradient(135deg, #34e07a, #1da851);
  color: #04150a;
  border-color: rgba(37, 211, 102, 0.45);
}
.plat-badge.plat-line,
.platform-tile.plat-line {
  background: linear-gradient(135deg, #2ae06a, #05a844);
  color: #04150a;
  border-color: rgba(6, 199, 85, 0.45);
}
.plat-badge.plat-other,
.platform-tile.plat-other {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}

.plat-chip.plat-messenger:not(.is-active) { border-color: rgba(0, 132, 255, 0.25); }
.plat-chip.plat-telegram:not(.is-active) { border-color: rgba(34, 158, 217, 0.25); }
.plat-chip.plat-discord:not(.is-active) { border-color: rgba(88, 101, 242, 0.25); }
.plat-chip.plat-zalo:not(.is-active) { border-color: rgba(0, 104, 255, 0.25); }

.detail-plat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}
.detail-links {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.detail-links a {
  font-weight: 600;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cat-chip:hover {
  color: var(--text);
  border-color: rgba(140, 180, 255, 0.35);
  text-decoration: none;
}
.cat-chip.is-active {
  color: #fff;
  background: rgba(91, 140, 255, 0.28);
  border-color: rgba(140, 190, 255, 0.45);
}
.filter-summary {
  margin: -0.35rem 0 1rem;
  font-size: 0.88rem;
}
.bot-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #c8d6ff;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.22);
}
.tag-pill.tag-scope {
  color: #b8f5d8;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
}

.platform-hero {
  padding: 1.5rem 1.4rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.platform-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: linear-gradient(135deg, currentColor, transparent 55%);
  pointer-events: none;
}
.platform-hero-inner {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.platform-hero-icon {
  font-size: 2.6rem;
  line-height: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.platform-hero h1 {
  margin: 0.15rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}
.platform-hero-kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.platform-hero .lead {
  margin: 0;
  max-width: 40rem;
}
.platform-other-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.a.plat-badge {
  text-decoration: none;
}
a.plat-badge:hover {
  filter: brightness(1.08);
  text-decoration: none;
  color: #fff;
}

.badge-hot {
  background: linear-gradient(90deg, #ff6b6b, #ff9f43) !important;
  color: #1a0a00 !important;
  font-weight: 800;
  border: none;
}
.tag-verified {
  color: #04150f !important;
  background: linear-gradient(135deg, #3dffb0, #20d48a) !important;
  border-color: transparent !important;
}
.bot-card-compare {
  padding: 0 1.1rem 0.85rem;
  border-top: 1px solid var(--border);
}
.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.compare-check input {
  accent-color: var(--primary);
}
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(110, 170, 255, 0.35);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.75rem 0;
}
.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.compare-wrap {
  overflow-x: auto;
  padding: 0.5rem;
}
.compare-table th,
.compare-table td {
  min-width: 140px;
  vertical-align: top;
}
.compare-table th:first-child,
.compare-table td:first-child {
  min-width: 110px;
  font-weight: 700;
  color: var(--muted);
  position: sticky;
  left: 0;
  background: var(--card-solid);
}
.pkg-mini {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
}
.packages-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}
.package-item {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.package-item .price {
  box-shadow: none;
}
.package-item p {
  width: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-card h2 {
  margin: 0.25rem 0;
}
.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.25rem 0 0.5rem;
}
.pricing-card .btn {
  margin-top: auto;
}
.pricing-card-hot {
  border-color: rgba(255, 159, 67, 0.45);
  box-shadow: 0 0 40px rgba(255, 120, 60, 0.12);
}
.boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.boost-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.boost-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.price-cell {
  color: var(--ok);
  font-weight: 700;
}
.main {
  padding-bottom: 5rem;
}

/* ─── Card headings ──────────────────────────────── */
.card > h2:first-child,
.card .section-head:first-child {
  margin-top: 0;
}
.card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.card h3 {
  font-size: 1rem;
}
