/* ==========================================================================
   DIRECT REAL ESTATE PLATFORM - LUXURY CREAM & DEEP NAVY DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Core Luxury Cream Palette */
  --bg-main: #F8F5F0;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FDFBF8;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --border-color: rgba(212, 175, 55, 0.2);
  --border-subtle: rgba(15, 33, 55, 0.08);
  --border-accent: rgba(197, 160, 89, 0.5);
  --border-active: #C5A059;

  /* Typography Colors */
  --text-primary: #1A202C;       /* Đen than dễ đọc */
  --text-secondary: #4A5568;     /* Xám than trung tính */
  --text-muted: #718096;         /* Xám nhạt */
  --text-deep-navy: #0A192F;     /* Xanh đậm sang trọng cho tiêu đề */
  --text-navy-accent: #0F2D59;   /* Xanh biển sâu */
  --text-gold: #B8860B;          /* Vàng đồng ánh kim */
  --text-emerald: #059669;       /* Xanh ngọc lục bảo */

  /* Accent & Gradients */
  --gold-primary: #C5A059;
  --gold-gradient: linear-gradient(135deg, #DFCA9B 0%, #C5A059 50%, #A88134 100%);
  --gold-glow: 0 8px 25px rgba(197, 160, 89, 0.2);
  --navy-gradient: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
  --surface-blur: blur(20px);

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 10px 30px -8px rgba(15, 33, 55, 0.07);
  --shadow-elevated: 0 20px 40px -12px rgba(15, 33, 55, 0.12);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(197, 160, 89, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(10, 25, 47, 0.04) 0%, transparent 45%);
}

/* Container */
.app-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--navy-gradient);
  border: 1.5px solid var(--gold-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #F8F5F0;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-deep-navy);
}

.brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gold);
  font-weight: 700;
}

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

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-deep-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: var(--transition-fast);
}

.btn-nav:hover {
  background: #FDFBF8;
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* Views & Animation */
.view-section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-wrapper {
  text-align: center;
  padding: 30px 20px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-deep-navy);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-deep-navy);
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* Role Cards Grid (Home View) */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}

.role-card {
  background: var(--bg-card);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition-fast);
}

.role-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow), var(--shadow-elevated);
}

.role-card.investor:hover::before {
  background: var(--gold-gradient);
}

.role-card.advisor:hover::before {
  background: var(--navy-gradient);
}

.role-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.role-card.investor .role-icon-box {
  background: rgba(197, 160, 89, 0.15);
  color: var(--text-gold);
  border-color: var(--border-accent);
}

.role-card.advisor .role-icon-box {
  background: rgba(10, 25, 47, 0.08);
  color: var(--text-deep-navy);
  border-color: rgba(10, 25, 47, 0.2);
}

.role-heading {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-deep-navy);
}

.role-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.role-features {
  list-style: none;
  margin-bottom: 28px;
}

.role-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 11px;
}

.role-features li svg {
  color: var(--text-gold);
  flex-shrink: 0;
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #F8F5F0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-deep-navy);
  transition: var(--transition-fast);
}

.role-card:hover .role-btn {
  background: var(--navy-gradient);
  color: #FFFFFF;
  border-color: var(--text-deep-navy);
}

/* Page Header & Sub Navigation */
.page-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-deep-navy);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: var(--transition-fast);
}

.back-btn:hover {
  border-color: var(--gold-primary);
  transform: translateX(-3px);
}

.page-title-box {
  text-align: center;
  margin-bottom: 32px;
}

.page-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gold);
  font-weight: 800;
  margin-bottom: 6px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-deep-navy);
}

/* Choice Splitter Cards (Investor Decision) */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.decision-card {
  background: var(--bg-card);
  backdrop-filter: var(--surface-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.decision-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: var(--gold-glow), var(--shadow-elevated);
}

.decision-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1.5px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-gold);
}

.decision-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-deep-navy);
  margin-bottom: 8px;
}

