/* ================== ROOT VARIABLES & FONT ================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* --- CÁC MÀU SÁNG (MẶC ĐỊNH CHUẨN) --- */
:root {
    --primary-color: #8A5023;
    --primary-hover: #FFB785;
    
    --bg-color: #FFF8F5;            /* Nền màu chung bên ngoài */
    --light-bg: #F3DED3;            /* Nền của Card tính năng */
    --text-color: #221A15;          /* Màu Text văn bản đen */
    --hero-bg: linear-gradient(135deg, #f0f8ff, #e6f2ff); /* Dải lướt sáng khu Section app */
    --border-color: #eeeeee;        /* Màu Viền trắng/mờ */
    --input-border: #dddddd;        /* Border cho các khu nhập Form */
    --tick-icon: #e6f2ff;           /* Icon tích xanh mờ của Chữ Check*/
    
    --nav-height: 70px;
}

/* --- HOÁN VỊ ĐỘC LẬP TỪ CLASS DARK-MODE ĐÁ BẬT CÔNG TẮC BẰNG JAVASCRIPT --- */
body.dark-mode {
    --primary-color: #FFB785;
    --primary-hover: #8A5023;
	
    --bg-color: #19120D;             /* Nền gốc thành Mực Tối (OLED Standard) */
    --light-bg: #52443B;             /* Header & Content Box ngả xám ko phản xạ quang  */
    --text-color: #F0DFD6;           /* Lời giới thiệu đổi Phông Chữ sang sắc sáng sủa */
    --hero-bg: linear-gradient(135deg, #161e2b, #212c40); 
    --border-color: #2c2c2c;
    --input-border: #444444;
    --tick-icon: #153359;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Be Vietnam Pro', sans-serif; }
body { color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s;}

/* ================== HEADER BỐ CỤC CHUẨN ================== */
header { background: var(--light-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center; transition: background 0.3s; border-bottom: 1px solid var(--border-color);}
.nav-container { width: 100%; max-width: 1200px; margin: auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary-color); text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 25px; transition: all 0.3s ease-in-out; }
nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s; font-size: 16px; }
nav ul li a:hover, .nav-active { color: var(--primary-color); }

/* KHU VỰC RIGHT-ACTIONS VÀ NÚT TOGGLE */
.right-actions { display: flex; align-items: center; gap: 15px;}
.language-switcher { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 999px; background: transparent; color: var(--text-color); transition: background-color 0.2s ease, border-color 0.2s ease; }
.language-switcher:hover, .language-switcher:focus-within { background-color: var(--border-color); border-color: var(--primary-color); }
.language-switcher-icon { font-size: 14px; line-height: 1; color: inherit; }
.language-select { width: 58px; min-width: 58px; height: 28px; border: none; background: transparent; color: inherit; font-size: 13px; font-weight: 700; cursor: pointer; outline: none; text-align: center; text-align-last: center; }
.language-select option { background: var(--light-bg); color: var(--text-color); }
.theme-toggle { background: transparent; border: none; font-size: 22px; cursor: pointer; transition: transform 0.2s ease; outline: none; border-radius: 50%; width: 40px; height: 40px;}
.theme-toggle:hover { transform: scale(1.1); background-color: var(--border-color); }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--text-color); background: transparent; border: none; padding: 0; line-height: 1; width: 40px; height: 40px; }
.standalone-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 20px 20px 0; }

/* LAYOUT CONTAINER CHUNG */
.container { width: 100%; max-width: 1200px; margin: auto; padding: 60px 20px; }
section { background: var(--bg-color); /* Thừa kế chung màu web chính xác */ margin-bottom: 5px; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 40px; color: var(--primary-color); }
.content-box { max-width: 900px; margin: auto; background: var(--light-bg); padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: justify; border: 1px solid var(--border-color);}
.content-box h2 { margin-top: 25px; margin-bottom: 10px; color: var(--primary-color); font-size: 22px; }
.content-box ul { margin-left: 20px; margin-bottom: 15px; }

