/* ==========================================
   1. RESET CSS & ĐỊNH DẠNG CHUNG
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    /* Thay đổi thuộc tính background-size từ cover thành 100% 100% */
    background: url('images/main/main-bg.png') no-repeat center center fixed;
    background-size: 100% 100%; /* 🌟 Ép ảnh co giãn khít theo toàn bộ khung màn hình, giữ đủ chi tiết rìa */
    color: #e2cfa7;[cite: 21]
    padding: 40px 20px;[cite: 21]
    min-height: 100vh;[cite: 21]
}

.container {
    width: 100%;
    max-width: 1200px; /* Giữ nguyên kích thước chuẩn ban đầu của bạn */
    background: transparent;
    /* Căn giữa tự nhiên mà không thay đổi hay làm bành trướng bố cục khung */
    margin: 0 auto;
}

/* ==========================================
   2. HEADER & BANNER TIÊU ĐỀ
   ========================================== */
.header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.logo-img {
    height: 110px; /* Giữ nguyên kích thước đã phóng to */[cite: 21]
    width: auto;[cite: 21]
    object-fit: contain;[cite: 21]
    display: block;[cite: 21]
    
    /* 🌟 THAY ĐỔI Ở ĐÂY: Xóa bỏ bóng đen cũ, thay bằng hiệu ứng phát sáng nhẹ tông vàng/trắng */
    filter: drop-shadow(0px 0px 12px rgba(255, 235, 180, 0.4)); 
}

.title-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 680px;
    padding: 0 15px;
}

.title-img {
    width: 100%;[cite: 4]
    height: auto;[cite: 4]
    object-fit: contain;[cite: 4]
    display: block;[cite: 4]
    
    /* 🌟 SỬA TẠI ĐÂY: Xóa bỏ hoàn toàn bóng đen xung quanh rìa ảnh */
    filter: none !important; 
}

.section-title {
    background: linear-gradient(180deg, #3a301d 0%, #1f190f 100%);
    color: #f6e3be;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 30px;
    border: 1.5px solid #d1b477;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

/* ==========================================
   3. BỐ CỤC CHÍNH (MAIN LAYOUT - FIX LỖI TRIỆT ĐỂ)
   ========================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2.1fr; /* Giữ nguyên tỷ lệ 2 cột vàng của bạn */
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch; /* Đổi lại thành stretch để 2 khung cao bằng nhau tự nhiên */
}

/* Cột bên trái: Thông tin tài khoản */
.info-section-custom {
    background: url('images/main/info-border.png') no-repeat;
    background-size: 100% 100%;
    padding: 85px 25px 35px 25px; /* Giữ padding để chữ không đè lên tiêu đề ảnh */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.info-box-custom {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Chia đều khoảng cách các dòng dọc theo khung */
}

.info-item {
    display: flex;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid rgba(210, 180, 119, 0.12);
}

.info-item:last-child { 
    border-bottom: none;
}

.icon-gold {
    color: #d1b477;
    font-size: 18px;
    width: 30px;
}

.label {
    flex: 1;
    font-weight: 500;
    font-size: 13.5px;
    color: #bfa982;
}

.value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 14.5px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Cột bên phải: Khung chức năng */
.actions-section-custom {
    background: url('images/main/border.png') no-repeat;
    background-size: 100% 100%;
    padding: 85px 40px 45px 40px; /* Tăng nhẹ padding top/bottom để đẩy lưới nút vào giữa lòng đen */
    display: flex;
    align-items: center; /* Căn lưới nút nằm chính giữa trung tâm lòng khung */
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

.action-card {
    background: url('images/main/button.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    border-radius: 0;
    
    /* 🌟 FIX TẠI ĐÂY: Bỏ aspect-ratio lỗi, dùng padding tỷ lệ tự nhiên phù hợp với ảnh button nằm ngang */
    padding: 20px 8px; 
    width: 100%; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Thu hẹp nhẹ khoảng cách icon và chữ cho gọn gàng */
    cursor: pointer;
    background-color: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.action-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.2) drop-shadow(0 8px 15px rgba(209, 180, 119, 0.25));
}

.icon-wrap {
    width: 40px; /* Thu nhỏ nhẹ icon wrap để fit vừa lòng khung ảnh nằm ngang */
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #382c19 0%, #17120a 100%);
    border: 1px solid #6b5635;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-card:hover .icon-wrap {
    border-color: #d1b477;
    box-shadow: 0 0 10px rgba(209, 180, 119, 0.5);
}

.action-card i {
    font-size: 18px; /* Tối ưu lại size icon */
    color: #e2cfa7;
}

.action-card span {
    font-size: 10px; /* Tối ưu size chữ để không bao giờ bị xuống dòng lỗi */
    font-weight: 700;
    text-align: center;
    color: #d0c2a5;
    line-height: 1.2;
    letter-spacing: 0.2px;
}
/* ==========================================
   4. CHÂN TRANG (COMMIT SECTION)
   ========================================== */
.commit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);[cite: 14]
    gap: 20px;[cite: 14]
    background: rgba(23, 19, 14, 0.75);[cite: 14]
    padding: 25px 20px;[cite: 14]
    border-radius: 16px;[cite: 14]
    border: 2px solid #52432a;[cite: 14]
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);[cite: 14]
}

