:root {
  --primary-color: #31a4dc;
  --text-dark: #212121;
  --text-gray: #616161;
  --text-light: #b0b0b0;
  --bg-dark: #191919;
  --bg-light: #f7f7f7;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  background-color: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 24px;
}

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

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

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

.nav-icons {
  display: flex;
  gap: 20px;
  color: var(--text-gray);
  font-size: 20px;
  cursor: pointer;
}

.nav-icons span:hover {
  color: var(--primary-color);
}

/* Auth UI */
.auth-container { display: flex; align-items: center; gap: 12px; }
.user-profile { display: flex; align-items: center; gap: 10px; padding: 5px 12px; background: rgba(0,0,0,0.05); border-radius: 50px; cursor: pointer; border: 1px solid rgba(0,0,0,0.05); transition: all 0.2s; }
.user-profile:hover { background: rgba(0,0,0,0.08); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 600; color: #333; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-login-btn { 
    display: flex; align-items: center; gap: 8px;
    background: white; color: #333; border: 1px solid #ddd; 
    padding: 6px 14px; border-radius: 50px; font-size: 13px; 
    font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.auth-login-btn:hover { background: #f5f5f5; transform: translateY(-1px); }
.auth-login-btn i { color: #4285F4; font-size: 15px; }

/* Navbar links for Dark Background (if needed) */
.navbar.dark .user-name { color: white; }
.navbar.dark .user-profile { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); }
.navbar.dark .user-profile:hover { background: rgba(255,255,255,0.2); }

/* Secondary Nav */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: var(--text-gray);
}

.sub-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-white);
  padding: 60px 0;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background-color: #000;
  color: var(--bg-white);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #000;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--bg-white);
  color: #000;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  border-radius: 20px;
}

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


/* Section Title */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text-dark);
}

/* Problem Section */
.problem-section {
  background-color: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
}

.problem-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}


/* Features Grid */
.features-section {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: transparent;
  transform: translateY(-2px);
}

.discount-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #fff1eb;
  color: #ff6a00;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #ffccb8;
  border-radius: 4px;
}

.product-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 20px auto;
  opacity: 0.8;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  height: 40px;
  overflow: hidden;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #000;
  padding: 8px 25px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: #000;
  color: #000;
}

/* Social Proof */
.testimonial-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.testimonial-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.stars {
  color: #ffb800;
  font-size: 18px;
  margin-bottom: 15px;
}

