/* ============================================================
   SaaS Listing – main.css v1.4 (mobile-first)
   Author: dev.com.vn
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --p:        #2563EB;
  --p-dark:   #1D4ED8;
  --p-light:  #EFF6FF;
  --sec:      #7C3AED;
  --ok:       #10B981;
  --warn:     #F59E0B;
  --err:      #EF4444;
  --g50:      #F9FAFB;
  --g100:     #F3F4F6;
  --g200:     #E5E7EB;
  --g300:     #D1D5DB;
  --g400:     #9CA3AF;
  --g600:     #4B5563;
  --g800:     #1F2937;
  --text:     #111827;
  --bg:       #F1F5F9;
  --card:     #FFFFFF;
  --r:        12px;
  --r-sm:     8px;
  --sh:       0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.07);
  --sh-up:    0 4px 16px rgba(37,99,235,.14), 0 2px 6px rgba(0,0,0,.06);
  --tr:       all .22s cubic-bezier(.4,0,.2,1);
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Reset ---- */
.saas-listing-wrap *, .saas-listing-wrap *::before, .saas-listing-wrap *::after {
  box-sizing: border-box;
}
.saas-listing-wrap {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.saas-listing-wrap img { max-width: 100%; display: block; }

/* ---- Container ---- */
.saas-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px)  { .saas-container { padding: 0 20px; } }
@media (min-width: 1024px) { .saas-container { padding: 0 28px; } }

/* ============================================================
   HERO
   ============================================================ */
.sl-hero {
  position: relative;
  background: linear-gradient(140deg, #1a3a8f 0%, #2563EB 55%, #6d28d9 100%);
  padding: 40px 0 36px;
  overflow: hidden;
}
@media (min-width: 768px)  { .sl-hero { padding: 56px 0 48px; } }
@media (min-width: 1024px) { .sl-hero { padding: 72px 0 64px; } }

/* Orbs — hidden on small phones for perf */
.sl-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.sl-hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  display: none;
}
@media (min-width: 600px) { .sl-hero__orb { display: block; } }
.sl-hero__orb--1 { width: 420px; height: 420px; top: -160px; right: -80px;  animation: orb 7s ease-in-out infinite; }
.sl-hero__orb--2 { width: 260px; height: 260px; bottom: -70px; left: 8%;   animation: orb 5s ease-in-out infinite 2s; }
.sl-hero__orb--3 { width: 160px; height: 160px; top: 50px; left: 40%;      animation: orb 6s ease-in-out infinite 1s; }
@keyframes orb { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* Hero layout: single column mobile → two-column 1024+ */
.sl-hero__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .sl-hero__wrap { grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
}

.sl-hero__left { color: #fff; }

/* Pill */
.sl-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 16px;
}
.sl-hero__pill-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100%{ box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50%    { box-shadow: 0 0 0 6px rgba(74,222,128,.1); }
}

/* Title */
.sl-hero__title {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
  margin: 0 0 14px;
}
.sl-hero__em {
  font-style: normal;
  background: linear-gradient(90deg, #fcd34d, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sl-hero__sub {
  font-size: .95rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 0 0 24px;
  max-width: 500px;
}
.sl-hero__sub strong { color: #fcd34d; }

/* Search */
.sl-search { margin-bottom: 22px; }
.sl-search__bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.97);
  border-radius: 50px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.sl-search__icon { color: var(--g400); flex-shrink: 0; width: 18px; height: 18px; }
.sl-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 10px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.sl-search__input::placeholder { color: var(--g400); }
.sl-search__btn {
  background: var(--p);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.sl-search__btn:hover { background: var(--p-dark); }

.sl-search__tags {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
}
.sl-search__tags a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  padding: 3px 11px;
  border-radius: 50px;
  transition: background .18s;
  white-space: nowrap;
}
.sl-search__tags a:hover { background: rgba(255,255,255,.22); }

/* CTAs */
.sl-hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tr);
  border: none;
  white-space: nowrap;
}
.sl-btn--white        { background: #fff; color: var(--p); }
.sl-btn--white:hover  { background: #f0f9ff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sl-btn--ghost        { background: rgba(255,255,255,.13); color: #fff; border: 1.5px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.sl-btn--ghost:hover  { background: rgba(255,255,255,.22); color: #fff; }

/* Hero right — stats; hidden mobile */
.sl-hero__right { display: none; }
@media (min-width: 1024px) { .sl-hero__right { display: block; } }

.sl-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sl-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform .22s;
}
.sl-stat:hover { transform: translateY(-3px); }
.sl-stat__icon  { font-size: 1.5rem; line-height: 1; }
.sl-stat__num   { font-size: 1.35rem; font-weight: 700; }
.sl-stat__label { font-size: .7rem; color: rgba(255,255,255,.7); }

.sl-trust-badge {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
}
.sl-trust-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ============================================================
   CATEGORY PILLS BAR
   ============================================================ */
.sl-cats-bar {
  background: #fff;
  border-bottom: 1.5px solid var(--g200);
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Hide scrollbar but keep scroll */
.sl-cats-bar::-webkit-scrollbar { height: 0; }

.sl-cats {
  display: flex;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;          /* scroll on mobile */
  min-width: max-content;     /* prevent shrink */
}
@media (min-width: 1024px) {
  .sl-cats { flex-wrap: wrap; min-width: 0; }
}

.sl-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--g50);
  border: 1.5px solid var(--g200);
  color: var(--g600);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tr);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.sl-cat span {
  background: rgba(0,0,0,.07);
  border-radius: 50px;
  padding: 1px 6px;
  font-size: .68rem;
}
.sl-cat:hover, .sl-cat--active {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}
.sl-cat--active span, .sl-cat:hover span { background: rgba(255,255,255,.22); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sl-section { padding: 32px 0; }
@media (min-width: 768px) { .sl-section { padding: 48px 0; } }
.sl-section--bg { background: var(--bg); }

.sl-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sl-section__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
}
@media (min-width: 768px) { .sl-section__title { font-size: 1.4rem; } }
.sl-section__sub { font-size: .85rem; color: var(--g600); margin: 0; }
.sl-link-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--p);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sl-link-more:hover { color: var(--p-dark); }

