/*
 Theme Name:   Mau Lam Video
 Theme URI:    https://www.youtube.com/@ndgroupvietnam
 Description:  Nền tảng Chatbot Prompt & AI Tools chuyên nghiệp — Dark Theme
 Author:       CTY TNHH NDGROUP MEDIA VIỆT NAM
 Author URI:   https://www.youtube.com/@ndgroupvietnam
 Version:      1.0.0
 Requires PHP: 7.4
 Text Domain:  maulamvideo
*/


/* ── VARIABLES ── */
:root {
  --bg: #060d1f;
  --bg-card: #0d1729;
  --bg-sb: #080f1e;
  --bg-hover: #111e35;
  --text: #f0f4ff;
  --muted: #6b7fa3;
  --border: #1e2d47;
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, .12);
  --cyan-glow: rgba(6, 182, 212, .25);
  --hot: #f97316;
  --new: #22c55e;
  --free: #a855f7;
  --disc: #ef4444;
  --prem: #f59e0b;
  --sw: 260px;
  --hh: 60px;
  --r: 12px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif !important;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── HTML + BODY RESET ── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* ── HEADER ── */
.mlv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hh);
  background: rgba(6, 13, 31, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.mlv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.mlv-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mlv-logo em {
  color: var(--cyan);
  font-style: italic;
}

.mlv-nav {
  display: flex;
  gap: 2px;
}

.mlv-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: .2s;
  position: relative;
}

.mlv-nav a:hover,
.mlv-nav a.current-menu-item {
  color: var(--cyan);
}

.mlv-nav a.current-menu-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.mlv-header-right {
  margin-left: auto;
}

.btn-auth {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 0 20px var(--cyan-glow);
  font-family: inherit;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--cyan-glow);
}

/* ── LAYOUT ── */
.mlv-layout {
  display: flex;
  padding-top: var(--hh);
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.mlv-sidebar {
  width: var(--sw);
  min-height: calc(100vh - var(--hh));
  background: var(--bg-sb);
  border-right: 1px solid rgba(6,182,212,.15);
  position: fixed;
  top: var(--hh);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* Subtle top glow */
  box-shadow: inset -1px 0 0 rgba(6,182,212,.08), 2px 0 20px rgba(0,0,0,.3);
}

.mlv-sidebar.collapsed {
  width: 64px;
}

/* ── FIX WP ADMIN BAR ── */
body.admin-bar .mlv-header {
  top: 32px;
}

body.admin-bar .mlv-sidebar {
  top: calc(var(--hh) + 32px);
  min-height: calc(100vh - var(--hh) - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .mlv-header {
    top: 46px;
  }

  body.admin-bar .mlv-sidebar {
    top: calc(var(--hh) + 46px);
    min-height: calc(100vh - var(--hh) - 46px);
  }
}

/* ── Nút Menu Mobile ── */
.menu-toggle-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

.mobile-overlay {
  display: none;
}

/* ── SECTION LABELS ── */
.sb-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 20px 16px 8px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Gradient text */
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sb-section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: .8;
}

.mlv-sidebar.collapsed .sb-section-label {
  opacity: 0;
}

/* ── NAV MENU ── */
.sb-nav-menu {
  list-style: none;
}

.sb-nav-menu li {
  position: relative;
}

.sb-nav-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 2px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  overflow: hidden;
  border-left: 2px solid transparent;
  position: relative;
}

/* Hover gradient overlay */
.sb-nav-menu li a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(6,182,212,.1), transparent 80%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.sb-nav-menu li a:hover::before {
  opacity: 1;
}

.sb-nav-menu li a:hover {
  color: #e2e8f0;
  border-left-color: rgba(6,182,212,.5);
  transform: translateX(3px);
  padding-left: 12px;
}

.sb-nav-menu li a:hover .sb-ico {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(6,182,212,.6));
}

/* Active state */
.sb-nav-menu li.current-menu-item>a,
.sb-nav-menu li a.active-sb {
  background: linear-gradient(90deg, rgba(6,182,212,.18), rgba(6,182,212,.04));
  color: #67e8f9;
  border-left-color: #06b6d4;
  box-shadow: inset 3px 0 12px rgba(6,182,212,.12);
  font-weight: 600;
}

.sb-nav-menu li.current-menu-item>a .sb-ico,
.sb-nav-menu li a.active-sb .sb-ico {
  filter: drop-shadow(0 0 6px rgba(6,182,212,.7));
}

/* ── BADGES on items ── */
.sb-hot-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: auto;
  flex-shrink: 0;
  animation: sb-badge-pop 2s ease-in-out infinite;
}

.sb-new-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: auto;
  flex-shrink: 0;
  animation: sb-badge-pop 2s ease-in-out infinite .6s;
}

