/* ============================================================
   TIỆN ÍCH CÔNG (TIC) - DESIGN SYSTEM & MODERN STYLESHEET
   Version: 3.0 (Streamlined Platform)
   ============================================================ */

:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #0f172a;
  --accent-purple: #7c3aed;
  --accent-teal: #0d9488;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --bg-page: #f8fafc;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% -10%, rgba(2, 132, 199, 0.07) 0%, transparent 60%), #f8fafc;
  min-height: 100vh;
  color: var(--text-main);
  line-height: 1.6;
  padding: 0;
}

/* Container chính dạng Full-Width / Fluid */
.app-portal-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 60px 32px;
}

@media (max-width: 768px) {
  .app-portal-container {
    padding: 16px 16px 40px 16px;
  }
}

/* ============================================================
   TOP NAVIGATION NAVBAR
   ============================================================ */
.main-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.2));
}

.main-brand-logo:hover {
  transform: scale(1.05);
}

.brand-text-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
  line-height: 1;
}

.brand-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link-item {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-item:hover {
  color: #0284c7;
  background: #f1f5f9;
}

.nav-btn-contact {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
  transition: all 0.25s ease;
}

.nav-btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

@media (max-width: 768px) {
  .nav-links-wrap {
    display: none;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-showcase {
  text-align: center;
  padding: 42px 20px 32px 20px;
  max-width: 980px;
  margin: 0 auto 30px auto;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.hero-badge-tag .badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  display: inline-block;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.hero-main-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.24;
  color: #0f172a;
  margin-bottom: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.hero-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.68;
  max-width: 760px;
  margin: 0 auto 30px auto;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-cta-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.28);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-hero-secondary {
  background: #ffffff;
  color: #7c3aed;
  border: 1.5px solid #ddd6fe;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}
.btn-hero-secondary:hover {
  background: #faf5ff;
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.16);
}

@media (max-width: 640px) {
  .hero-main-title {
    font-size: 1.8rem;
    letter-spacing: -0.4px;
  }
  .hero-description {
    font-size: 0.94rem;
  }
  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dải cam kết Trust Bar */
.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}

@media (max-width: 900px) {
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.trust-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* ============================================================
   SHOWCASE SECTION BOX (CHUNG CHO TIỆN ÍCH VÀ GIẢI PHÁP)
   ============================================================ */
.showcase-section-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.showcase-section-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981, #059669);
}

.showcase-section-box.enterprise-theme::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6, #0284c7, #06b6d4);
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px dashed #e2e8f0;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-pill-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}

.tag-cyan {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.tag-purple {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.tag-teal {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.section-heading-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.sub-feature-note {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================================================
   SLIDER TIỆN ÍCH MIỄN PHÍ (KÉO SANG NGANG)
   ============================================================ */
.utilities-slider-container {
  position: relative;
  width: 100%;
}

.utilities-slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px 4px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.utilities-slider-track:active {
  cursor: grabbing;
}

/* Tùy biến thanh cuộn mảnh mai, hiện đại */
.utilities-slider-track::-webkit-scrollbar {
  height: 6px;
}
.utilities-slider-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.utilities-slider-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.utilities-slider-track::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.utilities-slider-track .utility-card {
  flex: 0 0 295px;
  min-width: 295px;
  max-width: 310px;
  scroll-snap-align: start;
}

/* Chế độ hiển thị đầy đủ dạng grid (khi bấm nút "Xem đầy đủ") */
.utilities-slider-track.expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  overflow-x: visible;
  overflow-y: visible;
  scroll-snap-type: none;
  cursor: default;
  padding-bottom: 8px;
}

.utilities-slider-track.expanded:active {
  cursor: default;
}

.utilities-slider-track.expanded .utility-card {
  flex: unset;
  min-width: unset;
  max-width: unset;
  scroll-snap-align: unset;
  width: 100%;
}

.utilities-slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-arrow-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.slider-arrow-btn:active {
  transform: scale(0.96);
}

.utilities-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.utility-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.utility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Theme từng card tiện ích */
.card-theme-red {
  border-color: #fee2e2;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}
.card-theme-red:hover { border-color: #ef4444; }

.card-theme-cyan {
  border-color: #e0f2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}
.card-theme-cyan:hover { border-color: #0284c7; }

.card-theme-green {
  border-color: #d1fae5;
  background: linear-gradient(180deg, #ffffff 0%, #f4fdf8 100%);
}
.card-theme-green:hover { border-color: #10b981; }

.card-theme-blue {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}
.card-theme-blue:hover { border-color: #2563eb; }

.utility-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.utility-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.icon-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.icon-cyan { background: linear-gradient(135deg, #0284c7, #0369a1); }
.icon-green { background: linear-gradient(135deg, #10b981, #047857); }
.icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-purple-grad { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.icon-teal-grad { background: linear-gradient(135deg, #0284c7, #0d9488); }

.utility-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-red { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-cyan { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }
.badge-green { background: #d1fae5; color: #059669; border: 1px solid #6ee7b7; }
.badge-blue { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }

.utility-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.utility-card-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.utility-card-body p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
  flex: 1;
}

.utility-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.utility-tag-highlight {
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.utility-action-btn {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-red { background: #dc2626; }
.btn-cyan { background: #0284c7; }
.btn-green { background: #059669; }
.btn-blue { background: #1d4ed8; }

.utility-card:hover .utility-action-btn {
  transform: translateX(3px);
  filter: brightness(1.1);
}

/* ============================================================
   ENTERPRISE SHOWCASE (2 CỘT GIẢI PHÁP LỚN)
   ============================================================ */
.enterprise-grid-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .enterprise-grid-showcase {
    grid-template-columns: 1fr;
  }
}

.enterprise-feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.enterprise-feature-card.purple-accent {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}
.enterprise-feature-card.purple-accent:hover {
  border-color: #7c3aed;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.12);
  transform: translateY(-4px);
}

.enterprise-feature-card.teal-accent {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
.enterprise-feature-card.teal-accent:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.12);
  transform: translateY(-4px);
}

.ent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}

.ent-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ent-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ent-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ent-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.ent-deploy-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
}

.ent-client-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-client-purple {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.badge-client-teal {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.ent-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.ent-card-body {
  flex: 1;
  margin-bottom: 18px;
}

.ent-lead-desc {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 500;
}

.ent-highlight-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ent-highlight-points li {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.purple-accent .ent-highlight-points li i {
  color: #7c3aed;
  margin-top: 3px;
  font-size: 14px;
}

.teal-accent .ent-highlight-points li i {
  color: #0284c7;
  margin-top: 3px;
  font-size: 14px;
}

.ent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ent-domain-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.domain-url {
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.domain-purple { color: #7c3aed; }
.domain-teal { color: #0284c7; }

.btn-view-demo {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
}

.demo-purple {
  background: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.demo-purple:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.demo-teal {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.demo-teal:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* ============================================================
   CALL TO ACTION CONTACT BANNER
   ============================================================ */
.cta-contact-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
  border-radius: 20px;
  padding: 36px 40px;
  color: #ffffff;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-text-content {
  flex: 1;
  min-width: 300px;
  max-width: 760px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.cta-heading {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-subtext {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.cta-actions-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ============================================================
   MODAL DIALOGS BASE
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-title {
  font-size: 1.22rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

/* Modal Form Styles */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-label .sub-note {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #f8fafc;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #7c3aed;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.portal-footer {
  text-align: center;
  padding: 24px 0 10px 0;
  border-top: 1px solid #e2e8f0;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
}

.footer-copyright {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* ============================================================
   BANNER CỘNG ĐỒNG: GÓP Ý Ý TƯỞNG TIỆN ÍCH MIỄN PHÍ
   ============================================================ */
.community-idea-banner {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #f3e8ff 100%);
  border: 2px dashed #c084fc;
  border-radius: 20px;
  padding: 24px 30px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.05);
  transition: transform 0.2s ease;
}

.community-idea-banner:hover {
  transform: translateY(-2px);
  border-color: #a855f7;
}

.idea-banner-content {
  flex: 1;
  min-width: 280px;
  max-width: 820px;
}

.idea-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7c3aed;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.idea-banner-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4c1d95;
  line-height: 1.35;
  margin-bottom: 6px;
}

.idea-banner-sub {
  font-size: 0.88rem;
  color: #6b21a8;
  line-height: 1.55;
  margin: 0;
}

.btn-submit-idea {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-submit-idea:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ============================================================
   LIVE CHAT / TƯ VẤN TRỰC TIẾP WIDGET (FLOATING)
   ============================================================ */
.livechat-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
  font-size: 0.92rem;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.livechat-trigger-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
}

.livechat-trigger-btn i {
  font-size: 1.25rem;
}

.livechat-pulse-ring {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #10b981;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Cửa sổ khung Chat */
.livechat-box {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.livechat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.livechat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.livechat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.livechat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.livechat-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.livechat-status {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.livechat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
}
.livechat-close-btn:hover { color: #ffffff; }

.livechat-body {
  padding: 18px;
  max-height: 480px;
  overflow-y: auto;
}

.chat-intro-msg {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
  border-left: 3px solid #0284c7;
}
