
    :root{
      --bg:#0b0b0b;
      --panel:#000;
      --border: rgba(255,255,255,0.08);
      --primary1:#6c5ce7;
      --primary2:#a29bfe;
      --text:#fff;
    }

    * { box-sizing: border-box; }

    html, body { height: 100%; }

    body{
      margin:0;
      font-family: Inter, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden; /* chống tràn ngang trên mobile */
    }

    a{ color: inherit; text-decoration: none; }

    /* HEADER */
    header{
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .header-container{
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
      display:flex;
      justify-content: space-between;
      align-items:center;
      gap: 12px;
    }

    .logo{ font-size: 20px; font-weight: 600; }

    nav{
      display:flex;
      align-items:center;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    nav a{ opacity: 0.88; }

    .btn{
      padding: 8px 16px;
      border: 1px solid var(--primary1);
      border-radius: 10px;
      white-space: nowrap;
    }

    /* HERO LIST */
    .hero{
      padding: 110px 16px 90px;
      background: radial-gradient(circle at top, #2d1b69, #000);
    }

    .model-list{
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 56px;
      padding: 0 8px;
    }

    .model-card{
      text-align: center;
      min-width: 0; /* quan trọng để grid không làm tràn ngang */
    }

    .model-card h1{
      font-size: 36px;
      margin: 0 0 18px;
      line-height: 1.15;
    }

    /* VIDEO WRAPPER: giữ đúng tỉ lệ + không tràn */
    .video-shell{
      width: 100%;
      max-width: 100%;
      border-radius: 18px;
      border: 1px solid var(--border);
      background: var(--panel);
      overflow: hidden;       /* cắt phần thừa */
      aspect-ratio: 16 / 9;   /* giữ layout ổn định */
    }

    video{
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      background: var(--panel);
    }

    .btn-primary{
      display: inline-block;
      margin-top: 22px;
      padding: 14px 34px;
      background: linear-gradient(135deg, var(--primary1), var(--primary2));
      border-radius: 12px;
      font-size: 16px;
      white-space: nowrap;
    }
.demo-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain; /* demo có tiếng → ưu tiên không crop */
}
    /* DEMO SECTION */
    .demo{
      max-width: 900px;
      margin: 0 auto;
      padding: 80px 16px;
    }

    .demo h2{
      text-align: center;
      margin: 0 0 42px;
      font-size: 30px;
    }

    .video-column{
      display:flex;
      flex-direction: column;
      gap: 28px;
      min-width: 0;
    }

    .demo .video-shell{
      border-radius: 16px;
      aspect-ratio: 16 / 9;
    }

    /* FEATURES */
    .features{
      background:#050505;
      padding: 70px 16px;
    }

    .feature-list{
      max-width: 1000px;
      margin: 0 auto;
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 28px;
      text-align:center;
    }

    .feature{
      font-size: 16px;
      opacity: 0.92;
      padding: 14px 10px;
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 14px;
      background: rgba(0,0,0,0.25);
    }

    /* FOOTER */
    footer{
      padding: 28px 16px;
      text-align:center;
      font-size: 14px;
      opacity: 0.65;
      border-top: 1px solid rgba(255,255,255,0.05);
    }

    /* RESPONSIVE */
    @media (max-width: 900px){
      .model-list{
        grid-template-columns: 1fr; /* mobile: xếp cột */
        gap: 34px;
      }
      .hero{
        padding: 92px 14px 72px;
      }
      .model-card h1{
        font-size: 30px;
      }
      .header-container{
        padding: 14px 16px;
      }
    }

    @media (max-width: 420px){
      .model-card h1{ font-size: 26px; }
      .btn-primary{ width: 100%; text-align:center; }
      nav{ gap: 12px; }
    }

/* ===== Footer (Centered + Clean) ===== */
/* ===== FOOTER (FIXED & CENTERED) ===== */
.site-footer{
  background: linear-gradient(180deg, #0b0b0b, #060606);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer .footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .footer-links{
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer .footer-links a{
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 6px 8px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.site-footer .footer-links a:hover{
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.site-footer .footer-copy{
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 720px){
  .site-footer .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}
/* ===== AVATAR HEADER ===== */
.avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;

  /* Viền nổi bật */
  border: 2px solid rgba(108, 140, 255, 0.9);

  /* Hiệu ứng nổi nhẹ */
  box-shadow: 
    0 0 0 2px rgba(108, 140, 255, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.35);

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* Hover effect */
.avatar-link:hover .avatar {
  transform: translateY(-1px) scale(1.03);
  border-color: #6c8cff;
  box-shadow: 
    0 0 0 3px rgba(108, 140, 255, 0.25),
    0 6px 14px rgba(0, 0, 0, 0.45);
}
/* ===== USER DROPDOWN MENU ===== */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 200px;

  background: #0f1220;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  padding: 8px;
  display: none;
  z-index: 999;
}

.user-dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.user-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.user-dropdown .logout {
  color: #ff7a7a;
}

.user-dropdown .logout:hover {
  background: rgba(255,122,122,0.12);
}

.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(255,255,255,0.08);
}

/* ================= LOGIN BUTTON NỔI BẬT ================= */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #7c7cff, #5b5bff);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(91, 91, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 91, 255, 0.5);
}

/* ================= CREDIT BADGE (HEADER) ================= */
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-left: 8px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.15);
  color: #ffcc00;
}

.credit-badge i {
  font-size: 14px;
}

/* ================= CREATE BUTTON CREDIT ICON ================= */
.btn-primary i.bi-coin {
  margin-left: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.neon-ai {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #6f7cff, #8f6bff, #4b5bff);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite, pulseGlow 2.5s infinite;
  box-shadow:
    0 0 12px rgba(111, 124, 255, 0.6),
    0 0 24px rgba(143, 107, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.neon-ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: scanLight 3s infinite;
}
.neon-ai:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 20px rgba(111, 124, 255, 0.9),
    0 0 40px rgba(143, 107, 255, 0.8);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 12px rgba(111, 124, 255, 0.6),
      0 0 24px rgba(143, 107, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 20px rgba(111, 124, 255, 0.9),
      0 0 40px rgba(143, 107, 255, 0.7);
  }
  100% {
    box-shadow:
      0 0 12px rgba(111, 124, 255, 0.6),
      0 0 24px rgba(143, 107, 255, 0.4);
  }
}

@keyframes scanLight {
  0% { left: -120%; }
  100% { left: 120%; }
}



.neon-ai-2 {
  position: relative;


  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #6f7cff, #8f6bff, #4b5bff);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite, pulseGlow 2.5s infinite;
  box-shadow:
    0 0 12px rgba(111, 124, 255, 0.6),
    0 0 24px rgba(143, 107, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.neon-ai-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: scanLight 3s infinite;
}
.neon-ai-2:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 20px rgba(111, 124, 255, 0.9),
    0 0 40px rgba(143, 107, 255, 0.8);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 12px rgba(111, 124, 255, 0.6),
      0 0 24px rgba(143, 107, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 20px rgba(111, 124, 255, 0.9),
      0 0 40px rgba(143, 107, 255, 0.7);
  }
  100% {
    box-shadow:
      0 0 12px rgba(111, 124, 255, 0.6),
      0 0 24px rgba(143, 107, 255, 0.4);
  }
}

@keyframes scanLight {
  0% { left: -120%; }
  100% { left: 120%; }
}
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-left: 8px;
  border-radius: 999px;
  font-weight: 600;

  /* GREEN = AVAILABLE / OK */
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;

  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.25);
}