/* ============================================================
   CATEGORIES GRID — mobile-first responsive
   ============================================================ */
.sl-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 col mobile */
  gap: 10px;
}
@media (min-width: 480px)  { .sl-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px)  { .sl-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .sl-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.sl-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--card);
  border: 1.5px solid var(--g200);
  border-radius: var(--r);
  text-decoration: none;
  text-align: center;
  transition: var(--tr);
  color: var(--text);
}
.sl-cat-card:hover {
  border-color: var(--p);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.sl-cat-card__icon  { font-size: 1.75rem; line-height: 1; }
.sl-cat-card__name  { font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.sl-cat-card__count { font-size: .72rem; color: var(--g400); }

/* ============================================================
   GRID — cards
   ============================================================ */
.saas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 col mobile */
  gap: 10px;
}
@media (min-width: 640px)  { .saas-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 900px)  { .saas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .saas-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ============================================================
   CARD — sl-card
   ============================================================ */
.sl-card {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--g200);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--tr);
  position: relative;
}
.sl-card:hover {
  box-shadow: var(--sh-up);
  transform: translateY(-3px);
  border-color: var(--p);
}

/* Card media */
.sl-card__media {
  position: relative;
  background: var(--g50);
  border-bottom: 1px solid var(--g100);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}
.saas-card-avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
}
.saas-card-avatar-text {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p), var(--sec));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* Badge */
.sl-card__badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--warn);
  color: #fff;
}
.sl-card__badge--featured { background: var(--p); }
.sl-card__badge--free     { background: var(--ok); }

