@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0f3460;
  --primary-light: #164e90;
  --primary-dark: #0a2444;
  --accent: #3fa2f6; /* Đổi màu xanh chủ đạo thành blue light như ảnh form */
  --accent-hover: #2f8ee0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 10px 24px;
  font-size: 15px;
}

.btn-solid {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
}

.btn-solid:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-hover) 100%);
  box-shadow: 0 16px 24px -8px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background-color: var(--bg-alt);
  color: var(--accent);
}



.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ==================== HEADER & NAVBAR ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-color);
  padding: 5px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-surface) 100%), radial-gradient(rgba(37,99,235,0.03) 2px, transparent 2px);
  background-size: auto, 30px 30px;
  overflow: hidden;
}

.hero-bg-blur {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  background-color: var(--border-color);
  margin: 0 10px;
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
}

.hero-img-circle {
  position: absolute;
  inset: 40px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.15);
  border: 8px solid var(--bg-surface);
  animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translateY(0); }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: translateY(-15px); }
  z-index: 2;
}

.hero-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--border-color);
  animation: spin 30s linear infinite;
}

.orbit-ring-2 {
  inset: -30px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  animation: spin-reverse 40s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

.float-card {
  position: absolute;
  background-color: var(--bg-surface);
  padding: 8px 24px 8px 8px;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--border-light);
}

.float-card.fc-1 { top: 10%; left: -30px; animation-delay: 0s; }
.float-card.fc-2 { bottom: 30%; right: -40px; animation-delay: 2s; }
.float-card.fc-3 { bottom: -10px; left: 15%; animation-delay: 4s; }

.fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.fc-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.fc-green { background: linear-gradient(135deg, #10b981, #059669); }
.fc-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.fc-text strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
}
.fc-text small {
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ==================== SECTIONS GENERAL ==================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 18px;
}

/* ==================== FEATURES ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feat-card {
  background-color: var(--bg-surface);
  padding: 50px 36px;
  border-radius: 28px;
  box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.05);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.feat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.2);
}

.feat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 24px;
  font-size: 24px;
}

.feat-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feat-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.feat-link:hover {
  gap: 10px;
}

/* ==================== INDUSTRIES ==================== */
.ind-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ind-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.ind-tab:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
}

