@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root, [data-bs-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --border-subtle: #1e293b;
  --border-focus: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Bootstrap 5 Dark Variable Overrides */
  --bs-body-bg: #090d16;
  --bs-body-color: #f8fafc;
  --bs-card-bg: #0f172a;
  --bs-card-border-color: #1e293b;
  --bs-card-color: #f8fafc;
  --bs-tertiary-bg: #1e293b;
  --bs-secondary-bg: #1e293b;
  --bs-dark-rgb: 15, 23, 42;
  --bs-light-rgb: 30, 41, 59;
  --bs-border-color: #1e293b;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
  --bs-heading-color: #f8fafc;
  --bs-emphasis-color: #f8fafc;
  --bs-secondary-color: #94a3b8;

  --sidebar-bg: linear-gradient(180deg, #0d131f 0%, #090d16 100%);
  --sidebar-border: #1e293b;
  --sidebar-footer-bg: rgba(10, 15, 26, 0.5);
  --topbar-bg: rgba(13, 19, 31, 0.85);
  --topbar-border: #1e293b;
  --btn-action-bg: rgba(30, 41, 59, 0.7);
  --btn-action-border: rgba(255, 255, 255, 0.1);
  --btn-action-color: #cbd5e1;
}

[data-bs-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-subtle: #cbd5e1;
  --border-focus: #2563eb;
  --text-main: #0f172a;
  --text-muted: #334155;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  /* Bootstrap 5 Light Variable Overrides */
  --bs-body-bg: #f8fafc;
  --bs-body-color: #0f172a;
  --bs-card-bg: #ffffff;
  --bs-card-border-color: #cbd5e1;
  --bs-card-color: #0f172a;
  --bs-tertiary-bg: #f1f5f9;
  --bs-secondary-bg: #f8fafc;
  --bs-dark-rgb: 15, 23, 42;
  --bs-light-rgb: 248, 250, 252;
  --bs-border-color: #cbd5e1;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.1);
  --bs-heading-color: #0f172a;
  --bs-emphasis-color: #0f172a;
  --bs-secondary-color: #334155;

  --sidebar-bg: #ffffff;
  --sidebar-border: #cbd5e1;
  --sidebar-footer-bg: #f8fafc;
  --topbar-bg: rgba(255, 255, 255, 0.96);
  --topbar-border: #cbd5e1;
  --btn-action-bg: #ffffff;
  --btn-action-border: #cbd5e1;
  --btn-action-color: #1e293b;
}

/* Global Typography & Contrast Enforcements */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-main) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-light { color: #f8fafc !important; }
.text-white { color: #ffffff !important; }
.text-muted { color: var(--text-muted) !important; }
.form-label, .form-label-custom {
  color: var(--text-main) !important;
  font-weight: 600;
}
.form-text-custom {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.text-accent-auth {
  color: var(--primary);
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

/* Base Body Layout */
body.app-layout {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* App Sidebar Navigation (Thanh bar ben trai) */
.app-sidebar {
  width: 270px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Header & Brand Logo */
.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px var(--primary-glow));
}

.logo-svg,
.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.brand-logo-container:hover .logo-svg,
.brand-logo-container:hover .brand-logo-img {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text-box {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-name span {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.btn-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.btn-sidebar-close:hover {
  color: #ffffff;
}

/* Sidebar Scrollable Body */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Nav Sections & Links */
.nav-section {
  margin-bottom: 1.25rem;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0 0.75rem 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.15rem;
}

.sidebar-link:hover {
  color: #ffffff;
  background-color: rgba(59, 130, 246, 0.12);
  transform: translateX(3px);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.link-label {
  flex: 1;
}

.badge-nav-glow {
  font-size: 0.62rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.badge-coming-soon {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  letter-spacing: 0.2px;
  line-height: 1.3;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sidebar-link:hover .badge-coming-soon {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}

/* Sidebar Admin Navigation & Icons */
.nav-section-title-admin {
  color: #f59e0b;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.75rem 0.35rem;
}

.sidebar-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover .sidebar-icon-svg {
  color: #ffffff;
  transform: scale(1.1);
}

.sidebar-link.active .sidebar-icon-svg {
  color: #60a5fa;
}

.sidebar-link-admin:hover {
  background-color: rgba(245, 158, 11, 0.12);
}

.sidebar-link-admin.active {
  color: #fbbf24;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.04) 100%);
  border-left: 3px solid #f59e0b;
  font-weight: 600;
}

.sidebar-link-admin.active .sidebar-icon-svg {
  color: #fbbf24;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--sidebar-border);
  background: var(--sidebar-footer-bg);
}

.user-card-compact {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem;
}

.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role-badge {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
}

/* Main Layout Wrapper */
.app-main-layout {
  flex: 1;
  min-width: 0;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Giao dien full man hinh khong co sidebar ben trai */
.app-main-layout.app-main-layout-full {
  margin-left: 0 !important;
  width: 100% !important;
}

body.app-layout-no-sidebar {
  display: block !important;
}

/* Chi tiet noi dung bai viet (Markdown / HTML Content) */
.article-content {
  color: var(--text-main, #e2e8f0);
  line-height: 1.85;
  font-size: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

[data-bs-theme="light"] .article-content h1,
[data-bs-theme="light"] .article-content h2,
[data-bs-theme="light"] .article-content h3,
[data-bs-theme="light"] .article-content h4 {
  color: #0f172a;
}

.article-content h2 {
  font-size: 1.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .article-content h2 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content h3 {
  font-size: 1.25rem;
}

.article-content h4 {
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 1.15rem;
}

.article-content strong,
.article-content b {
  color: #38bdf8;
  font-weight: 600;
}

[data-bs-theme="light"] .article-content strong,
[data-bs-theme="light"] .article-content b {
  color: #0284c7;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content blockquote {
  border-left: 4px solid #0284c7;
  background: rgba(2, 132, 199, 0.08);
  padding: 0.75rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-style: italic;
}

.article-content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .article-content table {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

[data-bs-theme="light"] .article-content th,
[data-bs-theme="light"] .article-content td {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #fff;
}

[data-bs-theme="light"] .article-content th {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-bs-theme="light"] .article-content img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content code {
  background: rgba(255, 255, 255, 0.08);
  color: #f472b6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

[data-bs-theme="light"] .article-content code {
  background: rgba(0, 0, 0, 0.06);
  color: #db2777;
}

.article-content pre {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.page-content-wrapper {
  flex: 1 0 auto;
  width: 100%;
}

/* Topbar Header */
.app-topbar {
  height: 62px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Thanh Ticker chu chay noi bat ngay duoi Header */
.topbar-ticker-bar {
  background: #ea580c;
  background: linear-gradient(90deg, #c2410c 0%, #ea580c 25%, #f97316 50%, #ea580c 75%, #c2410c 100%);
  color: #ffffff;
  height: 34px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 62px;
  z-index: 1029;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
}

/* Khung phan tu sticky ben trong noi dung trang - nam duoi Topbar va Ticker */
.sticky-under-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 112px !important;
  z-index: 1010 !important;
}

@media (max-width: 768px) {
  .sticky-under-header {
    top: 106px !important;
  }
}

.topbar-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: topbarTickerScroll 30s linear infinite;
}

.topbar-ticker-bar:hover .topbar-ticker-track {
  animation-play-state: paused;
}

.topbar-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2rem;
  padding-right: 2rem;
}

.topbar-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.topbar-ticker-icon {
  flex-shrink: 0;
  display: inline-block;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

@keyframes topbarTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .topbar-ticker-bar {
    height: 30px;
  }
  .topbar-ticker-group {
    gap: 1.25rem;
    padding-right: 1.25rem;
  }
  .topbar-ticker-item {
    font-size: 0.72rem;
    gap: 5px;
  }
}

.btn-toggle-sidebar {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.toggle-bar {
  width: 100%;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-toggle-sidebar:hover .toggle-bar {
  background: #ffffff;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-action-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.topbar-action-pill:hover {
  background-color: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
  color: #ffffff;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
}

.topbar-pill-divider {
  width: 1px;
  height: 12px;
  background-color: var(--border-subtle);
  margin: 0 0.15rem;
  display: inline-block;
}

.topbar-balance-text {
  color: #22c55e;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
}

.breadcrumb-hover-link {
  color: var(--text-muted);
  transition: color 0.15s ease-in-out;
}

.breadcrumb-hover-link:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

/* Page Content */
.page-content-wrapper {
  flex: 1;
  padding-bottom: 3.5rem;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
}

.hero-tag {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.stat-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Cards Grid & Product Card */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.cards-grid .product-card,
.product-card.h-100 {
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(59, 130, 246, 0.15);
}

.product-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.badge-tool {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-acc,
.badge-account {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.85rem;
}

.product-title-link {
  color: var(--text-main);
  transition: color 0.2s ease;
}

.product-title-link:hover {
  color: var(--primary);
}

.product-code {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.5rem;
  margin-top: auto;
}

.product-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}

.product-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0 1.25rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* UI Elements & Controls */
.btn-signup {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-signup:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff;
}

.btn-signin {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-signin:hover {
  background-color: var(--bg-surface-elevated);
  border-color: #475569;
  color: #ffffff;
}

.btn-submit {
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff;
}

/* Authentication Page Styles (Dang nhap / Dang ky) */
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 2.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

[data-bs-theme="dark"] .auth-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.auth-card-wide {
  max-width: 520px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.auth-logo-badge svg,
.auth-logo-badge img,
.auth-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main) !important;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
}

.form-group-custom {
  margin-bottom: 1.25rem;
}

.form-label-custom {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main) !important;
  margin-bottom: 0.45rem;
}

.form-check-custom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  user-select: none;
}

.form-check-input-custom {
  width: 18px;
  height: 18px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--primary);
}

.auth-link-forgot {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link-forgot:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.field-validation-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
  font-weight: 500;
}

.auth-switch {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.alert-custom-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-custom-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.card, .card.bg-dark {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  color: var(--text-main) !important;
}

.bg-body, .bg-light, .bg-white {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-main) !important;
}

.bg-surface { background-color: var(--bg-surface) !important; }
.bg-surface-elevated { background-color: var(--bg-surface-elevated) !important; }

.info-box-dark {
  background-color: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  padding: 1.15rem;
  color: var(--text-main) !important;
}

.input-group-text {
  background-color: var(--bg-surface-elevated) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

.form-control-custom, .form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-surface) !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: 8px;
  color: var(--text-main) !important;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom::placeholder, .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.form-control-custom:focus, .form-control:focus, .form-select:focus {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
  color: var(--text-main) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.table-dark {
  --bs-table-bg: var(--bg-surface);
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border-subtle);
}

.modal-content {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  color: var(--text-main) !important;
}

.app-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  position: relative;
  width: 100%;
  clear: both;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }
  .app-main-layout {
    margin-left: 0;
  }
  .btn-toggle-sidebar {
    display: flex;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* ========================================================
   Floating Live Support Chat Widget
   ======================================================== */
#supportChatWidgetContainer,
.support-widget-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  pointer-events: auto !important;
}

.support-bubble-btn,
.telegram-bubble-btn,
.facebook-bubble-btn {
  position: relative !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff !important;
  text-decoration: none !important;
}

.support-bubble-btn:hover,
.telegram-bubble-btn:hover,
.facebook-bubble-btn:hover {
  transform: translateY(-3px) scale(1.05);
  color: #ffffff !important;
}

.support-bubble-btn:active,
.telegram-bubble-btn:active,
.facebook-bubble-btn:active {
  transform: scale(0.96);
}

.support-bubble-btn {
  z-index: 999999 !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.support-bubble-btn:hover {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.telegram-bubble-btn {
  z-index: 999998 !important;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.45);
}

.telegram-bubble-btn:hover {
  box-shadow: 0 12px 28px rgba(34, 158, 217, 0.65);
  background: linear-gradient(135deg, #38bdf8, #229ED9);
}

.facebook-bubble-btn {
  z-index: 999998 !important;
  background: linear-gradient(135deg, #1877F2, #0C5CE5);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.facebook-bubble-btn:hover {
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.65);
  background: linear-gradient(135deg, #388BFF, #1877F2);
}

.support-bubble-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.support-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 2px 6px;
  border: 2px solid var(--bg-dark, #0b0f19);
  line-height: 1;
}

/* Chat Box Window */
.support-chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  z-index: 999999 !important;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background-color: var(--bg-surface, #131b2e);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.support-chat-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-chat-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.05);
}

.support-chat-info {
  display: flex;
  flex-direction: column;
}

.support-chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.support-chat-status {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.support-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.support-chat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.support-chat-close-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Body */
.support-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #0b1120;
}

.support-guest-info-section {
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-input-meta {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.support-input-meta:focus {
  border-color: #3b82f6;
}

.support-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.support-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.support-empty-state {
  margin: auto;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
  padding: 20px;
}

/* Message items */
.support-msg-row {
  display: flex;
  width: 100%;
}

.support-msg-row.support-msg-user {
  justify-content: flex-end;
}

.support-msg-row.support-msg-admin {
  justify-content: flex-start;
}

.support-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  word-break: break-word;
  display: flex;
  flex-direction: column;
}

/* Tin nhan cua nguoi dung: can sang phai */
.support-msg.support-msg-user,
.support-msg-row.support-msg-user .support-msg {
  align-self: flex-end;
  margin-left: auto;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

/* Tin nhan cua admin / he thong: can sang trai */
.support-msg.support-msg-admin,
.support-msg-row.support-msg-admin .support-msg {
  align-self: flex-start;
  margin-right: auto;
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 3px;
}

.support-msg-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 2px;
}

.support-msg-content,
.support-msg-text {
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-line;
  text-align: left;
}

.support-msg-time {
  font-size: 0.68rem;
  opacity: 0.7;
  text-align: right;
  margin-top: 3px;
}

/* Footer / Input */
.support-chat-footer {
  padding: 10px 12px;
  background-color: var(--bg-surface, #131b2e);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.support-input-group {
  display: flex;
  gap: 8px;
}

.support-chat-input {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.support-chat-input:focus {
  border-color: #3b82f6;
}

.support-send-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.support-send-btn:hover {
  background-color: #1d4ed8;
}

@media (max-width: 480px) {
  .support-chat-box {
    width: calc(100vw - 24px);
    right: -12px;
    bottom: 66px;
    height: 480px;
  }
}

/* ========================================================
   High-Tech Banner & Showcase Components
   ======================================================== */
.hero-banner-wrapper {
  padding: 1.5rem 0 2rem;
}

.hero-banner-carousel {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background-color: var(--bg-surface, #131b2e);
  position: relative;
}

.hero-banner-slide {
  min-height: 440px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 15, 25, 0.68) 0%, rgba(11, 15, 25, 0.85) 60%, rgba(11, 15, 25, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  z-index: 1;
}

.hero-slide-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-slide-badge {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.hero-slide-badge.badge-amber {
  background-color: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.hero-slide-badge.badge-emerald {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.hero-slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.hero-slide-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 780px;
}

.hero-slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  transition: all 0.25s ease;
}

.carousel-indicators .active {
  width: 28px;
  border-radius: 5px;
  background-color: #3b82f6;
}

/* Promo Interactive Grid */
.promo-banner-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  min-height: 220px;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background-color: var(--bg-surface, #131b2e);
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.75);
}

.promo-banner-card:hover .promo-banner-bg {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.promo-banner-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
}

.promo-banner-overlay {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.75) 65%, rgba(11, 17, 32, 0.3) 100%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-banner-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.promo-banner-tag.tag-amber {
  color: #fbbf24;
}

.promo-banner-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.promo-banner-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

/* Mini Hero Header for Subpages (Tools, Accounts) */
.hero-banner-mini {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.hero-banner-mini-overlay {
  padding: 2.75rem 2rem;
  background: radial-gradient(ellipse at center, rgba(11, 17, 32, 0.75) 0%, rgba(11, 17, 32, 0.92) 80%);
  text-align: center;
}

@media (max-width: 768px) {
  .hero-slide-title {
    font-size: 1.75rem;
  }
  .hero-banner-slide {
    min-height: 360px;
  }
  .hero-banner-overlay {
    padding: 2rem 1.5rem;
  }
  .promo-banner-title {
    font-size: 1.25rem;
  }
}

/* ========================================================
   Language Selector Icon Button & Dropdown
   ======================================================== */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
}

.lang-btn:hover,
.lang-btn:focus,
.lang-btn[aria-expanded="true"] {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.lang-flag-svg {
  display: block;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-dropdown-menu {
  min-width: 170px;
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  margin-top: 6px !important;
}

.lang-dropdown-menu .dropdown-item {
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.lang-dropdown-menu .dropdown-item:hover {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.lang-dropdown-menu .dropdown-item.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
}

/* ========================================================
   Dedicated Auth Layout (Login, Register, Forgot Password)
   ======================================================== */
.auth-layout-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body) !important;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
  background-attachment: fixed;
  color: var(--text-main) !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
}

[data-bs-theme="dark"] .auth-layout-body {
  background-color: #090d16 !important;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #090d16 0%, #060911 100%) !important;
  color: var(--text-main, #f8fafc) !important;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  width: 100%;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.auth-back-link:hover {
  color: var(--primary);
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
}

[data-bs-theme="dark"] .auth-back-link {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .auth-back-link:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  width: 100%;
}

/* Khung vo boc hai cot hien dai cho Auth */
.auth-shell-card {
  width: 100%;
  max-width: 1060px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(37, 99, 235, 0.04);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

[data-bs-theme="dark"] .auth-shell-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.12);
}

/* Panel ben trai: Showcase thuong hieu va anh banner cong nghe */
.auth-showcase-panel {
  flex: 1.1;
  position: relative;
  background-image: url('/images/hero_banner_mmo.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 17, 32, 0.86) 60%, rgba(30, 58, 138, 0.8) 100%);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.auth-showcase-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-showcase-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.auth-brand-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.auth-brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auth-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}

.auth-brand-name span {
  color: #38bdf8;
}

.auth-brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.auth-showcase-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.auth-showcase-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-feature-icon-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  margin-top: 6px;
  flex-shrink: 0;
}

.auth-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.auth-feature-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-showcase-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 500;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Panel ben phai chua Form Auth */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  padding: 3rem 2.5rem;
  min-width: 0;
}

[data-bs-theme="dark"] .auth-form-panel {
  background: rgba(15, 23, 42, 0.55);
}

.auth-form-panel .auth-wrapper {
  padding: 0;
  min-height: unset;
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-form-panel .auth-card {
  width: 100%;
  max-width: 440px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.auth-form-panel .auth-card.auth-card-wide {
  max-width: 480px;
}

@media (max-width: 991.98px) {
  .auth-shell-card {
    max-width: 520px;
    flex-direction: column;
    border-radius: 20px;
  }
  .auth-form-panel {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .auth-main-container {
    padding: 1rem 0.75rem;
  }
  .auth-shell-card {
    border-radius: 16px;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .auth-form-panel {
    padding: 1rem 0.5rem;
  }
}

.auth-simple-footer {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.75rem;
}

/* ========================================================
   Modern Underline Tabs (for Product/Tool Details)
   ======================================================== */
.nav-tabs-underline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem 0;
  list-style: none;
}

.nav-tabs-underline .nav-item {
  margin-bottom: -1px;
}

.nav-tabs-underline .nav-link {
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0 !important;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.nav-tabs-underline .nav-link:hover {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(59, 130, 246, 0.4) !important;
}

.nav-tabs-underline .nav-link.active {
  color: #3b82f6 !important;
  background: transparent !important;
  border-bottom: 2px solid #3b82f6 !important;
}

[data-bs-theme="dark"] .nav-tabs-underline {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] .nav-tabs-underline .nav-link {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .nav-tabs-underline .nav-link:hover {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .nav-tabs-underline .nav-link.active {
  color: #ffffff !important;
  border-bottom-color: #3b82f6 !important;
}

[data-bs-theme="light"] .nav-tabs-underline {
  border-bottom-color: #e2e8f0 !important;
}

[data-bs-theme="light"] .nav-tabs-underline .nav-link {
  color: #64748b !important;
}

[data-bs-theme="light"] .nav-tabs-underline .nav-link:hover {
  color: #0f172a !important;
  border-bottom-color: rgba(37, 99, 235, 0.3) !important;
}

[data-bs-theme="light"] .nav-tabs-underline .nav-link.active {
  color: #2563eb !important;
  border-bottom-color: #2563eb !important;
}

/* Core Utility & Button Fallbacks */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.w-100 { width: 100% !important; }
.text-center { text-align: center !important; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.btn-outline-primary {
  color: #3b82f6 !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  color: #ffffff !important;
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.btn-outline-secondary {
  color: #94a3b8 !important;
  border-color: #334155 !important;
  background: transparent !important;
}

.btn-outline-secondary:hover {
  color: #f1f5f9 !important;
  background: #1e293b !important;
  border-color: #475569 !important;
}

/* ========================================================
   Theme Toggle Button & Light Theme Dynamic Styling
   ======================================================== */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--btn-action-bg);
  border: 1px solid var(--btn-action-border);
  color: var(--btn-action-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* Hien thi bieu tuong phu hop theo che do giao dien */
[data-bs-theme="dark"] .theme-icon-sun {
  display: block;
  color: #f59e0b;
}

[data-bs-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-bs-theme="light"] .theme-icon-sun {
  display: none;
}

[data-bs-theme="light"] .theme-icon-moon {
  display: block;
  color: #6366f1;
}

/* Tinh chinh giao dien Sang (Light Mode) toan dien */
[data-bs-theme="light"] .text-light {
  color: var(--text-main) !important;
}

[data-bs-theme="light"] .text-secondary {
  color: var(--text-muted) !important;
}

[data-bs-theme="light"] .brand-name {
  color: #0f172a;
}

[data-bs-theme="light"] .sidebar-header {
  border-bottom: 1px solid var(--sidebar-border);
}

[data-bs-theme="light"] .sidebar-link {
  color: #475569;
}

[data-bs-theme="light"] .sidebar-link:hover {
  color: #0f172a;
  background-color: rgba(37, 99, 235, 0.08);
}

[data-bs-theme="light"] .sidebar-link.active {
  color: #1d4ed8;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-left: 3px solid #2563eb;
}

[data-bs-theme="light"] .sidebar-icon-svg {
  color: #64748b;
}

[data-bs-theme="light"] .sidebar-link:hover .sidebar-icon-svg {
  color: #0f172a;
}

[data-bs-theme="light"] .sidebar-link.active .sidebar-icon-svg {
  color: #2563eb;
}

[data-bs-theme="light"] .badge-coming-soon {
  background-color: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

[data-bs-theme="light"] .sidebar-link:hover .badge-coming-soon {
  background-color: #cbd5e1;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-bs-theme="light"] .sidebar-link.active .badge-coming-soon {
  background-color: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
}

[data-bs-theme="light"] .table-dark {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #f1f5f9;
  --bs-table-color: #0f172a;
  --bs-table-border-color: #e2e8f0;
  color: #0f172a;
}

[data-bs-theme="light"] .table-dark th {
  color: #475569;
  border-bottom-color: #cbd5e1;
}

[data-bs-theme="light"] .topbar-action-pill {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-bs-theme="light"] .topbar-action-pill:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-bs-theme="light"] .lang-btn,
[data-bs-theme="light"] .notification-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-bs-theme="light"] .lang-btn:hover,
[data-bs-theme="light"] .notification-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-bs-theme="light"] .lang-dropdown-menu,
[data-bs-theme="light"] .notification-menu,
[data-bs-theme="light"] .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .dropdown-item {
  color: #334155 !important;
}

[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .btn-signin {
  color: #334155;
  border-color: #cbd5e1;
  background: #ffffff;
}

[data-bs-theme="light"] .btn-signin:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-bs-theme="light"] .auth-layout-body {
  background-color: #f8fafc !important;
  background-image:
    radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
}

[data-bs-theme="light"] .auth-shell-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px rgba(37, 99, 235, 0.04) !important;
}

[data-bs-theme="light"] .auth-form-panel {
  background: #ffffff !important;
}

[data-bs-theme="light"] .auth-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

[data-bs-theme="light"] .auth-form-panel .auth-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

[data-bs-theme="light"] .auth-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .auth-subtitle {
  color: #334155 !important;
}

[data-bs-theme="light"] .form-label-custom {
  color: #0f172a !important;
}

[data-bs-theme="light"] .auth-switch {
  color: #334155 !important;
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .auth-back-link {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

[data-bs-theme="light"] .auth-back-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-bs-theme="light"] .auth-showcase-panel {
  border-right: 1px solid #cbd5e1;
}

[data-bs-theme="light"] .product-card {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .product-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}

[data-bs-theme="light"] .badge-tool {
  background-color: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-bs-theme="light"] .badge-acc {
  background-color: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.25);
}

[data-bs-theme="light"] .stat-item {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .btn-outline-secondary {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

[data-bs-theme="light"] .btn-outline-secondary:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

[data-bs-theme="light"] .bg-black.bg-opacity-50 {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-bs-theme="light"] .border-secondary.border-opacity-25,
[data-bs-theme="light"] .border-secondary.border-opacity-10 {
  border-color: #e2e8f0 !important;
}

/* ========================================================
   Step Card Styling (Quy trinh 4 buoc mua hang)
   ======================================================== */
.step-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.step-card-title {
  color: #f8fafc;
}

.step-card-desc {
  color: #94a3b8;
  line-height: 1.5;
}

[data-bs-theme="light"] .step-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .step-card:hover {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08) !important;
  transform: translateY(-2px);
}

[data-bs-theme="light"] .step-card-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .step-card-desc {
  color: #475569 !important;
}

/* ========================================================
   Thong ke (Stat Counters) Label & Subtitle
   ======================================================== */
.stat-label {
  color: #f8fafc;
}

.stat-sub {
  color: #94a3b8;
}

[data-bs-theme="light"] .stat-label {
  color: #0f172a !important;
}

[data-bs-theme="light"] .stat-sub {
  color: #64748b !important;
}

/* ========================================================
   Quick Action Bar (Home page quick actions & commitments)
   ======================================================== */
.quick-action-bar {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
}

.quick-action-features {
  color: rgba(226, 232, 240, 0.85);
}

[data-bs-theme="light"] .quick-action-bar {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .quick-action-features {
  color: #334155 !important;
}

/* ========================================================
   Product Titles & Links
   ======================================================== */
.product-title-link,
.product-title {
  color: #f8fafc;
  transition: color 0.15s ease;
}

.product-title-link:hover,
.product-title:hover {
  color: #38bdf8;
}

[data-bs-theme="light"] .product-title-link,
[data-bs-theme="light"] .product-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .product-title-link:hover,
[data-bs-theme="light"] .product-title:hover {
  color: #2563eb !important;
}

/* ========================================================
   Product Thumbnail Container
   ======================================================== */
.product-thumb-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

[data-bs-theme="light"] .product-thumb-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* ========================================================
   Hero Banner Text Contrast Guarantees
   ======================================================== */
.hero-banner-mini h1,
.hero-banner-mini .hero-title,
[data-bs-theme="light"] .hero-banner-mini h1,
[data-bs-theme="light"] .hero-banner-mini .hero-title {
  color: #ffffff !important;
}

.hero-banner-mini p,
.hero-banner-mini .hero-desc,
[data-bs-theme="light"] .hero-banner-mini p,
[data-bs-theme="light"] .hero-banner-mini .hero-desc {
  color: rgba(241, 245, 249, 0.95) !important;
}

.hero-banner-mini .hero-feature-text,
[data-bs-theme="light"] .hero-banner-mini .hero-feature-text {
  color: rgba(226, 232, 240, 0.9) !important;
}

/* ========================================================
   Global Light Theme Typography & Background Overrides
   ======================================================== */
[data-bs-theme="light"] h1:not(.hero-banner-mini *),
[data-bs-theme="light"] h2:not(.hero-banner-mini *),
[data-bs-theme="light"] h3:not(.hero-banner-mini *),
[data-bs-theme="light"] h4:not(.hero-banner-mini *),
[data-bs-theme="light"] h5:not(.hero-banner-mini *),
[data-bs-theme="light"] h6:not(.hero-banner-mini *) {
  color: #0f172a !important;
}

[data-bs-theme="light"] .text-white:not(.btn):not(.btn *):not(.badge):not(.badge *):not(.hero-banner-mini *):not(.bg-primary *):not(.bg-success *):not(.bg-danger *):not(.bg-warning *):not(.toast *):not(.modal-header.bg-primary *) {
  color: #0f172a !important;
}

[data-bs-theme="light"] .bg-dark:not(.hero-banner-mini):not(.hero-banner-mini *):not(.badge):not(.btn) {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .badge.bg-dark {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-bs-theme="light"] .badge.bg-dark .text-light,
[data-bs-theme="light"] .badge.bg-dark.text-light {
  color: #334155 !important;
}

[data-bs-theme="light"] .btn-close-white {
  filter: none !important;
}

[data-bs-theme="light"] .bg-dark.bg-opacity-50,
[data-bs-theme="light"] .bg-dark.bg-opacity-60,
[data-bs-theme="light"] .bg-dark.bg-opacity-75 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-bs-theme="light"] .card.bg-dark {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .form-control.bg-dark,
[data-bs-theme="light"] .form-select.bg-dark,
[data-bs-theme="light"] .form-control-custom {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-bs-theme="light"] .form-control-custom:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ========================================================
   Admin Support Chat Theme Styling (Light & Dark)
   ======================================================== */
.support-admin-card {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-admin-header {
  background-color: rgba(30, 41, 59, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-admin-messages {
  background-color: rgba(10, 15, 30, 0.55);
}

.support-admin-item {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  transition: all 0.2s ease;
}

.support-admin-item:hover {
  background-color: rgba(37, 99, 235, 0.12) !important;
  color: #ffffff !important;
}

.support-admin-item.active {
  background-color: rgba(37, 99, 235, 0.2) !important;
  border-left: 3px solid #0284c7 !important;
}

.support-admin-bubble-admin {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.support-admin-bubble-admin,
.support-admin-bubble-admin * {
  color: #ffffff !important;
}

.support-admin-bubble-user {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px 12px 12px 2px;
}

.support-admin-footer {
  background-color: rgba(30, 41, 59, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Light Mode Overrides for Admin Support */
[data-bs-theme="light"] .support-admin-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .support-admin-header {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-bs-theme="light"] .support-admin-messages {
  background-color: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-bs-theme="light"] .support-admin-item {
  background-color: #ffffff !important;
  border-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-bs-theme="light"] .support-admin-item:hover {
  background-color: #f8fafc !important;
  color: #0284c7 !important;
}

[data-bs-theme="light"] .support-admin-item.active {
  background-color: #f0f9ff !important;
  border-left: 3px solid #0284c7 !important;
}

[data-bs-theme="light"] .support-admin-bubble-admin {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

[data-bs-theme="light"] .support-admin-bubble-admin,
[data-bs-theme="light"] .support-admin-bubble-admin * {
  color: #ffffff !important;
}

[data-bs-theme="light"] .support-admin-bubble-user {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .support-admin-bubble-user,
[data-bs-theme="light"] .support-admin-bubble-user * {
  color: #0f172a !important;
}

[data-bs-theme="light"] .support-admin-footer {
  background-color: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* ========================================================
   Service Showcase Card Styling (Light & Dark Theme)
   ======================================================== */
.service-showcase-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(30, 36, 50, 0.7) 0%, rgba(18, 22, 32, 0.9) 100%);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.service-showcase-title {
  color: #ffffff;
}

.service-showcase-desc {
  color: #94a3b8;
}

.service-showcase-alert {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #f1f5f9;
}

.service-showcase-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-showcase-box-title {
  color: #ffffff;
}

.service-showcase-item {
  color: #cbd5e1;
}

/* Light Theme Overrides for Service Showcase Card */
[data-bs-theme="light"] .service-showcase-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .service-showcase-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .service-showcase-desc {
  color: #475569 !important;
}

[data-bs-theme="light"] .service-showcase-alert {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

[data-bs-theme="light"] .service-showcase-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-bs-theme="light"] .service-showcase-box-title {
  color: #0f172a !important;
}

[data-bs-theme="light"] .service-showcase-item {
  color: #334155 !important;
}

/* Light Theme Global Helper Overrides */
[data-bs-theme="light"] .border-secondary {
  border-color: #e2e8f0 !important;
}

[data-bs-theme="light"] .table-dark {
  --bs-table-color: #0f172a;
  --bs-table-bg: #ffffff;
  --bs-table-border-color: #e2e8f0;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-striped-color: #0f172a;
  --bs-table-active-bg: #f1f5f9;
  --bs-table-active-color: #0f172a;
  --bs-table-hover-bg: #f8fafc;
  --bs-table-hover-color: #0f172a;
  color: #0f172a !important;
}

[data-bs-theme="light"] .table-dark th,
[data-bs-theme="light"] .table-dark td {
  color: #0f172a;
  border-color: #e2e8f0;
}

[data-bs-theme="light"] .btn-outline-light {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

[data-bs-theme="light"] .btn-outline-light:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ========================================================
   MODERN PROFILE & ORDERS DESIGN SYSTEM
   ======================================================== */
.profile-card-modern {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.profile-card-modern:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.profile-nav-pills .nav-link {
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}

.profile-nav-pills .nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.profile-nav-pills .nav-link.active {
  color: #ffffff;
  background: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.order-tabs-modern {
  display: flex;
  gap: 0.5rem;
  border-bottom: none;
}

.order-tabs-modern .nav-link {
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.order-tabs-modern .nav-link:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(30, 41, 59, 0.7);
}

.order-tabs-modern .nav-link.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Modern Clean Table */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.table-modern th {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.table-modern td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  background: transparent;
}

.table-modern tbody tr {
  transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

/* License Card Compact */
.license-card-pro {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 15, 26, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  transition: all 0.2s ease;
}

.license-card-pro:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.license-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.license-stat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.license-stat-chip .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.license-stat-chip .stat-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Sharp Contrast Status Badges */
.badge-status-active {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-cancelled {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-pending {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-tool-tag {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}

.badge-account-tag {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}

.badge-plan-tag {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

/* Light Mode Overrides */
[data-bs-theme="light"] .profile-card-modern,
[data-bs-theme="light"] .license-card-pro {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .profile-card-modern:hover,
[data-bs-theme="light"] .license-card-pro:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .order-tabs-modern .nav-link {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-bs-theme="light"] .order-tabs-modern .nav-link.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-bs-theme="light"] .table-modern th {
  border-bottom-color: #e2e8f0;
  color: #64748b;
}

[data-bs-theme="light"] .table-modern td {
  border-bottom-color: #f1f5f9;
}

[data-bs-theme="light"] .table-modern tbody tr:hover td {
  background: #f8fafc;
}

[data-bs-theme="light"] .license-stat-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
}