.commit-item {
    display: flex;[cite: 14]
    align-items: center;[cite: 14]
    gap: 15px;[cite: 14]
}

.commit-icon-wrap {
    width: 48px;[cite: 14]
    height: 48px;[cite: 14]
    border-radius: 50%;[cite: 14]
    background: radial-gradient(circle, #3e321c 0%, #1a140b 100%);[cite: 14]
    border: 1.5px solid #866d43;[cite: 14]
    display: flex;[cite: 14]
    align-items: center;[cite: 14]
    justify-content: center;[cite: 14]
    font-size: 20px;[cite: 14]
    color: #d1b477;[cite: 14]
    flex-shrink: 0;[cite: 14]
}

.commit-item h4 {
    font-size: 13px;[cite: 14]
    color: #ffffff;[cite: 14]
    font-weight: bold;[cite: 14]
    margin-bottom: 4px;[cite: 14]
    letter-spacing: 0.5px;[cite: 14]
}

.commit-item p {
    font-size: 11px;[cite: 14]
    color: #a3957a;[cite: 14]
    line-height: 1.3;[cite: 14]
}

/* ==========================================
   4. CHÂN TRANG (COMMIT SECTION)
   ========================================== */
.commit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: rgba(23, 19, 14, 0.75);
    padding: 25px 20px;
    border-radius: 16px;
    border: 2px solid #52432a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.commit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.commit-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #3e321c 0%, #1a140b 100%);
    border: 1.5px solid #866d43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d1b477;
    flex-shrink: 0;
}

.commit-item h4 {
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.commit-item p {
    font-size: 11px;
    color: #a3957a;
    line-height: 1.3;
}

/* ==========================================
   4. TỰ ĐỘNG ĐIỀU CHỈNH CO GIÃN CHO BẢN WEB (PC & LAPTOP)
   ========================================== */

/* 💻 Khi màn hình Web thu nhỏ (Dưới 1366px - Kích thước Laptop phổ thông) */
@media (max-width: 1366px) {
    .container {
        max-width: 95%;
    }
    
    .main-content {
        grid-template-columns: 1fr 1.8fr;
        gap: 20px;
    }

    .info-section-custom {
        padding: 70px 20px 30px 20px;
    }
    
    .info-item {
        padding: 12px 5px;
    }
    
    .label, .value {
        font-size: 13px;
    }

    .actions-section-custom {
        padding: 70px 30px 35px 30px;
    }

    .actions-grid {
        grid-template-columns: repeat(3, 1fr); /* Giữ nguyên 3 nút một hàng */
        gap: 12px;
        /* 🌟 THÊM DÒNG NÀY: Giới hạn độ rộng lưới khi co màn hình để ép các nút nhỏ lại tinh tế hơn */
        max-width: 520px; 
        margin: 0 auto;
    }

    /* 🌟 THAY ĐỔI TẠI ĐÂY: Thu nhỏ padding và kích thước của các nút */
    .action-card {
        padding: 14px 5px; /* Giảm padding sâu hơn để nút gọn lại */
        gap: 5px;
    }
    
    .icon-wrap {
        width: 34px; /* Thu nhỏ vòng tròn icon xuống 34px */
        height: 34px;
    }
    
    .action-card i {
        font-size: 14px; /* Icon nhỏ lại một chút */
    }
    
    .action-card span {
        font-size: 9px; /* Chữ nhỏ lại vừa vặn, không bị tràn */
    }
}

/* 🖥️ Khi màn hình Web bị ép hẹp sâu hơn (Dưới 1080px - Cửa sổ trình duyệt thu nhỏ) */
@media (max-width: 1080px) {
    .main-content {
        grid-template-columns: 1fr 1.6fr;
    }
    
    .info-section-custom {
        padding: 65px 15px 25px 15px;
    }
    
    .actions-section-custom {
        padding: 65px 20px 30px 20px;
    }

    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 460px; /* 🌟 Tiếp tục ép lưới nhỏ lại khi màn hình hẹp hơn nữa */
        gap: 10px;
    }
    
    .action-card {
        padding: 12px 4px; /* Nút siêu nhỏ gọn */
    }

    .icon-wrap {
        width: 32px;
        height: 32px;
    }

    .action-card i {
        font-size: 13px;
    }

    .label, .value {
        font-size: 12px;
    }
}