/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: linear-gradient(to right, #fefefe 0%, #f9f1ea 100%);
    min-height: 100vh;
    padding-top: 70px;
    overflow-y: auto;
}

/* ========== TOP MENU (DESKTOP) ========== */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-image: url('https://cctvapp.net/app/asset/menu_bgr1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    z-index: 1000;
}

.logo {
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Menu chính (gộp từ footer) */
.main-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-item {
    text-decoration: none;
    color: #455a64;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #ff9700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.95);
    color: #ff9700;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 151, 0, 0.2);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #ff9700;
    border-radius: 3px 3px 0 0;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-link {
    color: #455a64;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.auth-link:hover {
    color: #ff9700;
    background: rgba(255, 255, 255, 0.8);
}

.auth-link i {
    font-size: 16px;
    color: #455a64;
    transition: color 0.3s ease;
}

.auth-link:hover i {
    color: #ff9700;
}

/* ========== MAIN CONTAINER (DESKTOP) ========== */
.container {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin: 30px auto;
    width: calc(100% - 80px);
    max-width: 1400px;
    padding: 40px;
    min-height: calc(100vh - 140px);
}

/* ========== TOOL SECTION ========== */
.tool-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title h2 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.section-title p {
    color: #90a4ae;
    font-size: 14px;
    font-weight: 400;
}

/* ========== TOOL GRID (DESKTOP) ========== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* ========== TOOL CARD (DESKTOP) ========== */
.tool-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #2d3748;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card.no-hover {
    pointer-events: none;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff9800 0%, #ef6c00 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tool-card:hover, .tool-card.active {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(220, 20, 60, 0.25);
    border-color: #ff9700;
}

.tool-card:hover::before, .tool-card.active::before {
    opacity: 0.05;
}

.tool-card:hover .tool-card-icon, .tool-card.active .tool-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tool-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-card-icon i {
    font-size: 28px;
    color: white;
}

.tool-card-content {
    position: relative;
    z-index: 1;
}

.tool-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-card-title, .tool-card.active .tool-card-title {
    color: #ff9700;
}

.tool-card-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

.vip-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9700;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 151, 0, 0.4);
}

/* ========== TOOL CARD GRADIENTS ========== */
.tool-section:nth-child(1) .tool-grid .tool-card:nth-child(1) .tool-card-icon {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}
.tool-section:nth-child(1) .tool-grid .tool-card:nth-child(2) .tool-card-icon {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}
.tool-section:nth-child(1) .tool-grid .tool-card:nth-child(3) .tool-card-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}
.tool-section:nth-child(1) .tool-grid .tool-card:nth-child(4) .tool-card-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.tool-section:nth-child(2) .tool-grid .tool-card:nth-child(1) .tool-card-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}
.tool-section:nth-child(2) .tool-grid .tool-card:nth-child(2) .tool-card-icon {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
}
.tool-section:nth-child(2) .tool-grid .tool-card:nth-child(3) .tool-card-icon {
    background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%);
}
.tool-section:nth-child(2) .tool-grid .tool-card:nth-child(4) .tool-card-icon {
    background: linear-gradient(135deg, #ffeb3b 0%, #fbc02d 100%);
}

.tool-section:nth-child(3) .tool-grid .tool-card:nth-child(1) .tool-card-icon {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}
.tool-section:nth-child(3) .tool-grid .tool-card:nth-child(2) .tool-card-icon {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}
.tool-section:nth-child(3) .tool-grid .tool-card:nth-child(3) .tool-card-icon {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}
.tool-section:nth-child(3) .tool-grid .tool-card:nth-child(4) .tool-card-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ef6c00 100%);
}

.tool-section:nth-child(4) .tool-grid .tool-card:nth-child(1) .tool-card-icon {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
}
.tool-section:nth-child(4) .tool-grid .tool-card:nth-child(2) .tool-card-icon {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
}
.tool-section:nth-child(4) .tool-grid .tool-card:nth-child(3) .tool-card-icon {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}
.tool-section:nth-child(4) .tool-grid .tool-card:nth-child(4) .tool-card-icon {
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
}