@keyframes sb-badge-pop {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.1); opacity: .85; }
}

.mlv-sidebar.collapsed .sb-hot-badge,
.mlv-sidebar.collapsed .sb-new-badge {
  display: none;
}

/* ── ICON ── */
.sb-ico {
  font-size: 18px;
  min-width: 20px;
  flex-shrink: 0;
  text-align: center;
  transition: transform .25s, filter .25s;
}

.sb-label-text {
  transition: opacity .3s, max-width .3s;
}

.mlv-sidebar.collapsed .sb-label-text {
  opacity: 0;
  max-width: 0;
}

/* ── TOGGLE BUTTON ── */
.sb-toggle {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(6,182,212,.15);
}

.sb-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.2);
  color: rgba(6,182,212,.7);
  font-size: 13px;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
}

.sb-toggle-btn:hover {
  background: rgba(6,182,212,.14);
  color: #67e8f9;
  border-color: rgba(6,182,212,.45);
}

.mlv-sidebar.collapsed .sb-toggle-text {
  display: none;
}

/* ── MAIN CONTENT ── */
.mlv-main {
  margin-left: var(--sw);
  flex: 1;
  min-width: 0;
  padding: 32px 36px;
  transition: margin-left .3s ease;
}

.mlv-main.sb-collapsed {
  margin-left: 64px;
}

/* ── PAGE HEADERS ── */
.mlv-page-header {
  margin-bottom: 28px;
}

.mlv-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mlv-page-header p {
  font-size: 15px;
  color: var(--muted);
}

/* ── SECTION ── */
.mlv-section {
  margin-bottom: 44px;
}

.mlv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mlv-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.sec-hot-badge {
  background: var(--hot);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, .4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
}

.see-all-link {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: .2s;
}

.see-all-link:hover {
  gap: 8px;
}

/* ── FREE PROMPT INTRO ── */
.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, .15);
  border: 1px solid rgba(168, 85, 247, .3);
  color: var(--free);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.free-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.free-section-title em {
  color: var(--cyan);
  font-style: italic;
}

.free-section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── GRID ── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1400px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* ===== MAIN CONTENT MOBILE OPTIMIZATION ===== */
  .mlv-main {
    padding: 16px 16px 100px !important;
    margin-top: 0 !important;
  }
  
  /* Section titles */
  h1, h2, h3, h4 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
  }
  
  h1 { font-size: 24px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }
  
  /* Free section */
  .free-section-title {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }
  
  .free-section-sub {
    font-size: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .free-pill {
    font-size: 10px !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
  }
  
  .see-all-link {
    font-size: 12px !important;
    gap: 4px !important;
  }
  
  /* Badges */
  .card-badge {
    font-size: 9px !important;
    padding: 3px 8px !important;
    min-height: 20px !important;
  }
  
  /* Card layouts */
  .mlv-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  /* Typography in cards */
  .mlv-card h3,
  .mlv-card h4,
  .mlv-card .card-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 40px !important;
  }
  
  .mlv-card p,
  .mlv-card .card-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  
  /* Meta info in cards */
  .mlv-card .card-meta,
  .mlv-card .meta-row {
    font-size: 11px !important;
    gap: 4px !important;
  }
  
  /* Buttons in cards */
  .mlv-card button,
  .mlv-card a.btn,
  .card-cta-row button {
    min-height: 44px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Price displays */
  .mlv-card .price,
  .mlv-card .original-price,
  .mlv-card .sale-price {
    font-size: 16px !important;
  }
  
  .mlv-card .original-price {
    font-size: 13px !important;
  }
  
  /* Discount badges */
  .discount-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
}

/* Small phones - extra optimization */
@media (max-width: 480px) {
  .mlv-main {
    padding: 12px 12px 90px !important;
  }
  
  h1 { font-size: 22px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 17px !important; }
  
  .mlv-card {
    padding: 10px !important;
  }
  
  .mlv-card h3,
  .mlv-card .card-title {
    font-size: 13px !important;
    min-height: 36px !important;
  }
  
  .mlv-card p,
  .mlv-card .card-desc {
    font-size: 11px !important;
  }
  
  .mlv-card button,
  .mlv-card a.btn {
    font-size: 12px !important;
    padding: 9px 12px !important;
  }
  
  .free-section-title {
    font-size: 20px !important;
  }
  
  .free-pill {
    font-size: 9px !important;
  }
}

/* ── BADGES ── */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.b-prem {
  background: rgba(245, 158, 11, .15);
  color: var(--prem);
  border: 1px solid rgba(245, 158, 11, .3);
}

.b-free {
  background: rgba(168, 85, 247, .15);
  color: var(--free);
  border: 1px solid rgba(168, 85, 247, .3);
}