/* OVERVIEW HERO SECTION (TRANG CHỦ) */
#overview { background: var(--hero-bg); padding: 80px 20px; display: flex; align-items: center; min-height: calc(100vh - var(--nav-height)); transition: background 0.3s; border-bottom: 1px solid var(--border-color);}
#overview .container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.hero-content { flex: 1; max-width: 550px; }
.hero-content h1 { font-size: 48px; margin-bottom: 20px; line-height: 1.2; font-weight: 800; color: var(--text-color); }
.hero-content p { font-size: 18px; color: var(--text-color); margin-bottom: 35px; opacity: 0.8;} /* Lỗ hiệu ứng hơi mờ sành điệu */

/* STORE BUTTONS */
.store-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-store { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; }
.btn-store:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-apple { background: #111; color: #fff; }
body.dark-mode .btn-apple { border: 1px solid #555;}
.btn-google { background: var(--light-bg); color: var(--text-color); border: 1px solid var(--input-border); }
.btn-store svg { width: 30px; height: 30px; }
.btn-text { text-align: left; line-height: 1.2; }
.btn-text small { font-size: 11px; font-weight: 400; text-transform: uppercase; }
.btn-text span { font-size: 16px; display: block; margin-top: 2px; }

/* TẢI LÊN MÀN HÌNH KHÔNG CHÈN PHONG ( HERO IMG) */
.hero-mockup { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.hero-image { max-width: 100%; height: auto; max-height: 600px; object-fit: contain; border-radius: 20px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* ================= LAYOUT KIỂU ĐAN XEN CHUẨN MỚI (CHỈ MÀN CHI TIẾT APP) =================*/
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 90px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; max-width: 520px; }
.feature-text h3 { font-size: 30px; color: var(--text-color); margin-bottom: 20px; line-height: 1.3; font-weight: 700;}
.feature-text p { font-size: 18px; color: var(--text-color); margin-bottom: 20px; opacity: 0.8;}

/* DANH SÁCH LƯỚI / TICK MÀU VÀ NÚT LIỆT KÊ TÍNH NĂNG TƯỜNG MINH */
.feature-list { list-style: none; padding-left: 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: 15px; font-size: 16px; font-weight: 600; color: var(--text-color); }
.feature-list li::before { content: '✔'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--tick-icon); color: var(--primary-color); font-size: 13px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--primary-color);}

.feature-image { flex: 1; display: flex; justify-content: center; }
.screenshot-img { width: 100%; max-width: 320px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); transition: transform 0.4s ease, box-shadow 0.4s ease; border: 2px solid var(--border-color); } /* Cải thiện giao thoa Bóng & Đậm viền điện thoại vào nếp đen ko sợ loè mờ*/
body.dark-mode .screenshot-img { box-shadow: 0 15px 30px rgba(0,0,0,0.6); } /* Nhúng app cho đổ đậm shadow ngoài khi ở Black Screen*/

.screenshot-img:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,123,255,0.3); }
.feature-row:last-child { margin-bottom: 20px; }


/* REVIEW CARD Ở TRANG CHỦ & PHẦN ĐÁNH GIÁ LIÊN MẠCH TRƯỢT CAROUSEL BÓ ĐƯỜNG*/
.reviews-grid { 
    display: flex; 
    gap: 25px; 
    overflow-x: auto; 
    padding-bottom: 25px; /* khoảng dư dưới chân để chứa lớp Shadow bóng */
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
}
.reviews-grid::-webkit-scrollbar { display: none; }

