/* ====================== RESET & BASE ====================== */
* { margin:0; padding:0; box-sizing:border-box; }

/* ====================== VARIABLE ====================== */
:root {
  --primary-blue: #1F4E8C;
  --dark-blue: #163A6B;
  --background-light: #E3E8EF;
  --card-bg: #FFFFFF;
  --border-light: #E5E7EB;
  --text-dark: #2C2C2C;
  --text-light: #6B7280;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    font-family:'Inter', sans-serif;
    background: var(--background-light); 
     color: var(--text-dark); 
    line-height:1.6;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-bottom: 100px !important; 
}

/* ====================== LAYOUT ====================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ====================== HEADER & NAV ====================== */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #F5EFE6; /* Thêm màu nền xanh trung tính tại đây */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Viền dưới mờ màu trắng cho tệp tông */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; 
    background: transparent; /* Bỏ #FFFFFF, để trong suốt đè lên nền .main-header */
    color: #2C2C2C; /* Đổi màu chữ/icon sang màu trắng */
}

/* Đảm bảo các đường link / menu bên trong header hiển thị chữ màu trắng */
.main-header .container a {
    color: #2C2C2C;
}

.main-header .container a:hover {
    color: #000000;
}

/* Căn giữa theo chiều dọc cho khung Logo */
.logo {
    display: flex;
    align-items: center;
}

/* Xóa margin mặc định của thẻ h1 làm lệch vị trí */
.logo h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Căn giữa icon và chữ Myseller bên trong thẻ <a> */
.logo h1 a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa quả địa cầu và chữ Myseller */
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center; 
    gap: 10px;
}
.nav-menu > a, 

.lang-select-wrapper {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 2px 5px;
    height: 35px;
    width: 50px;
    font-size: 1.2rem; 
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    appearance: none; 
    -webkit-appearance: none;
}

/* ================= MOBILE MENU SPACING FIX ================= */
.dropdown { 
    position: relative; 
    align-items: center; 
    height: 100%;
}
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 240px;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	opacity: 0;
	visibility: hidden;  
	transform: translateY(10px);
	pointer-events: none;
	transition: .25s ease;
	z-index: 9999;
	padding: 10px 0;
	
}

.dropdown:hover > .dropdown-menu,
.dropdown.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
	display: block;
	padding: 10px 20px;
	color: #333;
	font-size: 14px;
	border-bottom: none !important;
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
    padding-left: 15px;
}
.has-submenu .submenu {
    display: block; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f8f8f8;
}

/* Khi mở Submenu */
.has-submenu.open .submenu {   
    border-left: 3px solid #1976d2;
    max-height: 500px;
    
}