.b-new {
  background: rgba(34, 197, 94, .15);
  color: var(--new);
  border: 1px solid rgba(34, 197, 94, .3);
}

.b-hot {
  background: rgba(249, 115, 22, .15);
  color: var(--hot);
  border: 1px solid rgba(249, 115, 22, .3);
}

.b-type {
  background: rgba(99, 102, 241, .15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, .25);
}

.b-wflow {
  background: rgba(6, 182, 212, .12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, .25);
}

/* ── CARD (Chatbot / Prompt) ── */
.mlv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}

.mlv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.card-badges {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0;
  flex-wrap: wrap;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a1628, #111e35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}

.img-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .7);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.card-body {
  padding: 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-orig {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-sale {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.price-disc {
  background: var(--disc);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.price-free {
  font-size: 14px;
  font-weight: 700;
  color: var(--free);
}

.btn-bm {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  font-size: 15px;
  flex-shrink: 0;
}

.btn-bm:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── TOOL CARD ── */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.tool-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}

.tool-meta {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tool-cat-tag {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-hover);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}

.tool-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.feat-tag {
  font-size: 11px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 50px;
}

.tool-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-ext {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  font-size: 15px;
}

.btn-ext:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════════════
   ENHANCED AI TOOL CARD - NEW UI/UX DESIGN
   ═══════════════════════════════════════════════════════════════════════ */

/* Card Container */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.tool-card--external {
  border-left: 3px solid #f97316;
}

.tool-card--payment {
  border-left: 3px solid #06b6d4;
}

/* Thumbnail */
.tool-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #111e35);
}

.tool-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.tool-card:hover .tool-card-thumb img {
  transform: scale(1.05);
}

.tool-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* Badges Overlay */
.tool-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge--hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}

.badge--new {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
}

.badge--sale {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-weight: 700;
}

/* Card Body */
.tool-card-body {
  padding: 16px;
}

.tool-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 6px;
}

.tool-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tool-card-title a {
  color: var(--text);
  transition: color .2s;
}

.tool-card-title a:hover {
  color: var(--cyan);
}

.tool-card-version {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.tool-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Features */
.tool-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tool-card-features .feature-tag {
  font-size: 11px;
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .25);
  color: #67e8f9;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Meta - Social Proof */
.tool-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tool-card-meta .meta-item {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-card-meta .meta-item svg {
  opacity: .7;
}

/* Footer - Pricing & Actions */
.tool-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-card-pricing .price-orig {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.tool-card-pricing .price-sale {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}

.tool-card-pricing .price-disc {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Action Buttons */
.tool-card-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-action--external {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, .3);
}

.btn-action--external:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, .5);
}

.btn-action--payment {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, .3);
}

.btn-action--payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, .5);
}

.btn-action--free {
  background: rgba(168, 85, 247, .15);
  border: 1px solid rgba(168, 85, 247, .35);
  color: #a78bfa;
}

.btn-action--free:hover {
  background: rgba(168, 85, 247, .25);
  border-color: rgba(168, 85, 247, .5);
}

.payment-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, .2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .tool-card-actions {
    flex-direction: column;
  }
  
  .btn-action {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRICING STATS BAR - AI TOOLS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.pricing-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(99, 102, 241, .1));
  border: 1px solid rgba(6, 182, 212, .25);
  border-radius: var(--r);
  padding: 20px 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(6, 182, 212, .25);
}

.pricing-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(6, 182, 212, .05);
  border: 1px solid rgba(6, 182, 212, .15);
  border-radius: var(--r);
  padding: 14px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pricing-info-bar .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.pricing-info-bar .info-item svg {
  color: var(--cyan);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-stats-bar {
    gap: 20px;
    padding: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .pricing-info-bar {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── FILTERS ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  font-family: inherit;
}

.filter-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-pill.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── SEARCH ROW ── */
.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px 10px 44px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: .2s;
}

.search-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.mlv-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  min-width: 130px;
}

.result-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.result-count strong {
  color: var(--text);
}

/* ── DIVIDER ── */
.mlv-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* ── PRICING ── */
.pricing-hero {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pricing-hero p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.period-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.period-toggle span {
  font-size: 14px;
  color: var(--muted);
}

.period-toggle span.on {
  color: var(--text);
  font-weight: 600;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
  border: none;
}

.toggle-switch.on {
  background: var(--cyan);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left .3s;
}

.toggle-switch.on .toggle-thumb {
  left: calc(100% - 23px);
}

.save-pill {
  background: rgba(34, 197, 94, .12);
  color: var(--new);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid rgba(34, 197, 94, .3);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: .3s;
}

.plan-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 20px 60px rgba(6, 182, 212, .15);
}

.plan-featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), #6366f1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.plan-price {
  font-size: 38px;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price sub {
  font-size: 28px;
}