.review-card { 
    scroll-snap-align: center; 
    min-width: 330px; 
    width: 350px;
    max-width: 85vw; /* Kẹp màn chống chèn vỡ đối với iPhone có Màn Hình cực kì bé */
    flex: 0 0 auto; 
    padding: 30px; 
    background: var(--light-bg); 
    border-radius: 20px; /* Góc bo tròn bự, quyến rũ đặc biệt UI-2026 */
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
    display: flex;
    flex-direction: column;
    /* Dùng viền Top lấy giá trị từ class var(--theme-color) cài đặt thẳng bên phía HTML */
    border-top: 8px solid var(--theme-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Đóng bo chống đen màn Hình khi bật nút Đêm, làm nổi viền nhạy 1 xíu thôi  */
body.dark-mode .review-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 15px 50px rgba(0,0,0,0.12); }

/* Đổ Sao màu Cam chuẩn Giao Diện đánh giá Review Star */
.review-card .stars {
    color: #ffc107; 
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.review-card .review-text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.85;
    flex: 1; /* Thao tác phép mầu: Dòng review Card dài hay ít chữ đều đì đặn avatar thẳng dóc vào đáy ! */
}

/* KHỐI USER TRUY VẤN - Avatar Chữ Tròn và Name - GenZ Text Flexer */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; 
}
.avatar {
    width: 48px;
    height: 48px;
    background-color: var(--theme-color); /* Background lấy sắc riêng lẻ của Class Var đã đánh số ban nãy! */
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase; /* Bóp ép hai ký tự Avatar tự Viết Hoa in đậm như FB-Avatar! */
}
.user-info h4 { margin: 0; font-size: 16px; color: var(--text-color); font-weight: 700; }
.user-info span { font-size: 14px; color: #888888; font-weight: 400; }

/* Trái Nho "Pagination - Thanh cuộn Slide giả ngập mào da cam phía gầm ReviewBox" */
.review-indicator {
    text-align: center;
    margin-top: 25px;
}
.indicator-bar {
    display: inline-block;
    width: 32px;
    height: 8px;
    background-color: #ff8b7b;
    border-radius: 10px;
}
body.dark-mode .indicator-bar { background-color: #bd4837; }


/* FORM KHÔNG ĐỔ VẾT LIÊN LẠC */
.contact-form { display: flex; flex-direction: column; gap: 15px; }
/* Vẫn đổ Nền background Tự đồng phục Đèn Sáng hoặc Thấp, chữ nhạt ngả xám*/
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; background: var(--light-bg); color: var(--text-color); border: 1px solid var(--input-border); border-radius: 8px; font-size: 16px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 5px rgba(0,123,255,0.3);}
.btn { width: fit-content; padding: 14px 28px; background: var(--primary-color); color: white; text-decoration: none; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 16px; transition: background 0.3s; }
.btn:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: #ffffff; }

/* HELP PAGE */
.help-page { background: var(--bg-color); }
.help-hero { background: linear-gradient(160deg, rgba(138, 80, 35, 0.14), rgba(255, 248, 245, 0.92)); border-bottom: 1px solid var(--border-color); }
body.dark-mode .help-hero { background: linear-gradient(160deg, rgba(255, 183, 133, 0.12), rgba(25, 18, 13, 0.96)); }
.help-hero-inner { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 28px; align-items: center; min-height: calc(100vh - var(--nav-height)); }
.help-hero-copy h1 { font-size: 46px; line-height: 1.15; margin-bottom: 18px; }
.help-hero-copy p { font-size: 18px; opacity: 0.86; max-width: 640px; }
.help-page .container { max-width: 1120px; }
.help-page section { scroll-margin-top: 24px; }
.help-badge { display: inline-flex; align-items: center; padding: 8px 14px; margin-bottom: 18px; border-radius: 999px; background: rgba(138, 80, 35, 0.12); color: var(--primary-color); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.help-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.help-summary-card,
.help-card,
.help-timeline-item { background: var(--light-bg); border: 1px solid var(--border-color); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.help-summary-card { padding: 28px; border-radius: 24px; }
.help-summary-card h2 { margin-bottom: 20px; color: var(--primary-color); font-size: 24px; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.help-card { padding: 24px; border-radius: 20px; }
.help-example { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; max-width: 1040px; margin: 0 auto; }
.help-example + .help-example { margin-top: 28px; }
.help-example.reverse { grid-template-columns: 1fr minmax(280px, 380px); }
.help-example.reverse .help-example-visual { order: 2; }
.help-example.reverse .help-example-copy { order: 1; }
.help-example-visual { position: sticky; top: calc(var(--nav-height) + 24px); }
.help-example-image { width: 100%; display: block; border-radius: 28px; border: 1px solid var(--border-color); box-shadow: 0 18px 40px rgba(0,0,0,0.14); background: #ffffff; }
.help-example-copy { min-width: 0; }
.help-example-copy > p { font-size: 18px; margin-bottom: 18px; opacity: 0.88; }
.help-example-copy h3 { line-height: 1.25; }
.help-step { display: inline-block; margin-bottom: 14px; color: var(--primary-color); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.help-card h3,
.help-timeline-content h3 { margin-bottom: 12px; font-size: 24px; }
.help-card p,
.help-timeline-content p { opacity: 0.84; }
.help-timeline { display: grid; gap: 18px; max-width: 920px; margin: 0 auto; }
.help-timeline.compact { max-width: none; margin-top: 22px; }
.help-timeline-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px; border-radius: 20px; align-items: start; }
.help-timeline-index { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--primary-color); color: #ffffff; font-size: 22px; font-weight: 800; }
.help-notes { text-align: left; }
.help-note-box { padding: 20px; border-radius: 18px; background: rgba(138, 80, 35, 0.08); border: 1px solid rgba(138, 80, 35, 0.18); }
.help-note-box h4 { font-size: 18px; margin-bottom: 8px; color: var(--primary-color); }
.help-note-box p { opacity: 0.9; }

body.dark-mode .help-summary-card,
body.dark-mode .help-card,
body.dark-mode .help-timeline-item { box-shadow: 0 14px 34px rgba(0,0,0,0.28); }
body.dark-mode .help-note-box { background: rgba(255, 183, 133, 0.08); border-color: rgba(255, 183, 133, 0.2); }

@media (max-width: 1180px) {
    .help-page .container { max-width: 1000px; }
    .help-hero-inner { grid-template-columns: 1.2fr 0.9fr; gap: 24px; min-height: auto; }
    .help-hero-copy h1 { font-size: 42px; }
    .help-example { grid-template-columns: minmax(260px, 330px) 1fr; gap: 22px; }
    .help-example.reverse { grid-template-columns: 1fr minmax(260px, 330px); }
    .help-example-copy > p { font-size: 17px; }
}

@media (max-width: 900px) {
    .help-page .container { padding: 44px 20px; }
    .help-hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .help-hero-copy,
    .help-summary-card { max-width: 760px; margin: 0 auto; }
    .help-hero-copy { text-align: center; }
    .help-hero-copy p { max-width: none; }
    .help-hero-actions { justify-content: center; }
    .help-summary-card { padding: 24px; border-radius: 22px; }
    .help-example,
    .help-example.reverse { grid-template-columns: 1fr; gap: 18px; }
    .help-example.reverse .help-example-visual,
    .help-example.reverse .help-example-copy { order: initial; }
    .help-example-visual { position: static; max-width: 430px; margin: 0 auto; }
    .help-example-copy { max-width: 760px; margin: 0 auto; }
}


/* FOOTER TIỂU CẢNH THẤP KO BỊ LOÁ SANG */
footer { background: #1a1a1a; color: #aaaaaa; text-align: center; padding: 40px 20px; margin-top: auto; border-top: 1px solid var(--border-color); }
footer a { color: #ffffff; text-decoration: none; margin: 0 10px; transition: color 0.3s; font-weight: 500;}
footer a:hover { color: var(--primary-color); }


/* ================== THÍCH NGHỊ LẬP ĐỊA ĐIỂM MOBILE - BỘ RESPONSE CUỐI ĐỜI CODE  ================== */
@media (max-width: 991px) {
    #overview .container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-content { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
    .store-buttons { justify-content: center; }

    .feature-row, .feature-row.reverse { flex-direction: column-reverse; text-align: center; gap: 35px; margin-bottom: 70px; }
    .feature-text { max-width: 100%; }
    .feature-list { text-align: left; display: inline-block; margin: 0 auto; }
    .help-hero-inner,
    .help-grid { grid-template-columns: 1fr; }
    .help-hero-copy { text-align: center; }
    .help-hero-actions { justify-content: center; }
    .help-example { grid-template-columns: 1fr; }
    .help-example.reverse { grid-template-columns: 1fr; }
    .help-example.reverse .help-example-visual,
    .help-example.reverse .help-example-copy { order: initial; }
    .help-example-visual { position: static; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .container, #overview { padding: 40px 15px; }
    .section-title { font-size: 28px; margin-bottom: 30px;}
    .hero-content h1 { font-size: 34px; }
    
    .right-actions { gap: 10px; }
    .language-switcher { height: 38px; padding: 0 8px; }
    .language-select { width: 52px; min-width: 52px; font-size: 12px; }
    .menu-toggle { display: block; }
    /* Giọt Menu sổ DropDown tự bắt màu Nền mới ở Class Sáng/Toán chứ không khoác Đen Vẫn như cũ*/
    nav ul { display: none; flex-direction: column; background: var(--light-bg); position: absolute; top: 100%; left: 0; width: 100%; text-align: center; box-shadow: 0 10px 15px rgba(0,0,0,0.15); padding-bottom: 15px; gap: 0; border-top: 1px solid var(--border-color);}
    nav ul.active { display: flex; animation: slideDown 0.3s ease forwards;}
    nav ul li a { display: block; padding: 15px 20px; font-size: 18px; border-bottom: 1px solid var(--border-color);}
    
    .hero-image { max-height: 400px;}
    .screenshot-img { max-width: 250px; }
    
    .content-box { padding: 25px 15px; }
    .btn { width: 100%; text-align: center; }
    .help-hero-inner { min-height: auto; }
    .help-page .container { padding: 36px 16px; }
    .help-hero { padding-top: max(8px, env(safe-area-inset-top)); }
    .help-hero-copy h1 { font-size: 34px; margin-bottom: 14px; }
    .help-hero-copy p { font-size: 16px; }
    .help-badge { font-size: 13px; padding: 7px 12px; margin-bottom: 14px; }
    .help-summary-card { padding: 20px 16px; border-radius: 18px; }
    .help-summary-card h2 { font-size: 22px; }
    .help-card { padding: 20px; }
    .help-example + .help-example { margin-top: 24px; }
    .help-example-copy > p { font-size: 16px; margin-bottom: 16px; }
    .help-example-copy h3,
    .help-card h3,
    .help-timeline-content h3 { font-size: 21px; }
    .help-timeline { gap: 14px; }
    .help-timeline-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; border-radius: 18px; }
    .help-timeline-index { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .help-example-image { border-radius: 22px; }
    .feature-list li { font-size: 15px; margin-bottom: 12px; padding-left: 30px; }
    .help-note-box { padding: 16px; border-radius: 16px; }
}

@media (max-width: 430px) {
    .standalone-actions { padding: 15px 15px 0; }
    .help-page .container { padding: 28px 14px; }
    .help-hero-copy h1 { font-size: 29px; }
    .section-title { font-size: 24px; margin-bottom: 22px; }
    .help-summary-card { padding: 18px 14px; }
    .help-example-visual { max-width: 100%; }
    .help-example-image { border-radius: 18px; }
    .help-example-copy > p { font-size: 15px; }
    .help-example-copy h3,
    .help-card h3,
    .help-timeline-content h3 { font-size: 19px; }
    .help-step { font-size: 12px; margin-bottom: 10px; }
    .feature-list li { font-size: 14px; }
    .help-timeline-item { padding: 14px; }
    .help-note-box h4 { font-size: 16px; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