/* ========== ẨN BOTTOM MENU ========== */
.bottom-menu {
    display: none;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: #f7fafc;
    border: none;
    font-size: 20px;
    color: #718096;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #edf2f7;
    color: #2d3748;
    transform: rotate(90deg);
}

/* ========== FORM GROUPS ========== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9700;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 151, 0, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    font-size: 18px;
}

.password-toggle:hover {
    color: #ff9700;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
}

/* ========== BUTTONS ========== */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 140, 0, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 140, 0, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.modal-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.modal-links a {
    color: #ff9700;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-links a:hover {
    text-decoration: underline;
    color: #ef6c00;
}

/* ========== MESSAGES ========== */
.error-message {
    color: #f56565;
    font-size: 13px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(245, 101, 101, 0.1);
    border-radius: 8px;
    display: none;
}

.success-message {
    color: #48bb78;
    font-size: 13px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 8px;
    display: none;
}

/* ========== POPUPS ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2999;
    display: none;
    backdrop-filter: blur(3px);
}

.popup-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 3000;
    display: none;
    text-align: center;
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 350px;
    max-width: 90%;
}

.success-popup.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes popupSlideIn {
    from {
        transform: translate(-50%, -70%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-popup i {
    font-size: 70px;
    color: #48bb78;
    margin-bottom: 20px;
    animation: checkAnimation 0.6s ease-in-out;
}

.success-popup .error-icon {
    color: #f56565;
}

@keyframes checkAnimation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.success-popup h3 {
    color: #2d3748;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.success-popup p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.install-modal-content {
    font-size: 14px;
    line-height: 1.6;
}

.install-modal-content h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2d3748;
}

.install-modal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.install-modal-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.install-modal-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff9700;
    font-size: 18px;
}

.confirm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 3000;
    display: none;
    text-align: center;
    animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 350px;
    max-width: 90%;
}

.confirm-popup.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.confirm-popup i {
    font-size: 70px;
    color: #ff9700;
    margin-bottom: 20px;
    animation: checkAnimation 0.6s ease-in-out;
}

.confirm-popup h3 {
    color: #2d3748;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.confirm-popup p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(251, 140, 0, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 140, 0, 0.5);
}

.cancel-btn {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.cancel-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

/* ========== NOTIFICATION ICON ========== */
.notification-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #455a64;
    transition: all 0.3s ease;
    text-decoration: none;
}

.notification-icon:hover {
    color: #ff9700 !important;
    transform: scale(1.1) !important;
}

.notification-icon i {
    font-size: 18px;
    color: #455a64;
    transition: color 0.3s ease;
}

.notification-icon:hover i {
    color: #ff9700 !important;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    z-index: 1;
}

.notification-icon.auth-link:hover,
.notification-icon.auth-link:hover i {
    color: #ff9700 !important;
}

/* ==================== CẬP NHẬT MENU ĐỒNG NHẤT & BUZZ ĐẸP HOÀN HẢO ==================== */

/* Đồng nhất toàn bộ chữ trong menu (cả nav-item và auth-link) */
.main-navigation .nav-item,
.auth-buttons .auth-link {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.4px;
    color: #455a64 !important;
    padding: 11px 20px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    white-space: nowrap;
}

/* Đảm bảo icon và chữ căn đều */
.main-navigation .nav-item i,
.auth-buttons .auth-link i {
    font-size: 18px !important;
    width: 20px;
    text-align: center;
}

/* Buzz nổi bật hoàn toàn */
.notification-link {
    background: rgba(255, 152, 0, 0.12) !important;
    border: 1.5px solid rgba(255, 152, 0, 0.3) !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    position: relative;
    overflow: visible;
}

.notification-link span:not(.notification-badge) {
    font-weight: 600 !important;
    color: #ff9700 !important;
    font-size: 14.8px !important;
}

.notification-link:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4) !important;
}

.notification-link:hover span:not(.notification-badge),
.notification-link:hover i {
    color: white !important;
}

