        body { 
            background-color: #f8f9fa; 
            min-height: 100vh; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            padding: 10px;
            overflow: hidden;
        }
        .container {
            width: 100%;
            max-height: 100vh;
            overflow-y: auto;
        }
        .card { 
            box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
            width: 100%; 
            max-width: 600px; 
            border: none; 
            border-radius: 12px; 
            overflow: hidden; 
            margin: 0 auto;
        }
        .card-body {
            padding: 1rem;
        }
        .captcha-container { 
            border: 2px dashed #adb5bd; 
            padding: 0px; 
            background: #fff; 
            display: inline-block; 
            border-radius: 8px; 
            max-width: 100%;
        }
        .captcha-container img { 
            display: block; 
            max-width: 100%; 
            height: auto; 
        }
        .qr-container { 
            text-align: center; 
            padding: 1px; 
            background: #fff; 
            border: 1px solid #eee; 
            border-radius: 8px; 
            height: 100%; 
        }
        .qr-container img { 
            max-width: 120px; 
            height: auto; 
            margin-bottom: 10px; 
        }
        .info-badge { 
            background: #e9ecef; 
            color: #495057; 
            padding: 6px 10px; 
            border-radius: 6px; 
            font-size: 0.8rem; 
            margin-bottom: 10px; 
        }
        
/* Mobile optimization - SỬA ĐỔI */
@media (max-width: 768px) {
    body {
        padding: 5px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .container {
        max-height: none;
        overflow-y: visible;
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .card {
        flex: 1;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 10px);
    }
    
    .card-body {
        padding: 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        max-height: none;
    }
    
    /* Đảm bảo phần chứa captcha và QR không quá cao */
    .row.g-3 {
        max-height: 45vh;
        overflow-y: auto;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    /* Nút COPY LINK & MẬT KHẨU - giữ ở vị trí trên cùng của phần cuối */
    #copyLinkPasswordBtn {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    #copybtn1 {
        gap: 0rem !important;
        margin-top:0px !important;
    }
    /* Nút VÀO TRÒ CHUYỆN - cố định ở dưới cùng */
    .card-body > .d-grid.gap-2.mt-3:last-child {
        margin-top: auto;
        position: sticky;
        bottom: 0;
        background-color: #f8f9fa;
        padding: 10px 0 5px 0;
        z-index: 10;
        margin-bottom: 0;
    }
    .my-4 {
        margin-top: 0rem !important;
        margin-bottom: 0rem !important;
    }
    .mb-4 {
        margin-bottom: 0rem !important;
    }
    .p-3 {
        padding: 0.2rem !important;
    }
}    
    
    @media (max-width: 576px) {
        .row.g-3 {
            margin: 0 -5px;
        }
        
        .row.g-3 > [class*="col-"] {
            padding: 0 5px;
        }
        
        .card-body {
            padding: 0.5rem;
        }
        
        /* Điều chỉnh captcha container để không quá cao */
        .captcha-container {
            max-height: 150px;
            overflow: hidden;
        }
        
        .captcha-container img {
            width: 100%;
            height: auto;
            max-height: 120px;
            object-fit: contain;
        }
        
        /* QR code nhỏ hơn trên điện thoại nhỏ */
        .qr-container img {
            max-width: 80px;
        }
    }
 /* Nút copy mới - NỔI BẬT */
    #copyLinkPasswordBtn {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border: none;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    #copyLinkPasswordBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    }
    
    #copyLinkPasswordBtn:active {
        transform: translateY(0);
    }
    
    #copyLinkPasswordBtn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%
        );
        transform: rotate(30deg);
        transition: transform 0.5s;
    }
    
    #copyLinkPasswordBtn:hover::after {
        transform: rotate(30deg) translateX(100%);
    }
    
    @media (max-width: 768px) {
        #copyLinkPasswordBtn {
            font-size: 0.95rem;
            padding: 0.75rem;
        }
    }    