/* Card body */
.sl-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sl-card__title {
  font-size: .88rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.sl-card__title a { color: var(--text); text-decoration: none; }
.sl-card__title a:hover { color: var(--p); }

.sl-card__desc {
  font-size: .75rem;
  color: var(--g600);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags */
.sl-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.saas-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  color: var(--g600);
  background: var(--g100);
  padding: 2px 7px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tr);
  white-space: nowrap;
}
.saas-card-meta-item:hover { background: var(--p); color: #fff; }

/* Rating */
.sl-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--g400);
}
.sl-card__rating strong { color: var(--text); font-size: .78rem; }
.saas-stars { color: #f59e0b; letter-spacing: .5px; font-size: .78rem; }

/* Price */
.sl-card__price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--p);
  margin-top: auto;
}
.sl-card__price svg { opacity: .7; flex-shrink: 0; }
.sl-card__free-tag {
  background: #d1fae5;
  color: #065f46;
  font-size: .65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 50px;
}

/* Card footer */
.sl-card__footer {
  padding: 9px 12px;
  border-top: 1px solid var(--g100);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phone */
.sl-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 6px;
  color: #15803d;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  transition: var(--tr);
  flex-shrink: 1;
  min-width: 0;
}
.sl-card__phone:hover { background: #dcfce7; border-color: #86efac; }

/* Action buttons */
.sl-card__actions { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.sl-btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 6px;
  color: #15803d;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--tr);
}
.sl-btn-demo:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.sl-btn-view {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--p);
  border-radius: 6px;
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--tr);
}
.sl-btn-view:hover { background: var(--p-dark); color: #fff; }

/* ============================================================
   LAYOUT — sidebar + content
   ============================================================ */
.saas-main-layout {
  display: flex;
  flex-direction: column;        /* mobile: stack */
  gap: 16px;
  padding-top: 16px;
}
@media (min-width: 900px) {
  .saas-main-layout {
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    padding-top: 24px;
  }
}

.saas-content-area { flex: 1; min-width: 0; }

/* Sidebar */
.saas-sidebar {
  width: 100%;
  display: none;                 /* hidden on mobile until toggled */
}
.saas-sidebar.active { display: block; }
@media (min-width: 900px) {
  .saas-sidebar { display: block !important; width: 260px; flex-shrink: 0; }
}
@media (min-width: 1200px) { .saas-sidebar { width: 280px; } }

/* Mobile filter button */
.saas-mobile-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  transition: var(--tr);
}
.saas-mobile-filter-btn:hover { background: var(--p-dark); }
@media (min-width: 900px) { .saas-mobile-filter-btn { display: none !important; } }

/* Toolbar */
.saas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.saas-result-count { font-size: .82rem; color: var(--g600); margin: 0; }
.saas-result-count strong { color: var(--text); font-weight: 600; }
.saas-sort-wrap { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--g600); }
.saas-sort-select {
  padding: 6px 10px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .82rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
}
.saas-sort-select:focus { border-color: var(--p); }

/* Active filter tags */
.saas-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.saas-active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--p-light);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: .75rem;
  color: var(--p);
  font-weight: 500;
}
.saas-active-filter-tag .remove { cursor: pointer; font-size: .95rem; color: var(--g400); font-weight: 700; }
.saas-active-filter-tag .remove:hover { color: var(--err); }