.decision-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Forms & Inputs */
.form-container {
  background: var(--bg-card);
  backdrop-filter: var(--surface-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 38px;
  max-width: 660px;
  margin: 0 auto;
  box-shadow: var(--shadow-elevated);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-deep-navy);
  margin-bottom: 8px;
}

.form-label .optional-hint {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 33, 55, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: #A0AEC0;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.legal-consent-box {
  background: rgba(197, 160, 89, 0.08);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.legal-consent-box input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold-primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.legal-consent-text {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

/* Advisor Selection Section (In Form) */
.advisor-picker-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 33, 55, 0.08);
}

.advisor-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.advisor-tab-btn {
  padding: 12px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 33, 55, 0.1);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.advisor-tab-btn.active {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-primary);
  color: var(--text-deep-navy);
}

.advisor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advisor-card-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 33, 55, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.advisor-card-option:hover {
  border-color: var(--border-accent);
  background: #FDFBF8;
}

.advisor-card-option.selected {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--gold-primary);
}

.advisor-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.advisor-info {
  flex: 1;
}

.advisor-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-deep-navy);
}

.advisor-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 15px 24px;
  background: var(--navy-gradient);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.2);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 25, 47, 0.3);
  background: #0A192F;
}

/* Projects Listing Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: var(--surface-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: var(--shadow-elevated);
}

.project-thumb-box {
  height: 185px;
  position: relative;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
}

.project-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-deep-navy);
  margin-bottom: 4px;
}

.project-dev {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 33, 55, 0.08);
  margin-bottom: 16px;
}

.project-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-deep-navy);
}

.project-units-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Advisor Hub Layout */
.advisor-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.advisor-hub-card {
  background: var(--bg-card);
  backdrop-filter: var(--surface-blur);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.advisor-hub-card:hover {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.advisor-hub-card.commission-highlight {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hub-card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hub-card-content {
  flex: 1;
}

.hub-card-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-deep-navy);
}

.hub-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hub-card-action {
  font-size: 22px;
  color: var(--text-deep-navy);
  font-weight: 800;
  transition: var(--transition-fast);
}

.advisor-hub-card:hover .hub-card-action {
  transform: translateX(4px);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F8F5F0;
  border: 1px solid rgba(15, 33, 55, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-deep-navy);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--text-deep-navy);
  color: #FFFFFF;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  background: var(--navy-gradient);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FLOATING ZALO BUTTON (Right Side)
   ========================================================================== */
.zalo-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: #FFFFFF;
  border: 2px solid #0068FF;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 104, 255, 0.25), 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.zalo-floating-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 104, 255, 0.35);
  background: #F4F8FF;
}

.zalo-icon-badge {
  width: 40px;
  height: 40px;
  background: #0068FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.4);
  animation: zaloPulse 2s infinite ease-in-out;
}

.zalo-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.zalo-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0068FF;
  letter-spacing: 0.5px;
}

.zalo-phone-number {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-deep-navy);
}

@keyframes zaloPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(0, 104, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .role-grid, .decision-grid, .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .app-container {
    padding: 16px 12px 60px;
  }
  
  .advisor-hub-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .zalo-floating-btn {
    bottom: 20px;
    left: 16px;
    padding: 8px 14px 8px 10px;
  }

  .zalo-icon-badge {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ==========================================================================
   ANTI-STRESS "3 KHÔNG" GUARANTEE BANNER
   ========================================================================== */
.stress-free-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 240, 0.9));
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 10px 25px -5px rgba(15, 33, 55, 0.05);
  position: relative;
  overflow: hidden;
}

.stress-free-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.stress-free-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.stress-free-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stress-free-badge {
  background: rgba(197, 160, 89, 0.15);
  color: var(--text-gold);
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.stress-free-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-deep-navy);
}

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

.stress-free-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition-smooth);
}

.stress-free-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.12);
}

.stress-free-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.stress-free-icon {
  font-size: 20px;
}

.stress-free-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-deep-navy);
}

.stress-free-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Quick Interactive Action Bar in Hero */
.hero-interactive-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-interactive-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  border-radius: 999px;
  color: var(--text-deep-navy);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.15);
  transition: var(--transition-smooth);
}

