/* ===== NÚT TẢI XUỐNG CHÍNH ===== */
.book-download-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important;
    padding: 20px 0 !important;
    box-shadow: none !important;
}

.book-download-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ff5722 !important;
    color: #fff !important;
    font-family: Inter, Helvetica, sans-serif !important;
    font-weight: 500 !important;
    border: none !important;
    font-size: 1rem !important;
    width: 90% !important;
    max-width: 600px !important;
    height: 42px !important;
    box-shadow: 2px 3px 3px 2px #b8b8b8 !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transition: all 0.3s ease;
}

.book-download-button:hover {
    background: #e64a19 !important;
    transform: scale(1.02);
}

/* ===== MODAL POPUP - FULL SIZE ===== */
.book-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.book-modal-content {
    background-color: #fefefe;
    margin: 2% auto !important;
    padding: 30px !important;
    border: 1px solid #888;
    width: 95% !important;
    max-width: 1200px !important;
    border-radius: 10px;
    position: relative;
    min-height: 80vh;
}

/* ===== HEADER MODAL ===== */
.modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.modal-book-title {
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: #333;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

/* ===== BODY MODAL ===== */
.modal-body {
    text-align: center;
    padding: 20px 0;
}

.code-input {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    font-size: 18px !important;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 20px auto;
    box-sizing: border-box;
    display: block;
}

.code-input:focus {
    outline: none;
    border-color: #ff5722;
}

.verify-button {
    background-color: #e73935;
    color: #fff;
    border: none;
    margin: 10px auto;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 3px 3px 2px #b8b8b8;
    width: auto;
    display: inline-block;
    transition: background-color 0.3s;
}

.verify-button:hover {
    background-color: #c62828;
}

/* ===== HƯỚNG DẪN ===== */
.instructions-box {
    margin-top: 30px;
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.instructions-box h4 {
    font-size: 22px !important;
    margin: 20px 0 15px !important;
    color: #333;
    text-align: center;
}

.instructions-box p {
    font-size: 16px !important;
    line-height: 1.8;
    margin: 15px 0;
    color: #555;
}

.instructions-box strong {
    color: #000;
}

/* ===== TỪ KHÓA ===== */
.keyword-highlight {
    background: #108f51;
    color: #ffffff;
    padding: 7px 10px;
    border-radius: 3px;
    margin: 0 5px;
    display: inline-block;
    font-weight: 600;
}

.copy-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #e73936;
    padding: 5px 10px;
    margin: 5px;
    text-decoration: underline;
}

.copy-btn:hover {
    color: #c62828;
}

/* ===== HÌNH ẢNH ===== */
.keyword-image-box {
    margin: 20px 0;
    text-align: center;
}

.keyword-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== DEMO BUTTON ===== */
.demo-btn {
    background: rgb(237, 28, 36);
    border: 1px solid rgb(255, 255, 255);
    box-shadow: 2px 3px 3px 2px #b8b8b8;
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 17px;
    border-radius: 7px;
    padding: 7px 20px;
    margin: 5px;
    display: inline-block;
}

/* ===== LƯU Ý ===== */
.note-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.note-box p {
    margin: 10px 0;
    font-weight: 600;
}

.note-box ul {
    margin: 15px 0;
    padding-left: 30px;
}

.note-box li {
    margin: 8px 0;
    line-height: 1.6;
}

/* ===== ADMIN STATS ===== */
.admin-stats {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .book-download-button {
        width: 95% !important;
        font-size: 0.9rem !important;
    }
    
    .book-modal-content {
        width: 98% !important;
        margin: 5% auto !important;
        padding: 15px !important;
    }
    
    .modal-book-title {
        font-size: 20px !important;
    }
    
    .instructions-box {
        padding: 15px;
    }
    
    .instructions-box h4 {
        font-size: 18px !important;
    }
    
    .instructions-box p {
        font-size: 14px !important;
    }
}