/* Pagination */
.saas-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.saas-pagination a, .saas-pagination span,
.saas-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--g200);
  background: #fff;
  color: var(--g600);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tr);
  padding: 0 8px;
  cursor: pointer;
  font-family: var(--font);
}
.saas-pagination a:hover, .saas-pagination .current,
.saas-page-btn:hover, .saas-page-btn.current {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.saas-sidebar-widget {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1.5px solid var(--g200);
  overflow: hidden;
  margin-bottom: 14px;
}
.saas-sidebar-widget-header {
  padding: 11px 15px;
  background: var(--g50);
  border-bottom: 1px solid var(--g200);
  font-weight: 600;
  font-size: .8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.saas-sidebar-widget-body { padding: 13px 15px; }

.saas-filter-group { margin-bottom: 16px; }
.saas-filter-group:last-child { margin-bottom: 0; }
.saas-filter-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
  display: block;
}
.saas-filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.saas-filter-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: .82rem;
  color: var(--g600);
  transition: background .15s, color .15s;
  user-select: none;
}
.saas-filter-item label:hover { background: var(--g100); color: var(--text); }
.saas-filter-item input[type="checkbox"],
.saas-filter-item input[type="radio"] { accent-color: var(--p); width: 14px; height: 14px; flex-shrink: 0; }
.saas-filter-count {
  margin-left: auto;
  background: var(--g200);
  border-radius: 50px;
  padding: 1px 5px;
  font-size: .65rem;
  font-weight: 600;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.saas-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.5px solid var(--g200);
  z-index: 9000;
  box-shadow: 0 -3px 12px rgba(0,0,0,.07);
}
.saas-mobile-nav-inner { display: flex; }
.saas-mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  text-decoration: none;
  color: var(--g400);
  font-size: .6rem;
  font-weight: 500;
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: color .18s;
  line-height: 1;
}
.saas-mobile-nav-item svg { width: 20px; height: 20px; }
.saas-mobile-nav-item.active, .saas-mobile-nav-item:hover { color: var(--p); }
@media (max-width: 768px) {
  .saas-mobile-nav { display: block; }
  body { padding-bottom: 60px; }
}

/* FABs */
.saas-fab-wrap {
  position: fixed;
  right: 14px;
  bottom: 70px;
  z-index: 8999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.saas-fab {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  text-decoration: none;
  transition: var(--tr);
  font-size: 1.1rem;
  color: #fff;
}
.saas-fab:hover { transform: scale(1.08); }
.saas-fab-phone { background: var(--ok); }
.saas-fab-zalo  { background: #0068ff; }
@media (min-width: 769px) { .saas-fab-wrap { display: none; } }

/* ============================================================
   SHARED UTILS
   ============================================================ */
.saas-hidden { display: none !important; }

.saas-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--g400);
  grid-column: 1 / -1;
}
.saas-empty-state h3 { font-size: 1rem; color: var(--g600); margin: 0 0 8px; }

.saas-loading {
  text-align: center;
  padding: 48px;
  color: var(--g400);
  grid-column: 1 / -1;
}