.btn-interactive-pill:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.3);
}

/* ==========================================================================
   INTERACTIVE MASCOT & CHAT WIDGET
   ========================================================================== */
.mascot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Mascot Floating Button */
.mascot-avatar-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
  border: 2.5px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(10, 25, 47, 0.35), 0 0 15px rgba(197, 160, 89, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: mascotBob 3.5s ease-in-out infinite;
}

.mascot-avatar-btn:hover {
  transform: scale(1.12);
  border-color: #DFCA9B;
  box-shadow: 0 12px 30px rgba(10, 25, 47, 0.45), 0 0 25px rgba(197, 160, 89, 0.5);
}

.mascot-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0;
  animation: mascotPulse 2.5s infinite;
}

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

@keyframes mascotPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Mascot Floating Speech Tooltip */
.mascot-speech-bubble {
  position: absolute;
  bottom: 74px;
  right: 0;
  background: #FFFFFF;
  color: var(--text-deep-navy);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mascot-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1px solid rgba(197, 160, 89, 0.4);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  transform: rotate(45deg);
}

/* Mascot Chat Window */
.mascot-chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10, 25, 47, 0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  animation: chatPopup 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-chat-window.open {
  display: flex;
}

@keyframes chatPopup {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background: var(--navy-gradient);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

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

.chat-bot-icon {
  width: 34px;
  height: 34px;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-header-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.chat-header-status {
  font-size: 11px;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  display: inline-block;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FDFBF8;
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.bot .chat-bubble {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.chat-msg.user .chat-bubble {
  background: var(--navy-gradient);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

/* Chat Quick Actions */
.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chat-action-chip {
  background: #FFFFFF;
  border: 1px solid var(--gold-primary);
  color: var(--text-deep-navy);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-action-chip:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
}

/* Chat Input Footer */
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-field {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12.5px;
  outline: none;
  background: #F8FAFC;
  transition: var(--transition-fast);
  color: var(--text-deep-navy);
}

.chat-input-field:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-gradient);
  color: #FFFFFF;
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.chat-project-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.chat-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--navy-gradient);
  color: #FFFFFF !important;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.chat-btn-action:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
}

/* Mascot SVG Animation */
.mascot-svg {
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   QUIZ MODAL STYLES (10-Second Discovery)
   ========================================================================== */
.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(15, 33, 55, 0.08);
  border-radius: 999px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
  width: 33%;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-option-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.15);
}

.quiz-option-card.selected {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.08);
}

.quiz-icon {
  font-size: 24px;
}

.quiz-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-deep-navy);
}

.quiz-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Result matched cards */
.quiz-result-match-box {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(10, 25, 47, 0.03));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.quiz-match-score {
  display: inline-block;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ==========================================================================
   FINANCIAL CALCULATOR STYLES
   ========================================================================== */
.calc-slider-group {
  margin-bottom: 20px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calc-slider-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-deep-navy);
}

.calc-slider-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-gold);
}

.calc-range-input {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.calc-summary-card {
  background: var(--navy-gradient);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #FFFFFF;
  margin: 20px 0;
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.calc-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.calc-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #DFCA9B;
  margin-top: 4px;
}

.calc-fun-fact {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-health-bar-wrap {
  margin-top: 14px;
}

.calc-health-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.calc-health-safe {
  background: #059669;
  color: #FFFFFF;
}

.calc-health-warning {
  background: #D97706;
  color: #FFFFFF;
}

/* ==========================================================================
   CONFETTI CANVAS
   ========================================================================== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Adjusted Zalo button location on desktop to sit comfortably on left */
.zalo-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 999;
}

@media (max-width: 768px) {
  .stress-free-grid {
    grid-template-columns: 1fr;
  }

  .calc-stat-grid {
    grid-template-columns: 1fr;
  }

  .mascot-container {
    bottom: 16px;
    right: 16px;
  }

  .zalo-floating-btn {
    bottom: 16px;
    left: 16px;
  }

  .mascot-chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 86px;
    height: 420px;
  }
}