.plan-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.plan-cta {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
  border: none;
  margin-bottom: 22px;
}

.plan-cta.outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.plan-cta.outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.plan-cta.solid {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #fff;
}

.plan-cta.solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.plan-features li::before {
  content: '✓';
  color: var(--new);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-section-header {
  padding: 28px;
  border-bottom: 1px solid var(--border);
}

.faq-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-section-header p {
  color: var(--muted);
  font-size: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  text-align: left;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform .3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── FOOTER ── */
.mlv-footer {
  border-top: 1px solid var(--border);
  padding: 22px 36px;
  margin-left: var(--sw);
  transition: margin-left .3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.mlv-footer.sb-collapsed {
  margin-left: 64px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: .2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: .2s;
  font-size: 14px;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .menu-toggle-mobile {
    display: block;
  }

  .mlv-sidebar {
    transform: translateX(-100%);
    width: 260px;
    z-index: 999;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  }

  body.sb-mobile-open .mlv-sidebar {
    transform: translateX(0);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: var(--hh);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 990;
    backdrop-filter: blur(2px);
  }

  body.sb-mobile-open .mobile-overlay {
    display: block;
  }

  body.admin-bar .mobile-overlay {
    top: calc(var(--hh) + 46px);
  }

  .mlv-main,
  .mlv-footer {
    margin-left: 0 !important;
  }

  .mlv-header {
    padding: 0 16px;
    gap: 10px;
  }

  .mlv-nav {
    display: none;
  }

  .mlv-main {
    padding: 20px 16px;
  }

  .mlv-logo {
    font-size: 15px;
  }

  .mlv-logo-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .hdr-username {
    font-size: 13px;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }

  .btn-auth {
    padding: 6px 14px;
    font-size: 13px;
  }

  .btn-auth-out {
    display: none;
  }

  /* Ẩn bớt nút đăng xuất trên đt cho gọn, vào account mới có */
  
  /* ===== HEADER MOBILE OPTIMIZATION ===== */
  .mlv-header {
    height: 70px !important;
    padding: 0 16px !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  
  .menu-toggle-mobile {
    order: 1 !important;
    padding: 8px !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
  }
  
  .mlv-logo {
    order: 2 !important;
    font-size: 16px !important;
    margin-left: 8px !important;
  }
  
  .mlv-logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  
  .external-links-wrap {
    order: 4 !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    position: fixed !important;
    bottom: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(6, 13, 31, 0.98) !important;
    padding: 12px 20px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.1) !important;
    gap: 12px !important;
    z-index: 999 !important;
  }
  
  .ext-link-btn {
    padding: 10px 14px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .ext-link-guide .ext-text {
    display: inline !important;
  }
  
  .ext-link-youtube .ext-text,
  .ext-link-voice .ext-text {
    display: none !important;
  }
  
  .ext-icon {
    font-size: 18px !important;
    margin: 0 !important;
  }
  
  .ext-badge {
    font-size: 8px !important;
    padding: 2px 5px !important;
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
  }
  
  .mlv-header-right {
    order: 3 !important;
    margin-left: auto !important;
  }
  
  .hdr-user-wrap {
    position: relative !important;
  }
  
  .hdr-user-btn {
    padding: 6px 12px !important;
    gap: 6px !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border-radius: 50px !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
  }
  
  .hdr-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--cyan), #0891b2) !important;
    color: #fff !important;
    font-weight: 700 !important;
  }
  
  .hdr-uname {
    font-size: 12px !important;
    max-width: 100px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  
  .hdr-caret {
    width: 10px !important;
    height: 10px !important;
  }
  
  .hdr-user-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .btn-auth {
    padding: 8px 16px !important;
    font-size: 12px !important;
    min-height: 40px !important;
  }
  
  /* Footer mobile */
  .mlv-footer {
    padding: 20px 16px 80px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  
  .footer-links {
    gap: 12px !important;
    justify-content: center !important;
  }
  
  .footer-links a {
    font-size: 12px !important;
  }
  
  .footer-social {
    gap: 8px !important;
  }
  
  .footer-social a {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .mlv-header {
    height: 64px !important;
    padding: 0 12px !important;
  }
  
  .mlv-logo {
    font-size: 14px !important;
  }
  
  .mlv-logo-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .external-links-wrap {
    bottom: 60px !important;
    padding: 10px 16px !important;
    gap: 8px !important;
  }
  
  .ext-link-btn {
    padding: 8px 10px !important;
    font-size: 10px !important;
  }
  
  .hdr-uname {
    display: none !important;
  }
  
  .hdr-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  
  .btn-auth {
    padding: 7px 14px !important;
    font-size: 11px !important;
  }
  
  /* Pricing cards mobile */
  .plan-card {
    padding: 20px !important;
  }
  
  .plan-tier {
    font-size: 9px !important;
  }
  
  .plan-name {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .plan-price {
    font-size: 28px !important;
    margin-bottom: 4px !important;
  }
  
  .plan-price sub {
    font-size: 20px !important;
  }
  
  .plan-period {
    font-size: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .plan-cta {
    padding: 11px !important;
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  
  .plan-features {
    gap: 8px !important;
  }
  
  .plan-features li {
    font-size: 12px !important;
    gap: 8px !important;
  }
  
  /* FAQ mobile */
  .faq-section-header {
    padding: 20px !important;
  }
  
  .faq-section-header h2 {
    font-size: 18px !important;
  }
  
  .faq-item-header {
    padding: 16px !important;
    font-size: 13px !important;
  }
  
  .faq-item-body {
    padding: 16px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
}

/* ══════════════════════════════
   Video Thumbnail & Play Icon
   ══════════════════════════════ */
.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.card-thumb-wrap .card-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s, filter .3s;
}

a.card-thumb-wrap:hover .card-thumb {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  transition: .3s;
  pointer-events: none;
}

.mlv-card:hover .card-play-icon {
  background: rgba(6, 182, 212, .85);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Card CTA Row */
.card-cta-row {
  margin-top: 8px;
}

.card-view-btn {
  display: block;
  text-align: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .25);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}

.card-view-btn:hover {
  background: rgba(6, 182, 212, .2);
  color: #fff;
}

/* ════════════════════════════════════════════════════
   COURSE CARD — Khóa Học card
════════════════════════════════════════════════════ */
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--cyan);
}

.course-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #f1f5f9;
  overflow: hidden;
}

.course-thumb img,
.course-thumb .placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-thumb .placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.course-info {
  padding: 20px;
}

.course-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-sale {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
}

.price-old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ════════════════════════════════════════════════════
   CB-CARD — Chatbot card với thumbnail 9:16 (Shorts)
════════════════════════════════════════════════════ */
.cb-card {
  cursor: default;
  /* card không click toàn bộ nữa */
}

/* ── Thumbnail container 9:16 compact ── */
.cb-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 300px;
  /* giới hạn chiều cao, tránh chiếm hết màn */
  overflow: hidden;
  background: #000;
  border-radius: var(--r) var(--r) 0 0;
  flex-shrink: 0;
}

.cb-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cb-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #0a1628, #111e35);
}

.cb-card:hover .cb-thumb {
  transform: scale(1.04);
}

/* ── Badges overlay (góc trên trái) ── */
.cb-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── Play button lớn (trung tâm) ── */
.cb-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.cb-play-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .45);
}

.cb-card:hover .cb-play-icon {
  transform: scale(1.12);
  background: rgba(6, 182, 212, .8);
  box-shadow: 0 0 0 8px rgba(6, 182, 212, .2), 0 8px 30px rgba(0, 0, 0, .5);
}

/* Pulse glow animation */
@keyframes cb-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, .5), 0 4px 20px rgba(0, 0, 0, .45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(6, 182, 212, 0), 0 4px 20px rgba(0, 0, 0, .45);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0), 0 4px 20px rgba(0, 0, 0, .45);
  }
}

