/* ==================================================
   GIAO DIỆN NEUMORPHISM - CÁCH LY 100% VỚI WEB GỐC
   ================================================== */
.neo-emoji-wrapper {
    /* Biến màu sắc chuẩn Neumorphism */
    --neo-bg: #e0e5ec;
    --neo-text: #4b5563;
    --neo-text-light: #9ca3af;
    --neo-shadow-light: #ffffff;
    --neo-shadow-dark: #a3b1c6;
    --neo-primary: #3b82f6;

    background-color: var(--neo-bg);
    color: var(--neo-text);
    font-family: system-ui, -apple-system, sans-serif;
    padding: 30px 20px;
    border-radius: 20px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    
    /* Box shadow nổi khối ra ngoài cho khung chính */
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), 
               -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.neo-emoji-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.neo-emoji-wrapper .neo-header {
    text-align: center;
    margin-bottom: 25px;
}

.neo-emoji-wrapper .neo-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--neo-text);
    margin-bottom: 5px;
}

.neo-emoji-wrapper .neo-header p {
    font-size: 13px;
    color: var(--neo-text-light);
}

/* Thanh tìm kiếm (Inner Shadow - Lõm vào trong) */
.neo-emoji-wrapper .neo-search-box {
    position: relative;
    margin-bottom: 25px;
}

.neo-emoji-wrapper .neo-search-box input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: none;
    border-radius: 50px;
    background-color: var(--neo-bg);
    color: var(--neo-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    
    /* Hiệu ứng lõm */
    box-shadow: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.7),
                inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease-in-out;
}

.neo-emoji-wrapper .neo-search-box input:focus {
    box-shadow: inset 4px 4px 8px 0 rgba(163, 177, 198, 0.8),
                inset -4px -4px 8px 0 rgba(255, 255, 255, 0.9);
}

.neo-emoji-wrapper .neo-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

/* Phân loại (Categories) */
.neo-emoji-wrapper .neo-categories {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 10px;
    
    /* Ẩn thanh cuộn nhưng vẫn cuộn được */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.neo-emoji-wrapper .neo-categories::-webkit-scrollbar {
    display: none;
}

.neo-emoji-wrapper .neo-cat-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background-color: var(--neo-bg);
    color: var(--neo-text);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    
    /* Hiệu ứng nổi */
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.5), 
               -4px -4px 8px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.neo-emoji-wrapper .neo-cat-btn:active, 
.neo-emoji-wrapper .neo-cat-btn.active {
    color: var(--neo-primary);
    /* Hiệu ứng lõm khi đang chọn */
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* Khung chứa lưới Emoji (Lõm vào) */
.neo-emoji-wrapper .neo-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 15px;
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 15px;
    background-color: var(--neo-bg);
    
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.6), 
                inset -5px -5px 10px rgba(255, 255, 255, 0.7);
}

/* Thanh cuộn Neumorphism */
.neo-emoji-wrapper .neo-emoji-grid::-webkit-scrollbar {
    width: 12px;
}
.neo-emoji-wrapper .neo-emoji-grid::-webkit-scrollbar-track {
    background: var(--neo-bg);
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}
.neo-emoji-wrapper .neo-emoji-grid::-webkit-scrollbar-thumb {
    background: var(--neo-bg);
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.5), -2px -2px 5px rgba(255, 255, 255, 1);
}

/* Từng icon Emoji (Nổi lên) */
.neo-emoji-wrapper .neo-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 24px;
    border-radius: 12px;
    cursor: pointer;
    background-color: var(--neo-bg);
    
    box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.5), 
               -3px -3px 6px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.neo-emoji-wrapper .neo-emoji-item:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.6), 
               -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.neo-emoji-wrapper .neo-emoji-item:active {
    transform: translateY(0);
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.6), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}

/* Thông báo Toast (Popup copy) */
.neo-emoji-wrapper .neo-toast {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: var(--neo-bg);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: var(--neo-primary);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.7), 
               -5px -5px 10px rgba(255, 255, 255, 0.9);
}

.neo-emoji-wrapper .neo-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}