/* Nhãn phía trên: `content` lấy từ ô "Nhãn phía trên" trong trang cài đặt plugin (PHP in ra), không sửa ở đây */
.header-button-1::before {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3d00, #ff9100);
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 10px rgba(255, 61, 0, 0.65);
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: gentle-bob 2.2s infinite ease-in-out;
}

.header-button, .header-button-1, .header-button-2 {
    overflow: visible !important;
    position: relative !important;
}

.header-button-1 .button.primary {
    background: linear-gradient(135deg, #ff7800 0%, #ff2a00 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 120, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

@keyframes gentle-bob {0%, 100% {transform: translateX(-50%) translateY(0);}50% {transform: translateX(-50%) translateY(-5px);}}

.header-button-1 .button.primary:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, #ff3d00 100%) !important;
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 61, 0, 0.7);
    transform: translateY(-2px);
}

.header-button-2::before {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffe000, #799f0c, #ffe000);
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #1a1a1a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.6);
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: gentle-bob 2.2s infinite ease-in-out;
    animation-delay: 0.35s;
}

.header-button-2 .button {
    background: #2b2d3a !important;
    color: #ffd700 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 30px !important;
    border: 1.5px solid #ffaa00 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 170, 0, 0.2);
    transition: all 0.3s ease;
}

.header-button-2 .button:hover {
    background: linear-gradient(135deg, #ffd700, #ff9800) !important;
    color: #1a1b24 !important;
    border-color: #ffd700 !important;
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.6);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
 * Mobile (< 850px): nhãn nằm TRONG thanh đỏ, ngay phía trên nút.
 * Thanh đỏ trên mobile chỉ cao vừa đủ nút, nên nhãn top:-22px sẽ tràn lên đè logo.
 * Cho nhãn vào luồng (static) thì thanh đỏ tự cao thêm.
 * (Khối tương ứng cho Live Preview ở assets/css/admin.css - sửa 2 nơi cùng lúc)
 * --------------------------------------------------------- */
@keyframes cab-bob-inline {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 849px) {
    .header-button-1,
    .header-button-2 {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-button-1::before,
    .header-button-2::before {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: max-content;
        max-width: 100%;
        margin: 0 auto 4px;
        animation: cab-bob-inline 2.2s infinite ease-in-out;
    }

    .header-button-2::before {
        animation-delay: 0.35s;
    }
}