/* ── Gradient scrim (đáy ảnh) ── */
.cb-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Giá góc trên phải ── */
.cb-price-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Title overlay đáy ảnh ── */
.cb-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 10px 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ── Footer CTA + bookmark ── */
.cb-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
}

.cb-cta-btn {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #a855f7 100%);
  background-size: 200% 200%;
  animation: cb-cta-grad 4s ease infinite;
  box-shadow: 0 3px 12px rgba(239, 68, 68, .4);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
  min-width: 0;
}

.cb-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, .55);
  color: #fff;
}

/* Price badge (dùng chung) */
.cb-price-badge {
  display: none;
  /* ẩn, dùng cb-price-overlay thay thế */
}

.cpb-free {
  background: rgba(168, 85, 247, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.cpb-sale {
  background: rgba(6, 182, 212, .9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.cpb-disc {
  background: rgba(239, 68, 68, .9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}

/* ── Inline YouTube iframe (thay thế ảnh khi play) ── */
.cb-inline-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
  background: #000;
  border-radius: var(--r) var(--r) 0 0;
}

/* ── Nút Xem video ── */
.cb-watch-btn {
  background: linear-gradient(135deg, #0e7490, #0284c7) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-align: center;
  transition: .2s;
  box-shadow: 0 4px 14px rgba(6, 182, 212, .3);
}

.cb-watch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, .5);
}

/* ── Nút CTA "Dùng Chatbot Ngay" ── */
.cb-cta-btn {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #ef4444, #a855f7);
  background-size: 200% 200%;
  animation: cb-cta-grad 4s ease infinite;
  box-shadow: 0 4px 18px rgba(239, 68, 68, .4);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .01em;
  white-space: nowrap;
}

.cb-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239, 68, 68, .6);
  color: #fff;
}

/* Gradient shift animation */
@keyframes cb-cta-grad {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Shimmer chạy qua nút */
.cb-cta-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, .28) 50%,
      transparent 100%);
  animation: cb-shine 2.5s ease infinite;
  pointer-events: none;
}

