@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #030305; 
  --surface: rgba(20, 20, 25, 0.6);
  --surface-hover: rgba(35, 35, 45, 0.8);
  --border: rgba(255, 255, 255, 0.08); 
  --text: #ffffff; 
  --muted: #9ca3af;
  --primary: #8b5cf6; 
  --primary-hover: #a78bfa; 
  --primary-glow: rgba(139, 92, 246, 0.4);
  --success: #10b981; 
  --danger: #ef4444; 
  --warn: #f59e0b;
}
body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--bg); 
  color: var(--text); 
  min-height: 100vh; 
  line-height: 1.6;
  overflow-x: hidden;
  display: flex; 
  flex-direction: column; 
  min-height: 100vh;
}
/* Background Mesh Gradient */
body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: 
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.1), transparent 25%);
  z-index: -1; pointer-events: none;
}
h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; }
a { color: var(--primary-hover); text-decoration: none; transition: 0.3s; }
a:hover { text-decoration: none; color: #fff; }

.container {
     max-width: 1200px;
     margin: 0 auto; 
     padding: 2rem 1.5rem;
     width: 100%; 
  flex: 1;
    
    }

/* --- NAVBAR (Glassmorphism) --- */
.nav { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 1rem 2rem; background: rgba(3, 3, 5, 0.6); 
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; 
  gap: 1rem; flex-wrap: wrap; 
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px;}
.logo i { color: var(--primary); font-size: 1.8rem; text-shadow: 0 0 15px var(--primary-glow); }
.logo span { color: var(--primary); font-weight: 500; font-size: 1.2rem;}
.nav-links { display: flex; gap: 2rem; font-weight: 500; font-size: 0.95rem;}
.nav-links a { color: var(--muted); display: flex; align-items: center; gap: 0.5rem;}
.nav-links a:hover { color: #fff; transform: translateY(-2px); }
.nav-user { display: flex; align-items: center; gap: 1rem; font-weight: 500;}

/* --- BUTTONS --- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; 
  padding: 0.6rem 1.4rem; border-radius: 10px; border: 1px solid var(--border); 
  background: var(--surface); color: var(--text); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: 'Inter', sans-serif;
}
.btn:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #d946ef); border: none; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { box-shadow: 0 8px 25px rgba(217, 70, 239, 0.5); transform: translateY(-3px) scale(1.02); }
.btn-success { background: linear-gradient(135deg, #059669, #10b981); border: none; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: var(--danger); color: white; box-shadow: 0 4px 15px rgba(239,68,68,0.4); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; border-radius: 8px; }

/* --- INPUTS --- */
.input { 
  width: 100%; padding: 0.9rem 1.2rem; background: rgba(0,0,0,0.4); 
  border: 1px solid var(--border); border-radius: 12px; color: var(--text); 
  font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.3s ease;
}
.input::placeholder { color: rgba(255,255,255,0.3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background: rgba(0,0,0,0.6); }
label { display: block; margin-bottom: 1.2rem; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
label .input { margin-top: 0.5rem; }

/* --- HERO SECTION --- */
.hero { text-align: center; padding: 5rem 0 4rem; position: relative; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.1; letter-spacing: -1px;}
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 650px; margin: 0 auto; }
.accent { background: linear-gradient(to right, #8b5cf6, #ec4899, #f43f5e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% auto; animation: gradientText 3s linear infinite; }
@keyframes gradientText { to { background-position: 200% center; } }

/* --- PRODUCT CARDS --- */
.filters { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { 
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; 
  overflow: hidden; backdrop-filter: blur(10px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.product-card { color: var(--text); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 20px rgba(139,92,246,0.15); }
.card-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(180deg, #18181b, #09090b); position: relative; overflow: hidden;}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-img i { font-size: 4rem; color: rgba(255,255,255,0.1); transition: 0.3s; }
.product-card:hover .card-img i { color: var(--primary); transform: scale(1.1); text-shadow: 0 0 20px var(--primary-glow);}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column;}
.card-body h3 { font-size: 1.2rem; margin: 0.8rem 0 0.5rem; font-weight: 700; }
.desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;}
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.price { color: var(--success); font-weight: 800; font-size: 1.3rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; background: rgba(139, 92, 246, 0.15); color: #d8b4fe; border-radius: 8px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(139, 92, 246, 0.3); text-transform: uppercase; letter-spacing: 0.5px;}

/* --- AUTH FORMS --- */
.auth-container { max-width: 440px; margin: 4rem auto; }
.auth-form { background: var(--surface); padding: 3rem 2.5rem; border-radius: 24px; border: 1px solid var(--border); backdrop-filter: blur(20px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); position: relative; overflow: hidden;}
.auth-form::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), #ec4899); }
.auth-form h2 { margin-bottom: 2rem; font-size: 1.8rem; text-align: center; font-weight: 800;}
.error { color: var(--danger); font-size: 0.9rem; margin-bottom: 1rem; text-align: center; background: rgba(239,68,68,0.1); padding: 0.5rem; border-radius: 8px; display: none;}
.error:not(:empty) { display: block; }

/* --- UTILITIES & TABLES --- */
.table-wrapper { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.table th { background: rgba(0,0,0,0.3); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px;}
.table tr:hover td { background: rgba(255,255,255,0.02); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.9rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.step { display: none; }
.step.active { display: block; animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


/* --- FOOTER PRO --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer-col h4 { font-size: 1.1rem; color: #fff; margin-bottom: 1.2rem; font-weight: 700; }
.footer-col p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--muted); font-size: 0.9rem; transition: 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;}
.footer-col ul li a:hover { color: var(--primary-hover); transform: translateX(5px); }

/* Newsletter mini form */
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-form input { flex: 1; padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: #fff; outline: none;}
.newsletter-form button { padding: 0.6rem 1rem; border-radius: 8px; border: none; background: var(--primary); color: #fff; cursor: pointer; font-weight: 600; transition: 0.3s;}
.newsletter-form button:hover { background: var(--primary-hover); }

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; gap: 1rem;
}
.payment-icons i { font-size: 1.5rem; margin-left: 0.5rem; color: #ccc; transition: 0.3s;}
.payment-icons i:hover { color: #fff; transform: scale(1.1); }

/* Thanh cảnh báo bản quyền (Disclaimer) */
.disclaimer-bar {
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warn);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Nút liên hệ nổi (FABs) */
.fab-container {
  position: fixed; bottom: 2rem; right: 2rem;
  display: flex; flex-direction: column; gap: 1rem; z-index: 999;
}
.fab {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s; position: relative;
}
.fab:hover { transform: translateY(-3px) scale(1.1); color: #fff; }
.fab-zalo { background: #0068ff; }
.fab-fb { background: #1877f2; }
.fab-mess { background: linear-gradient(45deg, #00c6ff, #0072ff); }
/* Hiệu ứng gợn sóng cho nút */
.fab::after {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid inherit; animation: ripple 2s infinite; top: 0; left: 0;
}
@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fab-container { bottom: 1rem; right: 1rem; }
  .fab { width: 45px; height: 45px; font-size: 1.2rem; }
}

/* --- FOLDER GRID (Giao diện thẻ ngang chuẩn Pro) --- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Tự động chia 3 cột */
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.folder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center; /* Căn giữa icon và text theo chiều dọc */
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.folder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.5);
  background: var(--surface-hover);
}

.folder-icon-box {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: 0.3s;
}

.folder-card:hover .folder-icon-box {
  transform: scale(1.05);
}

.folder-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.folder-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.folder-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
  .folder-grid { grid-template-columns: 1fr; }
}

/* --- USER DROPDOWN MENU --- */
.user-menu-container { position: relative; cursor: pointer; }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column; overflow: hidden; z-index: 1000;
  animation: fadeInDown 0.2s ease-out;
}
.user-dropdown.active { display: flex; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-header {
  padding: 1.2rem; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.dropdown-balance { font-size: 1.1rem; margin-bottom: 0.2rem; }
.dropdown-balance strong { color: var(--success); font-size: 1.3rem; }
.dropdown-status { font-size: 0.8rem; color: var(--muted); }
.dropdown-status span { color: var(--primary-hover); font-weight: 600; }

.dropdown-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.2rem;
  color: var(--text); font-size: 0.9rem; transition: 0.2s; width: 100%; border: none; background: none; text-align: left; font-family: inherit; cursor: pointer;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); text-decoration: none; color: var(--primary-hover); }
.dropdown-item i { width: 20px; text-align: center; color: var(--muted); transition: 0.2s; }
.dropdown-item:hover i { color: var(--primary-hover); }
.dropdown-item.text-danger { color: var(--danger); border-top: 1px solid var(--border); }
.dropdown-item.text-danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }
.dropdown-item.text-danger i { color: var(--danger); }





/* --- FOOTER PRO (Đã nâng cấp) --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 4rem 2rem 2rem; /* Tăng khoảng trống phía trên cho thoáng */
  margin-top: 5rem;
  width: 100%;
}

.footer-grid {
  max-width: 1400px; /* Mở rộng bằng với container chính */
  margin: 0 auto;
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Cột 1 và 4 rộng hơn */
  gap: 4rem; /* Tăng khoảng cách giữa các cột cho thoáng mắt */
  padding-bottom: 3rem; 
  border-bottom: 1px solid var(--border);
}

.footer-col h4 { 
  font-size: 0.95rem; 
  color: #fff; 
  margin-bottom: 1.5rem; 
  font-weight: 600; 
  text-transform: uppercase; /* Viết hoa toàn bộ cho giống các trang lớn */
  letter-spacing: 1px;
}

.footer-col p { 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin-bottom: 1.5rem; 
  line-height: 1.7; 
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { 
  color: var(--muted); 
  font-size: 0.9rem; 
  transition: 0.3s; 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
}
.footer-col ul li a:hover { 
  color: var(--primary-hover); 
  transform: translateX(5px); /* Hiệu ứng trượt nhẹ sang phải */
}

/* Form đăng ký nhận tin */
.newsletter-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.newsletter-form input { 
  flex: 1; padding: 0.7rem 1rem; border-radius: 8px; 
  border: 1px solid var(--border); background: rgba(0,0,0,0.3); 
  color: #fff; outline: none; font-size: 0.9rem;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button { 
  padding: 0.7rem 1.2rem; border-radius: 8px; border: none; 
  background: var(--primary); color: #fff; cursor: pointer; 
  font-weight: 600; transition: 0.3s;
}
.newsletter-form button:hover { background: var(--primary-hover); }

/* Phần bản quyền dưới cùng */
.footer-bottom {
  max-width: 1400px; /* Đồng bộ độ rộng */
  margin: 0 auto;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding-top: 2rem; 
  font-size: 0.85rem; 
  color: var(--muted); 
  flex-wrap: wrap; 
  gap: 1rem;
}

.payment-icons { display: flex; align-items: center; gap: 0.8rem; }
.payment-icons i { font-size: 1.5rem; color: #ccc; transition: 0.3s;}
.payment-icons i:hover { color: #fff; transform: scale(1.1); }

/* Thanh cảnh báo bản quyền */
.disclaimer-bar {
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warn);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}