.credit-badge i {
  font-size: 14px;
}
.credit-badge {
  box-shadow:
    0 0 6px rgba(46, 204, 113, 0.35),
    inset 0 0 0 1px rgba(46, 204, 113, 0.25);
}
.avatar-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  /* Gradient đồng bộ UI */
  background: linear-gradient(135deg, #6f7cff, #2ecc71);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  color: #fff;

  /* Viền + glow nhẹ */
  box-shadow:
    0 0 0 2px rgba(111, 124, 255, 0.35),
    0 0 10px rgba(46, 204, 113, 0.45);

  transition: transform .2s ease, box-shadow .2s ease;
}
/* ===== AVATAR INITIAL (OVERRIDE FINAL) ===== */
.avatar.avatar-initial {
  background: linear-gradient(135deg, #6f7cff, #2ecc71) !important;
  color: #fff !important;

  border: none !important;

  box-shadow:
    0 0 0 2px rgba(111, 124, 255, 0.45),
    0 0 12px rgba(46, 204, 113, 0.65) !important;
}

.avatar.avatar-initial span {
  font-weight: 700;
  font-size: 14px;
}
html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}
/* Border trắng mỏng cho tất cả nav-create */
.nav-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

/* Hover */
.nav-create:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Active */
.nav-create.nav-active {
    background: linear-gradient(135deg, #7f5cff, #00e5ff);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(127, 92, 255, 0.6);
}
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    display: none;
    z-index: 9999;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 6px 0;
}
/* ... Các CSS cũ giữ nguyên ... */

/* TELEGRAM FLOATING BUTTON */
.telegram-btn {
    position: fixed;
    bottom: 30px;       /* Cách đáy 30px */
    right: 30px;        /* Cách phải 30px */
    width: 60px;
    height: 60px;
    background-color: #0088cc; /* Màu xanh Telegram */
    color: #fff;
    border-radius: 50%; /* Bo tròn */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;      /* Luôn nổi lên trên */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;    /* Kích thước icon */
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-btn:hover {
    background-color: #007dbb;
    transform: scale(1.1); /* Phóng to nhẹ khi di chuột */
    color: #fff;
}

/* Hiệu ứng sóng lan tỏa (tùy chọn cho đẹp) */
.ttelegram-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0088cc;
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