/* Hiệu ứng chuông rung khi có thông báo mới */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
    20%, 40%, 60%, 80% { transform: rotate(12deg); }
}

.notification-link.has-new i {
    animation: ring 2s ease-in-out infinite;
    color: #ff5252 !important;
}

/* Badge thông báo đẹp hơn */
.notification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff1744;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5);
    z-index: 10;
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 23, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

/* Hover nhẹ cho các nút khác */
.auth-link:hover:not(.notification-link) {
    background: rgba(255, 255, 255, 0.9);
    color: #ff9700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-link:hover i {
    color: #ff9700 !important;
}

/* ============ FIX MENU GIẬT KHI CHUYỂN TRANG ============ */
/* Cố định chiều cao và giữ layout ổn định */
.top-menu {
    height: 70px !important;           /* Đã có rồi, nhưng thêm !important */
    min-height: 70px !important;
}

.main-navigation {
    height: 70px;
    padding: 0 20px;
}

/* Quan trọng: Cố định chiều rộng khu vực auth-buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;           /* Đừng để nó co giãn */
    justify-content: flex-end;
    height: 70px;
    padding-right: 20px;
}

/* Đảm bảo tất cả nút trong auth-buttons cùng chiều cao */
.auth-buttons .auth-link {
    height: 46px !important;
    min-width: 110px;
    justify-content: center;
    padding: 0 16px !important;
}

/* Đặc biệt: Buzz giữ nguyên vị trí dù có badge hay không */
.notification-link {
    min-width: 100px !important;
    justify-content: center;
}

/* Loại bỏ hoàn toàn transform gây giật */
.nav-item:hover,
.auth-link:hover,
.notification-link:hover {
    transform: none !important;   /* BỎ translateY để không bị giật */
}

/* Thay bằng hiệu ứng shadow + background mượt hơn */
.nav-item:hover,
.auth-link:hover:not(.notification-link) {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

.notification-link:hover {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.45) !important;
}

/* ==================== BUZZ TRONG MAIN NAVIGATION ==================== */

/* Buzz nổi bật trong main-navigation */
.main-navigation .notification-link {
    background: rgba(255, 152, 0, 0.12) !important;
    border: 1.5px solid rgba(255, 152, 0, 0.3) !important;
    position: relative;
    overflow: visible;
}

.main-navigation .notification-link span:not(.notification-badge) {
    font-weight: 600 !important;
    color: #ff9700 !important;
}

.main-navigation .notification-link i {
    color: #ff9700 !important;
}

.main-navigation .notification-link:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4) !important;
    border-color: transparent !important;
}

.main-navigation .notification-link:hover span:not(.notification-badge),
.main-navigation .notification-link:hover i {
    color: white !important;
}

/* Hiệu ứng chuông rung khi có thông báo mới */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-12deg); }
    20%, 40%, 60%, 80% { transform: rotate(12deg); }
}

.main-navigation .notification-link.has-new i {
    animation: ring 2s ease-in-out infinite;
}

/* Badge thông báo trong main-navigation */
.main-navigation .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff1744;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5);
    z-index: 10;
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); 
    }
    70% { 
        transform: scale(1.15); 
        box-shadow: 0 0 0 10px rgba(255, 23, 68, 0); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); 
    }
}

/* Khi Buzz active (đang ở trang notify.php) */
.main-navigation .notification-link.active {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white !important;
    border-color: transparent !important;
}

.main-navigation .notification-link.active span:not(.notification-badge),
.main-navigation .notification-link.active i {
    color: white !important;
}

/* Điều chỉnh auth-buttons sau khi bỏ Buzz */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: flex-end;
    height: 70px;
    padding-right: 20px;
}

.auth-buttons .auth-link {
    height: 46px !important;
    min-width: 110px;
    justify-content: center;
    padding: 0 16px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.4px;
    color: #455a64 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-buttons .auth-link:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #ff9700 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.auth-buttons .auth-link:hover i {
    color: #ff9700 !important;
}