.quote {
  font-size: 15px;
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.author {
  font-weight: 600;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(to right, #fbfbfb, #fdfdfd);
  border-top: 1px solid var(--border-color);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.price {
  font-size: 36px;
  font-weight: 700;
  color: #c00;
  margin: 20px 0;
}

.price strike {
  font-size: 20px;
  color: var(--text-light);
  margin-left: 10px;
}

.countdown {
  color: #c00;
  font-weight: bold;
  font-size: 20px;
  margin: 20px 0;
}

.form-group {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 40px auto;
}

.form-control {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer (Xiaomi Style) */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-text p {
  margin-bottom: 5px;
}

/* Projects List Section */
.project-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.proj-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.proj-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.proj-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(49, 164, 220, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

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

.proj-card:hover .proj-img {
  transform: scale(1.05);
}

.proj-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.proj-addr {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.proj-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 15px;
}

.stat {
  font-size: 13px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.proj-financials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.fin-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.fin-label {
  color: var(--text-gray);
}

.fin-value {
  font-weight: 600;
}

/* --- NEW SECTIONS CSS --- */

/* Chairman Section */
.chairman-section {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.chairman-wrap {
  display: flex;
  align-items: center;
  gap: 50px;
}

.chairman-image {
  flex: 1;
}

.chairman-content {
  flex: 1.2;
}

.chairman-content p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Investment Section */
.invest-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.invest-grid {
  display: flex;
  gap: 40px;
}

.invest-calc, .invest-models {
  flex: 1;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
}

.fin-table th, .fin-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}

.total-row td {
  font-weight: bold;
  color: var(--text-dark);
  border-bottom: none;
  padding-top: 20px;
}

.model-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.model-icon {
  font-size: 24px;
  color: var(--primary-color);
  background: #fff1eb;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.model-item h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.model-item p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 14px;
  margin-bottom: 2px;
}

/* Operations Section */
.ops-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.ops-wrap {
  display: flex;
  gap: 50px;
  align-items: center;
}

.ops-text {
  flex: 1;
}

.ops-list {
  margin-top: 20px;
}

.ops-list li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
}

.ops-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ops-stat-card {
  background: var(--bg-light);
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
}

.ops-stat-card h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.ops-stat-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .nav-links {
    display: none; /* simple mobile hide for demo */
  }
  .chairman-wrap, .invest-grid, .ops-wrap {
    flex-direction: column;
  }
  .ops-stats {
    width: 100%;
  }
}

/* --- CHATBOT WIDGET --- */
.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 60px;
  width: 60px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #31a4dc;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(49, 164, 220, 0.4);
  font-size: 26px;
}
.chatbot-toggler i {
  position: absolute;
}
.chatbot-toggler i.fa-times {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler i.fa-comment-dots {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler i.fa-times {
  opacity: 1;
  transform: rotate(90deg);
  transition: all 0.3s ease;
}
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 110px;
  width: 380px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
  transform-origin: bottom right;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.15, 0.85, 0.35, 1.2);
  z-index: 1000;
  border: 1px solid var(--border-color);
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.chatbot header {
  padding: 16px 20px;
  position: relative;
  text-align: center;
  color: #fff;
  background: #31a4dc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbot header span {
  cursor: pointer;
  font-size: 18px;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 400px;
  padding: 25px 20px 80px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
}
.chatbox .outgoing {
  margin-left: auto;
  justify-content: flex-end;
}
.chatbox .outgoing p {
  color: #fff;
  background: #31a4dc;
  border-radius: 20px 20px 0 20px;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
  border-radius: 20px 20px 20px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  font-size: 14.5px;
  max-width: 80%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  line-height: 1.5;
}
.chatbox .incoming .chat-icon {
  width: 36px;
  height: 36px;
  color: #fff;
  background: #31a4dc;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 15px;
  flex-shrink: 0;
}
.chatbot .chat-input {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 15px 20px;
  border-top: 1px solid #eee;
}
.chat-input input {
  height: 45px;
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  padding: 0 15px;
  border-radius: 20px;
  background: #f0f0f0;
}
.chat-input span {
  align-self: flex-end;
  color: #31a4dc;
  cursor: pointer;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 45px;
  background: #fee;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chat-input span:hover {
  background: #31a4dc;
  color: #fff;
}
@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: calc(100% - 130px);
    padding: 25px 15px;
  }
}

/* MacOS 3D Perspective Card */
.mac-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
}

/* For grid items that are cards, add macOS like dots on hover */
.mac-card::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 10px;
  height: 10px;
  background-color: #ff5f56;
  border-radius: 50%;
  box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.mac-card:hover::before {
  opacity: 1;
}

.mac-card:hover {
  transform: perspective(1000px) scale(1.02) translateZ(10px) rotateX(1deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.8);
  z-index: 5;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Infinite Marquee */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.marquee-content {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: marquee 20s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.marquee-item {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}
.faq-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-dark);
}
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.acc-item {
  border-bottom: 1px solid var(--border-color);
}
.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.acc-header:hover {
  color: var(--primary-color);
}
.acc-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}
.acc-item.active .acc-icon {
  transform: rotate(180deg);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-content p {
  padding: 0 0 20px 0;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Hiệu ứng nổi lên ở "bất cứ đâu" trên trang */
h1, h2, h3, h4, p, li, .fin-table, .ops-stat-card, .chairman-image img, .hero-image img, .expert-section div:not(.container), .logo {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  will-change: transform;
}

h1:hover, h2:hover, h3:hover, h4:hover, p:hover, li:hover, .fin-table:hover, .ops-stat-card:hover, .chairman-image img:hover, .hero-image img:hover, .expert-section div:not(.container):hover, .logo:hover {
  transform: translateY(-4px) !important;
}

/* Vô hiệu hoá hiệu ứng nảy kép bên trong các thẻ mac-card (vì mac-card đã nảy nguyên cụm rồi) */
.mac-card:hover h1, .mac-card:hover h2, .mac-card:hover h3, .mac-card:hover h4, .mac-card:hover p, .mac-card:hover img {
  transform: none !important;
}

/* =========================================
   COACHING 1-1 SECTION
   ========================================= */
.coaching-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4f8 60%, #f7fbff 100%);
  border-top: 1px solid var(--border-color);
}

.coaching-badge {
  display: inline-block;
  background: rgba(49, 164, 220, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(49, 164, 220, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.coaching-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.coaching-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* --- Expert Card --- */
.coaching-card {
  flex: 1;
  padding: 40px 35px;
  text-align: center;
  background: white;
  border-radius: 20px;
}

.coaching-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.coaching-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(49,164,220,0.25);
}

.coaching-verified {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}

.coaching-name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.coaching-role {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.coaching-stats-row {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 25px;
}

.coaching-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cs-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
}

.cs-label {
  font-size: 11px;
  color: var(--text-gray);
  text-align: center;
}

.coaching-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.topic-tag {
  background: #e0f4ff;
  color: #0077aa;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* --- Pricing Card --- */
.coaching-pricing {
  flex: 1.1;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(49,164,220,0.12);
  border: 2px solid rgba(49,164,220,0.2);
}

.pricing-header {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.pricing-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  font-weight: 600;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 10px 0 8px;
  line-height: 1;
}

.pricing-amount span {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.pricing-note {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-top: 8px;
}

.coaching-includes {
  list-style: none;
  margin-bottom: 30px;
}

.coaching-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
}

.coaching-includes li i {
  color: #2e7d32;
  font-size: 14px;
  flex-shrink: 0;
  background: #e8f5e9;
  padding: 4px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coaching-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #31a4dc, #1a85bf);
  color: white;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(49,164,220,0.35);
}

.coaching-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(49,164,220,0.45);
  color: white;
}

.coaching-slots {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  color: #795548;
  text-align: center;
  margin-top: 16px;
}

/* Responsive coaching */
@media (max-width: 768px) {
  .coaching-wrap {
    flex-direction: column;
  }
}

/* =========================================
   KHÓA HỌC (COURSE) SECTION
   ========================================= */
.course-section {
  padding: 90px 0;
  background: #141e27;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

/* --- Lesson Card --- */
.lesson-card {
  background: #1e2d3d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.lesson-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.lesson-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.lesson-card:hover .lesson-thumb img {
  transform: scale(1.07);
}

.lesson-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 39, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  backdrop-filter: blur(2px);
  transition: opacity 0.4s ease;
}

.lesson-lock-overlay i {
  font-size: 28px;
  color: #ffd54f;
}

.lesson-lock-overlay span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.lesson-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(49,164,220,0.9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.lesson-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lesson-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.4;
}

.lesson-desc {
  font-size: 13px;
  color: #90a4ae;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.lesson-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.lesson-meta span {
  font-size: 12px;
  color: #78909c;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lesson-price {
  font-size: 18px;
  font-weight: 800;
  color: #4dd0e1;
}

.lesson-unlock-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #31a4dc, #1a85bf);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lesson-unlock-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 15px rgba(49,164,220,0.4);
}

.lesson-unlock-btn.unlocked {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.lesson-unlock-btn.unlocked:hover {
  box-shadow: 0 4px 15px rgba(46,125,50,0.4);
}

/* Course bundle CTA */
.course-bundle-cta {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px dashed rgba(77,208,225,0.3);
}

.course-bundle-cta p {
  color: #b0bec5;
  font-size: 16px;
  margin-bottom: 20px;
}

/* =========================================
   UNLOCK MODAL
   ========================================= */
.unlock-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.unlock-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.unlock-modal {
  background: white;
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 520px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.unlock-modal-backdrop.active .unlock-modal {
  transform: scale(1);
}

.unlock-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.unlock-modal-close:hover {
  background: #ffe0e0;
  color: #e53935;
}

.modal-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.modal-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.modal-lesson-name {
  font-size: 15px;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 20px;
}

.modal-price-tag {
  font-size: 42px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 14px;
  line-height: 1;
}

.modal-price-tag span {
  font-size: 18px;
  font-weight: 600;
}

.modal-note {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn-cancel {
  padding: 12px 28px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-gray);
  transition: all 0.2s;
}

.modal-btn-cancel:hover {
  border-color: #999;
  color: var(--text-dark);
}

.modal-btn-confirm {
  padding: 12px 28px;
  background: linear-gradient(135deg, #31a4dc, #1a85bf);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(49,164,220,0.35);
}

.modal-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(49,164,220,0.5);
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 8px;
}

.modal-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
}

/* --- EBOOK FEATURE SECTION --- */
.ebook-feature-section {
  padding: 100px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.ebook-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.ebook-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.ebook-mockup {
  width: 280px;
  height: 380px;
  background: #1e293b;
  border-radius: 4px 15px 15px 4px;
  box-shadow: 15px 15px 30px rgba(0,0,0,0.2), inset 10px 0 20px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.ebook-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 10px;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.1);
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.ebook-mockup h4 {
  font-size: 22px;
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 800;
  color: white !important;
}

.ebook-mockup .author-tag {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

.ebook-content {
  flex: 1.2;
}

.ebook-tag {
  display: inline-block;
  background: #fff1eb;
  color: #ff6a00;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid #ffccb8;
}

.ebook-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-dark);
}

.ebook-desc {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.ebook-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}

.ebook-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
}

.ebook-meta-item i {
  color: #2e7d32;
  font-size: 16px;
}

.ebook-stock-warn {
  font-size: 13px;
  color: #c62828;
  font-weight: 700;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ebook-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.ebook-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-color);
}

.ebook-price span {
  font-size: 16px;
  font-weight: 600;
}

.btn-buy-ebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: white !important;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-buy-ebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  background: #222;
}

.btn-buy-ebook:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .ebook-grid {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .ebook-meta-item {
    justify-content: center;
  }
  .ebook-price-row {
    justify-content: center;
  }
  .ebook-title {
    font-size: 28px;
  }
}