@keyframes cb-shine {
  0% {
    left: -80%;
  }

  60% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

/* ── Grid chatbot → 4-5 cột compact ── */
@media (min-width: 1101px) {
  .grid-4:has(.cb-card) {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .grid-4:has(.cb-card) {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .grid-4:has(.cb-card) {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cb-thumb-wrap {
    max-height: 240px;
  }

  .cb-title-overlay {
    font-size: 11px;
  }

  .cb-cta-btn {
    font-size: 11px;
    padding: 7px 8px;
  }
}

@media (max-width: 520px) {
  .grid-4:has(.cb-card) {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cb-thumb-wrap {
    max-height: 220px;
  }

  .cb-play-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .cpb-sale {
    font-size: 10px;
    padding: 2px 7px;
  }
}


/* ════════════════════════════════════════════════════
   PROMPT MODAL — XEM PROMPT & LẤY LINK CHIA SẺ
════════════════════════════════════════════════════ */
.mlv-pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pmodal-fade-in .2s ease;
}

@keyframes pmodal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mlv-pmodal-box {
  background: #111827;
  border: 1px solid rgba(6, 182, 212, .25);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(6, 182, 212, .08);
  animation: pmodal-slide-in .22s ease;
}

@keyframes pmodal-slide-in {
  from {
    transform: translateY(20px) scale(.97);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.mlv-pmodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.mlv-pmodal-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text, #f1f5f9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mlv-pmodal-close {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--muted, #94a3b8);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: .2s;
  margin-left: 12px;
}

.mlv-pmodal-close:hover {
  background: rgba(239, 68, 68, .15);
  border-color: rgba(239, 68, 68, .35);
  color: #ef4444;
}

.mlv-pmodal-section {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.mlv-pmodal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* Prompt textarea block */
.mlv-pmodal-textarea-wrap {
  position: relative;
}

.mlv-pmodal-textarea {
  width: 100%;
  min-height: 180px;
  max-height: 320px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 14px 16px 52px;
  color: var(--text, #f1f5f9);
  font-size: 14px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
  overflow-y: auto;
}

.mlv-pmodal-textarea:focus {
  border-color: rgba(6, 182, 212, .45);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .08);
}

.mlv-pmodal-copy-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0e7490, #0284c7);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
  box-shadow: 0 4px 16px rgba(6, 182, 212, .3);
}

.mlv-pmodal-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, .45);
}

/* Link chia sẻ */
.mlv-pmodal-link-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mlv-pmodal-link-input {
  flex: 1;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--cyan, #06b6d4);
  font-size: 13px;
  font-family: 'Inter', monospace, sans-serif;
  outline: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .2s;
}

.mlv-pmodal-link-input:focus {
  border-color: rgba(6, 182, 212, .45);
}

.mlv-pmodal-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .3);
  color: var(--cyan, #06b6d4);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: .2s;
}

.mlv-pmodal-link-btn:hover {
  background: rgba(6, 182, 212, .22);
  color: #fff;
}

/* Footer nút goto */
.mlv-pmodal-footer {
  padding: 16px 24px 20px;
  display: flex;
  justify-content: center;
}

.mlv-pmodal-goto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, .15), rgba(99, 102, 241, .15));
  border: 1px solid rgba(6, 182, 212, .25);
  color: var(--text, #f1f5f9);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.mlv-pmodal-goto:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, .28), rgba(99, 102, 241, .28));
  border-color: rgba(6, 182, 212, .5);
  transform: translateY(-1px);
}

/* Scrollbar trong textarea */
.mlv-pmodal-textarea::-webkit-scrollbar,
.mlv-pmodal-box::-webkit-scrollbar {
  width: 5px;
}

.mlv-pmodal-textarea::-webkit-scrollbar-track,
.mlv-pmodal-box::-webkit-scrollbar-track {
  background: transparent;
}

.mlv-pmodal-textarea::-webkit-scrollbar-thumb,
.mlv-pmodal-box::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, .3);
  border-radius: 50px;
}