/* ===== Danh mục CHA ===== */
.nav-menu .dropdown-toggle {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Vùng chứa danh mục CON ===== */
.nav-menu .submenu {
    padding-left: 18px;              
    margin-top: 8px;                
    border-left: 2px solid #e5e5e5;
}

/* ===== Từng danh mục CON ===== */
.nav-menu .submenu li {
    margin-bottom: 10px;             
}

.nav-menu .submenu a,
.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.submenu-toggle::after {
    content: '›';
    transition: transform 0.3s;
    font-size: 1.2rem;
}
.has-submenu.open > .submenu-toggle::after {
    transform: rotate(90deg);
}
.nav-menu .submenu-toggle {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Khi mở submenu */
.has-submenu.open > .submenu {
    margin-top: 10px;
    display: block; 
}

/* Hover không dính chữ */
.nav-menu a:hover,
.nav-menu button:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
}

.nav-menu a:hover { color: #1976d2; }

/* ====================== BỔ SUNG CHO TRANG CHỦ (INDEX.PHP) ====================== */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Nút đăng ký lớn */
.btn-large {
    background: #1976d2;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 15px -3px rgba(25, 118, 210, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(25, 118, 210, 0.4);
    background: #1565c0;
}

/* Link đăng nhập bên dưới */
.hero a:not(.btn-large) {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero a:not(.btn-large):hover {
    text-decoration: underline;
}

/* ====================== MENU BUTTON ====================== */

/* Nút X đóng menu (Mặc định ẩn, chỉ hiện trên mobile) */

.close-menu {
    display: none; 
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    line-height: 1;
    z-index: 1100; 
}

/* ====================== LOGIN PAGE ====================== */
.form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding-top: 80px; 
    padding-left: 15px;
    padding-right: 15px;
}

.form-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.form-card h2 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Input groups */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

/* Nút bấm trong form */
.btn-primary {
    width: 100%;
    background: #1976d2;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

/* Thông báo lỗi/thành công */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert.error {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

/* Footer của form */
.form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.form-footer p { margin-bottom: 10px; }
.form-footer a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

/* ====================== DASHBOARD TABS NAVIGATION ====================== */
/*
.dashboard-container {
    max-width: none !important;
    width: 100% !important;
    padding-top: 80px; 
    margin-top: 0 !important;    
    position: relative;
    z-index: 10;
    padding-left: 40px; 
    padding-right: 40px; 
    box-sizing: border-box;
    flex: 1;
}
*/
.dashboard-container {
    max-width: none !important;
    width: 100% !important;
    padding-top: 20px !important; /* Giảm từ 80px xuống 20px để kéo sát lên */
    margin-top: 0 !important;    
    position: relative;
    z-index: 10;
    padding-left: 40px; 
    padding-right: 40px; 
    box-sizing: border-box;
    flex: 1;
}
.tab-navigation {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: #1976d2;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ====================== TAB CONTENT LOGIC ====================== */
.tab-content {
    display: none; /* Ẩn mặc định */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.tab-content.active {
    display: block !important; 
    opacity: 1;
    transform: translateY(0);
}

/* ====================== TAB 1: APPS GRID ====================== */
.search-bar {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* cập nhật lại thanh search */

.index-search-adjust {
    margin-top: 15px; 
    position: relative;
    z-index: 11;
}

.search-bar input {
    width: 100%;
    padding: 10px 45px 10px 18px; 
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.search-bar input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Biểu tượng kính lúp */
.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* CSS Nút Back chuẩn Touch cho Mobile & Tablet */
.btn-back-custom {
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease-in-out;
	padding: 0;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.btn-back-custom svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.btn-back-custom:hover, 
.btn-back-custom:active {
	background-color: #f8fafc;
	border-color: #cbd5e1;
	transform: scale(1.05);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	color: #2563eb;
}
        
/* end css search */
.apps-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));   
    align-items: stretch; 
    transition: all 0.3s ease;
    
}

.app-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    animation: fadeIn 0.4s ease forwards;
}

/* Đảm bảo ảnh trong card không bị vỡ */
.app-card img {
    max-width: 100%;
    height: auto;
    display: inline-block; 
    vertical-align: middle;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
    
}
.app-card-link {
   text-decoration: none;
   color: inherit;
   display: block;
}
.app-image-container {
   width: 100%;
   height: 180px; 
    overflow: hidden;
    border-radius: 8px;
   margin-bottom: 12px;
}
.app-main-img {
   width: 100%;
   height: 100%;
   object-fit: cover; 
   transition: transform 0.3s ease;
}
.app-card:hover .app-main-img {
   transform: scale(1.05);
}

/* ====================== TAB 2: THÔNG TIN (LAYOUT MỚI) ====================== */

.info-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* User Profile Card */
.user-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: none;
}

.user-avatar {
    font-size: 2.5rem;
    background: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Wallet Card */
.amount { font-size: 2rem; color: #1976d2; margin: 10px 0; font-weight: 700; }
.action-btns { display: flex; gap: 10px; margin-top: 15px; }

.btn-deposit, .btn-withdraw, .btn-open {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-deposit, .btn-open { background: #1976d2; color: white; }
.btn-withdraw { background: #f1f5f9; color: #475569; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* Căn hàng ngang cho Header (Icon + Tiêu đề) */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa icon và chữ */
    margin-bottom: 15px;
}

.card-header h4 {
    margin: 0; /* Xóa margin mặc định của thẻ h4 */
}

/* Căn hàng ngang cho Stat Box (Label bên trái, Value bên phải) */
.stat-box {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Đẩy Label sang trái, Value sang phải */
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-logout-card {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff1f2;
    color: #e11d48;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #fecdd3;
}

/* ====================== FOOTER ====================== */
/*
.main-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    flex-shrink:0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}
.footer-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-nav a {
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #1976d2;
}

.footer-nav .sep {
    color: #cbd5e1;
}
*/

.main-footer {
    background: #786E71; /* Nền xám đỏ lông chuột tông nhẹ */
    border-top: 1px solid #918689; /* Viền trên sáng hơn nền 1 tông để tạo đường ranh giới tinh tế */
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-nav a {
    color: #FFFFFF; /* Màu chữ trắng tinh để nổi bật rõ ràng trên nền xám trung tính */
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #F7F3E9; /* Đổi sang màu kem nhạt khi rê chuột (đồng bộ với màu nền Header Ivory) */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.footer-nav .sep {
    color: #D3CBCE; /* Thanh phân chia màu xám sáng, sắc nét và phân tách rõ giữa các link */
}
/* end css footer */

.flash-message{
    padding:12px 16px;
    margin-bottom:15px;
    border-radius:6px;
    font-weight:600;
}

.flash-message.success{
    background:#e6ffed;
    color:#0a7a33;
    border:1px solid #b7ebc6;
}

.flash-message.error{
    background:#ffe6e6;
    color:#a10000;
    border:1px solid #ffb3b3;
}

/* ====================== NEW HERO SECTION ====================== */

.hero-section {
    margin-top: 60px;    
    background: linear-gradient(135deg, #FFEDD5 0%, #F3E8FF 100%);
    padding: 15px 15px !important; /* Giảm hẳn padding trên/dưới xuống 10px */
    text-align: center;
    color: #1e293b; 
}
.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}
.hero-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}
.hero-title {
    font-weight: 800;
    color: #1e293b; 
    line-height: 1.2;
    margin-bottom: 15px;
}
.hero-desc {
    color: #475569; 
    margin: 0 auto 35px;
}
.hero-desc strong {
    color: #1976d2;
}

.doc-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 15px 10px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.doc-icon { font-size: 1.5rem; margin-bottom: 5px; }
.doc-text { font-weight: 600; color: var(--primary-blue); font-size: 0.85rem; }


.doc-btn:hover {
    transform: translateY(-5px);
    border-color: #1976d2;
    box-shadow: 0 10px 15px -3px rgba(25, 118, 210, 0.1);
}

.doc-btn:hover .doc-text {
    color: #1976d2;
}

/* ROADMAP BASE */
.roadmap-page {
    background: #f8fbfd;
    padding: 60px 0 100px;
}
.roadmap-header {
    text-align: center;
    margin-bottom: 50px;
}
.roadmap-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 800;
}
.roadmap-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* TIMELINE STRUCTURE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #cbd5e1;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px #e2e8f0;
}

/* TRẠNG THÁI STATUS */
.timeline-item.done .timeline-dot { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.timeline-item.in_progress .timeline-dot { background: #1976d2; box-shadow: 0 0 0 3px #e0f2fe; }

.timeline-date {
    font-weight: 700;
    color: #1976d2;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.timeline-item.done .timeline-content { border-left: 5px solid #10b981; }
.timeline-item.in_progress .timeline-content { border-left: 5px solid #1976d2; }

.timeline-content h3 { margin-bottom: 10px; color: #1e293b; }
.timeline-content p { font-size: 0.95rem; color: #475569; margin-bottom: 15px; }

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.btn-visit {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #1976d2;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* WP WRAPPER & HERO */
.wp-container { background: #fcfdfe; padding-bottom: 80px; }
.wp-hero { 
    background: linear-gradient(135deg, #FFEDD5 0%, #F3E8FF 100%);
    padding: 80px 0; 
    color: #1e293b; 
    text-align: center;
    margin-bottom: 50px;
}
.wp-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.wp-lead-text { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto 20px; }
.wp-meta { display: flex; justify-content: center; gap: 20px; font-size: 0.9rem; opacity: 0.8; }

/* LAYOUT */
.wp-layout { display: flex; gap: 40px; }

/* SIDEBAR STICKY */
.wp-sidebar { width: 300px; flex-shrink: 0; }
.wp-nav-card { 
    position: sticky; 
    top: 100px; 
    background: white; 
    border-radius: 16px; 
    padding: 25px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.nav-title { margin-bottom: 15px; color: #1e293b; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.wp-nav ul { list-style: none; padding: 0; }
.wp-nav a { 
    display: block; 
    padding: 12px 0; 
    color: #64748b; 
    text-decoration: none; 
    border-bottom: 1px solid #f1f5f9;
    transition: 0.3s;
}
.wp-nav a:hover, .wp-nav a.active { color: #1976d2; padding-left: 10px; font-weight: 600; }

/* MAIN CONTENT */
.wp-main { flex-grow: 1; background: white; padding: 40px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.wp-section-item { margin-bottom: 60px; }
.section-title { font-size: 2rem; color: #1e293b; margin-bottom: 20px; border-left: 5px solid #1976d2; padding-left: 15px; }
.section-body { color: #475569; font-size: 1.1rem; line-height: 1.8; }
.contact-box { background: #f8fafc; padding: 30px; border-radius: 12px; text-align: center; }
.email-btn { display: inline-block; margin-top: 10px; color: #1976d2; font-weight: 700; font-size: 1.2rem; text-decoration: none; }

/* ABOUT US BASE */
.about-container {
    background: #fcfdfe; 
    padding-bottom: 80px;
}

.about-hero {
    background: linear-gradient(135deg, #FFEDD5 0%, #F3E8FF 100%);
    padding: 80px 0; 
    color: #1e293b; 
    text-align: center;
    margin-bottom: 50px;
}
.about-hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.about-hero .lead { font-size: 1.3rem; opacity: 0.9; max-width: 800px; margin: 0 auto; }

/* GRID LAYOUTS */
.about-mission {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 !important;
    padding-top: 0 !important;
}
.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.about-text {
    flex: 1;
}
.about-text h2 { font-size: 2.5rem; color: #1e293b; margin: 15px 0; }
.about-text p { color: #475569; line-height: 1.8; font-size: 1.1rem; }
.about-text .badge {
    display: inline-block;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}
/* STATS SECTION */
.about-stats {
    background: #1e293b;
    color: #fff;
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
}

.about-features {
    padding: 30px 20px !important;
    background-color: #f1f3f5 !important; /* Nền xám nhạt đệm cho thẻ trắng */
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    margin: 25px 0 !important;
}

.about-features h2 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    background: #ffffff !important;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07) !important; /* Tăng bóng nổi */
    border: 1px solid #dcdfe6 !important;                 /* Viền đậm rõ nét */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: #0d6efd !important;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0 !important;
    color: #111111;
}

.feature-item p {
    font-size: 13px;
    color: #495057;
    line-height: 1.45;
    margin: 0 !important;
}

/* end About us */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 { font-size: 2.5rem; color: #60a5fa; margin-bottom: 10px; }
.stat-item p { font-size: 0.9rem; opacity: 0.8; }

/* CORE VALUES */
.core-values { padding: 80px 0; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.value-card .icon { font-size: 3rem; margin-bottom: 20px; }
.value-card h4 { font-size: 1.5rem; color: #1e293b; margin-bottom: 15px; }
.value-card p {
    margin: 0 !important;
    font-size: 13px;
    color: #495057;
    line-height: 1.45;
}
/* DOCUMENT WRAPPER */
.doc-wrapper { background: #fdfdfd; padding-bottom: 80px; }

/* HERO SECTION */
.doc-hero {
    background: linear-gradient(135deg, #FFEDD5 0%, #F3E8FF 100%);
    color: #1e293b;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.doc-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.doc-hero p { opacity: 0.8; font-size: 1.1rem; }
.doc-search { margin-top: 25px; max-width: 500px; margin-inline: auto; }
.doc-search input {
    width: 100%; 
    padding: 12px 20px; 
    border-radius: 30px; 
    border: 1px solid rgba(255,255,255,0.2); 
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white; /* Đảm bảo nền ô search màu trắng */
    color: #333;
}

/* LAYOUT */
.doc-layout { display: flex; gap: 50px; }

/* SIDEBAR (Sticky) */
.doc-sidebar { width: 260px; flex-shrink: 0; }
.doc-nav { position: sticky; top: 100px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #edf2f7; }
.doc-nav h5 { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: #94a3b8; margin-bottom: 15px; }
.doc-nav ul { list-style: none; padding: 0; }
.doc-nav a {
    display: block; padding: 10px 0; color: #475569; text-decoration: none;
    font-weight: 500; border-bottom: 1px solid #f8fafc; transition: 0.3s;
}
.doc-nav a:hover { color: #1976d2; padding-left: 8px; }
.doc-nav a.active {
    color: #1976d2;
    font-weight: 700;
    padding-left: 10px;
    border-left: 2px solid #1976d2;
}

/* MAIN CONTENT */
.doc-main { flex-grow: 1; max-width: 800px; }
.doc-article { margin-bottom: 80px; scroll-margin-top: 120px; }
.doc-article h2 { font-size: 2rem; color: #1e293b; margin-bottom: 20px; }
.doc-body { color: #334155; line-height: 1.8; font-size: 1.1rem; }

/* CODE BLOCK */
pre {
    background: #1e293b; color: #38bdf8; padding: 20px;
    border-radius: 8px; overflow-x: auto; margin-top: 20px;
    font-family: 'Courier New', monospace;
}
/* SCORE AREA */

/* Container chính cho vùng giá */
.score-price-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Card giá */
.score-card {
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 20px;
}

.score-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.score-price {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.score-unit {
    font-size: 14px;
    color: #cbd5e1;
    margin-left: 5px;
}

.score-trend {
    font-size: 12px;
    margin-top: 2px;
}

.trend-up { color: #4ade80; font-weight: bold; }
.trend-down {
    color: #f56565 !important; /* Đỏ */
}
.trend-steady {
    color: #a0aec0 !important;
}
/* Nút bấm hành động */
.btn-buy-score {
    background: #fff;
    color: var(--primary-blue);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-buy-score:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.05);
}

/* ADD NEWCODE BUY SORE */

.hero-container-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.hero-intro-card {
    flex: 1 1 50%;
    width: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero-intro-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}
.hero-intro-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
}
.hero-intro-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Style cho khối Giá Score */
.hero-score-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    flex-shrink: 0; /* Không cho khối này bị bóp nhỏ */
}

.hero-score-mini.mini-card {
    flex: 0 1 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}
.mini-header .btn-action-hot {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 8px;
    line-height: 1.2;
}
.hero-score-mini .mini-label {
    color: #475569 !important; /* Xám Slate đậm */
}
.mini-label {
    color: #475569;
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hero-score-mini .mini-price {
    color: #0F172A !important; /* Xám đen Navy */
}
.mini-price {
    color: #0F172A;
    font-size: 28px;
    font-weight: 900;
}
.hero-score-mini .mini-unit {
    color: #64748B !important;
}
.mini-unit {
    color: #64748B;
    font-size: 14px;
    opacity: 0.8;
    margin-left: 5px;
}

.mini-trend {
    font-size: 12px;
    color: #4ade80;
    font-weight: bold;
    margin-top: 2px;
}

.btn-action-hot {
    background: #1976D2;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}
.btn-action-hot:hover {
    background: #1565C0;
    transform: scale(1.03);
}
.hero-score-mini .btn-action-hot {
	/*
    background: #1976D2 !important;
    */
    color: #FFFFFF !important;        /* Chữ màu trắng */
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}
.hero-score-mini .btn-action-hot:hover {
    background: #1565C0 !important;
    transform: scale(1.03);
}
/* Style cho khối App HOT */
.hot-apps-scroll-wrapper {
    width: 100%;
    overflow-x: auto; /* Cho phép cuộn ngang */
    padding-bottom: 5px;
}
.hot-apps-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.hot-apps-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.hot-apps-preview {
    flex: 1;
    background: rgba(255, 255, 255, 0.05); /* Nền cực mờ để tạo khung */
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Cắt phần thừa khi cuộn */
}

.hero-score-mini, .hot-apps-preview {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa nội dung theo chiều dọc */
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08); /* Tạo nền mờ nhẹ đồng nhất */
    backdrop-filter: blur(10px);
}

.hot-title { font-size: 12px; font-weight: 800; opacity: 0.8; margin-bottom: 10px; display: block; }

.hot-apps-list {
    display: flex;
    gap: 15px;
    width: max-content; /* Giữ nguyên cho danh sách dàn hàng ngang */
}

.hot-item {
    background: #FFFFFF; /* Đổi sang nền trắng đục giúp thẻ tách biệt hoàn toàn khỏi nền xanh */
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1E293B; /* Chữ xám đen đậm giúp đọc rõ ràng */
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Thêm bóng mờ tạo độ nổi khối nhẹ */
    transition: all 0.3s ease;
    min-width: 190px;
}

.hot-item:hover { 
    background: #FFFFFF; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Tăng bóng nổi khi di chuột vào */
}

/* Khung chứa Icon giỏ hàng: Tạo một background tròn nổi bật */
.hot-icon { 
    font-size: 22px; 
    width: 42px;
    height: 42px;
    background: #EFF6FF; /* Nền xanh pastel nhẹ tôn icon giỏ hàng */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Bổ sung CSS cho .hot-info */
.hot-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.hot-name { 
    font-weight: 700; 
    font-size: 14px; 
    color: #0F172A; /* Tông chữ đen xanh đậm */
    line-height: 1.2;
}

.hot-status { 
    font-size: 11px; 
    color: #2563EB; /* Màu xanh nổi bật cho chữ "New / Mới ra mắt" */
    font-weight: 600;
}

/* --- MYSELLER TICKER BOARD --- */

.myseller-ticker-container {
    display: flex;
    align-items: center;
    background: #F1F5F9; /* Nền xám nhẹ dịu mắt */
    border: 1px solid #E2E8F0; /* Viền xám sáng tinh tế */
    border-radius: 8px;
    padding: 12px 15px;
    margin: -60px auto 20px auto; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Bóng đổ nhẹ nhàng trên nền sáng */
    width: 100%;
}

.ticker-badge {
    background: linear-gradient(135deg, #2563EB, #1D4ED8); /* Gradient xanh nổi bật */
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ticker-content {
    flex: 1;
    position: relative;
    height: auto; 
}

.ticker-wrapper {
    position: relative;
    width: 100%;
    height: auto; 
}

.ticker-item {
    display: none; 
    color: #1E293B; /* Chuyển sang xám đậm để tương phản rõ trên nền xám nhẹ */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5; 
}

.ticker-item.active {
    display: block; 
    animation: fadeInTicker 0.4s ease-in-out;
}

/* Tùy chọn bổ sung: Đảm bảo các đường link bên trong ticker hiển thị nổi bật */
.ticker-item a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.ticker-item a:hover {
    text-decoration: underline;
}

/* Hiệu ứng mờ dần nhẹ nhàng thay cho hiệu ứng trượt (vì trượt dễ lỗi khi chiều cao thay đổi) */
@keyframes fadeInTicker {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====================== MEDIA QUERIES (FULL RANGE) ====================== */

/* 1. MÀN HÌNH SIÊU NHỎ (Dưới 480px) */
@media (max-width: 480px) {
    .logo h1 a { font-size: 1.3rem; } 
    .tab-btn { font-size: 0.8rem; padding: 10px 2px; }
    .info-card, .app-card { padding: 18px; }
    .amount { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; } /* Xếp dọc stats trên mobile nhỏ */
    body { padding-bottom: 130px !important; }
    
    .form-container {
        /* Dành ra 80px phía trên để tránh Header cố định */
        padding-top: 80px !important; 
        padding-right: 10px;
        padding-bottom: 30px;
        padding-left: 10px;
        
        /* Căn lên mép trên thay vì giữa màn hình để tránh bị đè */
        align-items: flex-start !important; 
    }
    .form-card {
        border-radius: 15px;
        padding: 25px 15px;
        box-shadow: none; /* Bỏ đổ bóng trên mobile nhỏ để nhìn gọn hơn */
        border: none;
        background: transparent; /* Tiệp màu nền body */
    }
    .form-card h2 { font-size: 1.5rem; }
    .btn-primary { padding: 16px; } /* Nút to hơn cho dễ bấm bằng tay */
    
    .hero-title { font-size: 1.6rem; }
    .hero-desc { font-size: 0.9rem; }
    /*
    .dashboard-container {
        padding-top: 75px; 
    }
    */
    .dashboard-container {
        padding-top: 10px !important; /* Giảm thêm xuống 10px cho màn hình rất nhỏ */
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .doc-btn { padding: 12px 5px; }
    .roadmap-header h1 { font-size: 1.8rem; }
    .timeline-item { padding-left: 45px; }
    .timeline::before { left: 15px; }
    .timeline-dot { left: 6px; }
    .wp-hero h1 { font-size: 2rem; }
    .wp-main { padding: 20px; }
    .wp-nav ul { 
        grid-template-columns: 1fr !important; /* Màn hình quá nhỏ thì xếp 1 cột */
    }
    .section-title { font-size: 1.5rem; }
    .about-hero h1 { font-size: 2.2rem; }
    .stat-item h3 { font-size: 1.8rem; }
    .about-text h2 { font-size: 1.8rem; }
    .about-stats { padding: 30px 15px; }
    .doc-hero h1 { font-size: 1.8rem; }
    .doc-hero p { font-size: 0.95rem; padding: 0 10px; }
    .doc-article h2 { font-size: 1.5rem; }
    .doc-main { padding: 0 10px; }
    pre { font-size: 0.85rem; padding: 15px; }
}

/* Responsive */

/* 2. ĐIỆN THOẠI & TABLET DỌC (Dưới 768px) */
@media (max-width: 767px) {
	.hero-intro-card,	
	.hero-score-mini.mini-card {
        flex: 0 0 100%; /* Không co, không giãn, cố định 100% */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; /* Đảm bảo padding/border không làm tràn màn hình */
    }
    .hero-intro-card {
        padding: 16px;
    }
    
    .myseller-ticker-container {
        display: flex; 
        flex-direction: column; /* ĐỔI THÀNH COLUMN: Xếp dọc trên mobile để text có 100% chiều rộng */
        align-items: flex-start;
        gap: 8px; /* Khoảng cách giữa Badge và Chữ */
        padding: 12px;
        margin: -60px auto 15px auto; 
    }

    .ticker-badge {
        font-size: 10px;
        padding: 3px 6px;
        margin-right: 0; 
    }

    .ticker-content {
        width: 100%;
        height: auto; /* ĐỔI THÀNH AUTO */
    }

    .ticker-item {
        font-size: 13px; 
        line-height: 1.5;
        width: 100%;
        /* Cho phép tự động ngắt và xuống hàng khi hết chiều rộng mobile */
        white-space: normal !important; 
        text-overflow: clip !important;
        overflow: visible !important;
    }

    .addapp-card{
        padding:25px 18px;
        margin:15px;
    }
    .add-app-page {
        margin: 20px;
        padding: 20px;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
        color: #000000; /* Chuyển màu 3 vạch SVG sang màu đen */
        cursor: pointer;
    }

    /* Hiệu ứng mượt hơn khi rê chuột/chạm */
    .menu-toggle:hover {
        opacity: 0.8;
    }
    /*
    .dashboard-container {
        padding-top: 80px; 
        margin-top: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
	*/
	
	.dashboard-container {
        padding-top: 15px !important; /* Giảm từ 80px xuống 15px để kéo nội dung lên sát */
        margin-top: 0 !important; 
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .search-bar {
        margin-bottom: 20px;
    }
    
    /* chỉnh lại thanh search hạ xuống */
    .index-search-adjust {
        margin-top: 5px; 
    }
    .tab-navigation {
        justify-content: center; /* Căn giữa các nút Tab trên mobile */
    }
    .close-menu {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        color: #1976d2;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
    }
    .nav-menu {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 280px; 
        height: 100vh;
        visibility: hidden; 
        opacity: 0; 
        background: white;
        flex-direction: column;
        padding: 80px 25px 25px 25px !important; 
        transition: 0.4s ease-in-out;
        z-index: 999;
        box-shadow: -8px 0 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { 
    	right: 0; 
    	transform: translateX(0); 
    	visibility: visible; 
    	opacity: 1;
    }
    .nav-menu.active .close-menu {
        display: block !important; /* Ép buộc hiển thị */
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu a { 
	    width: 100%; 	    
	    padding: 15px 0; 
    }
    .nav-menu > a, .dropdown { width: 100%; height: auto; padding: 12px 0; border-bottom: 1px solid #eee; }
    .nav-menu > a, .dropdown-toggle { width: 100%; padding: 15px 0; border-bottom: 1px solid #eee; }
    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-section {
        padding: 30px 10px; /* Giảm padding để tiết kiệm diện tích */
        margin-top: 60px;
    }
    
    .btn-large { width: 100%; padding: 14px 20px; }
    .form-card {
        padding: 30px 20px;
    }
    .lang-select-wrapper { width: 100%; padding: 20px 0; }
    .lang-select { width: 100%; }
    
    .timeline {
        margin: 0 !important;
        padding: 10px 0 !important;
    }
    .timeline::before {
        left: 15px !important;
        width: 2px !important; /* Làm thanh mảnh hơn trên mobile */
    }
    .timeline-dot {
        left: 6px !important; /* (15px - (20px/2) + 1) để căn giữa đường kẻ 2px */
        width: 18px !important;
        height: 18px !important;
        top: 4px !important;
    }
    .timeline-content {
        padding: 15px !important;
        margin-right: 5px !important; /* Cách lề phải 5px cho thoáng */
        border-radius: 12px !important;
        width: auto !important;
    }
    .timeline-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .timeline-date {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }
    .status-badge {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
    .timeline-item {
        padding-left: 35px !important; /* Chừa đủ 35px cho dot và đường kẻ */
        margin-bottom: 25px !important;
        width: 100% !important;
        left: 0 !important; /* Đảm bảo không bị lệch nếu có class left/right */
    }
    .roadmap-page .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .wp-layout { 
        flex-direction: column !important; 
        gap: 20px !important;
    }
    .wp-sidebar { 
        width: 100% !important; 
    }
    .wp-nav-card { 
        position: relative !important; 
        top: 0 !important; 
        padding: 15px !important;
        margin-bottom: 20px;
    }
    .wp-nav ul { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; /* Chia 2 cột đều nhau */
        gap: 10px !important; 
    }
    .wp-nav a { 
        border: 1px solid #e2e8f0 !important; 
        padding: 12px 8px !important; 
        border-radius: 10px !important; 
        text-align: center !important; 
        font-size: 0.85rem !important;
        background: #f8fafc;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        line-height: 1.2;
    }
    .wp-main { 
        padding: 20px !important; 
        width: 100% !important;
    }

    .wp-hero {
        padding: 15px 15px !important;
    }

    .wp-hero h1 {
        font-size: 1.8rem !important;
    }

    .wp-container {
        padding-top: 60px; /* Cách header fixed 60px */
    }

    .doc-wrapper {
        padding-top: 60px;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .about-grid {
        flex-direction: column-reverse;
        gap: 15px;
    }
    .about-features {
        padding: 20px 12px !important;
        margin: 15px 0 !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-grid, .stats-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Đưa ảnh lên trên text cho dễ nhìn */
    }
    .about-image img {
        max-height: 250px; /* Mobile thì ảnh thấp hơn nữa */
    }
    /*
    .about-hero { padding: 60px 15px; }
    */
    .about-hero {
        margin-top: 60px !important;
        padding-top: 20px !important;
        padding-bottom: 5px !important;
        margin-bottom: 0 !important;
    }
    .about-mission {
        padding-top: 5px !important;
        padding-bottom: 15px !important;
    }
    .stats-grid { gap: 40px; }
    .doc-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .doc-sidebar {
        width: 100% !important;
        position: sticky;
        top: 60px; /* Dưới header */
        z-index: 100;
        background: #fdfdfd;
        margin-bottom: 10px;
    }
    .doc-nav {
        position: relative !important;
        top: 0 !important;
        padding: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    }
    .doc-nav h5 {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }
    .doc-nav ul {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding-bottom: 5px !important;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .doc-nav ul::-webkit-scrollbar {
        display: none;
    }
    .doc-nav li {
        flex: 0 0 auto !important; /* Không cho các mục co lại */
    }
    
    .doc-nav a {
        border: 1px solid #e2e8f0 !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        white-space: nowrap !important; /* Không cho chữ xuống dòng */
        font-size: 0.85rem !important;
        background: #fff;
    }
    .doc-nav a.active {
        background: #1976d2 !important;
        color: #fff !important;
        border-color: #1976d2 !important;
        border-left: none !important; /* Bỏ border-left của desktop */
    }
    .doc-main {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    .doc-article h2 {
        font-size: 1.6rem !important;
    }

    .doc-hero {
        padding: 40px 15px !important;
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap; /* Tránh tràn màn hình nếu tên trang quá dài */
        justify-content: center;
        gap: 8px;
    }

    .footer-nav .sep {
        font-size: 0.7rem; /* Làm dấu gạch nhỏ lại */
    }
    .score-price-container {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .score-card {
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-container-flex {
        flex-direction: column; /* Chuyển sang xếp dọc trên Mobile */
    }
    
    .hot-apps-preview {
        margin-bottom: 10px; 
        padding-bottom: 45px; /* Đẩy nội dung bên trong lên cao một chút */
    }
    .hero-score-mini, .hot-apps-preview {
        min-height: auto; /* Bỏ ép chiều cao cố định trên mobile */
        padding: 15px;
    }
    
    .hot-apps-list {
        display: flex;
        flex-direction: row !important; /* Ép buộc dàn hàng ngang */
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    .hot-item {
        min-width: 160px; /* Thu nhỏ thẻ app một chút trên mobile */
        flex-shrink: 0;
    }
    .form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: calc(100vh - 60px);
        
        /* Chống đè Header: 60px (chiều cao Header) + 20px (khoảng thở) */
        padding-top: 80px !important; 
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* 3. TABLET NGANG & LAPTOP NHỎ (Trên 768px) */
@media (min-width: 768px) {
    .tab-navigation { width: fit-content; padding: 6px; }
    .tab-btn { padding: 10px 30px; min-width: 160px; }
    
    .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .info-container { grid-template-columns: repeat(2, 1fr); }
    .user-hero { grid-column: span 2; }
    
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
    }
    .footer-left, .footer-right {
        flex: 1;
    }
    .footer-center {
        flex: 2; /* Chiếm nhiều không gian hơn cho menu */
        display: flex;
        justify-content: center;
    }

    .footer-right {
        text-align: right;
    }
    
    .footer-nav {
        gap: 15px; /* Tăng khoảng cách cho thoáng trên máy tính */
    }
    .menu-toggle { display: none; }
    
    .nav-menu{
        right:auto;
        height:auto;
        width:auto;
        z-index:auto;
        position: static;   /* QUAN TRỌNG NHẤT */
        flex-direction: row;
        padding: 0 !important;
    }
    
    .hero-section { padding: 80px 20px; }
    .hero-content { max-width: 700px; }
    .hero-title { font-size: 2.2rem; }
    
    .doc-btn { padding: 20px; }
    .doc-icon { font-size: 2rem; }
    .doc-text { font-size: 0.95rem; }
    /* Thiết kế Timeline so le nếu muốn chuyên nghiệp hơn */
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; }
    .timeline-item:nth-child(even) { margin-left: auto; padding-left: 40px; }
    .timeline-item:nth-child(odd) { text-align: right; padding-right: 40px; }
    .timeline-dot { left: 50%; transform: translateX(-50%); top: 10px; }
    
    /* Chỉnh badge và nút cho bên lẻ (nằm phải) */
    .timeline-item:nth-child(odd) .status-badge { float: right; }
    .timeline-item:nth-child(odd) .btn-visit { float: right; margin-bottom: 15px;}
    .wp-sidebar { width: 220px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .values-grid { grid-template-columns: 1fr 1fr 1fr; }
    /* Document bổ sung cho Tablet ngang */
    .doc-layout { gap: 30px; }
    .doc-sidebar { width: 220px; }
    .doc-hero { padding: 80px 0; }
    .lang-select {
        width: 55px; 
        height: 32px;
        padding: 0 5px;
    }
    .close-menu {
        display: none !important;
    }
}

/* 4. DESKTOP TIÊU CHUẨN (Trên 1024px) */
@media (min-width: 1024px) {
    .apps-grid { grid-template-columns: repeat(3, 1fr); }
    .info-container { grid-template-columns: repeat(3, 1fr); }
    .user-hero { grid-column: span 1; }
    .wallet-section { grid-column: span 2; }
    .search-bar {
        /* Giới hạn chiều dài lại khoảng 400px - 500px thay vì 100% */
        max-width: 450px; 
        margin-left: 0; /* Căn trái hoặc margin: 0 auto để căn giữa */
    }
    
    .search-bar input {
        /* Giảm padding để thanh search thanh thoát (thấp) hơn */
        padding: 10px 45px 10px 18px;
    }
    .hero-title { font-size: 2.8rem; }
    .hero-content { max-width: 850px; }
    .hero-desc { font-size: 1.1rem; max-width: 750px; }
    .doc-btn:hover {
        transform: translateY(-5px);
        border-color: #1976d2;
        box-shadow: 0 10px 15px -3px rgba(25, 118, 210, 0.1);
    }
    .roadmap-header h1 { font-size: 3rem; }
    .wp-sidebar { width: 220px; }
    /* Ép container của header full chiều ngang */
    .main-header .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 40px;
        position: relative;
        z-index: 1001; /* Đảm bảo header nằm trên mọi thứ */
    }
    
    
    /* 3. Đảm bảo nav-menu hiển thị đúng chuẩn desktop */
    .nav-menu {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }
    .container {
        max-width: none !important; /* Loại bỏ giới hạn 1200px */
        width: 100% !important;     /* Ép chiều rộng đạt 100% */
        padding: 0 40px;            /* Thêm một chút khoảng đệm hai bên để nội dung không dính sát mép màn hình */
        margin: 0; 
    }
    /* Document bổ sung cho Laptop */
    .doc-sidebar { width: 260px; }
    .doc-layout { gap: 50px; }
    .doc-main { max-width: 850px; }
    
}

/* 5. MÀN HÌNH PC LỚN (Trên 1280px) */
@media (min-width: 1280px) {
    .apps-grid { grid-template-columns: repeat(4, 1fr); }
    .container {
        max-width: none !important; /* Phá bỏ giới hạn 1200px hoặc 1280px */
        width: 100% !important;     /* Trải dài hết chiều ngang trình duyệt */
        padding: 0 40px;            /* Giữ khoảng cách an toàn 40px để logo/nút không dính sát mép */
        margin: 0 auto;             /* Căn giữa nếu có sai số */
    }
    .hero-title { font-size: 3.2rem; }
    .hero-content { max-width: 1000px; }
    .wp-layout { gap: 60px; }
    /* Document bổ sung cho Desktop lớn */
    .doc-main { max-width: 900px; }
    .doc-body { font-size: 1.15rem; }
}

/* Keyframes hiệu ứng mượt */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* MENU CLEAN RESET */
.nav-menu a,
.nav-menu a:visited,
.nav-menu a:hover,
.nav-menu a:active {
    text-decoration: none;
    color: inherit;
}
/* ================= ADD APP PAGE ================= */

.addapp-card{
    background:#fff;
    max-width:800px;
    margin:30px auto;
    padding:35px;
    border-radius:16px;
    border:1px solid #e2e8f0;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.addapp-card h2{
    font-size:1.8rem;
    margin-bottom:8px;
    color:#1e293b;
}

.addapp-card p{
    color:#64748b;
    margin-bottom:25px;
}

.addapp-form textarea,
.addapp-form select{
    width:100%;
    padding:14px 18px;
    border:2px solid #f1f5f9;
    border-radius:12px;
    font-size:1rem;
    background:#f8fafc;
    transition:.3s;
}

.addapp-form textarea:focus,
.addapp-form select:focus{
    outline:none;
    border-color:#1976d2;
    background:#fff;
    box-shadow:0 0 0 4px rgba(25,118,210,0.1);
}

.addapp-form label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#334155;
}

.addapp-form input[type="file"]{
    padding:10px;
    background:#f8fafc;
    border-radius:10px;
}

/* ===== ADD APP PAGE ===== */

.add-app-page {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.add-app-page h2 {
    margin-bottom: 25px;
    text-align: center;
}

.add-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.add-form label {
    margin-bottom: 6px;
    font-weight: 600;
}

.add-form input,
.add-form select,
.add-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.add-form textarea {
    resize: vertical;
}

.btn-submit {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}
