/* Background toàn trang giống Tailwind */
body {
    background-color: unset !important;
  background: #0f172a !important;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
}

/* Gradient blur background phía sau */
.bg-blur {
  height: 450px;
  background: rgba(14,165,233,0.13);
  filter: blur(120px);
  border-radius: 50%;
  z-index: -1;
}

/* Navbar glass */
.glass-nav {
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51,65,85,0.5);
}


@media (max-width: 991px) {

    #navMenu {
        display: none;
        flex-direction: column;
        background: rgba(17, 25, 40, 0.95);
        backdrop-filter: blur(12px);
        width: 100%;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        animation: fadeOut 0.25s ease forwards;
    }

    /* Khi mở menu */
    #navMenu.open {
        display: flex;
        animation: fadeIn 0.25s ease forwards;
    }

    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes fadeOut {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-10px); }
    }

    /* Link style */
    #navMenu a {
        color: white !important;
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }
}


/* Hover navbar links */
.hover-light:hover {
  color: #fff !important;
}
.menu-item a, .menu-item a:visited{
    color: white;
    text-decoration: none !important;
}
/* Brand color */
:root {
  --brand: #0ea5e9;
}

/* Gradient heading text */
.text-gradient {
  background: linear-gradient(to right, #fff, #a8d8ff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Input glow wrapper */
.glow-wrapper {
  padding: 4px;
  border-radius: 16px;
  position: relative;
}
.glow-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, #2af0ea55, #ff005055);
  opacity: .5;
  filter: blur(18px);
  z-index: -1;
  transition: .3s;
}
.glow-wrapper:hover::before {
  opacity: .85;
  filter: blur(26px);
}

/* Input group panel */
.input-group{
    gap: 10px;
}
.bg-panel {
  background: rgba(30,41,59,0.75);
  border: 1px solid #475569;
}

#url::placeholder{
  color: rgb(223, 223, 223);
  opacity: 80%;
}

/* Brand button */
.btn-brand {
  background: #0284c7;
  color: #fff;
}
.btn-brand:hover {
  background: #0ea5e9;
}

/* TikTok + YouTube dots */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.youtube { background: #ff0000; }
.dot.tiktok {
  background: #2af0ea;
  box-shadow: 2px 0 0 #ff0050;
}

/* Feature highlight icons */
.icon-box {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: rgba(30,41,59,0.45);
  border: 1px solid #475569;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Feature Card */
.feature-card {
  background: #0f172a;
  border-radius: 22px;
  border: 1px solid #334155;
  overflow: hidden;
  transition: .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 0 40px rgba(14,165,233,.25);
}

/* Images scale */
.feature-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .7s;
}
.feature-card:hover .feature-img {
  transform: scale(1.2);
}

/* Badge on top-left of images */
.top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  background: rgba(15,23,42,.85);
  border-radius: 12px;
  border: 1px solid #334155;
}

/* Divider line */
.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #64748b, transparent);
  opacity: .35;
}

/* Result Video Card */
.result-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,.25);
}

/* Thumb hover */
.thumb-wrap {
  position: relative;
  width: 400px;
  height: 400px;
}

@media (max-width:480px) {
  .thumb-wrap{
    width: 100% !important;
    height: 230px !important;
  }
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}
.thumb-wrap:hover .thumb-overlay {
  opacity: 1;
}

/* Dark badge */
.badge-dark-custom {
  position: absolute;
  background: rgba(0,0,0,.75);
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  bottom: 5px;
  right: 5px;
}

@media (max-width: 480px) {
  .badge-dark-custom {
    right: 25px;
  }
}

/* AI panel box */
.ai-panel-box {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(129,140,248,.3);
  border-radius: 20px;
  box-shadow: 0 0 35px rgba(99,102,241,.25);
}

/* Footer */
.footer-dark {
  background: #0f172a;
  border-top: 1px solid #334155;
}
.footer-link:hover {
  color: #fff !important;
}
.footer-menu a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}
.footer-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#downloadStatus{
    text-align: left;
}

@media (max-width: 991px) {
    #donwloadStatus {
        text-align: center;
    }
}
/* chỉ phủ lên khu vực form */
.download-area {
    position: relative;
}

/* overlay nhẹ ngay sau form */
#captcha-check {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);  /* mờ ngay sau form */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    
    z-index: 10;

    display: none; /* ẩn mặc định */
    align-items: center;
    justify-content: center;
    /* padding-top: 40px; dịch xuống tí để không che progress card (nếu có) */
}

/* Phóng to captcha nhẹ để nổi bật */
#captcha-check .g-recaptcha {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
}

/* #main-content {
    visibility: hidden;
} */