/* Responsive */
@media (max-width: 520px) {
  .mlv-pmodal-box {
    border-radius: 14px;
  }

  .mlv-pmodal-title {
    font-size: 15px;
  }

  .mlv-pmodal-link-wrap {
    flex-direction: column;
  }

  .mlv-pmodal-link-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   📱 MOBILE OPTIMIZATIONS - COMPLETE REDESIGN
   Optimized for courses, zoom events, chatbots, tools, products
═══════════════════════════════════════════════════════════════════════ */

/* ── COURSE CARDS (video_hoc) ── */
@media (max-width: 768px) {
  .course-card .card-thumb {
    aspect-ratio: 16/10; /* Better for mobile */
  }
  
  .course-card .course-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
  }
  
  .course-card .course-meta {
    font-size: 11px;
    gap: 8px;
  }
  
  .course-card .price-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .course-card .price-sale {
    font-size: 18px !important;
  }
  
  .course-card .price-orig {
    font-size: 13px;
  }
  
  .course-card .btn-bm {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .course-card .card-body {
    padding: 12px;
  }
  
  .course-card .course-title {
    font-size: 13px;
    min-height: 36px;
  }
  
  .course-card .badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* ── ZOOM EVENT CARDS ── */
@media (max-width: 768px) {
  .ze-hp-card .ze-thumb {
    aspect-ratio: 16/9;
  }
  
  .ze-hp-card .ze-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
  }
  
  .ze-hp-card .ze-meta {
    font-size: 11px;
    gap: 6px;
  }
  
  .ze-hp-card .ze-price-sale {
    font-size: 20px !important;
  }
  
  .ze-hp-card .ze-price-old {
    font-size: 14px;
  }
  
  .ze-hp-card .ze-discount-badge {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .ze-full-ribbon,
  .ze-urgent-spots,
  .ze-few-spots,
  .ze-soon-ribbon {
    font-size: 9px;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .ze-hp-card .ze-info {
    padding: 12px;
  }
  
  .ze-hp-card .ze-title {
    font-size: 13px;
    min-height: 36px;
  }
  
  .ze-hp-card .ze-price-sale {
    font-size: 18px !important;
  }
}

/* ── CHATBOT CARDS ── */
@media (max-width: 768px) {
  .cb-card .cb-thumb-wrap {
    max-height: 200px;
  }
  
  .cb-card .cb-title-overlay {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    padding: 8px;
  }
  
  .cb-card .cb-cta-btn {
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
    justify-content: center;
  }
  
  .cb-card .cpb-sale {
    font-size: 16px;
  }
  
  .cb-card .cpb-orig {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cb-card .cb-thumb-wrap {
    max-height: 180px;
  }
  
  .cb-card .cb-play-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .cb-card .cb-title-overlay {
    font-size: 12px;
    min-height: 34px;
  }
}

/* ── AI TOOL CARDS ── */
@media (max-width: 768px) {
  .tool-card .tool-card-thumb {
    aspect-ratio: 16/9;
  }
  
  .tool-card .tool-card-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .tool-card .tool-card-desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .tool-card .tool-card-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .tool-card .btn-action {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    justify-content: center;
  }
  
  .tool-card .tool-price {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .tool-card .tool-card-body {
    padding: 12px;
  }
  
  .tool-card .tool-card-title {
    font-size: 13px;
  }
  
  .tool-card .tool-card-desc {
    font-size: 11px;
  }
}

/* ── PRODUCT CARDS ── */
@media (max-width: 768px) {
  .san-pham-card .card-thumb {
    aspect-ratio: 1/1; /* Square for products */
  }
  
  .san-pham-card .product-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
  }
  
  .san-pham-card .product-meta {
    font-size: 11px;
    gap: 8px;
  }
  
  .san-pham-card .price-sale {
    font-size: 18px !important;
  }
  
  .san-pham-card .sp-features {
    font-size: 11px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .san-pham-card .card-body {
    padding: 12px;
  }
  
  .san-pham-card .product-title {
    font-size: 13px;
    min-height: 36px;
  }
}

/* ── MATERIAL/DOCUMENT CARDS ── */
@media (max-width: 768px) {
  .tailieu-card .card-thumb {
    aspect-ratio: 4/5; /* Portrait for documents */
  }
  
  .tailieu-card .material-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .tailieu-card .file-info {
    font-size: 11px;
  }
  
  .tailieu-card .download-count {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .tailieu-card .card-body {
    padding: 12px;
  }
  
  .tailieu-card .material-title {
    font-size: 13px;
  }
}

/* ── GENERAL CARD IMPROVEMENTS FOR MOBILE ── */
@media (max-width: 768px) {
  .mlv-card {
    border-radius: 12px; /* Slightly smaller radius on mobile */
  }
  
  .mlv-card .card-badges {
    padding: 8px 8px 0;
    gap: 4px;
  }
  
  .mlv-card .badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  /* Improve touch targets */
  .mlv-card a,
  .mlv-card button {
    min-height: 44px; /* iOS recommended touch target */
  }
}

/* ── GRID ADJUSTMENTS FOR SPECIFIC CONTENT TYPES ── */
@media (max-width: 768px) {
  /* Courses grid */
  .grid-4:has(.course-card),
  .grid-4:has(.san-pham-card) {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* Single column on very small screens */
  .grid-4:has(.course-card),
  .grid-4:has(.san-pham-card),
  .grid-4:has(.cb-card),
  .grid-4:has(.tool-card),
  .grid-4:has(.tailieu-card) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── PROMPT FREE CARDS ── */
@media (max-width: 768px) {
  .prompt-card .prompt-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .prompt-card .copy-btn {
    font-size: 12px;
    padding: 8px 16px;
    width: 100%;
    justify-content: center;
  }
  
  .prompt-card .copy-count {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .prompt-card .prompt-title {
    font-size: 13px;
  }
}

/* ── SINGLE PAGE MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
  .single-title {
    font-size: 22px;
  }
  
  .spb-sale {
    font-size: 26px;
  }
  
  .single-stats {
    gap: 8px;
  }
  
  .stat-item {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .single-cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-cta-main,
  .btn-cta-sec {
    width: 100%;
    text-align: center;
  }
  
  .infobox-item {
    padding: 10px 14px;
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .single-title {
    font-size: 20px;
  }
  
  .spb-sale {
    font-size: 24px;
  }
  
  .single-layout {
    gap: 24px;
  }
}

/* ── LESSON LIST MOBILE ── */
@media (max-width: 768px) {
  .lesson-item {
    margin-bottom: 8px;
  }
  
  .lesson-header {
    padding: 12px;
    gap: 10px;
  }
  
  .lesson-number {
    font-size: 14px;
    width: 28px;
    height: 28px;
  }
  
  .lesson-title {
    font-size: 14px;
  }
  
  .lesson-duration {
    font-size: 11px;
  }
  
  .lesson-badge .badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .lesson-video iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .lesson-header {
    padding: 10px;
  }
  
  .lesson-title {
    font-size: 13px;
  }
  
  .lesson-video iframe {
    height: 180px;
  }
}

/* ── PAYMENT SECTION MOBILE ── */
@media (max-width: 768px) {
  .payment-inline {
    padding: 20px;
  }
  
  .pi-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .pi-title {
    font-size: 18px;
  }
  
  .pi-steps {
    gap: 16px;
  }
  
  .pi-step {
    gap: 12px;
  }
  
  .pi-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .payment-inline {
    padding: 16px;
  }
  
  .pi-title {
    font-size: 16px;
  }
}

/* ── FILTER BAR MOBILE ── */
@media (max-width: 768px) {
  .filter-bar {
    gap: 6px;
  }
  
  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Make filter buttons scrollable horizontally */
  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  
  .filter-pill {
    display: inline-block;
  }
}

/* ── PRICING TABLE MOBILE ── */
@media (max-width: 768px) {
  .plans-grid {
    gap: 16px;
  }
  
  .plan-card {
    padding: 20px;
  }
  
  .plan-card h3 {
    font-size: 18px;
  }
  
  .plan-price {
    font-size: 28px;
  }
  
  .plan-features li {
    font-size: 13px;
  }
  
  .plan-cta {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 16px;
  }
  
  .plan-card h3 {
    font-size: 16px;
  }
  
  .plan-price {
    font-size: 24px;
  }
}

/* ── BREADCRUMB MOBILE ── */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .breadcrumb span {
    font-size: 10px;
  }
}

/* ── BUTTONS MOBILE ── */
@media (max-width: 480px) {
  .btn-cta-main,
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 48px; /* Better touch target */
  }
}

/* ── TYPOGRAPHY MOBILE ── */
@media (max-width: 768px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  
  p {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  h4 { font-size: 15px; }
  
  p {
    font-size: 14px;
  }
}

/* ── GALLERY THUMBS MOBILE ── */
@media (max-width: 480px) {
  .gallery-thumbs {
    gap: 6px;
  }
  
  .gallery-thumb {
    width: 60px;
    height: 40px;
  }
}

/* ── ZOOM SPEAKER & DETAILS MOBILE ── */
@media (max-width: 768px) {
  .zoom-speaker {
    font-size: 13px;
  }
  
  .zoom-date-time {
    font-size: 14px;
    flex-direction: column;
    gap: 4px;
  }
}

/* ── LOADING STATES MOBILE ── */
@media (max-width: 480px) {
  .loading-skeleton {
    height: 180px;
  }
  
  .skeleton-text {
    height: 14px;
    margin-bottom: 8px;
  }
}

/* ── FOOTER MOBILE ── */
@media (max-width: 768px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  footer .footer-section {
    text-align: center;
  }
}