/* Shared buttons */
.saas-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-family: var(--font); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: var(--tr); text-decoration: none;
  border: none; white-space: nowrap; line-height: 1.4;
}
.saas-btn-primary { background: var(--p); color: #fff; }
.saas-btn-primary:hover { background: var(--p-dark); color: #fff; }
.saas-btn-outline { background: transparent; color: var(--p); border: 1.5px solid var(--p); }
.saas-btn-outline:hover { background: var(--p); color: #fff; }
.saas-btn-sm  { padding: 5px 11px; font-size: .78rem; }
.saas-btn-lg  { padding: 11px 22px; font-size: .92rem; }
.saas-btn-zalo { background: #0068ff; color: #fff; }
.saas-btn-zalo:hover { background: #0055cc; color: #fff; }
.saas-btn-demo { background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.saas-btn-demo:hover { background: #16a34a; color: #fff; border-color: #16a34a; }

/* Breadcrumb */
.saas-breadcrumb { padding: 10px 0; font-size: .78rem; color: var(--g400); }
.saas-breadcrumb a { color: var(--g600); text-decoration: none; }
.saas-breadcrumb a:hover { color: var(--p); }
.saas-breadcrumb span { margin: 0 5px; }

/* Stars / rating */
.saas-stars { color: #f59e0b; }
.saas-rating-count { color: var(--g400); font-size: .75rem; }

/* Badges */
.saas-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 50px; font-size: .68rem; font-weight: 600; }
.saas-badge-success { background: #d1fae5; color: #065f46; }
.saas-badge-info    { background: #dbeafe; color: #1e40af; }
.saas-badge-warning { background: #fef3c7; color: #92400e; }
.saas-badge-danger  { background: #fee2e2; color: #991b1b; }

/* Category pills (archive bar) */
.saas-cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 50px;
  background: #fff; border: 1.5px solid var(--g200);
  color: var(--g600); text-decoration: none;
  font-size: .8rem; font-weight: 500;
  transition: var(--tr); white-space: nowrap;
}
.saas-cat-pill:hover, .saas-cat-pill.active { background: var(--p); border-color: var(--p); color: #fff; }
.saas-cat-pill .count { background: rgba(0,0,0,.08); border-radius: 50px; padding: 1px 6px; font-size: .68rem; }
.saas-categories-list { display: flex; gap: 7px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.saas-categories-wrap { background: #fff; border-bottom: 1.5px solid var(--g200); padding: 12px 0; }

/* Inline search */
.saas-search-inline {
  background: #fff; border: 1.5px solid var(--g200);
  border-radius: var(--r); padding: 14px; margin-bottom: 18px; box-shadow: var(--sh);
}
.saas-search-inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.saas-search-inline input[type="text"] {
  flex: 1; min-width: 140px; padding: 9px 12px;
  border: 1.5px solid var(--g200); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .875rem; outline: none;
}
.saas-search-inline input[type="text"]:focus { border-color: var(--p); }


/* ══════════════════════════════════════
   HOME — Goal Grid (Mục tiêu)
══════════════════════════════════════ */
.sl-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px)  { .sl-goal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sl-goal-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.sl-goal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--g200, #E5E7EB);
  border-radius: var(--r, 12px);
  text-decoration: none;
  color: var(--text, #111827);
  transition: all .22s;
  box-shadow: var(--sh, 0 2px 8px rgba(0,0,0,.07));
}
.sl-goal-card:hover {
  border-color: var(--p, #2563EB);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.sl-goal-icon  { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.sl-goal-content { flex: 1; min-width: 0; }
.sl-goal-content strong { display: block; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.sl-goal-content span   { font-size: .72rem; color: var(--g600, #4B5563); line-height: 1.4; display: block; margin-top: 2px; }
.sl-goal-arrow { color: var(--g400, #9CA3AF); flex-shrink: 0; transition: transform .2s; }
.sl-goal-card:hover .sl-goal-arrow { color: var(--p, #2563EB); transform: translateX(3px); }

/* ══════════════════════════════════════
   HOME — Business Type Grid
══════════════════════════════════════ */
.sl-biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px)  { .sl-biz-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sl-biz-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.sl-biz-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: #fff;
  border: 1.5px solid var(--g200, #E5E7EB);
  border-radius: var(--r, 12px);
  text-decoration: none;
  color: var(--text, #111827);
  transition: all .22s;
  box-shadow: var(--sh, 0 2px 8px rgba(0,0,0,.07));
}
.sl-biz-card:hover {
  border-color: var(--p, #2563EB);
  box-shadow: 0 6px 20px rgba(37,99,235,.12);
  transform: translateY(-3px);
}
.sl-biz-icon  { font-size: 2rem; line-height: 1; }
.sl-biz-title { font-size: .9rem; font-weight: 700; color: var(--text, #111827); }
.sl-biz-desc  { font-size: .78rem; color: var(--g600, #4B5563); line-height: 1.5; flex: 1; }
.sl-biz-cta   { font-size: .78rem; font-weight: 600; color: var(--p, #2563EB); margin-top: 4px; }

/* ══════════════════════════════════════
   HOME — Consulting Services
══════════════════════════════════════ */
.sl-consulting {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #fff;
  padding: 64px 0;
}
.sl-consulting .sl-section__title { color: #fff !important; }
.sl-consulting .sl-section__sub   { color: rgba(255,255,255,.8) !important; }

.sl-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px)  { .sl-service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sl-service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.sl-svc-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r, 12px);
  padding: 20px 16px;
  backdrop-filter: blur(6px);
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sl-svc-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-3px);
}
.sl-svc-icon  { font-size: 1.8rem; line-height: 1; }
.sl-svc-title { font-size: .9rem; font-weight: 700; color: #fff; }
.sl-svc-desc  { font-size: .78rem; color: rgba(255,255,255,.78); line-height: 1.5; flex: 1; }
.sl-svc-price {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
  width: fit-content;
}