.ind-tab.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.ind-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.ind-item:hover {
  background-color: var(--bg-surface);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.ind-item .ii {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.ind-item span {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.ind-cta {
  text-align: center;
  background: linear-gradient(to right, rgba(37,99,235,0.05), rgba(16,185,129,0.05));
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.trial-text {
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--text-muted);
}


/* ==================== OMNICHANNEL ==================== */
.omni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.omni-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.omni-content p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 500px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

.omni-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ==================== PRESS ==================== */
.press-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 60px;
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.press-item {
  font-size: 26px;
  font-weight: 800;
  color: #64748b; /* Đậm hơn để dễ nhìn */
  transition: all var(--transition-normal);
  font-family: 'Times New Roman', Times, serif;
  user-select: none;
  cursor: pointer;
}
.press-item:nth-child(1) { font-family: 'Inter', sans-serif; letter-spacing: -1px; }
.press-item:nth-child(2) { font-family: 'Gilroy', sans-serif; text-transform: uppercase; }
.press-item:nth-child(3) { font-family: 'Merriweather', serif; font-style: italic; font-weight: 900; }
.press-item:nth-child(4) { font-family: 'Quicksand', sans-serif; font-weight: 900; color: #dc2626; opacity: 0.7; }
.press-item:nth-child(5) { font-family: 'Inter', sans-serif; letter-spacing: -1.5px; }

.press-item:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}

/* ==================== CTA SECTION ==================== */
.section-cta {
  padding: 0 0 100px;
}

.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 40px -10px rgba(15, 52, 96, 0.5);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.cta-block h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-block p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-block .btn {
  position: relative;
  z-index: 1;
}

/* ==================== SUPPORT ==================== */
.sup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sup-card {
  background-color: var(--bg-body);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.sup-card:hover {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.sup-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.sup-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.sup-card p {
  color: var(--text-muted);
  font-size: 14px;
}
.sup-card a {
  color: var(--accent);
  font-weight: 600;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--bg-surface);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.ft-brand {
  padding-right: 40px;
}

.ft-brand .logo {
  margin-bottom: 20px;
}

.ft-brand p {
  color: var(--text-muted);
  font-size: 14px;
}

.ft-col h5 {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--primary);
}

.ft-col ul li {
  margin-bottom: 12px;
}

.ft-col ul li a {
  color: var(--text-muted);
  font-size: 15px;
}

.ft-col ul li a:hover {
  color: var(--accent);
}

.ft-call {
  font-size: 20px !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--bg-body);
  border-radius: 50%;
  color: var(--text-muted);
}

.socials a:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ==================== UTILS & COMPONENTS ==================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--accent);
  transform: translateY(-4px);
}

/* ANIMATIONS */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== USER MENU ==================== */
.user-menu-wrap { position: relative; }
.user-menu {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; background: var(--bg-alt); border-radius: var(--radius-md);
  cursor: pointer; border: 1px solid var(--border-light); transition: all var(--transition-normal);
  user-select: none;
}
.user-menu:hover { border-color: var(--accent); background: #fff; }
.user-menu.active { border-color: var(--accent); background: #fff; box-shadow: 0 2px 12px rgba(37,99,235,0.1); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.user-chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.25s ease; margin-left: 2px; }
.user-menu.active .user-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px; background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 1001; overflow: hidden;
}
.user-dropdown.open,
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Dropdown Header */
.ud-header {
  padding: 16px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 12px;
}
.ud-info { overflow: hidden; }
.ud-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-info small { font-size: 12px; color: var(--text-muted); }

/* Dropdown Items */
.ud-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
.ud-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--text-main); cursor: pointer; transition: all 0.15s ease;
  text-decoration: none;
}
.ud-item:hover { background: var(--bg-alt); color: var(--accent); }
.ud-item svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.ud-item:hover svg { color: var(--accent); }
.ud-item.ud-logout { color: var(--danger); }
.ud-item.ud-logout:hover { background: #fef2f2; color: #dc2626; }
.ud-item.ud-logout svg { color: var(--danger); }
.ud-item.ud-logout:hover svg { color: #dc2626; }
.ud-item.ud-admin { color: #2563eb; }
.ud-item.ud-admin:hover { background: #eff6ff; color: #1d4ed8; }
.ud-item.ud-admin svg { color: #2563eb; }
.ud-item.ud-admin:hover svg { color: #1d4ed8; }




/* MODAL & TOAST */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface); padding: 12px 24px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; color: var(--text-main);
  opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); z-index: 10000;
  border-left: 4px solid var(--success);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ==================== LOGOUT MODAL PREMIUM ==================== */
.logout-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.logout-overlay.active { opacity: 1; visibility: visible; }

.logout-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: 420px; max-width: 92vw;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.logout-overlay.active .logout-modal { transform: scale(1) translateY(0); }

.lm-icon-wrap {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lm-icon-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  animation: lmPulse 2.5s ease-in-out infinite;
}
@keyframes lmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}
.lm-icon {
  position: relative; width: 28px; height: 28px;
  color: var(--danger); z-index: 2;
}
.lm-title {
  font-size: 22px; font-weight: 800;
  color: var(--text-main); margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.lm-desc {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 32px; line-height: 1.6;
}
.lm-actions {
  display: flex; gap: 12px;
}
.lm-btn {
  flex: 1; padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}
.lm-cancel {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.lm-cancel:hover {
  background: var(--bg-body);
  border-color: var(--text-muted);
}
.lm-confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.lm-confirm:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}



.auth-header {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: #0f3460;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.auth-sso {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
  background: #f8fafc;
}
.btn-google {
  background: #EAF2FB;
  color: #1a1a1a;
}
.btn-google img {
  width: 18px;
  height: 18px;
}
.btn-google:hover { background: #dce7f5; }

.btn-zalo {
  background: #EAF2FB;
  color: #1a1a1a;
}
.btn-zalo .zalo-logo {
  color: #3fa2f6;
  font-weight: 700;
  font-size: 16px;
}
.btn-zalo:hover { background: #dce7f5; }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #64748b;
  font-size: 14px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.auth-divider span {
  padding: 0 10px;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}
.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 20px;
  height: 20px;
}
.input-group input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  color: #334155;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.input-group input:focus {
  border-color: #3fa2f6;
}
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  color: #334155;
  outline: none;
  background-color: #fff;
  transition: border-color 0.2s, background-color 0.2s;
  font-family: inherit;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg stroke="%2394a3b8" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-select:focus {
  border-color: #3fa2f6;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(63,162,246,0.15);
}
.input-group input::placeholder {
  color: #94a3b8;
}
.btn-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: flex;
}
.btn-eye:hover { color: #3fa2f6; }
.btn-eye svg { width: 18px; height: 18px; }

.auth-options {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.custom-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  user-select: none;
}
.custom-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.custom-check:hover input ~ .checkmark {
  border-color: #3fa2f6;
}
.custom-check input:checked ~ .checkmark {
  background-color: #3fa2f6;
  border-color: #3fa2f6;
}
.checkmark svg {
  color: white;
  width: 12px;
  height: 12px;
  display: none;
}
.custom-check input:checked ~ .checkmark svg {
  display: block;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #3fa2f6 0%, #2f8ee0 100%);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(63, 162, 246, 0.35);
}
.btn-submit:hover {
  background: linear-gradient(135deg, #2f8ee0 0%, #1a7ad4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 162, 246, 0.45);
}

.auth-forgot {
  text-align: right;
  margin-top: 12px;
}
.auth-forgot a {
  color: #3fa2f6;
  font-size: 13px;
  text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }

.auth-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: #1a1a1a;
}
.auth-footer a {
  color: #3fa2f6;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 38px; }
  .hero-tag { margin: 0 auto 24px; }
  .hero-desc { margin: 0 auto 30px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  
  .features-grid, .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .omni-grid { grid-template-columns: 1fr; text-align: center; }
  .channels { justify-content: center; }
  .omni-content p { margin: 0 auto 30px; }
  .sup-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* === NAVBAR MOBILE FIX === */
  .navbar {
    flex-wrap: nowrap;
  }
  .nav-links { display: none; }
  .btn-mobile-hide { display: none; }
  .btn-mobile-login {
    display: inline-flex !important;
    padding: 6px 14px;
    font-size: 13px;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius-md);
    order: 2;
  }
  .btn-mobile-login:hover { background: var(--accent-hover); }
  .mobile-toggle { display: block; order: 3; }

  /* Avatar chỉ hiện vòng tròn, ẩn tên + mũi tên */
  .nav-actions {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }
  .user-name, .user-chevron { display: none; }
  .user-menu {
    padding: 4px;
    border-radius: 50%;
    border: none;
    background: transparent;
  }
  .user-menu-wrap { margin: 0; }

  /* Dropdown trên mobile: căn phải sát màn hình */
  .user-dropdown {
    position: fixed;
    top: 76px;
    right: 12px;
    left: auto;
    width: calc(100vw - 24px);
    max-width: 300px;
  }

  /* Mobile menu mở ra */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  
  .features-grid, .sol-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .sup-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .ft-brand { padding-right: 0; }
  .ft-brand .logo { justify-content: center; }
  .press-row { justify-content: center; gap: 20px; }
  
  .hero-content h1 { font-size: 30px; word-break: break-word; line-height: 1.25; }
  .hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; width: 100%; gap: 12px; }
  .hero-btns .btn { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }
  .stat-divider { display: none; }
  
  .section { padding: 60px 0; }
  .section-head h2, .omni-content h2 { font-size: 26px; }
  .section-head p, .omni-content p { font-size: 15px; }
  .cta-block { padding: 40px 20px; }
  .cta-block h2 { font-size: 24px; }
  
  .float-card { display: none; }
}

/* GLOBAL MOBILE TOAST CSS */
@media (max-width: 768px) {
  .swal2-container.swal2-top-end > .swal2-toast {
    margin: 10px auto !important;
    width: auto !important;
    max-width: 280px !important;
    padding: 8px 12px 8px 8px !important;
    position: static !important;
    min-height: unset !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  }
  .swal2-container.swal2-top-end > .swal2-toast .swal2-title {
    font-size: 13px !important;
    margin: 0 10px !important;
    font-weight: 600 !important;
  }
  .swal2-container.swal2-top-end > .swal2-toast .swal2-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    margin: 0 !important;
  }
  .swal2-container.swal2-top-end > .swal2-toast .swal2-icon .swal2-success-ring {
    width: 28px !important;
    height: 28px !important;
  }
  .swal2-container.swal2-top-end > .swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 14px !important;
  }
  .swal2-container.swal2-top-end > .swal2-toast .swal2-timer-progress-bar {
    height: 2px !important;
  }
  .swal2-container.swal2-top-end {
    padding: 10px !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }
}

/* ==================== AUTH PAGES (Login / Register) ==================== */
.auth-layout {
  display: flex;
  min-height: 100vh;
}
.auth-banner {
  flex: 1;
  background: linear-gradient(135deg, #EAF2FB 0%, #cce0f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-banner::before, .auth-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  z-index: 0;
}
.auth-banner::before { width: 300px; height: 300px; top: -100px; left: -100px; }
.auth-banner::after { width: 400px; height: 400px; bottom: -150px; right: -100px; }
.auth-banner-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.auth-banner h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.auth-banner p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #fff;
}
.auth-page-modal {
  width: 400px;
  max-width: 100%;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color 0.2s;
}
.back-home:hover { color: var(--primary); }
.back-home svg { width: 18px; height: 18px; }

/* CSS Dashboard Illustration */
.css-illustration {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 50px;
  perspective: 1200px;
}
.css-dashboard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 34, 64, 0.12), inset 0 1px 0 rgba(255,255,255,1);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(2deg);
  animation: floatDash 6s ease-in-out infinite;
  position: relative;
}
@keyframes floatDash {
  0% { transform: translateY(0px) rotateX(8deg) rotateY(-8deg) rotateZ(2deg); }
  50% { transform: translateY(-15px) rotateX(10deg) rotateY(-4deg) rotateZ(1deg); }
  100% { transform: translateY(0px) rotateX(8deg) rotateY(-8deg) rotateZ(2deg); }
}
.css-header {
  background: #f8fafc;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}
.css-mac-buttons { display: flex; gap: 6px; }
.css-dot { width: 10px; height: 10px; border-radius: 50%; }
.css-search { width: 35%; height: 14px; background: #e2e8f0; border-radius: 8px; }
.css-body { display: flex; padding: 16px; gap: 16px; height: 200px; }
.css-sidebar { width: 44px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.css-sb-icon { width: 22px; height: 22px; background: #e2e8f0; border-radius: 6px; }
.css-sb-icon.active { background: var(--accent); opacity: 0.8; }
.css-main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.css-top-cards { display: flex; gap: 12px; height: 45px; }
.css-top-card {
  flex: 1; border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  display: flex; align-items: center; padding: 0 10px; gap: 8px;
}
.css-tc-icon { width: 18px; height: 18px; border-radius: 4px; opacity: 0.2; }
.css-tc-lines { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.css-tc-line { height: 4px; background: #cbd5e1; border-radius: 2px; }
.w-full { width: 100%; } .w-half { width: 60%; }
.css-chart-box {
  flex: 1; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0;
  display: flex; align-items: flex-end; justify-content: space-around; padding: 16px 12px 0;
  position: relative; overflow: hidden;
}
.css-chart-box::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(63, 162, 246, 0.05) 0%, rgba(255,255,255,0) 100%);
}
.css-bar {
  width: 12%; border-radius: 4px 4px 0 0; position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(63,162,246,0.3) 100%);
  animation: barGrow 2.5s ease-out infinite alternate;
}
.h-1 { height: 40%; animation-delay: 0s; }
.h-2 { height: 75%; animation-delay: 0.2s; background: linear-gradient(180deg, #10b981 0%, rgba(16,185,129,0.3) 100%); }
.h-3 { height: 50%; animation-delay: 0.4s; }
.h-4 { height: 95%; animation-delay: 0.6s; background: linear-gradient(180deg, #10b981 0%, rgba(16,185,129,0.3) 100%); }
.h-5 { height: 60%; animation-delay: 0.8s; }
@keyframes barGrow {
  0% { transform: scaleY(0.7); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}
.css-float-bubble {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  z-index: 10;
}
.b-1 { top: -20px; right: -20px; animation: floatBubble 5s ease-in-out infinite reverse; color: #10b981; }
.b-2 { bottom: 20px; left: -20px; animation: floatBubble 4s ease-in-out infinite; }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Phone Country Picker (Shared) */
.phone-group { display: flex; gap: 8px; margin-bottom: 18px; }
.phone-group input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  color: #334155;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}
.phone-group input:focus { border-color: #3fa2f6; }
.phone-group input::placeholder { color: #94a3b8; }
.cps-wrap { position: relative; }
.cps-trigger {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #cbd5e1; border-radius: 10px;
  padding: 12px; cursor: pointer; height: 100%;
  background: #f8fafc; transition: border-color 0.2s;
}
.cps-trigger:hover { border-color: var(--accent); }
.cps-trigger img { box-shadow: 0 0 2px rgba(0,0,0,0.2); border-radius: 2px; }
.cps-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 200px; overflow-y: auto; z-index: 1000;
  min-width: 260px;
}
.cps-dropdown.open { display: block; }
.cps-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  transition: background 0.15s;
}
.cps-option:hover { background: #f1f5f9; }
.cps-option img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 2px rgba(0,0,0,0.2); }

/* Auth page responsive */
@media (max-width: 900px) {
  .auth-layout { flex-direction: column; }
  .auth-banner { display: none; }
  .auth-form-container {
    min-height: 100vh;
    background-color: #fff;
    padding: 40px 24px;
    align-items: flex-start;
    padding-top: 60px;
  }
  .auth-page-modal {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== CUSTOM SELECT GLOBALS ===== */
.custom-select-wrapper { position: relative; width: 100%; flex: 1; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 14px; color: #0f172a; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; user-select: none; min-height: 42px; padding: 10px 14px; }
.custom-select-trigger:hover { border-color: #94a3b8; }
.custom-select-trigger.open { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }
.custom-select-trigger .arrow-icon { width: 16px; height: 16px; color: #94a3b8; transition: transform 0.2s; flex-shrink: 0; }
.custom-select-trigger.open .arrow-icon { transform: rotate(180deg); }
.custom-select-trigger.disabled { background: #f8fafc; color: #94a3b8; cursor: default; pointer-events: none; }
.custom-select-options { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.10); z-index: 100; max-height: 240px; overflow-y: auto; padding: 4px; }
.custom-select-options.open { display: block; animation: dropdownSlide 0.18s ease; }
@keyframes dropdownSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.custom-select-option { padding: 10px 14px; font-size: 14px; color: #334155; cursor: pointer; border-radius: 8px; transition: background 0.12s; }
.custom-select-option:hover { background: #f1f5f9; }
.custom-select-option.selected { background: #eff6ff; color: #2563eb; font-weight: 600; }

/* ===== MODERN FORM INPUT GLOBALS ===== */
.form-input, 
input[type="text"].form-input, 
input[type="number"].form-input, 
input[type="email"].form-input, 
input[type="password"].form-input, 
textarea.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 42px;
}

.form-input:hover {
  border-color: #94a3b8;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.form-input:disabled, .form-input[readonly] {
  background: #f8fafc;
  color: #94a3b8;
  cursor: default;
}
